:root {
  --bg: #06070d;
  --bg-2: #090a12;
  --bg-3: #0d0f18;
  --surface: rgba(14, 16, 26, 0.78);
  --surface-strong: rgba(9, 10, 18, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.02);
  --glass-edge: rgba(255, 255, 255, 0.06);
  --glass-edge-strong: rgba(255, 255, 255, 0.12);
  --panel-bg: rgba(18, 15, 34, 0.7);
  --panel-bg-alt: rgba(14, 11, 28, 0.8);
  --text: #f0f2ff;
  --text-soft: #c5cae8;
  --text-dim: #8a90b8;
  --primary: #7c5cff;
  --primary-dark: #5f46d8;
  --primary-light: #ab96ff;
  --primary-glow: rgba(124, 92, 255, 0.16);
  --accent: #9986ff;
  --accent-subtle: rgba(153, 134, 255, 0.07);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --shadow-xl: 0 40px 120px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(139, 92, 255, 0.15);
  --shadow-glow-strong: 0 0 80px rgba(139, 92, 255, 0.25);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --cyan: #06f7f7;
  --cyan-dim: rgba(6, 247, 247, 0.15);
  --orange: #ff6b35;
  --orange-dim: rgba(255, 107, 53, 0.12);
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.1);
  --font-sans: 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-display: 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at top center, rgba(124, 92, 255, 0.10), transparent 22%),
    radial-gradient(circle at bottom left, rgba(124, 92, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #0b0c14 0%, #080910 48%, #06070d 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: rgba(139, 92, 255, 0.35);
  color: #fff;
}

.container {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.page {
  position: relative;
  isolation: isolate;
}

/* ─── Background Layers ─── */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.6;
}

.bg-grid-subtle {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-orb {
  position: fixed;
  width: 600px;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -4;
  filter: blur(120px);
  opacity: 0.2;
  animation: orbFloat 20s ease-in-out infinite;
  pointer-events: none;
}

.bg-orb-cyan,
.orb-soft {
  top: -200px;
  left: -150px;
  background: rgba(120, 180, 255, 0.1);
  width: 500px;
}

.bg-orb-purple,
.orb-purple {
  right: -180px;
  top: 5%;
  background: rgba(139, 92, 255, 0.18);
  animation-delay: -5s;
  width: 550px;
}

.bg-orb-violet {
  bottom: -220px;
  left: 20%;
  background: rgba(125, 72, 255, 0.12);
  animation-delay: -10s;
  width: 480px;
}

.bg-orb-pink {
  top: 40%;
  right: 10%;
  background: rgba(200, 130, 255, 0.08);
  animation-delay: -7s;
  width: 400px;
}

/* Star field */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.bg-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 15% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 65% 75%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 25% 35%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 55% 85%, rgba(139,92,255,0.4), transparent),
    radial-gradient(1px 1px at 75% 55%, rgba(139,92,255,0.3), transparent),
    radial-gradient(1px 1px at 95% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 35% 5%, rgba(139,92,255,0.5), transparent);
  background-size: 400px 400px;
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

.bg-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 45%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 38% 72%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 62% 22%, rgba(139,92,255,0.3), transparent),
    radial-gradient(1px 1px at 88% 68%, rgba(255,255,255,0.5), transparent);
  background-size: 600px 600px;
  animation: starTwinkle 12s ease-in-out infinite alternate-reverse;
}

/* Floating particles */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.particle-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(139, 92, 255, 0.4);
  box-shadow: 0 0 6px rgba(139, 92, 255, 0.2);
  animation: particleFloat linear infinite;
}

.particle-dot:nth-child(odd) {
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Glass Components ─── */

.glass-card,
.glass-panel {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(18, 20, 31, 0.72) 0%,
    rgba(10, 11, 19, 0.82) 100%
  ),
  linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.012) 28%,
    rgba(124, 92, 255, 0.045) 68%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 40px rgba(124, 92, 255, 0.05);
  backdrop-filter: blur(34px) saturate(150%);
  -webkit-backdrop-filter: blur(34px) saturate(150%);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.glass-card::before,
.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 30%,
    transparent 70%,
    rgba(139, 92, 255, 0.03) 100%
  );
  pointer-events: none;
}

.glass-card::after,
.glass-panel::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.glass-card:hover,
.glass-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 255, 0.2);
  box-shadow:
    var(--shadow-xl),
    var(--shadow-glow),
    0 0 0 1px rgba(139, 92, 255, 0.06) inset;
}

.glow-follow {
  position: relative;
}

