/* ============================================================
   AIGIS 3D — shared page shell (dark console world)
   Used by AIGIS Platform.html and AIGIS AOE.html. Pulls tokens
   + fonts from ../colors_and_type.css. The 3D canvas is fixed
   behind everything; the hero is transparent so it shows through,
   content sections are opaque so they slide over it on scroll.
   Page-local vars are scoped to `body` (not `:root`) so they don't
   register as global design-system tokens.
   ============================================================ */

body {
  --pg-bg-0:   #0c1611;
  --pg-bg-1:   #0a120d;
  --pg-bg-2:   #060c08;
  --pg-fg:     #eaf3e2;
  --pg-soft:   rgba(221, 232, 213, 0.74);
  --pg-faint:  rgba(221, 232, 213, 0.5);
  --pg-eyebrow:#93b3a2;
  --pg-signal: #b6e62a;
  --pg-signal-soft: #d7f596;
  --pg-line:   rgba(182, 230, 42, 0.16);
  --pg-line-2: rgba(221, 232, 213, 0.1);
  --pg-panel:  rgba(13, 23, 17, 0.66);
  --pg-panel-2:rgba(182, 230, 42, 0.05);
  --pg-ink:    #0e1411;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--pg-bg-1);
  color: var(--pg-fg);
  font-family: var(--font-body, "IBM Plex Sans"), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 3D layer (fixed behind everything) ---------- */
#canvas-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#canvas-layer canvas { width: 100% !important; height: 100% !important; display: block; }
/* gentle settle so a stalled frame never leaves a hard black box */
#canvas-layer { animation: pg-settle 800ms ease both; }
@keyframes pg-settle { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #canvas-layer { animation: none; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(9, 16, 12, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--pg-line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.brand .wm {
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
  letter-spacing: 0.14em; color: var(--pg-fg);
}
.site-nav { display: none; gap: 26px; align-items: center; }
.site-nav a {
  font-family: var(--font-heading); font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; color: rgba(221, 232, 213, 0.68);
  text-decoration: none; transition: color 160ms ease; position: relative;
}
.site-nav a:hover { color: var(--pg-signal); }
.site-nav a.current { color: var(--pg-fg); }
.site-nav a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; background: var(--pg-signal); border-radius: 2px;
}
@media (min-width: 1024px) { .site-nav { display: flex; } }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  padding: 9px 18px; border-radius: 9999px; white-space: nowrap;
  background: var(--pg-signal); color: var(--pg-ink); text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(182, 230, 42, 0.4); }

/* ---------- mobile header (≤480px) ----------
   Logo collapses to the hexagon >_ mark only (wordmark hidden), and the
   CTA shrinks so it never clips the right edge. Header stays sticky and
   well under 10% of viewport height. CRT glow + mono type unchanged. */
@media (max-width: 480px) {
  .site-header { padding: 11px 16px; }
  .brand .wm { display: none; }
  .brand img { width: 34px; height: 34px; }
  .header-cta {
    font-size: 12px; font-weight: 700;
    padding: 9px 15px; letter-spacing: 0.01em;
  }
}
/* very narrow (≤340px): trim the CTA copy's breathing room a touch more */
@media (max-width: 340px) {
  .header-cta { font-size: 11px; padding: 8px 13px; }
}

/* ---------- mobile navigation (hamburger) ----------
   Built by site.js on every page. Below 1024px the inline nav is hidden,
   so the toggle reveals a full-width CRT panel with the full sitemap. */
.nav-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 1023px) {
  .site-header { justify-content: flex-start; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; margin-left: 12px; flex: none;
    background: rgba(7, 14, 10, 0.5); border: 1px solid var(--pg-line);
    border-radius: 11px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--pg-signal);
    border-radius: 2px; box-shadow: 0 0 6px rgba(182, 230, 42, 0.5);
    transition: transform 220ms ease, opacity 160ms ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 45;
    padding: 74px 16px 20px; max-height: 100vh; overflow-y: auto;
    background: rgba(7, 12, 9, 0.975);
    backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--pg-line);
    box-shadow: 0 30px 60px rgba(4, 9, 6, 0.6);
    transform: translateY(-110%); transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
    color: var(--pg-soft); text-decoration: none;
    padding: 14px 13px; border-radius: 11px; border: 1px solid transparent;
    transition: color 160ms ease, background 160ms ease;
  }
  .mobile-menu a + a { margin-top: 2px; }
  .mobile-menu a:hover, .mobile-menu a.current { color: var(--pg-fg); background: var(--pg-panel-2); }
  .mobile-menu a.current { border-color: var(--pg-line); }
  .mobile-menu a .mm-gl { font-family: var(--font-mono); color: var(--pg-signal); font-size: 0.9em; }
  .mobile-menu .mm-cta {
    margin-top: 12px; justify-content: center;
    background: var(--pg-signal); color: var(--pg-ink); font-weight: 700;
    box-shadow: 0 0 22px rgba(182, 230, 42, 0.28);
  }
  .mobile-menu .mm-cta:hover { color: var(--pg-ink); }
  .menu-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* ---------- shared section frame ---------- */
