/* ───────────────────────────────────────────────────────────
   DESIGN TOKENS
─────────────────────────────────────────────────────────── */
:root {
  --bg:          #03080f;
  --bg-1:        #060f1d;
  --bg-2:        #0b1a2e;
  --surface:     #0e2040;
  --surface-1:   #132645;

  --accent:      #fbbf24;
  --accent-dim:  #d97706;
  --teal:        #2dd4bf;

  --text:        #e2e8f4;
  --muted:       #94a3b8;
  --muted-2:     #5a7090;

  --border:      rgba(251,191,36,0.1);
  --border-md:   rgba(251,191,36,0.22);
  --border-hi:   rgba(251,191,36,0.45);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:      4px;
  --radius-lg:   10px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────────────────────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

.mono { font-family: var(--font-mono); }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ───────────────────────────────────────────────────────────
   HEADER
─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(3, 8, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s;
}

.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--border-md);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: rgba(251,191,36,0.08) !important;
  border-color: var(--border-hi) !important;
  color: var(--accent) !important;
}

/* ───────────────────────────────────────────────────────────
   HERO
─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251,191,36,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,191,36,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 75%);
}

.hero-glow-left {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.06), transparent 70%);
  top: 10%;
  left: -10%;
  filter: blur(40px);
}

.hero-glow-right {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.05), transparent 70%);
  top: -10%;
  right: -15%;
  filter: blur(60px);
}

/* Hero layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  position: relative;
  z-index: 10;
}

/* Left content */
.hero-content {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up 0.9s var(--ease-out) 0.1s forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-md);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  background: rgba(251,191,36,0.04);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.stat-unit {
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.7;
  margin-left: 0.1em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 1.5rem;
}

/* ── Right: Balloon visual panel ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  opacity: 0;
  transform: translateX(28px);
  animation: fade-right 1s var(--ease-out) 0.3s forwards;
}

/* Corner brackets */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--border-md);
  border-style: solid;
}
.corner-tl { top: 0; left: 0;    border-width: 1px 0 0 1px; }
.corner-tr { top: 0; right: 0;   border-width: 1px 1px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner-br { bottom: 0; right: 0;border-width: 0 1px 1px 0; }

/* Radar rings */
.radar-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(251,191,36,0.12);
  animation: radar-expand 4s ease-out infinite;
}

.rr-1 { width: 200px; height: 200px; animation-delay: 0s; }
.rr-2 { width: 200px; height: 200px; animation-delay: 1.3s; }
.rr-3 { width: 200px; height: 200px; animation-delay: 2.6s; }

@keyframes radar-expand {
  0%   { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Data tags */
.data-tag {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 20;
}

.data-tag-tl { top: 10%; left: 2%; }
.data-tag-tr { top: 10%; right: 2%; text-align: right; align-items: flex-end; }
.data-tag-bl { bottom: 18%; left: 2%; }
.data-tag-br { bottom: 18%; right: 2%; text-align: right; align-items: flex-end; }

.dt-key {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.dt-val {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.dt-live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Balloon SVG */
.balloon-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 0 40px rgba(251,191,36,0.08));
  animation: balloon-float 9s ease-in-out infinite;
}

@keyframes balloon-float {
  0%   { transform: translateY(0px)   rotate(0deg); }
  30%  { transform: translateY(-16px) rotate(-0.8deg); }
  65%  { transform: translateY(-7px)  rotate(0.6deg); }
  100% { transform: translateY(0px)   rotate(0deg); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 1.2s forwards;
}

.scroll-line-anim {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-drip 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-drip {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.5); opacity: 1; }
}

/* ───────────────────────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #040b10;
  border-color: var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(251,191,36,0.3);
  background: #fcd34d;
}

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

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

.btn-arrow { transition: transform 0.2s; }
.btn-ghost:hover .btn-arrow { transform: translateX(3px); }

.btn-large {
  padding: 1.05rem 2.5rem;
  font-size: 1rem;
}

/* ───────────────────────────────────────────────────────────
   SECTION SHARED
─────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.section-header {
  max-width: 680px;
  margin-bottom: 4.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.75;
}

/* ───────────────────────────────────────────────────────────
   FEATURES
─────────────────────────────────────────────────────────── */
.features {
  padding: 9rem 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--bg-1);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(251,191,36,0.04), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover { background: var(--bg-2); }
.feature-card:hover::after { opacity: 1; }

.feature-num {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.7;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.feature-accent-line {
  height: 1px;
  width: 2.5rem;
  background: var(--accent);
  opacity: 0.4;
  margin-top: auto;
  transition: width 0.3s var(--ease-out), opacity 0.3s;
}

.feature-card:hover .feature-accent-line {
  width: 5rem;
  opacity: 0.8;
}

/* ───────────────────────────────────────────────────────────
   HOW IT WORKS
─────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 9rem 0;
  background: var(--bg);
}

/* Process steps */
.process {
  max-width: 820px;
  margin-bottom: 7rem;
}

.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2.5rem;
  margin-bottom: 0;
  position: relative;
}

.step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.2rem;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.step-connector {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-md), transparent);
  margin-top: 1rem;
  min-height: 3rem;
}

