/* ============================================================
   Mobile-first: unqueried rules below are the MOBILE baseline.
   min-width breakpoints progressively add desktop complexity.
   Breakpoints: 421px (small phone relief), 861px (tablet/desktop
   layout switch), 1101px (large desktop refinement).
   ============================================================ */

/* ============ NAV (mobile baseline = compact, no link row) ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--edge);
  background: linear-gradient(to bottom, rgba(8,8,11,0.85), transparent);
  backdrop-filter: blur(6px);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand-symbol {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: var(--font-wordmark);
  font-size: 15px;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}
.brand-name strong { font-weight: 700; }
.brand-name span { font-weight: 500; color: var(--text-mid); }

.nav-links { display: none; }
.nav-cta { padding: 9px 16px; font-size: 13px; white-space: nowrap; min-height: 44px; }

@media (min-width: 421px) {
  .nav { padding: 20px var(--edge); }
  .brand-name { font-size: 17px; }
  .nav-cta { padding: 10px 22px; font-size: 14px; }
}

@media (min-width: 861px) {
  .brand-symbol { height: 34px; }
  .brand-name { font-size: 19px; }

  .nav-links {
    display: flex;
    gap: var(--sp-5);
  }
  .nav-links a {
    font-size: 14px;
    color: var(--text-low);
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text-hi); }
}

/* ============ HERO SVG VISIBILITY (mobile-first) ============ */
/* mobile baseline: show mobile SVG, hide desktop */
.hero-svg-mobile { display: block; }
.hero-svg-desktop { display: none; }

/* ============ HERO — mobile baseline: simple stacked flow, no overlay ============ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 88px;
  background:
    radial-gradient(ellipse 900px 600px at 82% 30%, #4f8cff14, transparent 60%),
    radial-gradient(ellipse 700px 500px at 88% 78%, #f472b614, transparent 60%),
    radial-gradient(ellipse 600px 500px at 60% 90%, #34d39910, transparent 60%),
    var(--bg-950);
}

.hero-content {
  order: 1;
  max-width: 100%;
  padding: 0 var(--edge) var(--sp-3);
}

.hero-canvas {
  order: 2;
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 4%, black 96%, transparent);
}
.hero-svg { width: 100%; height: 100%; }

/* depth field dots */
.depth-field circle { fill: #ffffff; }

/* radar rings — ambient instrument feel, bridges empty space */
.radar-rings .ring {
  stroke: rgba(255,255,255,0.045);
  stroke-width: 1;
}

/* micro data glyphs */
.glyph-bar { rx: 1; opacity: 0.8; }
.c-amber-fill { fill: var(--amber); }

/* paths */
.rs-path { stroke: rgba(255,255,255,0.14); }

/* nodes */
.node-core { fill: var(--blue); }
.c-blue { fill: var(--blue); }
.c-pink { fill: var(--pink); }
.c-violet { fill: var(--violet); }
.c-cyan { fill: var(--cyan); }
.c-amber { fill: var(--amber); }
.c-green { fill: var(--green); }

.node-label {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--text-low);
  letter-spacing: 0.02em;
}
.node-label-focal {
  fill: var(--text-hi);
  font-size: 13px;
  font-weight: 500;
}
.node-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--pink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* mobile hero SVG: larger type than the desktop-tuned base, for on-phone legibility */
.hero-svg-mobile .node-label { font-size: 14px; }
.hero-svg-mobile .node-label-focal { font-size: 15px; }
.hero-svg-mobile .node-tag { font-size: 11px; }

.focal-ring {
  opacity: 0;
  transform-origin: center;
}
.focal-halo { opacity: 0.25; }

/* chips */
.chip-bg {
  fill: rgba(255,255,255,0.035);
  stroke-width: 1;
}
.c-blue-border { stroke: #4f8cff40; }
.c-violet-border { stroke: #a78bfa40; }
.c-cyan-border { stroke: #22d3ee40; }
.c-blue-fill { fill: var(--blue); }
.c-violet-fill { fill: var(--violet); }
.c-cyan-fill { fill: var(--cyan); }
.chip-text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-mid);
}

.particle { opacity: 0; }

/* ============ HERO CONTENT TYPOGRAPHY (fluid via clamp — same at all sizes) ============ */
.hero-title {
  font-size: clamp(40px, 5.4vw, 72px);
  margin-top: var(--sp-2);
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--pink), var(--violet) 60%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: var(--sp-4);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-mid);
  max-width: 46ch;
}

.hero-body {
  margin-top: var(--sp-3);
  font-size: 15px;
  color: var(--text-low);
}

.hero-ctas {
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-3);
}

/* scroll cue: desktop-only affordance, introduced at the tablet breakpoint below */
.hero-scroll-cue { display: none; }
.hero-scroll-cue span {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--text-low);
  animation: scrollCue 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ============ TABLET / DESKTOP (min-width: 861px) ============
   Switch from stacked mobile flow to the full-bleed overlay
   composition: system behind the text, headline in the safe zone. */
@media (min-width: 861px) {
  /* desktop: show desktop SVG, hide mobile */
  .hero-svg-desktop { display: block; }
  .hero-svg-mobile { display: none; }

  .hero {
    min-height: 100svh;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }
  .hero-content {
    order: initial;
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 120px var(--edge) 80px;
  }
  .hero-canvas {
    order: initial;
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    overflow: visible;
    mask-image: none;
    z-index: 1;
  }
  .hero-scroll-cue {
    display: flex;
    position: absolute;
    bottom: var(--sp-5);
    left: var(--edge);
    z-index: 2;
    width: 24px;
    height: 38px;
    border: 1px solid var(--hairline-strong);
    border-radius: 100px;
    justify-content: center;
    padding-top: 8px;
  }
}

/* ============ LARGE DESKTOP (min-width: 1101px) ============ */
@media (min-width: 1101px) {
  .hero-content { max-width: 640px; padding-top: 140px; }
}
