:root {
    --ink: #10141A;
    --panel: #1B222B;
    --panel-2: #232C37;
    --line: rgba(236,239,242,0.10);
    --fog: #ECEFF2;
    --fog-dim: #9AA5B1;
    --amber: #E8A23D;
    --amber-dim: rgba(232,162,61,0.15);
    --teal: #4C8F87;
    --red: #D6604A;

    --font-display: 'Archivo', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--ink);
    color: var(--fog);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }
  img { max-width: 100%; display: block; }

  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

  /* ---------- Header ---------- */

  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16,20,26,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1140px;
    margin: 0 auto;
  }

  .logo {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px var(--amber-dim);
    animation: pulse-dot 2.4s ease-in-out infinite;
  }

  @keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  nav { display: flex; gap: 32px; align-items: center; }

  nav a {
    text-decoration: none;
    font-size: 14px;
    color: var(--fog-dim);
    transition: color 0.2s;
  }

  nav a:hover { color: var(--fog); }

  .nav-cta {
    background: var(--amber);
    color: var(--ink) !important;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 600;
  }

  .nav-cta:hover { background: #f0b45c; color: var(--ink) !important; }

  @media (max-width: 860px) { nav { display: none; } }

  /* ---------- Hero ---------- */

  .hero {
    padding: 88px 32px 0;
    max-width: 1140px;
    margin: 0 auto;
  }

  .hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--amber);
  }

  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.8vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 780px;
  }

  .hero h1 span { color: var(--amber); }

  .hero-sub {
    margin-top: 26px;
    font-size: 18px;
    max-width: 500px;
    color: var(--fog-dim);
    font-weight: 300;
  }

  .hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
  }

  .btn-primary { background: var(--amber); color: var(--ink); }
  .btn-primary:hover { background: #f0b45c; }

  .btn-secondary {
    border-color: var(--line);
    color: var(--fog);
    background: transparent;
  }
  .btn-secondary:hover { border-color: var(--fog-dim); }

  /* ---------- Live check-in monitor (signature element) ---------- */

  .monitor {
    margin-top: 72px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 28px 32px 32px;
  }

  .monitor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fog-dim);
    flex-wrap: wrap;
    gap: 10px;
  }

  .monitor-head .status {
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .monitor-head .status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
  }

  .roster {
    display: flex;
    flex-direction: column;
  }

  .roster-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
  }

  .roster-row:last-child { border-bottom: none; }

  .r-who {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .r-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--fog);
  }

  .r-client {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fog-dim);
  }

  .r-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fog-dim);
    flex: 1;
    text-align: right;
    min-width: 140px;
  }

  .r-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .r-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }

  .r-badge.ok { background: rgba(76,143,135,0.15); color: var(--teal); }
  .r-badge.ok::before { background: var(--teal); }

  .r-badge.alert { background: var(--amber-dim); color: var(--amber); }
  .r-badge.alert::before { background: var(--amber); animation: pulse-dot 1.4s ease-in-out infinite; }

  .r-badge.missed { background: rgba(214,96,74,0.15); color: var(--red); }
  .r-badge.missed::before { background: var(--red); }

  @media (max-width: 560px) {
    .r-time { text-align: left; min-width: 0; }
  }

  /* ---------- Stats strip ---------- */

  .stats {
    max-width: 1140px;
    margin: 96px auto 0;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stat {
    padding: 32px 4px;
    border-left: 1px solid var(--line);
  }
  .stat:first-child { border-left: none; }

  .stat .num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--amber);
  }

  .stat .label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fog-dim);
    margin-top: 6px;
    letter-spacing: 0.02em;
  }

  @media (max-width: 700px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: none; }
  }

  /* ---------- Features ---------- */

  .features {
    padding: 96px 32px;
    max-width: 1140px;
    margin: 0 auto;
  }

  .section-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
  }

  .features h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 700;
    max-width: 540px;
    line-height: 1.15;
    margin-bottom: 56px;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
  }

  .feature {
    background: var(--panel);
    padding: 32px;
  }

  .feature .fnum {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--amber);
    margin-bottom: 20px;
  }

  .feature h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
  }

  .feature p {
    font-size: 14px;
    color: var(--fog-dim);
    font-weight: 300;
    line-height: 1.6;
  }

  @media (max-width: 860px) {
    .feature-grid { grid-template-columns: 1fr; }
  }

  /* ---------- How it works ---------- */

  .how {
    background: var(--panel);
    padding: 96px 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .how-inner {
    max-width: 1140px;
    margin: 0 auto;
  }

  .how h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 700;
    max-width: 540px;
    line-height: 1.15;
    margin-bottom: 56px;
  }

  .how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .how-step .hnum {
    font-family: var(--font-mono);
    font-size: 28px;
    color: var(--amber);
    margin-bottom: 16px;
  }

  .how-step h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
  }

  .how-step p {
    font-size: 14px;
    color: var(--fog-dim);
    font-weight: 300;
  }

  @media (max-width: 860px) {
    .how-steps { grid-template-columns: 1fr 1fr; }
  }

  /* ---------- Industries ---------- */

  .industries {
    padding: 96px 32px;
    max-width: 1140px;
    margin: 0 auto;
  }

  .industries h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 700;
    max-width: 540px;
    line-height: 1.15;
    margin-bottom: 48px;
  }

  .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .chip {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--fog-dim);
    transition: all 0.2s;
  }

  .chip:hover {
    border-color: var(--amber);
    color: var(--amber);
  }

  /* ---------- CTA / waitlist ---------- */

  .cta {
    background: var(--panel);
    padding: 96px 32px;
    text-align: center;
  }

  .cta-inner { max-width: 560px; margin: 0 auto; }

  .cta h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
  }

  .cta p {
    color: var(--fog-dim);
    font-weight: 300;
    font-size: 16px;
    margin-bottom: 36px;
  }

  form.waitlist {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  form.waitlist input {
    flex: 1;
    min-width: 220px;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--ink);
    color: var(--fog);
  }

  form.waitlist input:focus {
    outline: none;
    border-color: var(--amber);
  }

  .form-note {
    font-size: 12px;
    color: var(--fog-dim);
    margin-top: 16px;
  }

  /* ---------- Founder story ---------- */

  .story-box {
    max-width: 820px;
    margin: 96px auto;
    padding: 0 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .story-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--fog);
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
  }

  .story-toggle-text .section-eyebrow { color: var(--red); margin-bottom: 10px; }

  .story-toggle-text h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 1.2;
  }

  .story-toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    flex-shrink: 0;
    position: relative;
  }

  .story-toggle-icon::before,
  .story-toggle-icon::after {
    content: '';
    position: absolute;
    background: var(--amber);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .story-toggle-icon::before { width: 14px; height: 2px; }
  .story-toggle-icon::after {
    width: 2px;
    height: 14px;
    transition: transform 0.25s ease;
  }

  .story-box.open .story-toggle-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

  .story-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .story-box.open .story-body { max-height: 600px; }

  .story-body-inner { padding-bottom: 44px; }

  .story-body p {
    font-size: 17px;
    font-weight: 300;
    color: var(--fog-dim);
    margin-bottom: 20px;
    line-height: 1.75;
  }

  .story-body p strong {
    color: var(--fog);
    font-weight: 500;
  }

  .story-sig {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--amber);
  }

  /* ---------- Risk stats (sourced) ---------- */

  .risk-stats {
    padding: 96px 32px;
    max-width: 1140px;
    margin: 0 auto;
  }

  .risk-stats h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 700;
    max-width: 620px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .risk-stats .lede {
    color: var(--fog-dim);
    font-weight: 300;
    font-size: 16px;
    max-width: 560px;
    margin-bottom: 48px;
  }

  .risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
  }

  .risk-card {
    background: var(--panel);
    padding: 32px;
  }

  .risk-card .rnum {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 14px;
  }

  .risk-card p {
    font-size: 14px;
    color: var(--fog-dim);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .risk-card .rsource {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fog-dim);
    opacity: 0.7;
    text-decoration: none;
    border-bottom: 1px dotted rgba(154,165,177,0.4);
  }

  .risk-card .rsource:hover { color: var(--amber); border-color: var(--amber); }

  @media (max-width: 700px) {
    .risk-grid { grid-template-columns: 1fr; }
  }

  .case-callout {
    margin-top: 32px;
    border-left: 3px solid var(--red);
    background: var(--panel);
    border-radius: 0 6px 6px 0;
    padding: 28px 32px;
  }

  .case-callout .case-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 10px;
  }

  .case-callout h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
  }

  .case-callout p {
    font-size: 14px;
    color: var(--fog-dim);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 14px;
  }

  .case-callout .rsource {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fog-dim);
    opacity: 0.7;
    text-decoration: none;
    border-bottom: 1px dotted rgba(154,165,177,0.4);
    margin-right: 20px;
  }

  .case-callout .rsource:hover { color: var(--amber); border-color: var(--amber); }

  /* ---------- Footer ---------- */

  footer {
    padding: 48px 32px;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fog-dim);
  }

  .footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--fog-dim);
  }

  .footer-links a { text-decoration: none; }
  .footer-links a:hover { color: var(--amber); }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
  }