.section {
  position: relative; z-index: 2;
  padding: clamp(72px, 11vh, 140px) clamp(20px, 6vw, 96px);
}
.wrap { max-width: 1180px; margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-heading); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--pg-eyebrow);
  margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}
.section h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: var(--fs-h2, clamp(1.9rem, 2.4vw + 1rem, 3rem));
  line-height: 1.08; letter-spacing: -0.02em; color: var(--pg-fg);
  margin: 0 0 20px; text-wrap: balance; max-width: 18em;
}
.section h2 .sig { color: var(--pg-signal); }
.section .section-lead {
  font-size: 1.0625rem; line-height: 1.7; color: var(--pg-soft);
  margin: 0; max-width: 38em;
}

/* opaque body so it covers the fixed 3D canvas as you scroll */
.content-bg {
  position: relative; z-index: 2;
  /* Frosted glass: translucent dark surface + backdrop blur over the fixed
     3D field — the animation stays faintly visible while text pops. Matches
     the homepage band treatment. Short px fade at the hero seam. */
  background:
    linear-gradient(180deg, rgba(10, 18, 13, 0) 0, rgba(9, 16, 11, 0.76) 72px, rgba(9, 16, 11, 0.76) calc(100% - 90px), rgba(6, 11, 8, 0.92) 100%);
  -webkit-backdrop-filter: blur(9px) saturate(1.07);
  backdrop-filter: blur(9px) saturate(1.07);
}

/* ---------- hero (transparent — shows 3D) ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh; box-sizing: border-box; display: flex; align-items: center;
  /* Symmetric vertical padding: centering is unaffected while the column fits
     the viewport, and once it is taller the hero grows instead of sliding its
     heading under the fixed header. */
  padding: 104px clamp(20px, 6vw, 96px);
  pointer-events: none;
}
.hero .wrap { width: 100%; }
.hero a, .hero button { pointer-events: auto; }
.hero-col {
  max-width: 600px;
  background: rgba(7, 12, 9, 0.52);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
  border: 1px solid rgba(182, 230, 42, 0.10);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 42px);
}
@media (max-width: 760px) {
  /* Keep the canvas at full strength on mobile so the frosted glass still
     shows the animation behind it — the .hero-col panel handles readability. */
  .hero-col { background: rgba(7, 12, 9, 0.58); }
}
.hero .eyebrow {
  font-family: var(--font-heading); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--pg-eyebrow);
  margin: 0 0 22px;
}
.hero .eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 12px; opacity: 0.7;
}
.hero h1 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: var(--fs-hero, clamp(2.6rem, 5vw + 1rem, 4.4rem));
  line-height: 1.04; letter-spacing: -0.025em; color: var(--pg-fg);
  margin: 0 0 24px; text-wrap: balance;
}
.hero h1 .sig { color: var(--pg-signal); }
.hero p.lead {
  font-size: 1.0625rem; line-height: 1.7; color: var(--pg-soft);
  margin: 0 0 34px; max-width: 30em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  padding: 13px 24px; border-radius: 9999px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--pg-signal); color: var(--pg-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(182, 230, 42, 0.42); }
.btn-primary .gl { font-family: var(--font-mono); font-weight: 700; }
.btn-ghost { background: transparent; color: var(--pg-signal-soft); border-color: var(--pg-line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--pg-signal); color: var(--pg-signal); }

