/* ==========================================================================
   NEXUS AI — demo site
   Palette, layout, and motion. No frameworks, no build step.
   ========================================================================== */

:root {
  --void-950: #04060c;
  --void-900: #070b14;
  --void-850: #0a0f1a;
  --void-800: #0d1320;
  --navy-900: #0b111e;
  --navy-800: #111a2b;
  --navy-700: #18243a;
  --navy-600: #223050;

  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --emerald: #10b981;

  --text: #e8eefc;
  --text-dim: #a9b6cf;
  --text-mute: #6f7d96;

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 68px;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--void-950);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1100px 620px at 10% -12%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(900px 520px at 90% -4%, rgba(139, 92, 246, 0.13), transparent 64%),
    radial-gradient(760px 520px at 50% 112%, rgba(34, 211, 238, 0.07), transparent 66%);
  background-attachment: fixed;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

p {
  margin: 0;
}

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

svg {
  display: block;
}

::selection {
  background: rgba(59, 130, 246, 0.32);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--void-950),
    0 0 0 4px rgba(59, 130, 246, 0.75);
  border-radius: 6px;
}

/* -------------------------------------------------------------- utilities */
.mono,
.mono-label {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.mono-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.grad-text {
  background: linear-gradient(100deg, var(--cyan), var(--blue) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 17, 30, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px -34px rgba(0, 0, 0, 0.95);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vh, 132px);
}

.section-tight {
  padding-block: clamp(56px, 8vh, 92px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4.6vw, 46px);
}

.section-sub {
  margin-top: 16px;
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.5vw, 16px);
}

/* ----------------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  will-change: auto;
}

/* -------------------------------------------------------------- preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--void-950);
  transition:
    opacity 0.6s var(--ease-out),
    visibility 0.6s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(320px, 74vw);
  overflow: hidden;
}

.preloader-mark {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.55));
}

.preloader-word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.preloader-word em {
  font-style: normal;
  color: var(--blue);
}

.preloader-bar {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  transition: width 0.3s linear;
}

.preloader-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.35), transparent);
  height: 40%;
  animation: scan 1.15s var(--ease-in-out) infinite;
}

.preloader-label {
  font-size: 9.5px;
}

/* ----------------------------------------------------------- scroll chrome */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--violet));
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
}

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out);
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(4, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, 1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s var(--ease-out);
}

.brand:hover .brand-mark {
  stroke: var(--cyan);
}

.brand-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-text em {
  font-style: normal;
  color: var(--blue);
}

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

.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.25s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

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

.nav-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle span:first-child {
  top: 15px;
}