.step-body {
  padding-bottom: 4rem;
}

.step-body h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.step-body p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.step-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.step-specs li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.step-specs li:last-child { border-bottom: none; }

.spec-key {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
  min-width: 6rem;
  flex-shrink: 0;
}

.spec-val { color: var(--text); }

/* ── Comparison ── */
.comparison {
  border: 1px solid var(--border);
  padding: 3rem;
  background: var(--bg-1);
}

.comparison-label {
  margin-bottom: 2.5rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.comparison-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.comparison-old h4 { color: var(--muted); }
.comparison-new h4 { color: var(--accent); }

.comparison-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.comparison-col li {
  font-size: 0.92rem;
  line-height: 1.55;
  padding-left: 1.25rem;
  position: relative;
}

.comparison-old li {
  color: var(--muted-2);
}

.comparison-old li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted-2);
  opacity: 0.5;
}

.comparison-new li {
  color: var(--text);
}

.comparison-new li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.8rem;
}

.comparison-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2.5rem;
}

.vs-line-v {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.vs-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────────────────
   CTA
─────────────────────────────────────────────────────────── */
.cta {
  padding: 9rem 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(251,191,36,0.06), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner .section-tag {
  display: block;
  margin-bottom: 1.25rem;
}

.cta-inner h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cta-inner p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ───────────────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand { font-size: 1rem; }

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

/* ───────────────────────────────────────────────────────────
   SCROLL REVEAL SYSTEM
   Uses CSS transitions + .is-visible class toggled by JS.
   --stagger custom property sets individual delay.
─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  transition-delay: var(--stagger, 0ms);
}

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

/* ───────────────────────────────────────────────────────────
   ENTRANCE ANIMATIONS (hero only, CSS-driven)
─────────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-right {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ───────────────────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle { max-width: 540px; }

  .hero-cta { justify-content: center; }

  .hero-stats { justify-content: center; }

  #balloon-slot {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .balloon-svg { max-width: 280px; }

  .data-tag-tl,
  .data-tag-tr,
  .data-tag-bl,
  .data-tag-br { display: none; }
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 7rem 0 5rem; }

  .hero-title { font-size: 2.5rem; }

  .features { padding: 6rem 0; }
  .how-it-works { padding: 6rem 0; }
  .cta { padding: 6rem 0; }

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

  .process-step {
    grid-template-columns: 2.5rem 1fr;
    gap: 1.5rem;
  }

  .comparison { padding: 2rem 1.5rem; }

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

  .comparison-vs {
    flex-direction: row;
    padding-top: 0;
  }

  .vs-line-v {
    height: 1px;
    width: 60px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }

  .stat-divider { display: none; }

  .stat-item { align-items: center; text-align: center; }

  .btn { width: 100%; justify-content: center; }

  .hero-cta { flex-direction: column; width: 100%; }
}