.glow-follow::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  z-index: 0;
}

.glow-follow:hover::after {
  opacity: 1;
}

/* Crystal glass variant */
.glass-crystal {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(139, 92, 255, 0.04) 60%,
    transparent 100%
  ),
  linear-gradient(
    180deg,
    rgba(20, 16, 38, 0.75) 0%,
    rgba(10, 8, 20, 0.85) 100%
  );
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 40px rgba(139, 92, 255, 0.06);
}

.glass-soft {
  background:
    linear-gradient(180deg, rgba(16, 18, 28, 0.68) 0%, rgba(10, 11, 19, 0.78) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(124, 92, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-crystal::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 50%,
    rgba(139, 92, 255, 0.06) 80%,
    rgba(139, 92, 255, 0.02) 100%
  );
}

/* Neon border glow effect */
.neon-frame {
  position: relative;
}

.neon-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(139, 92, 255, 0.5) 30%,
    rgba(167, 139, 250, 0.3) 60%,
    rgba(255, 255, 255, 0.08) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
}

.neon-glow {
  box-shadow:
    var(--shadow-xl),
    0 0 40px rgba(139, 92, 255, 0.08),
    0 0 80px rgba(139, 92, 255, 0.04);
}

/* ─── Typography ─── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-sans);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-sans);
}

.gradient-text {
  background: linear-gradient(120deg, #f0f2ff, #d4caff 35%, var(--primary) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-subtle {
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 16px 0 18px;
  letter-spacing: -0.04em;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ─── Brand ─── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(139, 92, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.brand-fallback {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── Reveal Animation ─── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Navigation ─── */

.floating-nav-wrap,
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0 0;
}

.floating-nav,
.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(16, 18, 28, 0.82) 0%,
    rgba(9, 10, 18, 0.88) 100%
  );
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
}

.floating-nav::before,
.nav-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 40%,
    transparent 80%,
    rgba(139, 92, 255, 0.03) 100%
  );
  pointer-events: none;
}

.floating-nav .brand-mark,
.nav-shell .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.floating-nav .brand-kicker,
.nav-shell .brand-kicker {
  display: none;
}

.nav-shell.is-scrolled {
  border-color: rgba(139, 92, 255, 0.14);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(139, 92, 255, 0.06) inset;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.status-online::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.status-offline::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px var(--warning);
}

/* ─── Buttons ─── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

.hero-actions .btn {
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 0.15s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: rgba(139, 92, 255, 0.3);
  box-shadow:
    0 12px 32px rgba(139, 92, 255, 0.2),
    0 0 20px rgba(139, 92, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.btn-primary:hover {
  box-shadow:
    0 16px 40px rgba(139, 92, 255, 0.3),
    0 0 40px rgba(139, 92, 255, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:active {
  box-shadow: 0 8px 24px rgba(139, 92, 255, 0.2);
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(139, 92, 255, 0.1) 100%
  );
  border-color: rgba(139, 92, 255, 0.2);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(139, 92, 255, 0.06) inset;
}

.btn-secondary:hover {
  border-color: rgba(139, 92, 255, 0.35);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(139, 92, 255, 0.08),
    0 0 0 1px rgba(139, 92, 255, 0.1) inset;
}

.btn-ghost {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(139, 92, 255, 0.2);
  background: rgba(139, 92, 255, 0.05);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(190, 24, 93, 0.85) 100%);
  border-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.15);
}

.btn-danger:hover {
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.22);
}

.btn-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(139, 92, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-glass:hover {
  border-color: rgba(139, 92, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(139, 92, 255, 0.08);
}

/* ─── Hero Section ─── */

