:root {
  --bg-0: #020817;
  --bg-1: #06162B;
  --bg-2: #0B1F3A;
  --bg-3: #102a4d;
  --line: rgba(170, 183, 196, 0.12);
  --line-strong: rgba(0, 217, 255, 0.35);
  --text: #ffffff;
  --text-dim: #AAB7C4;
  --text-mute: #6b7a8c;
  --cyan: #00D9FF;
  --blue: #007BFF;
  --glow: 0 0 40px rgba(0, 217, 255, 0.18);
  --glow-soft: 0 0 60px rgba(0, 123, 255, 0.18);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,123,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(0,217,255,0.08) 0%, transparent 60%),
    var(--bg-0);
  min-height: 100vh;
}

::selection { background: var(--cyan); color: var(--bg-0); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.h-section {
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.h-card {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 60ch;
  text-wrap: pretty;
}
.body-dim { color: var(--text-dim); line-height: 1.6; }

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section-pad { padding: 140px 0; }
.section-pad-sm { padding: 96px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(170,183,196,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(170,183,196,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #001122;
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 217, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(0, 217, 255, 0.08);
  border-color: var(--line-strong);
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  transition: border-color .35s, transform .35s, background .35s;
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(0,217,255,0.12), transparent 50%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.glass:hover { border-color: rgba(0,217,255,0.35); }
.glass:hover::before { opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.float-data {
  position: absolute;
  border: 1px solid rgba(0,217,255,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(2,8,23,0.7);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.12);
  animation: float 6s ease-in-out infinite;
}
.float-data .label { color: var(--text-mute); display: block; margin-bottom: 2px; }
.float-data .val { color: var(--cyan); font-size: 14px; }

.route-stage { position: relative; }
.route-page { animation: routeIn 0.7s cubic-bezier(.2,.7,.2,1) both; }

@keyframes wordIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1;   }
}
@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-12px); }
}
@keyframes routeIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);    }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0%   50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes float-a {
  0%, 100% { transform: translate3d(0,0,0) rotateY(-12deg) rotateX(4deg); }
  50%       { transform: translate3d(0,-18px,0) rotateY(-10deg) rotateX(3deg); }
}
@keyframes float-b {
  0%, 100% { transform: translate3d(0,0,0) rotateY(10deg) rotateX(-3deg); }
  50%       { transform: translate3d(0,-22px,0) rotateY(12deg) rotateX(-2deg); }
}
@keyframes float-c {
  0%, 100% { transform: translate3d(0,0,0) rotate(-3deg);    }
  50%       { transform: translate3d(0,-14px,0) rotate(-2deg); }
}
@keyframes aurora-1 {
  0%, 100% { transform: translate(0,0) scale(1);         }
  50%       { transform: translate(8vw, 4vw) scale(1.15); }
}
@keyframes aurora-2 {
  0%, 100% { transform: translate(0,0) scale(1);           }
  50%       { transform: translate(-6vw, -8vw) scale(1.1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.aurora {
  position: absolute; inset: -20%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px) saturate(120%);
  opacity: 0.55;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
}
.aurora::before {
  left: -10vw; top: -10vw;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.45), transparent 60%);
  animation: aurora-1 18s ease-in-out infinite;
}
.aurora::after {
  right: -15vw; bottom: -10vw;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.3), transparent 60%);
  animation: aurora-2 22s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background:
    conic-gradient(from 0deg, transparent 0%, rgba(0,217,255,0.4) 25%, transparent 50%, rgba(0,123,255,0.3) 75%, transparent 100%);
  animation: spin 24s linear infinite;
  mask: radial-gradient(circle, transparent 49%, black 50%, black 51%, transparent 52%);
  -webkit-mask: radial-gradient(circle, transparent 49%, black 50%, black 51%, transparent 52%);
}

.scene {
  perspective: 2000px;
  perspective-origin: 50% 30%;
}
.floating-mock {
  position: absolute;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
  will-change: transform;
}
.floating-mock img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 32px rgba(0,217,255,0.07);
}
.float-anim-a { animation: float-a 9s ease-in-out infinite; }
.float-anim-b { animation: float-b 11s ease-in-out infinite; }
.float-anim-c { animation: float-c 13s ease-in-out infinite; }

.btn-magnetic {
  position: relative;
  transition: transform 0.18s cubic-bezier(.2,.7,.2,1);
}
.btn-magnetic .btn-bg {
  position: absolute; inset: -1px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00D9FF, #007BFF, #00D9FF);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  z-index: -1;
}

.tilt { transform-style: preserve-3d; transition: transform 0.2s cubic-bezier(.2,.7,.2,1); }
.tilt-inner { transform: translateZ(30px); }

.section-fade-top { position: relative; }
.section-fade-top::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,0.4), transparent);
  z-index: 1;
}
