/* ============================================================
   GiljoAI - main-style.css (redesign 2026-07)
   Shared styles for every marketing page: tokens, base, nav,
   buttons, cards, terminals, video frames, install block,
   footer, rail nav, lightbox, reveal, responsive.
   Fonts (Outfit / Roboto / IBM Plex Mono) + MDI icons load via
   <link> tags in each page head.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Site is dark-only: declare it so browsers don't apply auto/force-dark
     (which inverts light logos like the NVIDIA badge to black). */
  color-scheme: dark;
  /* Surfaces */
  --bg-page: #0e1c2d;
  --bg-alt: #0b1826;
  --bg-surface: #12202e;
  --bg-elevated: #1e3147;
  --bg-terminal: #0d1117;
  --bg-footer: #0a1522;
  --bg-deep: #081320;

  /* Borders (inset hairlines) */
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --hairline-soft: rgba(255, 255, 255, 0.08);
  --hairline-accent: rgba(255, 195, 0, 0.40);

  /* Text */
  --text-headline: #ffffff;
  --text-primary: #e1e1e1;
  --text-secondary: #a3aac4;
  --text-muted: #8895a8;
  --text-faint: #5c6a7d;
  --text-on-yellow: #081320;

  /* Brand */
  --yellow: #ffc300;
  --yellow-light: #ffd93d;
  --green: #6bcf7f;
  --green-dark: #67bd6d;
  --green-soft: #5ec48e;
  --purple: #8b5cf6;
  --gradient-brand: linear-gradient(135deg, #6bcf7f, #ffd93d);

  /* Agent role colors */
  --agent-orchestrator: #d4b08a;
  --agent-analyzer: #e07872;
  --agent-implementer: #6db3e4;
  --agent-documenter: #5ec48e;
  --agent-reviewer: #ac80cc;
  --agent-tester: #edba4a;
  --waiting: #ffd700;

  /* Type */
  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1200px;
  --nav-h: 64px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--yellow-light); text-decoration: none; transition: color 0.15s var(--ease-out); }
a:hover { color: var(--yellow); }
img, video { max-width: 100%; }
::selection { background: rgba(255, 195, 0, 0.3); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-headline); margin: 0; }

/* ---- Typography helpers ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--yellow);
  text-transform: uppercase;
}
.display-h1 {
  font-weight: 700;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.display-h2 {
  font-weight: 700;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.display-h2-lg {
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.grad {
  display: block;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.mono { font-family: var(--font-mono); }

/* ---- Layout ---- */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 32px;
}
.section-alt { background: var(--bg-alt); }
.bg-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section-head {
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}
.section-head p { margin: 0; }

/* Ambient glow orbs (decor) */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
}
.orb-yellow { background: rgba(255, 195, 0, 0.10); }
.orb-green { background: rgba(107, 207, 127, 0.08); }
@keyframes gjFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(28px, -22px); }
}
.orb-float { animation: gjFloat 14s ease-in-out infinite; }
.orb-float-rev { animation: gjFloat 18s ease-in-out infinite reverse; }

/* ---- Fixed nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 32px;
  background: rgba(14, 28, 45, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 var(--hairline-soft);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links > a { color: var(--text-secondary); }
.nav-links > a:hover { color: #ffffff; }
.nav-links > a.active { color: #ffffff; }
.nav-links > a.btn-primary, .nav-links > a.btn-primary:hover { color: var(--text-on-yellow); }
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
}
.nav-right { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease-out);
}
.btn-primary {
  background: var(--yellow);
  color: var(--text-on-yellow);
  box-shadow: 0 8px 28px rgba(255, 195, 0, 0.28);
}
.btn-primary:hover {
  background: var(--yellow-light);
  color: var(--text-on-yellow);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.btn-lg { font-size: 17px; padding: 15px 30px; }
.btn-md { font-size: 15px; padding: 13px 24px; }
.btn-sm { font-size: 14px; padding: 9px 18px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: 26px;
  transition: all 0.25s var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--hairline-2), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.card-hover-accent:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 195, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Tinted icon badge (52px persona/feature squares) */