.hero {
  padding: 50px 0 30px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  padding: 42px 38px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-hero {
  box-shadow:
    var(--shadow-xl),
    0 0 55px rgba(139, 92, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  margin: 12px 0 18px;
}

.hero-copy p {
  color: var(--text-soft);
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.85;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-metric,
.hero-preview {
  padding: 24px;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.metric-head span {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.metric-head strong {
  color: var(--accent);
  font-size: 0.95rem;
}

.metric-stack {
  display: grid;
  gap: 12px;
}

.metric-stack > div,
.preview-box {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-stack small,
.preview-box small {
  color: var(--text-dim);
  display: block;
  font-size: 0.76rem;
}

.metric-stack b,
.preview-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

/* ─── DEX-style Bento Hero Grid ─── */

.hero-bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.hero-main {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
  min-height: 520px;
}

.hero-main h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}

.hero-main > p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.hero-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: #ffd6d6;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.9rem;
  margin: 8px 0;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-pills span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Hero stats card */
.hero-stats {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-big strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 2px 0;
}

.stat-big .stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(139,92,255,0.1), rgba(255,255,255,0.06));
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-row > div {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-row span {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2px;
}

.text-cyan { color: var(--cyan); }

/* Hero feature cards */
.hero-card-feat {
  padding: 20px 22px;
  display: grid;
  gap: 4px;
  align-content: center;
}

.hero-card-feat .card-icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.hero-card-feat h3 {
  font-size: 1rem;
  font-weight: 700;
}

.hero-card-feat p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ─── Features Bento ─── */

.features-bento,
.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat-card,
.feature-card {
  padding: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.feat-main,
.feature-card-wide {
  grid-row: span 2;
}

.feature-card-wide {
  grid-column: span 2;
}

.feat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(139, 92, 255, 0.1);
  border: 1px solid rgba(139, 92, 255, 0.15);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.card-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(139, 92, 255, 0.18);
  background: rgba(139, 92, 255, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip-row span {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.78rem;
}

.workflow-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.workflow-copy,
.step-card,
.stats-panel {
  padding: 28px;
}

.workflow-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 12px 0 14px;
}

.workflow-copy p {
  color: var(--text-soft);
  line-height: 1.8;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card strong {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 800;
}

.step-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
}

.step-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats-panel strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
}

.stats-panel p {
  color: var(--text-soft);
  line-height: 1.7;
}

.feat-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 4px 0 0;
}

.feat-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.feat-list span {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 4px 0;
}

/* ─── Platform Showcase ─── */

.platform-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.platform-pride {
  padding: 32px;
  display: grid;
  gap: 10px;
  align-content: center;
}

.platform-pride h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin: 8px 0 10px;
}

.platform-pride p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

.metrics-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.metric-item {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.platform-work {
  grid-column: 1 / -1;
  padding: 24px 28px;
  display: grid;
  gap: 6px;
  align-content: center;
}

.platform-work h3 {
  font-size: 1.15rem;
  margin: 4px 0 4px;
}

.platform-work p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.92rem;
}

.signal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.signal-dots i:nth-child(1) { background: var(--text); }
.signal-dots i:nth-child(2) { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.signal-dots i:nth-child(3) { background: rgba(255, 255, 255, 0.2); }

/* Dashboard Preview inside hero */
.dashboard-preview {
  display: grid;
  gap: 14px;
}

.preview-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.preview-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-stat {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  background: linear-gradient(180deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preview-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.preview-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.preview-table > div {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.preview-table > div:last-child {
  border-bottom: 0;
}

.preview-table > div:first-child {
  font-weight: 600;
  color: var(--accent);
  background: linear-gradient(90deg, rgba(139, 92, 255, 0.12), transparent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Sections ─── */

.section {
  padding: 60px 0;
}

/* ─── Feature Grid ─── */

.feature-grid {
  display: grid;
  gap: 20px;
}

.feature-grid-premium {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  color: var(--text);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.25), rgba(139, 92, 255, 0.08));
  border: 1px solid rgba(139, 92, 255, 0.15);
  box-shadow: 0 8px 20px rgba(139, 92, 255, 0.1);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 0;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ─── Platform / Metrics ─── */

.platform-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.platform-story {
  padding: 32px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.platform-story h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin: 8px 0 10px;
}

.platform-story p {
  color: var(--text-soft);
  line-height: 1.7;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.stack-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stack-list span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.platform-metrics {
  padding: 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.platform-metrics .metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.platform-metrics .metric-row > div {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.platform-metrics span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.platform-panel {
  grid-column: 1 / -1;
  padding: 28px 32px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.platform-panel h3 {
  font-size: 1.2rem;
  margin: 4px 0 6px;
}

.platform-panel p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ─── Reviews ─── */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.avatar-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.3), rgba(139, 92, 255, 0.08));
  border: 2px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.review-user strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.review-user span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.review-card p {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

.rating {
  margin-top: 8px;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

/* ─── FAQ ─── */

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  padding: 22px 26px;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.92rem;
  padding-top: 14px;
  max-width: 600px;
}

.faq-item[open] {
  border-color: rgba(139, 92, 255, 0.2);
}

/* ─── Footer ─── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 20px;
}

.footer > div:first-child p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4px;
  max-width: 380px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* ═══ DASHBOARD LAYOUT ═══ */

.dashboard-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 24px;
  min-height: calc(100vh - 40px);
  align-content: start;
}

.sidebar-top {
  display: grid;
  gap: 14px;
}

.sidebar-badge {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-link {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(139, 92, 255, 0.06);
}

.sidebar-link.is-active {
  color: var(--text);
  background: rgba(139, 92, 255, 0.1);
  border-color: rgba(139, 92, 255, 0.15);
}

.sidebar-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-card h3 {
  font-size: 1rem;
  margin: 6px 0 6px;
}

.sidebar-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar-footer span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1px;
}

.sidebar-logout {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* Dashboard Content */
.dashboard-content {
  padding: 0;
  display: grid;
  gap: 22px;
  align-content: start;
}

.dashboard-topbar {
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-topbar h1 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  margin: 8px 0 12px;
}

.dashboard-topbar p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Stats */
.dashboard-stats {
  display: grid;
  gap: 18px;
}

.dashboard-stats-premium {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 24px rgba(139,92,255,0.06);
}

.stat-card span {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 6px 0;
  background: linear-gradient(180deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  gap: 20px;
}

.dashboard-grid-premium {
  grid-template-columns: 1.1fr 0.9fr;
}

.panel {
  padding: 26px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-hero {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel-head h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin: 8px 0 10px;
}

.panel-head p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.panel-head-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field-span-2 {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 6px;
}

label > span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(139, 92, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 255, 0.1), 0 0 20px rgba(139, 92, 255, 0.04);
  transform: translateY(-1px);
}

input::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a90b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select option {
  color: #fff;
  background: #1a1a2e;
}

/* Toolbar */
.toolbar-grid {
  display: grid;
  gap: 16px;
  align-items: end;
}

.toolbar-grid-premium {
  grid-template-columns: 1.2fr 1fr auto;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-actions-stack {
  display: grid;
  gap: 8px;
  align-content: end;
}

/* Column picker */
.column-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.column-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.column-picker label:hover {
  border-color: rgba(139, 92, 255, 0.2);
  background: rgba(139, 92, 255, 0.04);
}

.column-picker input {
  width: 15px;
  height: 15px;
  padding: 0;
  accent-color: var(--primary);
}

/* Table */
.excel-board,
.premium-table-shell {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(16, 18, 28, 0.8) 0%, rgba(9, 10, 18, 0.9) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  overflow: auto;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.records-shell {
  padding: 18px;
}

.records-grid {
  display: grid;
  gap: 16px;
}

.record-card {
  padding: 20px;
  display: grid;
  gap: 18px;
  border-radius: 24px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.record-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 255, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(139, 92, 255, 0.06);
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.record-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.record-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.3), rgba(139, 92, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(139, 92, 255, 0.12);
  flex-shrink: 0;
  overflow: hidden;
}

.record-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.record-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.record-copy strong {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-copy span {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.record-id-box {
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.record-id-box span,
.meta-label {
  display: block;
  font-size: 0.73rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.record-id-box strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.record-id-box small,
.meta-note {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.5;
}

.record-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.record-meta {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 10px;
  align-content: start;
}

.record-meta code {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  width: fit-content;
  max-width: 100%;
  overflow: auto;
}

.record-meta strong {
  font-size: 0.94rem;
  color: var(--text);
}

.meta-empty {
  color: var(--text-soft);
  font-weight: 700;
}

.data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(22, 18, 42, 0.96), rgba(12, 10, 24, 0.98));
  backdrop-filter: blur(12px);
}

.data-table tbody tr {
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.data-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr:hover {
  background: rgba(139, 92, 255, 0.06);
}

.table-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 16px !important;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid;
}

/* Mini Buttons */
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 255, 0.2);
  background: rgba(139, 92, 255, 0.05);
}

.mini-btn-danger {
  color: #ffd5db;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
}

.mini-btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Security Panel */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.security-item {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.security-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.security-item span {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Toast */
.toast-area {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100% - 40px));
}

.toast {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 10, 22, 0.95);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(20px);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.2);
  border-left: 3px solid var(--success);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.2);
  border-left: 3px solid var(--danger);
}

/* Confirm Dialog */
body.has-modal-open {
  overflow: hidden;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(139, 92, 255, 0.14), transparent 30%),
    rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(100%, 520px);
  padding: 26px;
  display: grid;
  gap: 18px;
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    var(--shadow-xl),
    0 0 36px rgba(139, 92, 255, 0.08);
}

.confirm-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffd8df;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(139, 92, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.12);
}

.confirm-copy {
  display: grid;
  gap: 8px;
}

.confirm-copy h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.confirm-copy p {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.95rem;
}

.confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Loading state */
body.is-loading .premium-table-shell {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(139, 92, 255, 0.1) inset;
}

.hidden-column {
  display: none;
}

/* ═══ ANIMATIONS ═══ */

@keyframes orbFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(-20px, 30px, 0) scale(1.05);
  }
  50% {
    transform: translate3d(15px, -20px, 0) scale(0.95);
  }
  75% {
    transform: translate3d(-10px, 15px, 0) scale(1.02);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) translateX(var(--drift, 20px)) scale(0);
    opacity: 0;
  }
}

@keyframes starTwinkle {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@keyframes glassShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(25deg);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 1220px) {
  .floating-nav,
  .nav-shell {
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
  }

  .hero-bento-grid,
  .hero-layout,
  .features-bento,
  .feature-bento,
  .platform-showcase,
  .workflow-shell,
  .workflow-steps,
  .stats-grid,
  .dashboard-app,
  .dashboard-grid-premium,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .feat-main {
    grid-row: auto;
  }

  .dashboard-sidebar {
    position: static;
    min-height: unset;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 1024px) {
  .feature-grid-premium,
  .review-grid,
  .dashboard-stats-premium {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar-grid-premium {
    grid-template-columns: 1fr;
  }

  .feature-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .hero-bento-grid,
  .hero-layout,
  .features-bento,
  .feature-bento,
  .platform-showcase,
  .workflow-shell,
  .workflow-steps,
  .stats-grid,
  .feature-grid-premium,
  .review-grid,
  .dashboard-stats-premium,
  .form-grid,
  .preview-panel,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .feat-main {
    grid-row: auto;
  }

  .field-span-2,
  .visual-card-main,
  .panel-wide {
    grid-column: auto;
  }

  .hero-main,
  .hero-copy {
    padding: 28px 22px;
    min-height: auto;
  }

  .hero-main h1,
  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-stats,
  .hero-card-feat,
  .feat-card,
  .review-card,
  .dashboard-topbar,
  .panel,
  .stat-card,
  .dashboard-sidebar {
    padding: 20px;
  }

  .record-top,
  .record-user {
    flex-direction: column;
    align-items: flex-start;
  }

  .record-id-box {
    width: 100%;
    text-align: right;
  }

  .record-meta-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions,
  .hero-actions,
  .dashboard-user,
  .footer {
    flex-wrap: wrap;
  }

  .floating-nav-wrap,
  .nav-wrap {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.is-open {
    display: flex;
  }


  .dashboard-app {
    padding: 12px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer > div:first-child p {
    max-width: 100%;
  }

  .status-chip {
    display: none;
  }

  .confirm-dialog {
    padding: 22px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .section-head h2 {
    font-size: 1.6rem;
  }
}

/* ═══ RTL SUPPORT ═══ */

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
  text-align: right;
}

[dir="rtl"] .eyebrow::before {
  display: none;
}

[dir="rtl"] .eyebrow::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: linear-gradient(270deg, var(--primary), transparent);
  border-radius: 2px;
  order: -1;
}

[dir="rtl"] .eyebrow {
  flex-direction: row-reverse;
}

[dir="rtl"] .panel-label::before {
  display: none;
}

[dir="rtl"] .panel-label::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: linear-gradient(270deg, var(--primary), transparent);
  border-radius: 2px;
}

[dir="rtl"] .panel-label {
  flex-direction: row-reverse;
}

[dir="rtl"] select {
  background-position: left 14px center;
  padding-left: 40px;
  padding-right: 16px;
}

[dir="rtl"] .hero-pills span::before {
  margin-left: 6px;
  margin-right: 0;
}

[dir="rtl"] .stack-list span::before {
  margin-left: 6px;
  margin-right: 0;
}

[dir="rtl"] .sidebar-footer {
  grid-template-columns: auto 1fr 44px;
}

[dir="rtl"] .sidebar-footer .sidebar-logout {
  order: -1;
}

[dir="rtl"] .faq-item summary::after {
  order: -1;
  margin-left: auto;
}

[dir="rtl"] .toast-success,
[dir="rtl"] .toast-error {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 3px solid var(--success);
}

[dir="rtl"] .toast-error {
  border-right-color: var(--danger);
}

[dir="rtl"] .preview-table > div {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .preview-table > div:first-child {
  text-align: left;
}

[dir="rtl"] .dashboard-user {
  flex-direction: row;
}

[dir="rtl"] .nav-links {
  flex-direction: row;
}