/* telemetry readout */
.telemetry {
  display: inline-block; padding: 16px 20px; border-radius: 14px;
  background: rgba(7, 14, 10, 0.6); border: 1px solid var(--pg-line);
  box-shadow: 0 20px 60px rgba(6, 12, 8, 0.4);
  position: relative; overflow: hidden; backdrop-filter: blur(6px);
}
.telemetry::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(182, 230, 42, 0.35) 1px, transparent 1px);
  background-size: 100% 20px; opacity: 0.06;
}
.telemetry .tl-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(182, 230, 42, 0.6); margin-bottom: 8px;
}
.telemetry .tl-line {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  color: var(--pg-signal); white-space: pre-wrap;
}

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--pg-faint); pointer-events: none;
}
.scroll-cue .bar {
  width: 1px; height: 38px;
  background: linear-gradient(var(--pg-signal), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .bar { animation: none; } }

/* ---------- stat row ---------- */
.stat-row {
  display: grid; gap: 1px; grid-template-columns: 1fr;
  background: var(--pg-line-2); border: 1px solid var(--pg-line-2);
  border-radius: 16px; overflow: hidden;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--pg-panel); padding: 26px 28px;
}
.stat .k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--pg-eyebrow); margin: 0 0 10px;
}
.stat .v {
  font-family: var(--font-heading); font-size: 1.18rem; font-weight: 700;
  color: var(--pg-fg); margin: 0; line-height: 1.25;
}

/* ---------- highlight cards ---------- */
.card-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 44px;
}
@media (min-width: 760px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.hcard {
  background: var(--pg-panel); border: 1px solid var(--pg-line-2);
  border-radius: 18px; padding: 30px 30px 32px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  position: relative; overflow: hidden;
}
.hcard:hover {
  transform: translateY(-4px); border-color: var(--pg-line);
  box-shadow: 0 24px 60px rgba(6, 12, 8, 0.45);
}
.hcard .idx {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--pg-signal); margin-bottom: 18px; letter-spacing: 0.1em;
}
.hcard h3 {
  font-family: var(--font-heading); font-size: 1.22rem; font-weight: 700;
  color: var(--pg-fg); margin: 0 0 12px; line-height: 1.25;
}
.hcard p { font-size: 0.975rem; line-height: 1.7; color: var(--pg-soft); margin: 0; }

/* ---------- footer CTA ---------- */
.foot {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(80px, 13vh, 160px) clamp(20px, 6vw, 96px) clamp(60px, 9vh, 110px);
  background: var(--pg-bg-2);
  border-top: 1px solid var(--pg-line);
}
.foot h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: var(--fs-h2, clamp(1.9rem, 2.4vw + 1rem, 3rem));
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 auto 18px; max-width: 16em;
}
.foot h2 .sig { color: var(--pg-signal); }
.foot p { color: var(--pg-soft); max-width: 34em; margin: 0 auto 32px; line-height: 1.7; }
.foot .cta-row { justify-content: center; margin-bottom: 0; }
.foot-meta {
  margin-top: 54px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--pg-faint);
}
.foot-meta a { color: var(--pg-signal-soft); text-decoration: none; }
.foot-meta a:hover { color: var(--pg-signal); }

/* ============================================================
   ADDITIONS — unified site footer + section component system
   shared by every AIGIS 3D page so the site reads as one piece.
   ============================================================ */

/* ---------- nav dropdown (Products) ---------- */
.nav-item { position: relative; }
.nav-item > a .caret {
  display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; vertical-align: middle; opacity: 0.6;
}
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 230px; padding: 8px; border-radius: 14px;
  background: rgba(9, 16, 12, 0.92); border: 1px solid var(--pg-line);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(4, 9, 6, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 180ms ease, transform 180ms ease;
}
/* invisible bridge across the gap so the menu doesn't close as the cursor
   travels from the trigger down to the menu */
.nav-menu::before {
  content: ""; position: absolute; left: -10px; right: -10px; top: -18px; height: 20px;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
/* touch / tap-opened state (set by site.js) — persists so a tap doesn't
   flash-and-vanish on hybrid/touch devices where :hover is transient */
.nav-item.open > .nav-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: block; padding: 11px 13px; border-radius: 9px;
  color: var(--pg-soft); white-space: normal;
}
.nav-menu a:hover { background: var(--pg-panel-2); color: var(--pg-fg); }
.nav-menu a strong {
  display: block; font-family: var(--font-heading); font-weight: 700;
  font-size: 14px; color: var(--pg-fg); letter-spacing: 0.01em;
}
.nav-menu a:hover strong { color: var(--pg-signal); }
.nav-menu a span {
  display: block; font-size: 12px; line-height: 1.5; color: var(--pg-faint); margin-top: 3px;
}

/* ---------- 3-up feature grid ---------- */
.feature-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 46px;
}
@media (min-width: 680px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.fcard {
  background: var(--pg-panel); border: 1px solid var(--pg-line-2);
  border-radius: 18px; padding: 28px 26px 30px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--pg-line); box-shadow: 0 22px 54px rgba(6,12,8,0.4); }