.tint-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: 9999px;
}
.pill-ghost { color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.pill-yellow { color: var(--text-on-yellow); background: var(--yellow); }

/* ---- Terminal / app-mock windows ---- */
.terminal {
  background: var(--bg-terminal);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 24px 64px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
}
.terminal-title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.mock-window {
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  box-shadow: inset 0 -1px 0 var(--hairline-soft);
}
.mock-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}
.mock-footnote {
  padding: 10px 24px;
  background: var(--bg-footer);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---- Video / animation frames ---- */
.anim-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 24px 64px rgba(0, 0, 0, 0.45);
  background: var(--bg-deep);
}
.anim-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anim-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--bg-deep);
  transition: opacity 0.5s var(--ease-out);
}
iframe.frame-loading { opacity: 0; }
.anim-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--bg-deep);
  transition: opacity 0.5s var(--ease-out);
}
.anim-frame-card {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.anim-expand {
  position: absolute;
  inset: 0;
  cursor: zoom-in;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  background: none;
  border: none;
}
.anim-expand-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(14, 28, 45, 0.8);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  padding: 4px 9px;
  border-radius: 9999px;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 13, 22, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-body {
  position: relative;
  width: min(1500px, 96vw);
  height: min(860px, 88vh);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline-2), 0 32px 96px rgba(0, 0, 0, 0.6);
  background: var(--bg-deep);
}
.lightbox-body video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: rgba(30, 49, 71, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 20px;
}

/* ---- Install block ---- */
.install-block {
  background: var(--bg-terminal);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-tabs { display: flex; gap: 4px; }
.install-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-muted);
}
.install-tab.active {
  background: rgba(255, 195, 0, 0.14);
  color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 195, 0, 0.4);
}
.install-row { display: flex; align-items: center; gap: 10px; }
.install-cmd {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: nowrap;
}
.install-cmd .prompt { color: var(--yellow); }
.install-copy {
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.install-copy:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Segmented toggle (pricing billing, etc.) ---- */
.seg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border-radius: 9999px;
  padding: 5px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.seg-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-out);
  background: transparent;
  color: var(--text-secondary);
}
.seg-btn.active { background: var(--yellow); color: var(--text-on-yellow); }

/* Compact variant: sits inline beside a price inside a card */
.seg-toggle.seg-sm { gap: 3px; padding: 3px; }
.seg-toggle.seg-sm .seg-btn { font-size: 11.5px; padding: 6px 12px; }

/* ---- Edition / price cards (pricing.html, getting-started.html) ---- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; width: min(960px, 100%); align-items: stretch; text-align: left; }
.price-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.price-card .plan-name { font-weight: 600; font-size: 24px; }
.price-card .plan-sub { font-size: 14px; color: var(--text-secondary); min-height: 42px; }
.price-card .amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 54px; }
.price-card .amount .n { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: #ffffff; }
.price-card .amount .per { font-size: 14px; color: var(--text-muted); }
/* The billing toggle rides the price line on the Hosted card */
.price-card .amount .billing-toggle { margin-left: auto; align-self: center; }
.price-card .trust {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--green-soft);
  background: rgba(94,196,142,0.08); border-radius: 12px; padding: 14px 16px;
}
.price-card.hosted {
  position: relative; background: var(--bg-elevated); border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,195,0,0.40), 0 16px 48px rgba(255,195,0,0.10);
}
.price-card.hosted .flag {
  position: absolute; top: -12px; left: 32px; background: var(--yellow); color: var(--text-on-yellow);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: 9999px;
}
.price-card .checks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-primary); }
/* CE has the trust box between amount and checks; reserve its footprint on
   Hosted so the first check rows of both cards start level (desktop only) */
@media (min-width: 901px) { .price-card.hosted .checks { margin-top: 88px; } }
.price-card .checks .row { display: flex; gap: 10px; align-items: flex-start; }
.price-card .checks .mdi { color: var(--green-soft); font-size: 16px; }
.price-card .fine { margin-top: -6px; min-height: 58px; display: flex; flex-direction: column; gap: 2px; }
.price-card .fine p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); text-align: center; }
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  /* Whenever the cards stack, the recommended Hosted plan comes first
     (DOM order stays CE-first for the desktop side-by-side layout) */
  .price-card.hosted { order: -1; }
}
@media (max-width: 640px) {
  .price-grid { gap: 20px; }
  .price-card { padding: 20px; gap: 14px; }
  .price-card.hosted { border-radius: 12px; margin-top: 10px; }
  .price-card.hosted .flag { left: 20px; }
  .price-card .plan-name { font-size: 20px; }
  .price-card .amount .n { font-size: 32px; }
  .price-card .amount .billing-toggle { margin-left: 0; width: 100%; justify-content: center; }
  .price-card .checks { font-size: 13px; }
}

