/* ─────────────────────────────────────────────────────────────
   Network OS — marketing site
   Design system: "Signal & Temperature" (mirrors the app's tokens
   from network-os-web/app/globals.css)
   Cool blue-black console · one teal signal accent, spent sparingly ·
   semantic status separate · warmth ramp for the core metric.
   ───────────────────────────────────────────────────────────── */

:root {
  /* ground + panels */
  --ground: #0b0e15;
  --panel: #10151d;
  --raised: #151b25;
  --edge: #232b38;
  --hairline: #1a212c;

  /* cool neutrals, biased toward the ground */
  --ink: #e9eef5;
  --fg: #b4bfce;
  --muted: #838fa1;
  --faint: #59637a;

  /* brand signal — the one accent */
  --signal: #2fd6c6;
  --signal-bright: #5ce7da;
  --signal-dim: #1b8a80;

  /* semantic status (separate from the accent) */
  --good: #37b980;
  --warn: #e6a23c;
  --bad: #ec5c74;

  /* warmth ramp */
  --cold: #4c7df0;
  --cool: #2fd6c6;
  --warm: #e6a23c;
  --hot: #f0637e;

  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 14px;

  --wrap: 1120px;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ── reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(47, 214, 198, 0.055), transparent 60%),
    radial-gradient(900px 600px at 8% 4%, rgba(76, 125, 240, 0.045), transparent 55%),
    var(--ground);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(47, 214, 198, 0.25); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hl { color: var(--signal); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--signal); color: #04231f; padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

.btn-signal {
  background: var(--signal); color: #04231f;
  box-shadow: 0 0 0 1px rgba(92,231,218,.25), 0 8px 30px -12px rgba(47,214,198,.55);
}
.btn-signal:hover { background: var(--signal-bright); box-shadow: 0 0 0 1px rgba(92,231,218,.5), 0 10px 34px -10px rgba(47,214,198,.7); }

.btn-ghost {
  background: rgba(255,255,255,.015); color: var(--ink);
  border-color: var(--edge);
}
.btn-ghost:hover { border-color: var(--signal-dim); background: rgba(47,214,198,.06); color: #fff; }

.link-arrow { color: var(--signal); font-weight: 600; font-size: 15px; }
.link-arrow:hover { color: var(--signal-bright); }

/* ── header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 21, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-name { color: var(--ink); font-weight: 600; letter-spacing: -.01em; font-size: 17px; }

.nav { display: flex; gap: 26px; margin-left: 14px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }

.header-cta { display: flex; gap: 10px; margin-left: auto; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--edge); border-radius: var(--radius-md);
  flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: .2s; }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--hairline); }
.mobile-nav a { color: var(--fg); padding: 11px 4px; font-weight: 500; border-bottom: 1px solid var(--hairline); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .btn-signal { margin-top: 10px; justify-content: center; }

/* ── shared section rhythm ─────────────────────────────────── */
.section { padding: 92px 0; }
.section.band { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); border-block: 1px solid var(--hairline); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 18px; margin-top: 14px; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal);
}
.eyebrow.center { justify-content: center; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }

/* ── hero ──────────────────────────────────────────────────── */
.hero { padding: 68px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); letter-spacing: -0.03em; }
.hero .lede { font-size: 20px; color: var(--fg); margin-top: 22px; max-width: 34ch; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 9px rgba(55,185,128,.8); flex: none; }

.hero-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.hero-strip li { list-style: none; }
.hero-strip li:not([aria-hidden]) { color: var(--fg); }

/* console mock */
.hero-visual { justify-self: end; width: 100%; }
.console {
  background: linear-gradient(180deg, var(--raised), var(--panel));
  border: 1px solid var(--edge); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.console-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.console-top .mono { font-size: 12px; }
.chip { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--good); border: 1px solid rgba(55,185,128,.4); background: rgba(55,185,128,.08); border-radius: 999px; padding: 3px 10px; }

