/* ============================================================
   OUTLLYR — Colors & Type
   The foundation tokens for everything Outllyr.
   Dark-first. Punchy coral accent. Insight-purple secondary.
   ============================================================ */

/* --- Font imports: Google Fonts substitutes ---
   Note: Outllyr's logo and Superlist-family inspo use a custom
   tight geometric grotesk. We substitute with Inter Tight (display +
   body) and JetBrains Mono (data/mono). Swap-in when real fonts arrive.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300..900;1,300..900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ============================================================
     COLOR — Base palette
     ============================================================ */

  /* Surface — near-black with a hint of cool indigo */
  --ink-1000: #0A0A12;   /* deepest — page background */
  --ink-950:  #0E0E18;   /* primary surface */
  --ink-900:  #14141F;   /* card surface */
  --ink-800:  #1B1B2A;   /* raised card / popover */
  --ink-700:  #242436;   /* hover surface */
  --ink-600:  #2F2F45;   /* border subtle */
  --ink-500:  #3D3D58;   /* border */
  --ink-400:  #5A5A7A;   /* divider on dark */

  /* Neutral — text on dark */
  --paper-0:   #FFFFFF;
  --paper-50:  #F7F7FB;
  --paper-100: #ECECF3;
  --paper-200: #D6D6E2;
  --paper-300: #B5B5C9;
  --paper-400: #8C8CA8;
  --paper-500: #6E6E8C;
  --paper-600: #555570;

  /* Coral — primary accent. CTAs, hot signals, focus. */
  --coral-50:  #FFEDE8;
  --coral-100: #FFD4CA;
  --coral-200: #FFB09E;
  --coral-300: #FF8A71;
  --coral-400: #FF6B4D;
  --coral-500: #FF5436;   /* primary brand red */
  --coral-600: #E63D1F;
  --coral-700: #C12E14;
  --coral-800: #921F0A;

  /* Iris — secondary accent. AI-derived signals, segments, links. */
  --iris-50:  #ECECFF;
  --iris-100: #D4D4FF;
  --iris-200: #B3B3FF;
  --iris-300: #8E8EFF;
  --iris-400: #7676FF;
  --iris-500: #5E5EFF;
  --iris-600: #4848E6;
  --iris-700: #3535B3;

  /* Mint — positive signal, lift, sentiment up */
  --mint-300: #6BE7B0;
  --mint-500: #2FCB85;
  --mint-700: #1D8F5F;

  /* Amber — caution, neutral signal, warning */
  --amber-300: #FFD37A;
  --amber-500: #FFB02E;
  --amber-700: #B87600;

  /* Magenta — sentiment down, churn signal */
  --magenta-300: #FF8FC8;
  --magenta-500: #F0479C;
  --magenta-700: #B81F6E;

  /* Sky — informational, source links */
  --sky-300: #7CC8FF;
  --sky-500: #2E9CFF;
  --sky-700: #1466B3;

  /* ============================================================
     SEMANTIC COLOR ROLES (use these in components)
     ============================================================ */
  --bg:           var(--ink-950);
  --bg-elevated: var(--ink-900);
  --bg-raised:    var(--ink-800);
  --bg-hover:     var(--ink-700);

  --fg-1:         var(--paper-0);     /* primary text */
  --fg-2:         var(--paper-200);   /* secondary text */
  --fg-3:         var(--paper-400);   /* tertiary / muted */
  --fg-4:         var(--paper-500);   /* placeholder */

  --border-1:     var(--ink-600);
  --border-2:     var(--ink-500);

  --accent:           var(--coral-500);
  --accent-hover:     var(--coral-400);
  --accent-press:     var(--coral-600);
  --accent-soft:      rgba(255, 84, 54, 0.12);

  --secondary:        var(--iris-500);
  --secondary-soft:   rgba(94, 94, 255, 0.14);

  --success: var(--mint-500);
  --warning: var(--amber-500);
  --danger:  var(--magenta-500);
  --info:    var(--sky-500);

  /* ============================================================
     TYPE — Family stacks
     ============================================================ */
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ============================================================
     TYPE — Scale (display first, body second)
     fluid-ish, but spelled out explicitly so the system is legible.
     ============================================================ */
  --t-display-2xl: clamp(48px, 8vw, 96px);   /* hero h1 — billboard */
  --t-display-xl:  clamp(40px, 6vw, 72px);
  --t-display-lg:  clamp(32px, 5vw, 56px);
  --t-display-md:  clamp(28px, 4vw, 44px);
  --t-display-sm:  clamp(24px, 3vw, 34px);

  --t-h1: clamp(28px, 5vw, 40px);
  --t-h2: clamp(24px, 4vw, 30px);
  --t-h3: 22px;
  --t-h4: 18px;

  --t-body-lg:   18px;
  --t-body:      16px;
  --t-body-sm:   14px;
  --t-caption:   12px;
  --t-micro:     11px;

  /* ============================================================
     SPACING
     ============================================================ */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  56px;
  --space-10: 72px;
  --space-11: 96px;
  --space-12: 128px;

  /* ============================================================
     RADII — pills for actions; soft for cards
     ============================================================ */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ============================================================
     SHADOWS — soft, used sparingly; glow for accent elements
     ============================================================ */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 24px -8px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-3: 0 24px 48px -12px rgba(0,0,0,0.7), 0 8px 16px rgba(0,0,0,0.4);
  --glow-coral: 0 0 32px rgba(255, 84, 54, 0.35), 0 0 8px rgba(255, 84, 54, 0.4);
  --glow-iris:  0 0 32px rgba(94, 94, 255, 0.35);

  /* ============================================================
     MOTION
     ============================================================ */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 520ms;
}