/* ---- Rail nav (homepage scenes) ---- */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.rail-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: transparent;
  text-transform: uppercase;
  transition: color 0.25s var(--ease-out);
}
.rail-pip {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.25s var(--ease-out);
}
.rail-dot.active .rail-label { color: var(--yellow); }
.rail-dot.active .rail-pip { background: var(--yellow); box-shadow: 0 0 10px rgba(255, 195, 0, 0.7); }

/* ---- Footer ---- */
.footer { background: var(--bg-footer); padding: 64px 48px 36px; }
.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 32px; width: fit-content; }
.footer-brand .tagline { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.footer-brand .address { margin: 0; font-size: 13px; color: var(--text-muted); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-weight: 600; font-size: 14px; }
.footer-col a { font-size: 13.5px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--yellow); }
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-badges .member-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.badge-nv { height: 72px; display: block; }
.badge-oin { height: 32px; display: block; }
.badge-lot { height: 30px; display: block; }
.footer-legal {
  padding-top: 22px;
  box-shadow: inset 0 1px 0 var(--hairline-soft);
}
.footer-legal p { margin: 0; font-size: 12px; color: var(--text-faint); }

/* ---- Scroll reveal ---- */
section[data-anchor].pre-reveal { opacity: 0; }

/* ---- Mobile/desktop variant visibility ----
   .m-only blocks are the mobile-reference layouts; hidden on desktop.
   .d-only blocks are desktop layouts; hidden at the mobile breakpoint. */
.m-only { display: none; }
.nav-cta-m { display: none; }

/* ---- Persona accent scoping ---- */
body.persona-makers { --accent: #ffc300; --accent-tint: rgba(255, 195, 0, 0.15); }
body.persona-modders { --accent: #8b5cf6; --accent-tint: rgba(139, 92, 246, 0.15); }
body.persona-builders { --accent: #6bcf7f; --accent-tint: rgba(107, 207, 127, 0.15); }

/* ---- Analytics consent bar ---- */
.consent-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 720px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--hairline-2), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.consent-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-primary); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { font-size: 13px; padding: 9px 16px; box-shadow: none; }
.consent-actions .btn-ghost { box-shadow: inset 0 0 0 1px var(--hairline-2); }
.consent-pref-link { color: var(--text-faint); text-decoration: underline; }
.consent-pref-link:hover { color: var(--text-muted); }
@media (max-width: 640px) {
  .consent-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; padding: 12px 0; }
}

/* ---- Decor keyframes ---- */
@keyframes gjBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes gjCli { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes gjPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail { display: none; }
}
@media (max-width: 900px) {
  .cols-2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: rgba(14, 28, 45, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 -1px 0 var(--hairline-soft);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 32px; }
  .nav-links > a.btn { display: none; }
  .nav-burger { display: block; }
  .nav-right { display: flex; align-items: center; gap: 14px; }
  .nav-cta-m { display: inline-block; }
}
@media (max-width: 640px) {
  /* Mobile layer - per Homepage Mobile Reference (390px) */
  .m-only { display: block; }
  .m-only.m-flex { display: flex; }
  .m-only.m-grid { display: grid; }
  .d-only { display: none !important; }

  .nav { height: 56px; padding: 0 16px; }
  :root { --nav-h: 56px; }
  .nav-logo img { height: 24px; }
  .nav-cta-m { font-size: 12.5px; padding: 8px 14px; border-radius: 7px; box-shadow: none; }

  .section { padding: 40px 20px; }
  .section-head { gap: 14px; margin-bottom: 28px; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.2em; }
  .display-h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
  .display-h2, .display-h2-lg { font-size: 27px; line-height: 1.12; }
  .lead { font-size: 13.5px; }
  .nowrap { white-space: normal; }

  .grid-3 { grid-template-columns: 1fr !important; }
  .card { border-radius: 12px; padding: 16px; }
  .anim-frame { border-radius: 12px; }

  .hero-ctas, .cta-row { flex-direction: column; width: 100%; gap: 10px; }
  .hero-ctas .btn, .cta-row .btn { display: block; width: 100%; font-size: 15px; padding: 14px 0; }

  /* Footer - 2-col tap-friendly layout */
  .footer { padding: 36px 20px 24px; }
  .footer-inner { gap: 24px; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; gap: 10px; }
  .footer-brand img { height: 26px; }
  .footer-brand .tagline { font-size: 12.5px; }
  .footer-brand .address { font-size: 11.5px; }
  .footer-col { gap: 2px; }
  .footer-col h4 { font-size: 12.5px; }
  .footer-col a { padding: 12px 0; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05); }
  .footer-col.footer-contact { display: none; }
  .footer-col a.fo-x { display: none; }
  .footer-badges { gap: 18px; }
  .footer-badges .member-label { display: none; }
  .badge-nv { height: 40px; }
  .badge-oin { height: 20px; }
  .badge-lot { height: 18px; }
  .footer-legal { padding-top: 0; box-shadow: none; }
  .footer-legal p { font-size: 10px; text-align: center; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr !important; }
}

/* ---- 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;
  }
  section[data-anchor].pre-reveal { opacity: 1; }
}

/* ---- AMH launch evaluation 2026-09 ---- */
/* Keep evaluation screenshots and file:// browsing complete even before scroll. */
section[data-anchor].pre-reveal{opacity:1}
.grad-inline{display:inline;background:var(--gradient-brand);-webkit-background-clip:text;background-clip:text;color:transparent}.nav-links{gap:20px}.nav-new,.launch-new,.launch-pill,.price-pill{display:inline-flex;align-items:center;border-radius:999px;font-family:var(--font-mono);font-weight:700;letter-spacing:.08em}.nav-new{margin-left:4px;padding:2px 6px;background:var(--yellow);color:var(--text-on-yellow);font-size:8px}.amh-video-hero{min-height:100vh;padding:96px 24px 42px;background:var(--bg-deep);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px}.amh-video-frame{width:min(1400px,95vw);aspect-ratio:16/9;background:#040b12;border-radius:18px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--hairline-2),0 28px 90px rgba(0,0,0,.55)}.amh-video-frame iframe{width:100%;height:100%;display:block;border:0;background:#040b12}.launch-strip,.cta-row{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}.amh-intro{gap:42px}.launch-wide-head{max-width:960px}.launch-kicker{display:flex;align-items:center;justify-content:center;gap:10px}.launch-new,.launch-pill{font-size:10px;padding:5px 10px;background:var(--yellow);color:var(--text-on-yellow)}.launch-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;width:min(1240px,100%)}.launch-feature{display:flex;flex-direction:column;gap:14px;min-width:0}.launch-feature-accent,.card.accent{box-shadow:inset 0 0 0 1px var(--hairline-accent),0 12px 40px rgba(255,195,0,.06)}.launch-feature-label{display:flex;align-items:center;justify-content:space-between;font-family:var(--font-mono);font-size:11px;color:var(--yellow);letter-spacing:.09em}.launch-feature h3{font-size:25px}.launch-feature>p,.product-launch-card>p{margin:0;color:var(--text-secondary)}.thread-sample,.task-sample,.handover-sample{margin-top:auto;background:var(--bg-deep);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:9px;font-size:12px}.thread-sample>div{display:grid;grid-template-columns:30px 1fr;gap:8px;align-items:start}.thread-sample b{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:rgba(255,195,0,.12);color:var(--yellow);font-family:var(--font-mono)}.thread-sample span,.task-sample span,.handover-sample span{display:flex;flex-direction:column;color:var(--text-primary)}.thread-sample small,.task-sample small{color:var(--text-muted)}.task-sample span{padding:8px 0;border-bottom:1px solid var(--hairline-soft)}.task-sample span:last-child{border:0}.task-sample i{font-style:normal;color:var(--green-soft);font-family:var(--font-mono);font-size:10px}.handover-sample b{color:var(--yellow);font-size:10px;font-family:var(--font-mono)}.a2a-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;width:min(960px,100%)}.a2a-card{padding:24px;border-radius:14px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--hairline)}.a2a-card.accent{box-shadow:inset 0 0 0 1px var(--hairline-accent)}.a2a-card>span{font:700 11px var(--font-mono);letter-spacing:.12em;color:var(--text-muted)}.a2a-card.accent>span{color:var(--yellow)}.a2a-card p{color:var(--text-secondary)}.a2a-card strong{color:var(--text-primary)}.launch-logo-row{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;color:var(--text-muted);font-size:13px}.launch-logo-row span{display:inline-flex;align-items:center;gap:8px}.launch-logo-row img{width:22px;height:22px}.launch-products{gap:0}.product-pair{display:grid;grid-template-columns:1fr 1fr;gap:26px;width:min(1040px,100%);align-items:stretch}.product-launch-card{display:flex;flex-direction:column;gap:16px}.product-card-top{display:flex;align-items:center;gap:12px}.product-card-top>:last-child{margin-left:auto}.product-icon{width:46px;height:46px;border-radius:11px;display:grid;place-items:center;background:rgba(255,195,0,.12);color:var(--yellow);font-size:25px;flex:0 0 auto}.product-icon img{width:28px;height:28px;object-fit:contain}.price-pill{font-size:10px;padding:5px 9px;background:rgba(255,255,255,.07);color:var(--text-secondary)}.product-launch-card h3{font-size:30px}.product-sub{margin-top:-14px;color:var(--text-muted);font:500 12px var(--font-mono);text-transform:uppercase;letter-spacing:.1em}.product-launch-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;color:var(--text-secondary)}.product-launch-card li{position:relative;padding-left:22px}.product-launch-card li:before{content:'✓';position:absolute;left:0;color:var(--green-soft)}.product-launch-card .btn{margin-top:auto}.card-actions{margin-top:auto;display:flex;flex-direction:column;gap:12px}.btn-hq{background:var(--bg-elevated);color:#fff;box-shadow:inset 0 0 0 1px var(--hairline-2)}.bridge-hq{padding:50px 24px;text-align:center;background:#080d14;display:flex;flex-direction:column;align-items:center;gap:14px}.bridge-hq img{width:46px}.bridge-hq p{max-width:780px;margin:0;color:var(--text-secondary);font-size:18px}.muted-eye{color:var(--text-muted)}
.product-launch-hero,.pricing-launch-hero{padding-top:150px;text-align:center;gap:20px}.product-launch-hero .lead,.pricing-launch-hero .lead{max-width:780px}.product-jump-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;width:min(960px,100%);margin-top:24px}.product-jump{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;text-align:left;color:var(--text-primary)}.product-jump:hover{color:#fff;transform:translateY(-2px)}.product-jump b,.product-jump small{display:block}.product-jump i{font:700 9px var(--font-mono);color:var(--yellow);font-style:normal}.product-jump small{margin-top:4px;color:var(--text-muted)}.product-detail{gap:36px}.product-detail-grid{width:min(1160px,100%);display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center}.product-copy{display:flex;flex-direction:column;gap:18px}.product-copy p{color:var(--text-secondary);font-size:17px}.harness-pills{display:flex;gap:8px;flex-wrap:wrap}.harness-pills span{padding:7px 11px;border-radius:8px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--hairline);font:500 11px var(--font-mono)}.feature-stack{display:grid;grid-template-columns:1fr 1fr;gap:10px}.feature-stack>span{padding:12px;border-radius:10px;background:var(--bg-deep);display:grid;grid-template-columns:auto 1fr;column-gap:8px}.feature-stack i{grid-row:1/3;color:var(--yellow);font-size:20px}.feature-stack small{color:var(--text-muted)}.product-facts{padding:13px;border-radius:10px;background:rgba(94,196,142,.06);color:var(--green-soft);font:12px/1.8 var(--font-mono)}.baton-wrap{width:min(1160px,100%);text-align:center}.baton-wrap iframe{width:100%;aspect-ratio:1200/680;border:0;border-radius:16px;background:var(--bg-deep);box-shadow:inset 0 0 0 1px var(--hairline),0 22px 60px rgba(0,0,0,.4)}.baton-wrap p{color:var(--text-faint);font:10px var(--font-mono)}.hq-intro{text-align:center;gap:16px;padding-top:90px}.hq-intro>img{width:54px}.hq-intro .lead{max-width:820px}.hq-editions{padding-top:20px}.product-price{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}.product-price b{font:700 43px var(--font-display);color:#fff}.product-price span{color:var(--text-muted)}.launch-feature-rows{gap:72px}.feature-row{width:min(1160px,100%);display:grid;grid-template-columns:.8fr 1.2fr;gap:46px;align-items:center}.feature-row.reverse>div{order:2}.feature-row.reverse>img{order:1}.feature-row h2{font-size:38px;margin:10px 0}.feature-row p{color:var(--text-secondary);font-size:17px}.feature-row img{border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,.35)}.hq-surfaces{gap:0}.surface-launch{display:flex;flex-direction:column;gap:10px}.surface-launch>span{color:var(--yellow);font:700 9px var(--font-mono);letter-spacing:.1em}.surface-launch>i{font-size:28px;color:var(--yellow)}.surface-launch p{margin:0;color:var(--text-secondary)}.final-launch-cta{text-align:center;gap:24px;padding-top:86px;padding-bottom:86px}.final-launch-cta h2{max-width:800px}
.pricing-launch-plans{gap:34px}.amh-price-banner{width:min(1120px,100%);display:grid;grid-template-columns:1fr auto;gap:34px;align-items:center;box-shadow:inset 0 0 0 1px var(--hairline-accent)}.amh-price-banner h2{font-size:28px}.amh-price-banner p{color:var(--text-secondary)}.amh-inline-list{display:flex;gap:8px;flex-wrap:wrap}.amh-inline-list span{padding:7px 10px;border-radius:7px;background:var(--bg-deep);font-size:12px}.amh-price-action{min-width:170px;display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:center}.amh-price-action>b{font:700 46px var(--font-display);color:#fff}.amh-price-action small{color:var(--text-muted)}.pricing-divider{width:min(1040px,100%);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;color:var(--text-secondary);text-align:center}.pricing-divider>span{height:1px;background:var(--hairline)}.pricing-divider b{display:flex;align-items:center;gap:9px}.pricing-divider img{width:28px}.price-fine{display:flex;flex-direction:column;gap:4px;color:var(--text-muted);font-size:11px;text-align:center}.compare-launch{gap:0}.compare-table,.legal-table{width:min(1040px,100%);border-radius:14px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--hairline)}.compare-row{display:grid;grid-template-columns:1.25fr repeat(3,1fr);background:var(--bg-surface);border-bottom:1px solid var(--hairline-soft)}.compare-row>*{padding:14px}.compare-row.head{background:var(--bg-elevated)}.compare-row span:not(:first-child){color:var(--text-secondary)}.faq-launch-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;width:min(1060px,100%)}.faq-launch-grid article{display:flex;flex-direction:column;gap:10px}.faq-launch-grid article>span{font:700 10px var(--font-mono);color:var(--yellow);letter-spacing:.1em}.faq-launch-grid h3{font-size:21px}.faq-launch-grid p{margin:0;color:var(--text-secondary)}
.legal-launch{padding:105px 24px 80px}.legal-review-banner{width:min(1040px,100%);margin:0 auto 22px;padding:14px 18px;border-radius:10px;background:rgba(255,195,0,.1);box-shadow:inset 0 0 0 1px rgba(255,195,0,.45);display:flex;gap:14px;align-items:center}.legal-review-banner b{color:var(--yellow);font:700 11px var(--font-mono);white-space:nowrap}.legal-review-banner span{color:var(--text-secondary);font-size:13px}.legal-tabs{width:min(1040px,100%);margin:0 auto 44px;display:flex;gap:8px;flex-wrap:wrap}.legal-tabs a{padding:8px 12px;border-radius:8px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--hairline);font-size:13px}.legal-prose{width:min(820px,100%);margin:0 auto}.legal-prose h1{font-size:clamp(40px,5vw,62px);margin:10px 0}.legal-prose h2{font-size:25px;margin:42px 0 12px}.legal-prose h3{font-size:18px;margin:24px 0 8px}.legal-prose p,.legal-prose li{color:var(--text-secondary);line-height:1.75}.legal-prose .doc-date{font-size:13px;color:var(--text-muted);margin-bottom:28px}.legal-lead{font-size:19px}.legal-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:30px}.legal-hub-card{display:flex;flex-direction:column;gap:10px;color:var(--text-primary)}.legal-hub-card>span{font-size:28px;color:var(--yellow)}.legal-hub-card h2{font-size:22px;margin:0}.legal-hub-card p{margin:0}.legal-hub-card small{margin-top:auto;color:var(--yellow);font:700 10px var(--font-mono)}.legal-callout,.legal-open-item{margin:28px 0;padding:20px;border-radius:12px;background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--hairline-accent)}.legal-callout h2{margin-top:0}.legal-open-item>b{color:var(--yellow);font:700 11px var(--font-mono)}.legal-table .row{display:grid;grid-template-columns:.8fr 1.2fr;background:var(--bg-surface);border-bottom:1px solid var(--hairline-soft)}.legal-table .row>*{padding:14px;color:var(--text-secondary)}.legal-table .row.head{background:var(--bg-elevated)}.launch-retention .row{grid-template-columns:.7fr 1fr 1fr}.legal-card-grid+.legal-callout{margin-top:36px}
.launch-callout{margin:24px auto;width:min(1120px,calc(100% - 40px));padding:18px 22px;border-radius:12px;background:rgba(255,195,0,.07);box-shadow:inset 0 0 0 1px rgba(255,195,0,.28);display:flex;align-items:center;gap:18px}.launch-callout .mdi{font-size:28px;color:var(--yellow)}.launch-callout>div{flex:1}.launch-callout h2{font-size:19px;margin-bottom:3px}.launch-callout p{margin:0;color:var(--text-secondary);font-size:14px}.launch-callout .btn{white-space:nowrap}.launch-footer-grid{grid-template-columns:1.35fr repeat(4,1fr)}
@media(max-width:1120px){.nav-links{display:none;position:absolute;top:var(--nav-h);left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:8px 0 16px;background:rgba(14,28,45,.98);box-shadow:inset 0 -1px 0 var(--hairline-soft)}.nav-links.open{display:flex}.nav-links>a{padding:12px 32px}.nav-links>a.btn{display:none}.nav-burger{display:block}.nav-right{display:flex;align-items:center;gap:14px}.nav-cta-m{display:inline-block}.launch-footer-grid{grid-template-columns:repeat(3,1fr)}.footer-brand{grid-column:1/-1}}
@media(max-width:900px){.launch-grid-3{grid-template-columns:1fr}.product-pair,.product-detail-grid,.product-jump-grid,.feature-row,.amh-price-banner{grid-template-columns:1fr}.feature-row.reverse>div,.feature-row.reverse>img{order:initial}.a2a-grid{grid-template-columns:1fr}.amh-price-action{min-width:0;align-items:flex-start;text-align:left}.feature-stack{grid-template-columns:1fr}.launch-retention .row{grid-template-columns:1fr}.launch-retention .row>*{padding-top:8px;padding-bottom:8px}.launch-retention .row.head{display:none}}
@media(max-width:640px){.amh-video-hero{min-height:auto;padding:76px 12px 28px;gap:18px}.amh-video-frame{width:100%;border-radius:10px}.launch-strip{width:100%;flex-direction:column}.launch-strip .btn{width:100%}.amh-intro{gap:28px}.launch-grid-3{gap:14px}.launch-feature h3{font-size:21px}.a2a-card{padding:18px}.launch-logo-row{gap:14px}.product-pair{gap:16px}.product-launch-card h3{font-size:24px}.bridge-hq{padding:36px 20px}.bridge-hq p{font-size:14px}.product-launch-hero,.pricing-launch-hero{padding-top:96px}.product-jump{padding:14px}.product-detail-grid{gap:26px}.product-copy p{font-size:14px}.baton-wrap iframe{border-radius:10px}.hq-intro{padding-top:56px}.launch-feature-rows{gap:42px}.feature-row{gap:20px}.feature-row h2{font-size:27px}.feature-row p{font-size:14px}.final-launch-cta{padding-top:48px;padding-bottom:48px}.amh-price-banner{gap:18px}.pricing-divider{grid-template-columns:1fr}.pricing-divider>span{display:none}.compare-table{overflow-x:auto}.compare-row{min-width:680px}.faq-launch-grid{grid-template-columns:1fr}.legal-launch{padding:82px 16px 56px}.legal-review-banner{align-items:flex-start;flex-direction:column;gap:4px}.legal-review-banner b{white-space:normal}.legal-tabs{margin-bottom:28px}.legal-prose h1{font-size:36px}.legal-prose h2{font-size:21px;margin-top:32px}.legal-lead{font-size:16px}.legal-card-grid{grid-template-columns:1fr}.legal-table{overflow-x:auto}.legal-table .row{min-width:620px}.launch-retention .row{min-width:0}.launch-callout{flex-direction:column;align-items:flex-start;margin:16px auto}.launch-callout .btn{width:100%}.launch-footer-grid{grid-template-columns:1fr 1fr}}