.ramp { margin-bottom: 22px; }
.ramp-bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--cold), var(--cool) 34%, var(--warm) 72%, var(--hot)); box-shadow: 0 0 18px -4px rgba(47,214,198,.4); }
.ramp-stops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; gap: 6px; }
.stop { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.stop .mono { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.node { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ground); }
.node.n1 { background: var(--cold); }
.node.n2 { background: var(--cool); box-shadow: 0 0 10px rgba(47,214,198,.7); }
.node.n3 { background: var(--warm); }
.node.n4 { background: var(--hot); }

.console-rows { display: flex; flex-direction: column; gap: 10px; }
.crow { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 12px; }
.crow.approve { border-color: var(--signal-dim); background: rgba(47,214,198,.05); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--edge), var(--raised)); border: 1px solid var(--edge); flex: none; }
.cline { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--edge), transparent); flex: 1; }
.cline.short { max-width: 60%; }
.ctag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex: none; }
.ctag.good { color: var(--good); }
.ctag.signal { color: var(--signal); }

/* ── cards (shared) ────────────────────────────────────────── */
.card {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 24px; transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.card:hover { border-color: var(--edge); transform: translateY(-2px); }

/* ── roles ─────────────────────────────────────────────────── */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { display: flex; flex-direction: column; }
.role-tag { display: inline-block; align-self: flex-start; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); border: 1px solid var(--signal-dim); background: rgba(47,214,198,.06); border-radius: 999px; padding: 4px 11px; margin-bottom: 16px; }
.role h3 { margin-bottom: 8px; }
.role p { color: var(--muted); font-size: 15.5px; }
.role-cta { background: linear-gradient(160deg, rgba(47,214,198,.07), var(--panel)); border-color: var(--signal-dim); }
.role-cta .link-arrow { margin-top: auto; padding-top: 14px; }

/* ── reframe ───────────────────────────────────────────────── */
.reframe { padding: 84px 0; }
.reframe .eyebrow { margin-bottom: 24px; }
.reframe-statement { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.22; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.reframe-sub { margin-top: 22px; font-size: 19px; color: var(--muted); }
.reframe.narrow, .reframe .narrow { text-align: center; }

/* ── steps ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--cool), transparent); opacity: .7; }
.step-n { font-size: 13px; color: var(--signal); letter-spacing: .1em; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

.approval {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
  background: linear-gradient(180deg, rgba(47,214,198,.06), rgba(47,214,198,.02));
  border: 1px solid var(--signal-dim); border-radius: var(--radius-lg); padding: 20px 24px;
}
.approval-mark { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(47,214,198,.1); border: 1px solid var(--signal-dim); }
.approval strong { display: block; color: var(--ink); font-size: 17px; }
.approval span { color: var(--muted); font-size: 15px; }

/* ── modules ───────────────────────────────────────────────── */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module h3 { margin-bottom: 8px; }
.module p { color: var(--muted); font-size: 15.5px; }

/* ── ICP ───────────────────────────────────────────────────── */
.icp-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.icp { display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--ink); font-weight: 500; }
.icp .mono { font-size: 12px; }

/* ── final CTA ─────────────────────────────────────────────── */
.cta-band { background: radial-gradient(700px 320px at 50% 0%, rgba(47,214,198,.08), transparent 70%); border-top: 1px solid var(--hairline); }
.cta-band h2 { margin-top: 16px; }
.cta-band .hero-actions { margin-top: 30px; }

/* ── footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 40px; margin-top: 8px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { display: block; color: var(--ink); font-weight: 600; }
.footer-tag { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--faint); font-size: 12.5px; }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: stretch; max-width: 520px; }
  .role-grid, .module-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .icp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }
  .mobile-nav { display: none; }
  .site-header.open .mobile-nav { display: flex; }
  .section { padding: 68px 0; }
  .hero { padding: 44px 0 20px; }
  .role-grid, .module-grid, .icp-grid { grid-template-columns: 1fr; }
  .approval { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
}