/* ============================================================
   SEMANTIC TYPE — apply directly to elements
   ============================================================ */
.t-display-2xl,
.t-display-xl,
.t-display-lg,
.t-display-md,
.t-display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}

.t-display-2xl { font-size: var(--t-display-2xl); }
.t-display-xl  { font-size: var(--t-display-xl);  }
.t-display-lg  { font-size: var(--t-display-lg);  }
.t-display-md  { font-size: var(--t-display-md);  line-height: 1.0; }
.t-display-sm  { font-size: var(--t-display-sm);  line-height: 1.05; }

h1, .t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2, .t-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3, .t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h4, .t-h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h4);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.t-body-lg {
  font-family: var(--font-body);
  font-size: var(--t-body-lg);
  line-height: 1.5;
}
p, .t-body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
}
.t-body-sm {
  font-family: var(--font-body);
  font-size: var(--t-body-sm);
  line-height: 1.5;
}
.t-caption {
  font-family: var(--font-body);
  font-size: var(--t-caption);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.t-micro {
  font-family: var(--font-body);
  font-size: var(--t-micro);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
code, .t-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

/* Accent runs — apply on inline <span> for the signature
   coral "punchline" treatment seen in headlines. */
.t-accent  { color: var(--accent); }
.t-iris    { color: var(--secondary); }
.t-muted   { color: var(--fg-3); }
.t-balance { text-wrap: balance; }

/* The signature ending "." in coral, like the logo. */
.t-stamp::after {
  content: ".";
  color: var(--accent);
}


  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg-1); }
  body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  ::selection { background: var(--accent); color: #fff; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  /* ============ Layout ============ */
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  /* ============ Top sys.log ticker ============ */
  .syslog {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 60;
    height: 32px;
    background: rgba(10, 10, 18, 0.92);
    border-bottom: 1px solid var(--border-1);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: none; align-items: center; padding: 0 24px; gap: 14px;
    overflow: hidden;
    font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  }
  .pulse-dot {
    width: 8px; height: 8px; border-radius: 999px; background: var(--coral-500);
    box-shadow: 0 0 8px var(--coral-500);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(255, 84, 54, 0.6); }
    50% { transform: scale(1); box-shadow: 0 0 0 7px rgba(255, 84, 54, 0); }
  }
  .syslog-tag { color: var(--coral-300); flex-shrink: 0; }
  .ticker-wrap { flex: 1; overflow: hidden; white-space: nowrap; }
  .ticker-move { display: inline-block; animation: ticker 38s linear infinite; }
  @keyframes ticker { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }

  /* ============ Sticky nav ============ */
  .nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
    background: rgba(14, 14, 24, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-1);
  }
  .nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-left { display: flex; align-items: center; gap: 40px; }
  .nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--fg-2); font-weight: 500; }
  .nav-links .active { color: var(--fg-1); }
  .nav-links a { cursor: pointer; transition: color var(--dur-2) var(--ease-out); }
  .nav-links a:hover { color: var(--fg-1); }
  @media (max-width: 768px) { .nav-links { display: none; } }
  .nav-right { display: flex; align-items: center; gap: 12px; }
  .wordmark {
    font-family: var(--font-display); font-weight: 800; font-size: 22px;
    letter-spacing: -0.045em; line-height: 1; color: var(--fg-1);
  }
  .wordmark .dot { color: var(--accent); }

  /* ============ Button ============ */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
    padding: 12px 22px; font-size: 15px;
    border: 0; border-radius: var(--radius-sm);
    cursor: pointer; white-space: nowrap;
    transition: background var(--dur-2) var(--ease-out), transform 80ms ease, box-shadow var(--dur-2);
  }
  .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset; }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:active { background: var(--accent-press); transform: scale(0.97); }
  .btn-primary.glow { box-shadow: 0 0 36px rgba(255, 84, 54, 0.45), 0 1px 0 rgba(255, 255, 255, 0.18) inset; }
  .btn-secondary { background: transparent; color: var(--fg-1); border: 1px solid var(--ink-500); }
  .btn-secondary:hover { background: var(--ink-700); }
  .btn-ghost { background: transparent; color: var(--fg-2); padding: 12px 16px; }
  .btn-ghost:hover { color: var(--fg-1); }
  .btn-sm { padding: 8px 16px; font-size: 13px; }
  .btn-lg { padding: 16px 28px; font-size: 17px; font-weight: 700; }

  /* ============ Badge ============ */
  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600; line-height: 1.4;
  }
  .badge.neutral { background: var(--ink-800); color: var(--fg-2); border: 1px solid var(--ink-600); }
  .badge.coral { background: rgba(255, 84, 54, 0.14); color: var(--coral-300); }
  .badge.iris { background: rgba(94, 94, 255, 0.14); color: var(--iris-300); }
  .badge.mint { background: rgba(47, 203, 133, 0.14); color: var(--mint-300); }
  .badge.amber { background: rgba(255, 176, 46, 0.14); color: var(--amber-300); }
  .badge.magenta { background: rgba(240, 71, 156, 0.14); color: var(--magenta-300); }
  .badge.square { border-radius: 6px; }
  .badge .dot {
    width: 6px; height: 6px; border-radius: 3px; background: currentColor;
    box-shadow: 0 0 8px currentColor;
  }

  /* ============ Card ============ */
  .card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2);
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2);
  }
  .card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); border-color: var(--ink-500); }
  .card.iris-glow { box-shadow: 0 0 60px rgba(94, 94, 255, 0.18), var(--shadow-2); border-color: var(--iris-500); }
  .card.coral-glow { box-shadow: 0 0 50px rgba(255, 84, 54, 0.18), var(--shadow-2); border-color: var(--coral-500); }

  /* ============ Mono label / section index ============ */
  .mono { font-family: var(--font-mono); }
  .mono-label {
    font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
    letter-spacing: 0.06em; text-transform: lowercase;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .mono-label .ix { color: var(--coral-400); }

  /* ============ Coral redact (preserve dossier emphasis pattern) ============ */
  .redact { position: relative; display: inline-block; }
  .redact::after {
    content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 3px;
    background: var(--accent); transform: translateY(-50%);
  }

  /* ============ Body offset ============ */
  body { padding-top: 64px; }

  /* ============ Sections ============ */
  section { padding: 96px 0; position: relative; }
  @media (max-width: 768px) { section { padding: 64px 0; } }
  section.tight { padding: 56px 0; }

  /* ============ HERO ============ */
  .hero { padding: 80px 0 80px; position: relative; overflow: hidden; }
  .hero-glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
      radial-gradient(620px 420px at 18% 26%, rgba(94, 94, 255, 0.20), transparent 60%),
      radial-gradient(720px 500px at 84% 76%, rgba(255, 84, 54, 0.17), transparent 60%);
  }
  .hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; text-align: center; }
  .hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(56px, 9vw, 104px); line-height: 0.95; letter-spacing: -0.035em;
    margin: 24px 0 24px; text-wrap: balance;
  }
  .hero h1 .ac { color: var(--accent); }

  /* Animated 'Intelligence' word */
  .hero h1 .intel {
    position: relative;
    display: inline-block;
    color: var(--accent);
  }
  .hero h1 .intel-text {
    background: linear-gradient(
      90deg,
      var(--accent) 0%,
      var(--accent) 35%,
      #FFC2A8 50%,
      var(--accent) 65%,
      var(--accent) 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: intel-shimmer 4.5s linear infinite;
  }
  @keyframes intel-shimmer {
    0%   { background-position: 110% 0; }
    100% { background-position: -110% 0; }
  }
  .hero h1 .intel-line { display: none; }
  .hero p.lede {
    font-size: 19px; line-height: 1.55; color: var(--fg-2);
    max-width: 640px; margin: 0 auto 32px;
  }
  .subnav {
    display: inline-flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 16px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-3);
    margin: 0 auto 32px;
  }
  .subnav a { transition: color var(--dur-2); }
  .subnav a:hover { color: var(--fg-1); }
  .subnav .sep { color: var(--ink-500); }
  .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

  /* ============ Hero stats strip ============ */
  .stats {
    display: grid; grid-template-columns: 1fr; gap: 1px;
    background: var(--border-1);
    border: 1px solid var(--border-1); border-radius: var(--radius-xl);
    overflow: hidden;
  }
  @media (min-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
  .stat { background: var(--ink-900); padding: 28px 24px; }
  .stat .label {
    font-family: var(--font-body); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
    color: var(--fg-3); margin-bottom: 12px;
  }
  .stat .value { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
  .stat .value .unit { color: var(--fg-3); font-size: 24px; margin-left: 2px; }

  /* ============ Section heading ============ */
  .sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
  .sec-head.center { align-items: center; text-align: center; }
  .sec-head .eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--coral-400); letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 8px; }
  .sec-head h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(40px, 5.6vw, 64px); line-height: 1.0; letter-spacing: -0.03em;
    margin: 0; text-wrap: balance;
  }
  .sec-head h2 .ac { color: var(--accent); }
  .sec-head p { font-size: 17px; color: var(--fg-2); max-width: 640px; margin: 4px 0 0; line-height: 1.55; }
  .sec-head .meta {
    font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
    display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px;
  }
  .sec-head .meta .sep { color: var(--ink-500); }
  .sec-head .row {
    display: flex; flex-direction: column; gap: 16px;
    margin-top: 4px;
  }
  @media (min-width: 880px) {
    .sec-head .row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  }
  .sec-head .row p { margin: 0; max-width: 480px; }

  /* ============ Section: 01 INTAKE ============ */
  .intake-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
  @media (min-width: 880px) { .intake-grid { grid-template-columns: 4fr 8fr; gap: 56px; } }

  .terminal { padding: 24px; position: relative; }
  .terminal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-700); }
  .term-tag { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
  .term-tag .live { width: 6px; height: 6px; border-radius: 3px; background: var(--coral-500); box-shadow: 0 0 6px var(--coral-500); animation: pulse 2s infinite; }
  .msg { display: flex; gap: 12px; margin-bottom: 14px; }
  .msg .av { width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
  .msg.user .av { background: var(--ink-700); color: var(--fg-2); border: 1px solid var(--ink-500); }
  .msg.ai .av { background: rgba(255, 84, 54, 0.14); color: var(--coral-300); border: 1px solid rgba(255, 84, 54, 0.3); }
  .msg .bubble {
    padding: 12px 14px; border-radius: 14px;
    font-size: 14px; line-height: 1.55; max-width: 80%;
  }
  .msg.user .bubble { background: var(--ink-800); border: 1px solid var(--ink-600); color: var(--fg-1); }
  .msg.ai { flex-direction: row-reverse; }
  .msg.ai .bubble { background: rgba(255, 84, 54, 0.06); border: 1px solid rgba(255, 84, 54, 0.25); max-width: none; flex: 1; }
  .msg.ai .bubble.full { width: 100%; }
  .ai-tag { font-family: var(--font-mono); font-size: 11px; color: var(--coral-300); margin-bottom: 6px; display: block; }

  .readiness {
    margin-top: 14px; padding: 14px;
    background: var(--ink-1000); border: 1px solid var(--ink-600); border-radius: var(--radius-md);
  }
  .readiness-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-bottom: 8px; }
  .readiness-bar { width: 100%; height: 4px; background: var(--ink-700); border-radius: 999px; overflow: hidden; }
  .readiness-bar > div { height: 100%; background: var(--coral-500); border-radius: 999px; transition: width 1.4s var(--ease-out); width: 0; }
  .readiness-foot { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
  .readiness-foot .above { color: var(--coral-300); }

  .intake-bullets {
    font-family: var(--font-mono); font-size: 12px; color: var(--fg-2);
    display: flex; flex-direction: column; gap: 6px; margin-top: 12px;
  }
  .intake-bullets > div::before { content: "● "; color: var(--coral-400); }

  /* ============ Section: 02 HYPOTHESIS ============ */
  .hyp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  @media (min-width: 720px) { .hyp-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1080px) { .hyp-grid { grid-template-columns: repeat(3, 1fr); } }
  .hyp-card { padding: 24px; position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 200px; }
  .hyp-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
  .hyp-card .id { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
  .hyp-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; margin: 0; line-height: 1.25; }
  .hyp-card p { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
  .hyp-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--ink-700); margin-top: auto; }
  .hyp-card .conf { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
  .hyp-card .delta { font-family: var(--font-mono); font-size: 12px; }
  .hyp-card.discarded { opacity: 0.55; }

  /* ============ Section: 03 DISCOVERY (3-column flow) ============ */
  .flow-frame {
    background: var(--ink-900); border: 1px solid var(--border-1);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-2);
    overflow: hidden; position: relative; height: 540px;
    display: flex; flex-direction: column;
  }
  @media (min-width: 880px) { .flow-frame { flex-direction: row; } }
  .flow-col { flex: 1; min-width: 0; padding: 20px; position: relative; display: flex; flex-direction: column; min-height: 0; }
  @media (min-width: 880px) {
    .flow-col + .flow-col { border-left: 1px solid var(--ink-700); }
  }
  .flow-col-head {
    font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  }
  .flow-col-head .ac { color: var(--coral-400); }

  /* open web stream */
  .stream-wrap { flex: 1; overflow: hidden; position: relative; }
  .stream-wrap::before, .stream-wrap::after {
    content: ""; position: absolute; left: 0; right: 0; height: 32px; z-index: 1; pointer-events: none;
  }
  .stream-wrap::before { top: 0; background: linear-gradient(180deg, var(--ink-900), transparent); }
  .stream-wrap::after { bottom: 0; background: linear-gradient(0deg, var(--ink-900), transparent); }
  .stream { display: flex; flex-direction: column; gap: 10px; animation: stream 28s linear infinite; }
  @keyframes stream { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
  .stream-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; }
  .stream-row .name { color: var(--fg-2); display: flex; align-items: center; gap: 8px; }
  .stream-row .name.dim { color: var(--fg-4); }
  .stream-row .name .live { width: 5px; height: 5px; border-radius: 3px; background: var(--coral-500); box-shadow: 0 0 6px var(--coral-500); }
  .stream-row .name .dim-dot { width: 5px; height: 5px; border-radius: 3px; background: var(--ink-500); }
  .stream-row .count { color: var(--fg-4); }

  /* router rules */
  .router-rules { display: flex; flex-direction: column; gap: 10px; justify-content: center; flex: 1; }
  .rule {
    background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--radius-md);
    padding: 12px;
  }
  .rule .rname { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.04em; }
  .rule .rfn { font-family: var(--font-mono); font-size: 13px; color: var(--coral-300); margin-top: 4px; }
  .rule .rcode { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); margin-top: 4px; }
  .rule.danger { border-color: rgba(240, 71, 156, 0.4); }
  .rule.danger .rname { color: var(--magenta-300); }
  .rule.danger .rfn { color: var(--magenta-300); }
  .rule.danger .rcode { color: rgba(240, 71, 156, 0.65); }

  /* tagged signals */
  .tags-list { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; }
  .tag-row { display: flex; flex-direction: column; gap: 6px; }
  .tag-row-top { display: flex; justify-content: space-between; align-items: center; }
  .tag-chip {
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    padding: 3px 8px; border-radius: var(--radius-pill);
  }
  .tag-chip.hot { background: rgba(255, 84, 54, 0.14); color: var(--coral-300); border: 1px solid rgba(255, 84, 54, 0.3); }
  .tag-chip.cool { background: var(--ink-800); color: var(--fg-3); border: 1px solid var(--ink-600); }
  .tag-bar { width: 100%; height: 2px; background: var(--ink-700); border-radius: 999px; overflow: hidden; }
  .tag-bar > div { height: 100%; transition: width 1.4s var(--ease-out); width: 0; }

  /* connectors between flow columns */
  .flow-connect {
    position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(255, 84, 54, 0.25) 20%, rgba(255, 84, 54, 0.25) 80%, transparent);
  }
  @keyframes flow-h { 0% { stroke-dashoffset: 18; } 100% { stroke-dashoffset: 0; } }
  .flow-line { stroke-dasharray: 3 6; animation: flow-h 1.2s linear infinite; }

  /* ============ Section: 04 LIVING REPORT ============ */
  .report-frame {
    background: var(--ink-900); border: 1px solid var(--border-1);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-2);
    overflow: hidden; position: relative; height: 640px;
    display: flex; flex-direction: column;
  }
  .report-top {
    height: 44px; border-bottom: 1px solid var(--ink-700);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; background: var(--ink-1000);
    font-family: var(--font-mono); font-size: 11px;
  }
  .report-top .live-pill { color: var(--coral-300); display: flex; align-items: center; gap: 8px; }
  .report-top .scope {
    color: var(--fg-3); padding: 4px 10px; border: 1px solid var(--ink-600); border-radius: 6px;
    background: var(--ink-900);
  }
  .report-top .meter { color: var(--fg-1); display: flex; align-items: center; gap: 6px; }
  .report-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  @media (min-width: 880px) { .report-body { flex-direction: row; } }
  .report-map { flex: 0 0 100%; height: 320px; position: relative; padding: 24px; }
  @media (min-width: 880px) { .report-map { flex: 0 0 70%; height: auto; border-right: 1px solid var(--ink-700); } }
  .report-map::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(94, 94, 255, 0.10), transparent 50%);
  }
  .report-feed { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .feed-panel { padding: 16px; flex: 1; border-bottom: 1px solid var(--ink-700); display: flex; flex-direction: column; min-height: 0; }
  .feed-panel:last-child { border-bottom: 0; flex: 0.8; }
  .feed-head {
    font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em;
    display: flex; align-items: center; gap: 8px;
  }
  .feed-head .live { width: 6px; height: 6px; background: var(--coral-500); border-radius: 3px; box-shadow: 0 0 6px var(--coral-500); animation: pulse 2s infinite; }

  .map-node {
    position: absolute; transform: translate(-50%, -50%);
    background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--radius-md);
    padding: 10px 12px; min-width: 130px; z-index: 2;
    box-shadow: var(--shadow-2);
  }
  .map-node .nid { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); margin-bottom: 4px; }
  .map-node .nt { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--fg-1); letter-spacing: -0.01em; }
  .map-node.hot { border-color: var(--coral-500); background: rgba(255, 84, 54, 0.06); box-shadow: var(--glow-coral), var(--shadow-2); }
  .map-node.hot .nid { color: var(--coral-300); }
  .map-node.lit { border-color: var(--coral-500); background: rgba(255, 84, 54, 0.04); }
  .map-node.lit .nid { color: var(--coral-300); }
  .map-node.cold { opacity: 0.85; }
  .map-node.dropped { opacity: 0.4; border-color: rgba(240, 71, 156, 0.3); }
  .map-node.dropped .nid { color: var(--magenta-300); }
  .map-node.dropped .nt { font-size: 12px; text-decoration: line-through; color: var(--fg-3); }
  .map-node .delta {
    position: absolute; top: -10px; right: -8px;
    background: var(--coral-500); color: #fff;
    font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; border-radius: 999px;
    box-shadow: var(--shadow-1);
    animation: pulse 2.5s infinite;
  }
  .map-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 96px; height: 96px; border-radius: 50%;
    border: 1px solid rgba(94, 94, 255, 0.5); background: var(--ink-950);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(94, 94, 255, 0.15);
    z-index: 1;
  }
  .map-hub-inner {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--ink-800); border: 1px solid var(--ink-600);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 11px; color: var(--fg-1);
  }

  .verdict-item {
    background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--radius-md);
    padding: 10px 12px; margin-bottom: 10px;
  }
  .verdict-item:last-child { margin-bottom: 0; }
  .verdict-item .time { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); margin-bottom: 4px; }
  .verdict-item .body { font-family: var(--font-mono); font-size: 12px; color: var(--fg-1); }
  .verdict-item .body .up { color: var(--coral-300); }
  .verdict-item .body .down { color: var(--magenta-300); }
  .verdict-item.dropped { opacity: 0.55; }

  .signal-stream-wrap { flex: 1; overflow: hidden; position: relative; }
  .signal-stream-wrap::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none;
    background: linear-gradient(0deg, var(--ink-900), transparent);
  }
  .signal-stream { display: flex; flex-direction: column; gap: 6px; animation: stream 22s linear infinite; }
  .signal-line { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); display: flex; justify-content: space-between; gap: 8px; }
  .signal-line .route.hot { color: var(--coral-300); }
  .signal-line .route.cold { color: var(--fg-4); }

  .stability { display: flex; flex-direction: column; }
  .stability-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ink-700); }
  .stability-row:last-child { border-bottom: 0; }
  .stability-row .h { font-family: var(--font-mono); font-size: 11px; color: var(--fg-1); }
  .stability-pill {
    font-family: var(--font-mono); font-size: 10px; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
  }
  .stability-pill.robust { background: rgba(255, 84, 54, 0.14); color: var(--coral-300); }
  .stability-pill.pending { background: var(--ink-800); color: var(--fg-3); border: 1px solid var(--ink-600); }
  .stability-pill.fragile { background: rgba(240, 71, 156, 0.14); color: var(--magenta-300); }

  /* ============ Section: 05 DELIVERY ============ */
  .delivery-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
  @media (min-width: 880px) { .delivery-grid { grid-template-columns: 3fr 1fr 4fr 1fr 3fr; gap: 12px; align-items: center; } }

  .small-card { padding: 16px 18px; }
  .small-card .lbl { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg-1); }
  .small-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 4px; }

  .pillar {
    padding: 32px 28px; text-align: center;
  }
  .pillar-mark { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.045em; color: var(--fg-1); }
  .pillar-mark .dot { color: var(--accent); }
  .pillar-tag { font-family: var(--font-mono); font-size: 11px; color: var(--coral-300); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
  .pillar hr { border: 0; border-top: 1px solid rgba(255, 84, 54, 0.2); margin: 20px auto; max-width: 80%; }
  .pillar-features { display: flex; flex-direction: column; gap: 10px; text-align: left; }
  .pillar-features .feat { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); display: flex; align-items: center; gap: 10px; }
  .pillar-features .feat::before { content: "▸"; color: var(--accent); }

  .connector-svg { width: 100%; height: 240px; display: none; }
  @media (min-width: 880px) { .connector-svg { display: block; } }

  .col-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
  .col-label.right { text-align: right; }

  .what-grid {
    margin-top: 56px; padding: 32px;
    border: 1px dashed var(--ink-500); border-radius: var(--radius-xl);
  }
  .what-head { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-align: center; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 28px; }
  .what-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
  @media (min-width: 720px) { .what-cards { grid-template-columns: repeat(3, 1fr); } }
  .what-card {
    background: var(--ink-900); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
    padding: 22px;
  }
  .what-card .ttl { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
  .what-card .sub { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }

  /* Integrations ticker */
  .integrations { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--border-1); }
  .integrations-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
  .integrations .ticker-move {
    display: inline-flex; gap: 32px; align-items: center; padding: 6px 0;
    font-family: var(--font-mono); font-size: 13px; color: var(--fg-3);
  }
  .integrations .ticker-move .sep { color: var(--accent); }

  /* Footer */
  footer { border-top: 1px solid var(--border-1); padding: 64px 0 40px; margin-top: 96px; }
  .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
  @media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }
  .foot-col-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); margin-bottom: 16px; }
  .foot-col a { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 10px; }
  .foot-col a:hover { color: var(--fg-1); }
  .foot-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 32px; border-top: 1px solid var(--border-1);
    font-size: 13px; color: var(--fg-4);
  }
  @media (max-width: 600px) {
    .foot-bottom { flex-direction: column; gap: 16px; text-align: center; }
  }
  .foot-wordmark {
    font-family: var(--font-display); font-size: clamp(48px, 10vw, 96px); font-weight: 800;
    letter-spacing: -0.05em; line-height: 0.85; color: var(--paper-200);
  }
  .foot-wordmark .dot { color: var(--accent); }
  .foot-live { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); }

  /* Reveal animations */
  .fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .fade-up.in { opacity: 1; transform: none; }
  .stagger > * { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .stagger.in > * { opacity: 1; transform: none; }
  .stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
  .stagger.in > *:nth-child(2) { transition-delay: 0.10s; }
  .stagger.in > *:nth-child(3) { transition-delay: 0.15s; }
  .stagger.in > *:nth-child(4) { transition-delay: 0.20s; }
  .stagger.in > *:nth-child(5) { transition-delay: 0.25s; }
  .stagger.in > *:nth-child(6) { transition-delay: 0.30s; }
  .stagger.in > *:nth-child(7) { transition-delay: 0.35s; }
  .stagger.in > *:nth-child(8) { transition-delay: 0.40s; }

input, select, textarea { font-family: var(--font-body) !important; font-size: 15px !important; }
::placeholder { font-family: var(--font-body) !important; font-size: 15px !important; color: var(--fg-4); opacity: 1; }
::-webkit-input-placeholder { font-family: var(--font-body) !important; font-size: 15px !important; color: var(--fg-4); }
:-ms-input-placeholder { font-family: var(--font-body) !important; font-size: 15px !important; color: var(--fg-4); }
::-ms-input-placeholder { font-family: var(--font-body) !important; font-size: 15px !important; color: var(--fg-4); }