.fcard .ic {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pg-panel-2); border: 1px solid var(--pg-line);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--pg-signal);
}
.fcard h3 {
  font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700;
  color: var(--pg-fg); margin: 0 0 10px; line-height: 1.3;
}
.fcard p { font-size: 0.95rem; line-height: 1.65; color: var(--pg-soft); margin: 0; }

/* ---------- chip / tag list (use-cases, solutions) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chip {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--pg-fg);
  padding: 12px 18px; border-radius: 9999px;
  background: var(--pg-panel); border: 1px solid var(--pg-line-2);
  transition: border-color 200ms ease, transform 200ms ease, color 200ms ease;
}
.chip:hover { border-color: var(--pg-signal); color: var(--pg-signal); transform: translateY(-2px); }
.chip .gl { font-family: var(--font-mono); color: var(--pg-signal); margin-right: 8px; font-size: 0.85em; }

/* ---------- two-column split (text + panel) ---------- */
.split {
  display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split.rev > .split-media { order: -1; }
.split-panel {
  background: var(--pg-panel); border: 1px solid var(--pg-line);
  border-radius: 22px; padding: 30px; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px rgba(4, 9, 6, 0.4);
}

/* ---------- status pill (industries) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 9999px;
  border: 1px solid var(--pg-line); color: var(--pg-signal); background: var(--pg-panel-2);
}
.pill.future { color: var(--pg-eyebrow); border-color: var(--pg-line-2); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.ind-list { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.ind {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  background: var(--pg-panel); border: 1px solid var(--pg-line-2);
  border-radius: 18px; padding: 28px 30px;
  transition: border-color 220ms ease, transform 220ms ease;
}
.ind:hover { border-color: var(--pg-line); transform: translateY(-3px); }
@media (min-width: 760px) { .ind { grid-template-columns: auto 1fr; align-items: start; gap: 28px; } }
.ind h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--pg-fg); margin: 12px 0 10px; }
.ind p { font-size: 0.97rem; line-height: 1.7; color: var(--pg-soft); margin: 0; max-width: 46em; }

/* ---------- numbered steps (contact / workflow) ---------- */
.steps { margin-top: 46px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--pg-panel); border: 1px solid var(--pg-line-2);
  border-radius: 18px; padding: 28px 26px 30px; position: relative;
}
.step .sn {
  font-family: var(--font-mono); font-size: 13px; color: var(--pg-signal);
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--pg-fg); margin: 0 0 10px; }
.step p { font-size: 0.95rem; line-height: 1.65; color: var(--pg-soft); margin: 0; }

/* ---------- product route cards (Products hub) ---------- */
.routes { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 50px; }
@media (min-width: 880px) { .routes { grid-template-columns: 1fr 1fr; } }
.route {
  position: relative; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; min-height: 320px; padding: 34px;
  border: 1px solid var(--pg-line-2); border-radius: 22px; background: var(--pg-panel);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), border-color 260ms ease, box-shadow 260ms ease;
}
.route::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 82% 10%, rgba(182,230,42,0.13), rgba(182,230,42,0) 60%);
  opacity: 0.85; transition: opacity 260ms ease;
}
.route:hover { transform: translateY(-6px); border-color: var(--pg-line); box-shadow: 0 30px 70px rgba(4,9,6,0.5); }
.route:hover::before { opacity: 1; }
.route .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--pg-signal); margin: 0 0 auto;
}
.route h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; color: var(--pg-fg); margin: 26px 0 12px; }
.route p { font-size: 1rem; line-height: 1.65; color: var(--pg-soft); margin: 0 0 20px; max-width: 36em; }
.route .go { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--pg-signal-soft); display: inline-flex; align-items: center; gap: 8px; }
.route .go .ar { transition: transform 220ms ease; }
.route:hover .go .ar { transform: translateX(5px); }

/* ---------- mono readout blocks: never wider than the viewport ----------
   The posture/telemetry blocks are unbroken mono tokens (>_a....b) with no
   spaces, so their intrinsic width can exceed a phone and get clipped.
   Scoped with `body` so it outranks the page-local <style> definitions. */
body .telemetry, body .readout, body .post-readout, body .lp-ops-readout { max-width: 100%; box-sizing: border-box; }
@media (max-width: 620px) {
  body .telemetry, body .readout, body .post-readout, body .lp-ops-readout { padding-left: 15px; padding-right: 15px; }
  body .telemetry .tl-line, body .readout .rline, body .post-readout .rline, body .lp-ops-readout .rline { font-size: clamp(9.5px, 3vw, 12.5px); line-height: 1.75; overflow-wrap: anywhere; }
  body .telemetry .tl-label, body .readout .rl { font-size: 9px; letter-spacing: 0.16em; }
}

