/* ============================================================
   AETHER — design system
   ============================================================ */

:root {
  /* palette */
  --bg: #050816;
  --bg-elevated: #0a0f24;
  --ink: #eef1fb;
  --ink-dim: #a3adc9;
  --ink-faint: #6b7494;
  --blue: #66aaff;
  --cyan: #38bdf8;
  --indigo: #818cf8;
  --purple: #c084fc;
  --magenta: #f472b6;

  /* surfaces */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-bright: rgba(255, 255, 255, 0.16);

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* rhythm (8px grid) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(129, 140, 248, 0.35); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}
.container-narrow { width: min(820px, 100% - 48px); }

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  will-change: auto;
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  animation: grid-drift 24s linear infinite;
}
@keyframes grid-drift {
  to { background-position: 56px 56px, 56px 56px; }
}

.bg-aurora { position: absolute; inset: 0; filter: blur(90px) saturate(115%); }

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}
.aurora-1 {
  width: 60vw; height: 60vw;
  top: -28vw; left: -12vw;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.32), transparent 62%);
  animation: blob-a 26s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 52vw; height: 52vw;
  top: -18vw; right: -16vw;
  background: radial-gradient(circle at 60% 40%, rgba(192, 132, 252, 0.28), transparent 62%);
  animation: blob-b 32s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 46vw; height: 46vw;
  top: 34vh; left: 28vw;
  background: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.18), transparent 65%);
  animation: blob-c 38s ease-in-out infinite alternate;
}
@keyframes blob-a { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes blob-b { to { transform: translate(-7vw, 10vh) scale(0.9) rotate(20deg); } }
@keyframes blob-c { to { transform: translate(-10vw, -6vh) scale(1.2); } }

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* mouse-following light */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 30%),
    rgba(102, 170, 255, 0.07), transparent 62%);
}

/* ============================================================
   GLASS + SHARED SURFACES
   ============================================================ */

.glass, .glass-strong {
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}
.glass-strong {
  background: var(--glass-strong);
  border-radius: var(--radius-lg);
}

.text-gradient {
  background: linear-gradient(100deg, var(--cyan), var(--indigo) 45%, var(--purple) 75%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-animated {
  background-size: 220% 100%;
  animation: gradient-pan 7s ease-in-out infinite alternate;
}
@keyframes gradient-pan {
  to { background-position: 100% 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-smooth),
              background 0.3s, border-color 0.3s, color 0.3s;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #3b82f6, #6366f1 55%, #a855f7);
  background-size: 160% 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 28px -8px rgba(99, 102, 241, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 14px 42px -8px rgba(139, 92, 246, 0.65),
    0 0 34px -4px rgba(56, 189, 248, 0.35);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

/* shine sweep */
.btn-primary span { position: relative; z-index: 1; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  background-size: 260% 100%;
  background-position: 120% 0;
  transition: background-position 0.9s var(--ease-smooth);
}
.btn-primary:hover::after { background-position: -120% 0; }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-bright);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 32px -10px rgba(102, 170, 255, 0.25);
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--stroke);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--s3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo-mark { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.6)); }

.nav-links { display: flex; gap: var(--s4); }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-dim);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-spring);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--s2); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3);
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--stroke);
}
.mobile-menu a { padding: 10px 4px; font-size: 16px; color: var(--ink-dim); }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding-top: clamp(140px, 20vh, 200px);
  padding-bottom: var(--s12);
}

.hero-beam {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: clamp(220px, 32vh, 380px);
  background: linear-gradient(to bottom, transparent, rgba(102, 170, 255, 0.7), transparent);
  filter: drop-shadow(0 0 12px rgba(102, 170, 255, 0.8));
  animation: beam-pulse 4s ease-in-out infinite;
}
@keyframes beam-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.hero-content { text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-dim);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, color 0.3s;
}
.hero-badge:hover { border-color: var(--stroke-bright); color: var(--ink); }
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.hero-title {
  margin-top: var(--s4);
  font-family: var(--font-display);
  font-size: clamp(46px, 9vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin: var(--s4) auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-dim);
}

.hero-cta {
  margin-top: var(--s5);
  display: flex;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
}

.hero-note {
  margin-top: var(--s3);
  font-size: 13px;
  color: var(--ink-faint);
}

/* --- dashboard mockup --- */

.hero-visual { margin-top: var(--s12); perspective: 1400px; }

.dashboard-scene { position: relative; }

.dashboard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotateX(9deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-spring);
  box-shadow:
    0 40px 100px -30px rgba(3, 5, 16, 0.9),
    0 0 80px -20px rgba(99, 102, 241, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  will-change: transform;
}
/* gradient border ring */
.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(56,189,248,0.5), transparent 30%, transparent 65%, rgba(192,132,252,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 14px 20px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}
.dash-dots { display: flex; gap: 7px; }
.dash-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.dash-dots i:first-child { background: rgba(244, 114, 182, 0.55); }
.dash-dots i:nth-child(2) { background: rgba(250, 204, 21, 0.45); }
.dash-dots i:last-child { background: rgba(74, 222, 128, 0.5); }
.dash-url {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  padding: 5px 16px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}
.dash-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.dash-body { display: flex; min-height: 380px; }

.dash-side {
  width: 190px;
  padding: var(--s3) var(--s2);
  border-right: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.dash-side-item.active {
  color: var(--ink);
  background: rgba(129, 140, 248, 0.12);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.2) inset;
}
.dsi-icon {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.35;
}

.dash-main {
  flex: 1;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-width: 0;
}

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.dash-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ds-label { font-size: 11.5px; color: var(--ink-faint); }
.ds-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ds-trend { font-size: 11px; }
.ds-trend.up { color: #4ade80; }
.ds-trend.down { color: #38bdf8; }

.dash-chart {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  padding: 14px 16px 6px;
}
.dc-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.dc-live { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; }
.dc-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: dot-pulse 1.8s ease-in-out infinite;
}
.dash-chart svg { width: 100%; height: 120px; }
.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: chart-draw 2.6s var(--ease-smooth) 0.6s forwards;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.6));
}
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
.chart-area { opacity: 0; animation: fade-in 1.4s ease 1.6s forwards; }
@keyframes fade-in { to { opacity: 1; } }

.dash-rows { display: flex; flex-direction: column; gap: 8px; }
.dash-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--stroke);
  color: var(--ink-dim);
}
.dash-row .dr-meta { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.dr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dr-dot.ok { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.dr-dot.warn { background: #facc15; box-shadow: 0 0 8px rgba(250, 204, 21, 0.7); }

/* floating holo chips */
.holo-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 50px -16px rgba(3, 5, 16, 0.8), 0 0 40px -12px rgba(99, 102, 241, 0.35);
  z-index: 2;
}
.holo-chip strong { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.2; }
.holo-chip small { color: var(--ink-faint); font-size: 11.5px; }
.hc-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 15px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(192, 132, 252, 0.2));
  border: 1px solid var(--stroke-bright);
}
.chip-1 { top: 8%; left: -28px; }
.chip-2 { top: 42%; right: -34px; }
.chip-3 { bottom: -20px; left: 10%; }

.float-slow { animation: floaty 7s ease-in-out infinite; }
.float-med  { animation: floaty 5.5s ease-in-out 0.8s infinite; }
.float-fast { animation: floaty 4.5s ease-in-out 1.6s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============================================================
   TRUSTED / MARQUEE
   ============================================================ */

.trusted { padding: var(--s8) 0 var(--s6); }
.trusted-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s4);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--s8);
  width: max-content;
  animation: marquee var(--marquee-speed, 30s) linear infinite;
}
.marquee-paused .marquee-track { animation-play-state: paused; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.brand:hover { color: var(--ink-dim); }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */

.section { padding: var(--s16) 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s8);
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: var(--s2);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: var(--s3);
  color: var(--ink-dim);
  font-size: 17px;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.feature-card {
  position: relative;
  padding: var(--s4);
  overflow: hidden;
  transition: transform 0.45s var(--ease-spring), border-color 0.35s, box-shadow 0.45s;
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--stroke-bright);
  box-shadow: 0 24px 60px -24px rgba(3, 5, 16, 0.9), 0 0 50px -14px rgba(99, 102, 241, 0.3);
}

/* per-card hover spotlight (driven by JS --px/--py) */
.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(320px circle at var(--px, 50%) var(--py, 50%),
    rgba(102, 170, 255, 0.1), transparent 65%);
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

.fc-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  margin-bottom: var(--s3);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(192, 132, 252, 0.12));
  border: 1px solid var(--stroke-bright);
  box-shadow: 0 0 24px -8px rgba(56, 189, 248, 0.4);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s;
}
.feature-card:hover .fc-icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 36px -6px rgba(56, 189, 248, 0.6);
}
.fc-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p { color: var(--ink-dim); font-size: 14.5px; }

/* ============================================================
   SHOWCASE
   ============================================================ */

.showcase {
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3);
  border-right: 1px solid var(--stroke);
}
.showcase-tab {
  text-align: left;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
}
.showcase-tab strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 3px;
}
.showcase-tab span { font-size: 13px; color: var(--ink-faint); }
.showcase-tab:hover { background: rgba(255, 255, 255, 0.04); }
.showcase-tab.active {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 0 30px -10px rgba(129, 140, 248, 0.4);
}

.showcase-stage { padding: var(--s4); display: grid; }
.showcase-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-smooth), transform 0.45s var(--ease-spring);
  pointer-events: none;
}
.showcase-panel.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.showcase-panel[hidden] { display: block; visibility: hidden; }
.showcase-panel.active[hidden] { visibility: visible; }

.code-window {
  border-radius: 16px;
  background: rgba(3, 5, 14, 0.75);
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(3, 5, 16, 0.9);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--ink-faint);
}
.code-head i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.code-head span { margin-left: 8px; }
.code-window pre {
  padding: var(--s3);
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-dim);
}
.c-kw { color: var(--purple); }
.c-fn { color: var(--cyan); }
.c-str { color: #86efac; }
.c-cm { color: var(--ink-faint); }

.trace-window { display: flex; flex-direction: column; gap: 10px; }
.trace-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
}
.tr-time { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.tr-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.tr-badge.plan  { background: rgba(56, 189, 248, 0.14); color: var(--cyan); }
.tr-badge.tool  { background: rgba(129, 140, 248, 0.14); color: var(--indigo); }
.tr-badge.think { background: rgba(192, 132, 252, 0.14); color: var(--purple); }
.tr-badge.done  { background: rgba(74, 222, 128, 0.14); color: #4ade80; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--s4);
  align-items: start;
}
.step { text-align: center; padding: 0 var(--s2); }
.step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  margin-bottom: var(--s3);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(192, 132, 252, 0.14));
  border: 1px solid var(--stroke-bright);
  box-shadow: 0 0 30px -8px rgba(102, 170, 255, 0.5);
}
.step h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-dim); }

.step-line {
  height: 1px;
  width: 100%;
  min-width: 40px;
  margin-top: 26px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.5), transparent);
  position: relative;
  overflow: hidden;
}
.step-line::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: line-run 2.6s ease-in-out infinite;
}
@keyframes line-run {
  to { left: 100%; }
}

/* ============================================================
   STATS
   ============================================================ */

.stats-section { padding-block: var(--s8); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--s6) var(--s4);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 120%, rgba(129, 140, 248, 0.14), transparent 55%);
  pointer-events: none;
}
.stat { text-align: center; position: relative; }
.stat + .stat { border-left: 1px solid var(--stroke); }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--cyan), var(--indigo), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-faint); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.marquee-cards { padding-block: var(--s2); }
.marquee-cards .marquee-track { gap: var(--s3); }

.t-card {
  width: 380px;
  flex-shrink: 0;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: border-color 0.3s, box-shadow 0.4s;
}
.t-card:hover {
  border-color: var(--stroke-bright);
  box-shadow: 0 0 44px -14px rgba(129, 140, 248, 0.35);
}
.t-card blockquote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-dim);
  white-space: normal;
}
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-card strong { display: block; font-size: 14px; }
.t-card small { color: var(--ink-faint); font-size: 12.5px; }
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 32% 32%, var(--a, #38bdf8), #1e2447 78%);
  box-shadow: 0 0 16px -4px var(--a, #38bdf8);
}

/* ============================================================
   PRICING
   ============================================================ */

.billing-toggle {
  display: inline-flex;
  margin-top: var(--s4);
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}
.bt-opt {
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-dim);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.bt-opt em {
  font-style: normal;
  font-size: 11.5px;
  color: #4ade80;
  margin-left: 4px;
}
.bt-opt.active {
  color: var(--ink);
  background: rgba(129, 140, 248, 0.16);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.3) inset;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-spring), border-color 0.35s, box-shadow 0.45s;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--stroke-bright);
}
.price-card h3 { font-family: var(--font-display); font-size: 20px; }
.pc-desc { margin-top: 6px; font-size: 14px; color: var(--ink-faint); }

.pc-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: var(--s4) 0;
  font-family: var(--font-display);
}
.pc-currency { font-size: 22px; color: var(--ink-dim); }
.pc-amount {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity 0.25s;
}
.pc-amount.swapping { opacity: 0; }
.pc-custom { font-size: 40px; }
.pc-period { color: var(--ink-faint); font-size: 15px; }

.pc-list {
  list-style: none;
  margin-top: var(--s4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pc-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--ink-dim);
}
.pc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.5 2.5 4.5-5' stroke='%2338bdf8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat,
    rgba(56, 189, 248, 0.12);
}

/* featured card with animated gradient border */
.price-featured {
  background: rgba(129, 140, 248, 0.05);
  box-shadow: 0 24px 70px -28px rgba(99, 102, 241, 0.5);
}
.price-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle, 0deg),
    rgba(56,189,248,0.85), rgba(129,140,248,0.85), rgba(192,132,252,0.85),
    rgba(244,114,182,0.7), rgba(56,189,248,0.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-spin 6s linear infinite;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes border-spin {
  to { --angle: 360deg; }
}

.pc-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #3b82f6, #a855f7);
  box-shadow: 0 6px 20px -6px rgba(139, 92, 246, 0.7);
  white-space: nowrap;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list { display: flex; flex-direction: column; gap: var(--s2); }

.faq-item {
  border-radius: 16px;
  transition: border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.faq-item:hover, .faq-item[open] { border-color: var(--stroke-bright); }
.faq-item[open] { background: rgba(255, 255, 255, 0.05); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1.8px;
  background: var(--indigo);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-spring);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-body { padding: 0 26px 24px; }
.faq-body p { color: var(--ink-dim); font-size: 15px; }

/* ============================================================
   FINAL CTA
   ============================================================ */

.cta-section { padding-bottom: var(--s16); }

.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(56px, 9vw, 96px) var(--s4);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.16), transparent 45%),
    radial-gradient(circle at 75% 100%, rgba(192, 132, 252, 0.16), transparent 45%);
  pointer-events: none;
  animation: cta-breathe 8s ease-in-out infinite alternate;
}
@keyframes cta-breathe {
  to { transform: scale(1.12) rotate(3deg); opacity: 0.8; }
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.cta-card > p {
  position: relative;
  margin-top: var(--s3);
  color: var(--ink-dim);
  font-size: 17px;
}

.cta-form {
  position: relative;
  display: flex;
  gap: var(--s2);
  justify-content: center;
  margin-top: var(--s5);
  flex-wrap: wrap;
}
.cta-form input {
  width: min(340px, 100%);
  padding: 14px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-form input::placeholder { color: var(--ink-faint); }
.cta-form input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15), 0 0 30px -8px rgba(129, 140, 248, 0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--stroke);
  padding: var(--s8) 0 var(--s5);
  background: linear-gradient(to bottom, transparent, rgba(10, 15, 36, 0.6));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--s6);
}

.footer-brand p {
  margin-top: var(--s2);
  font-size: 14px;
  color: var(--ink-faint);
  max-width: 240px;
}

.footer-social { display: flex; gap: 10px; margin-top: var(--s3); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.footer-social a:hover {
  color: var(--ink);
  border-color: var(--stroke-bright);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(102, 170, 255, 0.4);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-faint);
  transition: color 0.25s, transform 0.25s;
  width: fit-content;
}
.footer-col a:hover { color: var(--ink); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s8);
  padding-top: var(--s4);
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: dot-pulse 2.4s ease-in-out infinite;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   PERFORMANCE TRIM (always on)
   ============================================================ */

.bg { display: none; }
.bg-grid { animation: none; }
.bg-aurora { filter: blur(44px) saturate(105%); }
.aurora-blob { opacity: 0.34; }
.aurora-1, .aurora-2, .aurora-3 { animation: none; }
#particles,
.cursor-glow,
.hero-beam,
.holo-chip { display: none; }

.glass,
.glass-strong,
.btn-ghost,
.nav.scrolled,
.mobile-menu,
.cta-form input {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.text-gradient-animated,
.price-featured::before,
.step-line::after,
.dc-live i,
.cta-glow,
.footer-status i {
  animation: none;
}

.dashboard {
  transform: none;
  transition: none;
  box-shadow: 0 22px 56px -26px rgba(3, 5, 16, 0.88);
}

.chart-line {
  animation: none;
  stroke-dashoffset: 0;
}
.chart-area {
  animation: none;
  opacity: 1;
}

.float-slow,
.float-med,
.float-fast {
  animation: none;
}

.marquee {
  mask-image: none;
  -webkit-mask-image: none;
}
.marquee-track {
  animation: none;
  width: 100%;
  transform: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
}

.nav {
  transition: background 0.15s linear, border-color 0.15s linear;
}

.feature-card:hover,
.price-card:hover,
.t-card:hover {
  transform: none;
  box-shadow: 0 18px 44px -24px rgba(3, 5, 16, 0.82);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-tabs {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
    overflow-x: auto;
  }
  .showcase-tab { flex: 1; min-width: 150px; }
  .chip-1 { left: 8px; }
  .chip-2 { right: 8px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }

  .section { padding: var(--s12) 0; }
  .features-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step-line {
    width: 1px;
    min-width: 0;
    height: 44px;
    margin: 0 auto;
    background: linear-gradient(to bottom, transparent, rgba(129, 140, 248, 0.5), transparent);
  }
  .step-line::after { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s4) 0; }
  .stat:nth-child(3) { border-left: 0; }

  .dash-side { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stat:last-child { display: none; }
  .holo-chip { display: none; }
  .dashboard { transform: none; }

  .t-card { width: 300px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-form { flex-direction: column; align-items: center; }
  .cta-form .btn { width: min(340px, 100%); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; transform: none; }
  #particles { display: none; }
}