.nav-toggle span:last-child {
  top: 21px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ----------------------------------------------------------- mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding-top: var(--nav-h);
  background: rgba(4, 6, 12, 0.94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px var(--pad);
}

.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.mobile-menu.is-open .mobile-nav a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open .mobile-nav a:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { transition-delay: 0.24s; }

body.is-locked {
  overflow: hidden;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    background-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.32s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 14.5px;
}

.btn-primary {
  background: linear-gradient(100deg, #2563eb, #4f46e5 60%, #7c3aed);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 16px 36px -20px rgba(79, 70, 229, 0.95);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.38) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 22px 46px -22px rgba(99, 102, 241, 1);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.09);
}

/* ------------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
}

.chip-emerald {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.09);
  color: #6ee7b7;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}

.chip-dot.blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.chip-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.chip-dot.violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.chip-dot.emerald { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 84px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(84px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-a {
  top: -14%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.72), transparent 68%);
  animation: aurora-drift 24s var(--ease-in-out) infinite alternate;
}

.aurora-b {
  top: -6%;
  right: -10%;
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.62), transparent 68%);
  animation: aurora-drift 30s var(--ease-in-out) infinite alternate-reverse;
}

.aurora-c {
  bottom: -22%;
  left: 32%;
  width: 44vw;
  height: 34vw;
  max-width: 620px;
  max-height: 460px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
  animation: aurora-drift 34s var(--ease-in-out) infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(96, 148, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 148, 255, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 86% 68% at 50% 8%, #000 32%, transparent 84%);
  mask-image: radial-gradient(ellipse 86% 68% at 50% 8%, #000 32%, transparent 84%);
}

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

.hero-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
  will-change: transform;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}

.hero-title {
  margin-top: 22px;
  max-width: 15ch;
  font-size: clamp(38px, 7.4vw, 82px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.99;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%) rotate(3deg);
  animation: word-up 0.95s var(--ease-out) forwards;
  animation-delay: calc(0.34s + var(--i) * 0.075s);
}

.hero-title .word.grad {
  background: linear-gradient(100deg, var(--cyan), var(--blue) 48%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-typed {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  min-height: 26px;
  font-size: clamp(13px, 1.7vw, 16px);
  color: var(--cyan);
}

.hero-typed .prompt {
  color: var(--text-mute);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--cyan);
  animation: caret-blink 1.05s steps(1) infinite;
}

.hero-sub {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--text-dim);
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.hero-fade {
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0.12s);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  opacity: 0.62;
  transition: opacity 0.3s var(--ease-out);
}

.scroll-cue:hover {
  opacity: 1;
}

.mouse {
  display: block;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  position: relative;
}

.mouse i {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scroll-dot 1.9s var(--ease-in-out) infinite;
}

/* ------------------------------------------------------------------- stats */
.stats {
  position: relative;
  border-block: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat {
  padding: clamp(24px, 3.4vw, 40px) clamp(14px, 2vw, 24px);
  background: var(--void-950);
  text-align: center;
}

.stat-num {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #93b4e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .mono-label {
  margin-top: 10px;
  display: block;
}

/* ------------------------------------------------------------ capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap-card {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 26, 43, 0.55), rgba(10, 15, 26, 0.5));
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.cap-card.is-tilting {
  will-change: transform;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.cap-card:hover {
  border-color: rgba(59, 130, 246, 0.34);
  box-shadow: 0 26px 60px -40px rgba(59, 130, 246, 0.9);
}

.cap-spot {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(59, 130, 246, 0.16),
    transparent 68%
  );
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.cap-card:hover .cap-spot {
  opacity: 1;
}

.cap-index {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.18);
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.09);
  animation: float 6s var(--ease-in-out) infinite;
}

.cap-card:nth-child(2) .cap-icon { animation-delay: 0.6s; }
.cap-card:nth-child(3) .cap-icon { animation-delay: 1.2s; }
.cap-card:nth-child(4) .cap-icon { animation-delay: 0.3s; }
.cap-card:nth-child(5) .cap-icon { animation-delay: 0.9s; }
.cap-card:nth-child(6) .cap-icon { animation-delay: 1.5s; }

.cap-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #7fb0ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-card h3 {
  font-size: 17.5px;
  letter-spacing: -0.02em;
}

.cap-card p {
  margin-top: 9px;
  color: var(--text-dim);
  font-size: 13.8px;
  line-height: 1.62;
}

/* ---------------------------------------------------------------- timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-block: 8px;
}

.timeline-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-rail i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, var(--cyan), var(--blue) 55%, var(--violet));
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
  will-change: transform;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 0;
}

.timeline-step:nth-of-type(even) .timeline-body {
  grid-column: 3;
}

.timeline-step:nth-of-type(odd) .timeline-body {
  grid-column: 1;
  text-align: right;
}

.timeline-node {
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: var(--void-950);
  transition:
    border-color 0.5s var(--ease-out),
    background-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.timeline-step.is-lit .timeline-node {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14), 0 0 20px rgba(34, 211, 238, 0.8);
}

.timeline-body {
  padding: 20px 22px;
}

.timeline-body h3 {
  margin-top: 6px;
  font-size: 18px;
}

.timeline-body p:last-child {
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 13.6px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------- console */
.console {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 17, 30, 0.9), rgba(4, 6, 12, 0.94));
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 40px 90px -60px rgba(0, 0, 0, 1);
}

.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.console-dots i:first-child { background: rgba(239, 68, 68, 0.65); }
.console-dots i:nth-child(2) { background: rgba(245, 158, 11, 0.65); }
.console-dots i:last-child { background: rgba(16, 185, 129, 0.65); }

.console-title {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #6ee7b7;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s var(--ease-out) infinite;
}

.console-body {
  height: clamp(230px, 32vh, 320px);
  padding: 16px 18px;
  overflow-y: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.2px;
  line-height: 1.95;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-600) transparent;
}

.console-body::-webkit-scrollbar {
  width: 7px;
}

.console-body::-webkit-scrollbar-thumb {
  background: var(--navy-600);
  border-radius: 999px;
}

.log-line {
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: fade-in 0.28s var(--ease-out) forwards;
}

.log-time {
  flex: none;
  color: rgba(255, 255, 255, 0.24);
}

.log-level {
  flex: none;
  width: 46px;
  font-weight: 500;
}

.log-level.info { color: #7fb0ff; }
.log-level.ok { color: #6ee7b7; }
.log-level.warn { color: #fcd34d; }
.log-level.dim { color: var(--text-mute); }

.log-text {
  color: var(--text-dim);
  word-break: break-word;
}

.log-line.is-final .log-text {
  color: var(--text);
}

.console-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.console-status {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.console-caret {
  width: 7px;
  height: 13px;
  background: var(--cyan);
  animation: caret-blink 1.05s steps(1) infinite;
}

.console-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.024) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ----------------------------------------------------------------- metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.chart-panel,
.bars-panel {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.chart-value {
  margin-top: 6px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.chart-value span {
  font-size: 0.52em;
  color: var(--text-mute);
  margin-left: 2px;
}

.chart {
  width: 100%;
  height: clamp(150px, 22vh, 200px);
  margin-top: auto;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.9s var(--ease-out);
}

.chart-area {
  opacity: 0;
  transition: opacity 1.1s var(--ease-out) 0.55s;
}

.chart-panel.is-drawn .chart-path {
  stroke-dashoffset: 0;
}

.chart-panel.is-drawn .chart-area {
  opacity: 1;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 9.5px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 38px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 10.5px;
  color: var(--text-dim);
}

.bar-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 70%, var(--violet));
  transition: width 1.4s var(--ease-out);
}

.bars-panel.is-drawn .bar-fill {
  width: var(--h);
}

.bar-row:nth-child(1) .bar-fill { transition-delay: 0.05s; }
.bar-row:nth-child(2) .bar-fill { transition-delay: 0.15s; }
.bar-row:nth-child(3) .bar-fill { transition-delay: 0.25s; }
.bar-row:nth-child(4) .bar-fill { transition-delay: 0.35s; }

.bar-val {
  font-size: 10.5px;
  text-align: right;
  color: var(--text-dim);
}

.bars-foot {
  margin-top: auto;
  padding-top: 22px;
  font-size: 9.5px;
}

/* ---------------------------------------------------------------- marquee */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: 9px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee-track[data-direction="right"] {
  animation-direction: reverse;
  animation-duration: 48s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.agent-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.agent-pill:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

.agent-pill b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.agent-pill span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-mute);
}

/* -------------------------------------------------------------------- cta */
.cta-panel {
  position: relative;
  padding: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(34, 211, 238, 0.9) 40deg,
    rgba(59, 130, 246, 0.95) 90deg,
    transparent 150deg,
    transparent 210deg,
    rgba(139, 92, 246, 0.85) 260deg,
    transparent 320deg
  );
  animation: spin-border 9s linear infinite;
  z-index: -1;
}

.cta-inner {
  position: relative;
  padding: clamp(38px, 7vw, 74px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius-lg) - 2px);
  background:
    radial-gradient(620px 320px at 50% -10%, rgba(59, 130, 246, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(11, 17, 30, 0.97), rgba(4, 6, 12, 0.99));
  text-align: center;
  overflow: hidden;
}

.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 50% 120%, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none;
  animation: glow-pulse 6s var(--ease-in-out) infinite;
}

.cta-inner h2 {
  margin-top: 16px;
  font-size: clamp(30px, 5.2vw, 54px);
  letter-spacing: -0.04em;
}

.cta-sub {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: clamp(14px, 1.6vw, 16.5px);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* ----------------------------------------------------------------- footer */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(4, 6, 12, 0.8);
  padding-block: clamp(38px, 6vw, 56px) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--text-mute);
  font-size: 13px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  position: relative;
  width: fit-content;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: color 0.25s var(--ease-out);
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease-out);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col a:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  color: var(--text-mute);
  font-size: 12px;
}

.footer-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-dim);
  transition:
    border-color 0.28s var(--ease-out),
    color 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
}

.to-top svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
  color: #fff;
}

/* --------------------------------------------------------------- keyframes */
@keyframes word-up {
  from {
    opacity: 0;
    transform: translateY(105%) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes aurora-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-3%, -2%, 0) scale(0.97);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  75% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes spin-border {
  to {
    rotate: 360deg;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scan {
  0% {
    transform: translateY(-120%);
  }
  100% {
    transform: translateY(320%);
  }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    max-width: 100%;
  }

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

  .timeline-rail {
    left: 9px;
    margin-left: 0;
  }

  .timeline-step {
    grid-template-columns: 20px 1fr;
    gap: 14px;
    align-items: start;
  }

  .timeline-step:nth-of-type(odd) .timeline-body,
  .timeline-step:nth-of-type(even) .timeline-body {
    grid-column: 2;
    text-align: left;
  }

  .timeline-node {
    grid-column: 1;
    margin-top: 22px;
  }
}

@media (max-width: 620px) {
  :root {
    --nav-h: 60px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-bottom: 70px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .console-body {
    font-size: 11.4px;
  }

  .bar-row {
    grid-template-columns: 52px 1fr 34px;
    gap: 9px;
  }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-title .word,
  .hero-fade {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .caret,
  .console-caret {
    display: none;
  }

  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  #particles,
  .hero-spotlight {
    display: none;
  }
}