/* ---------- bring-your-own-provider hero note (shared: ADSP1, Workbench) ----------
   tools.html previously used .byo-note with no rule in scope, so the paragraph
   fell back to the design system's dark body text on a dark card. */
.byo-note {
  margin: 0 0 6px; max-width: 54ch;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65;
  color: var(--pg-soft);
  border-left: 2px solid var(--pg-signal); padding: 4px 0 4px 14px;
}
.byo-note b { color: var(--pg-fg); font-weight: 600; }

/* ---------- prose links on the dark shell ----------
   colors_and_type.css sets a bare `a { color: var(--accent) }`, and --accent is
   the parchment forest green — unreadable on the near-black shell. Scope this to
   prose containers only: it must not reach the parchment .post-body links, nor
   wrapper anchors (.lp-dest, .brand, .btn, .go) whose glyphs are painted by
   child elements. */
.hero p a, .section p a, .section-lead a, .foot p a,
.lp-statement p a, .lp-split-head p a, .lp-interlude a {
  color: var(--pg-signal-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero p a:hover, .section p a:hover, .section-lead a:hover, .foot p a:hover,
.lp-statement p a:hover, .lp-split-head p a:hover, .lp-interlude a:hover {
  color: var(--pg-signal);
}

/* ---------- product status pill (shared: home, platform) ----------
   A card's kicker tag and its lifecycle status sit on one row, so the
   status never disturbs the tag's margin-bottom:auto spacer. */
.card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 auto; }
.card-meta .tag { margin: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap;
  padding: 5px 11px; border-radius: 9999px;
  border: 1px solid var(--pg-line-2); background: rgba(7, 14, 10, 0.5);
  color: var(--pg-faint);
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-pill.live { color: var(--pg-signal); border-color: var(--pg-line); background: var(--pg-panel-2); }
.status-pill.live i { box-shadow: 0 0 7px rgba(182, 230, 42, 0.7); }
.status-pill.beta { color: var(--pg-signal-soft); border-color: var(--pg-line); }
.status-pill.alpha { color: #f0c78a; border-color: rgba(240, 199, 138, 0.26); background: rgba(240, 199, 138, 0.06); }
.status-pill.dev { color: var(--pg-eyebrow); }

/* ---------- unified site footer (below the CTA band) ---------- */
.site-footer {
  position: relative; z-index: 2;
  background: var(--pg-bg-2); border-top: 1px solid var(--pg-line-2);
  padding: clamp(54px, 8vh, 90px) clamp(20px, 6vw, 96px) 40px;
}
.sf-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: 40px 32px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .sf-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.sf-brand .brand { margin-bottom: 16px; }
.sf-brand p { font-size: 0.95rem; line-height: 1.6; color: var(--pg-soft); margin: 0 0 16px; max-width: 26em; }
.sf-sig { font-family: var(--font-mono); font-size: 11px; color: var(--pg-eyebrow); letter-spacing: 0.04em; }

/* ---------- skip link (accessibility) ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  transform: translateY(-160%); transition: transform 160ms ease;
  background: var(--pg-signal); color: #0B130E;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus-visible, .skip-link:focus { transform: translateY(0); outline: 2px solid #0B130E; outline-offset: 2px; }

/* ---------- global keyboard focus (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--pg-signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.sf-col h4 {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--pg-eyebrow); margin: 0 0 16px;
}
.sf-col a {
  display: block; font-size: 0.95rem; color: var(--pg-soft); text-decoration: none;
  margin-bottom: 11px; transition: color 160ms ease;
}
.sf-col a:hover { color: var(--pg-signal); }
.sf-bottom {
  max-width: 1180px; margin: 44px auto 0; padding-top: 22px;
  border-top: 1px solid var(--pg-line-2);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--pg-faint);
}
.sf-bottom a { color: var(--pg-signal-soft); text-decoration: none; }
.sf-bottom a:hover { color: var(--pg-signal); }

/* scroll-reveal shared (opt-in via .js on <html>) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.85s cubic-bezier(.2,.7,.2,1), transform 0.85s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-d="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-d="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-d="3"] { transition-delay: 0.24s; }
.js [data-reveal][data-d="4"] { transition-delay: 0.32s; }
.js [data-reveal][data-d="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }
