:root {
  --ink: #111113;
  --muted: #62636a;
  --paper: #f7f7f5;
  --white: #fff;
  --red: #f48120;
  --red-dark: #d86600;
  --orange: #fbbf24;
  --line: #d9d6d0;
  --night: #0b1f33;
  --night-soft: #132a3f;
  --green: #77d1a3;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
code, pre { font-family: var(--mono); }

.topbar {
  height: 76px; padding: 0 clamp(22px, 4vw, 68px); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96); color: var(--ink); position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
}
.brand { display: flex; gap: 15px; align-items: center; text-decoration: none; }
.cloudflare-logo { width: 108px; height: 40px; object-fit: contain; }
.netspi-logo { width: 102px; height: auto; }
.brand-divider { color: #a6a6aa; font-size: 18px; font-weight: 400; }
nav { display: flex; gap: 28px; }
nav a { color: #565b61; text-decoration: none; font-size: 13px; font-weight: 600; transition: color .2s; }
nav a:hover { color: var(--ink); }
.doc-state { font-family: var(--mono); font-size: 11px; color: #666b70; text-transform: uppercase; letter-spacing: .08em; }
.doc-state i { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 4px rgba(119,209,163,.12); }

.hero { min-height: 730px; padding: 100px clamp(24px, 8vw, 130px) 0; background: var(--night); color: white; position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, transparent, black 45%, black); }
.hero:after { content: ""; position: absolute; width: 550px; height: 550px; border: 1px solid rgba(244,129,32,.55); border-radius: 50%; right: -170px; top: 55px; box-shadow: 0 0 0 80px rgba(244,129,32,.03), 0 0 0 160px rgba(244,129,32,.02); }
.eyebrow, .kicker { color: var(--red); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { position: relative; z-index: 1; font-size: clamp(54px, 7.4vw, 106px); letter-spacing: -.065em; line-height: .92; margin: 32px 0; max-width: 980px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-copy { max-width: 710px; color: #babac0; font-size: 19px; line-height: 1.65; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; position: relative; z-index: 2; }
.button { padding: 15px 22px; text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.button.primary { background: var(--red); color: white; }.button.primary:hover { background: var(--red-dark); }
.button.secondary { border: 1px solid #4e4e55; color: #ddd; }.button.secondary:hover { border-color: #aaa; }
.principles { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 78px; border-top: 1px solid #333338; max-width: 1100px; }
.principles article { padding: 22px 28px 28px 0; border-right: 1px solid #333338; }
.principles article + article { padding-left: 28px; }
.principles span { color: var(--red); font: 11px var(--mono); display: block; margin-bottom: 12px; }
.principles strong { display: block; font-size: 15px; }.principles p { color: #85858d; font-size: 13px; line-height: 1.5; margin-bottom: 0; }

.section { padding: 110px clamp(24px, 8vw, 130px); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.section-heading h2 { font-size: clamp(38px, 4vw, 61px); line-height: 1; letter-spacing: -.05em; margin: 13px 0 0; }
.section-heading > p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.section-heading.inverse > p { color: #a6a6ad; }
.dark { background: var(--night); color: white; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
.flow-node { min-width: 0; background: white; border: 1px solid var(--line); padding: 26px 22px; position: relative; }
.flow-node.critical { border-top: 4px solid var(--red); padding-top: 23px; }
.node-number { position: absolute; right: 16px; top: 14px; color: #b9b7b2; font: 11px var(--mono); }
.flow-node small { color: var(--red); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.flow-node h3 { font-size: 16px; margin: 20px 0 16px; }
.flow-node code { display: block; padding: 9px; background: #f2f0eb; overflow: hidden; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; color: #555; }
.flow-arrow { align-self: center; padding: 0 8px; color: var(--red); }
.callout { margin-top: 34px; display: grid; grid-template-columns: 190px 1fr; padding: 25px 28px; border-left: 4px solid var(--red); }
.callout.warning { background: #fff; }.callout.neutral { background: #e9e6e0; }
.callout strong { text-transform: uppercase; font-size: 12px; letter-spacing: .07em; }.callout p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.callout code { background: rgba(0,0,0,.06); padding: 2px 4px; }

.modeler { display: grid; grid-template-columns: 320px 1fr; background: var(--night-soft); border: 1px solid #36363d; }
.group-tabs { display: flex; flex-direction: column; border-right: 1px solid #36363d; }
.group-tabs button { flex: 1; padding: 27px 25px; color: #929299; background: transparent; border: 0; border-bottom: 1px solid #36363d; text-align: left; cursor: pointer; font: inherit; position: relative; }
.group-tabs button:last-child { border-bottom: 0; }
.group-tabs button[aria-selected="true"] { background: #26262b; color: white; }
.group-tabs button[aria-selected="true"]:before { content: ""; position: absolute; left: 0; inset-block: 0; width: 4px; background: var(--red); }
.group-tabs span { display: block; font-size: 15px; font-weight: 700; }.group-tabs small { font: 11px var(--mono); color: #77777f; display: block; margin-top: 8px; }
.policy-card { padding: 36px 40px; min-width: 0; }
.policy-header { display: flex; justify-content: space-between; align-items: start; }
.policy-label { color: #77777f; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.policy-header h3 { margin: 8px 0 0; font-size: 26px; }
.status-pill { color: var(--green); border: 1px solid rgba(119,209,163,.3); padding: 7px 10px; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.policy-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #36363d; margin: 28px 0; }
.policy-stats div { padding: 20px 18px 20px 0; }.policy-stats dt { color: #77777f; font: 9px var(--mono); text-transform: uppercase; }.policy-stats dd { margin: 9px 0 0; font-size: 15px; font-weight: 700; }.policy-stats code { color: #ddd; font-size: 11px; }
.route-track { display: flex; align-items: center; padding: 15px 0; overflow-x: auto; }
.route-track i { height: 1px; min-width: 28px; flex: 1; background: #55555d; }
.track-node { min-width: 82px; padding: 14px 10px; border: 1px solid #4a4a52; color: #77777f; font: 8px var(--mono); text-align: center; }
.track-node b { color: white; font-size: 9px; line-height: 2; }.track-node.budget { border-color: var(--orange); }.track-node.model { border-color: var(--red); }
.policy-note { font-size: 13px; color: #929299; line-height: 1.6; margin-bottom: 0; }
.budget-notes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #36363d; margin-top: 45px; }
.budget-notes article { padding: 28px 30px 0 0; }.budget-notes article + article { border-left: 1px solid #36363d; padding-left: 30px; }
.budget-notes span { font-size: 13px; font-weight: 700; }.budget-notes p { color: #8c8c94; font-size: 13px; line-height: 1.6; }.budget-notes code { color: #ccc; }

.code-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.steps article { display: grid; grid-template-columns: 45px 1fr; gap: 17px; padding: 0 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.steps article > span { color: var(--red); font: 11px var(--mono); }.steps h3 { font-size: 16px; margin: -4px 0 8px; }.steps p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }.steps code { font-size: 11px; }
.code-panel, .json-example { background: var(--night); color: #d2d2d7; min-width: 0; box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.code-toolbar { height: 50px; padding: 0 18px; border-bottom: 1px solid #38383e; display: flex; align-items: center; justify-content: space-between; color: #85858d; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.copy-button { color: #aaa; border: 1px solid #4b4b53; background: transparent; font: 9px var(--mono); padding: 6px 9px; cursor: pointer; text-transform: uppercase; }
.copy-button:hover { color: white; border-color: #888; }
pre { margin: 0; padding: 26px; font-size: 12px; line-height: 1.7; overflow: auto; color: #e5e5e8; }
.json-example { margin-top: 55px; display: grid; grid-template-columns: 1fr .7fr; box-shadow: none; }
.json-example .code-toolbar { grid-column: 1 / -1; }.json-example > p { margin: 0; padding: 32px; border-left: 1px solid #38383e; align-self: stretch; color: #9999a1; font-size: 13px; line-height: 1.7; }.json-example strong { color: var(--orange); }

.model-ux { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.bad-example, .good-example { background: white; border: 1px solid var(--line); padding: 28px; min-height: 340px; }
.example-title { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; }.example-title span { color: var(--red); font: 10px var(--mono); text-transform: uppercase; }.example-title strong { font-size: 13px; }
.bad-example ul { list-style: none; margin: 18px 0 0; padding: 0; }.bad-example li { padding: 11px 13px; font: 11px var(--mono); color: #87878e; background: #f5f4f1; border-bottom: 2px solid white; }.bad-example li:last-child { color: var(--red); }
.transform-arrow { color: var(--red); font-size: 28px; }
.good-example article { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 17px 5px; border-bottom: 1px solid var(--line); }.good-example article i { width: 7px; height: 35px; background: #888; }.good-example article i.fast { background: var(--green); }.good-example article i.deep { background: var(--red); }.good-example article i.code { background: var(--orange); }.good-example h3 { font-size: 14px; margin: 0 0 4px; }.good-example p { font-size: 11px; color: var(--muted); margin: 0; }.good-example small { font: 9px var(--mono); color: #8c8c92; }
.enforcement-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); margin-top: 50px; border: 1px solid var(--line); }
.enforce-card { background: var(--paper); padding: 30px; }.enforce-card.accent { background: var(--night); color: white; }.tag { color: var(--red); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }.enforce-card h3 { font-size: 17px; margin: 13px 0; }.enforce-card p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }.enforce-card.accent p { color: #a4a4ac; }.enforce-card code { font-size: 11px; }

.timeline { display: grid; grid-template-columns: repeat(4,1fr); border-top: 2px solid #4a4a50; }
.timeline article { position: relative; padding: 30px 34px 20px 0; }.timeline article:before { content: ""; width: 11px; height: 11px; border: 3px solid var(--night); background: var(--red); position: absolute; top: -7px; left: 0; border-radius: 50%; }.timeline span { color: var(--red); font: 10px var(--mono); text-transform: uppercase; }.timeline h3 { font-size: 17px; margin: 16px 0 10px; }.timeline p { color: #8d8d95; font-size: 12px; line-height: 1.6; }
.checklist { margin-top: 45px; background: var(--night-soft); padding: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.checklist h3 { grid-column: 1 / -1; margin: 0 0 15px; font-size: 15px; }.checklist label { color: #b6b6bd; font-size: 12px; cursor: pointer; }.checklist input { appearance: none; width: 15px; height: 15px; border: 1px solid #5b5b63; vertical-align: -3px; margin: 0 10px 0 0; }.checklist input:checked { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 3px var(--night-soft); }

.references { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.references h2 { font-size: 34px; letter-spacing: -.04em; }.reference-links { border-top: 1px solid var(--line); }.reference-links a { display: flex; justify-content: space-between; padding: 18px 4px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }.reference-links a b { color: var(--red); }.reference-links a:hover { padding-left: 10px; }
footer { background: #09090a; color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 44px clamp(24px, 8vw, 130px); align-items: end; } footer strong { letter-spacing: .04em; } footer strong span { color: #777; } footer p { color: #77777f; font-size: 10px; line-height: 1.6; margin-bottom: 0; }

@media (max-width: 980px) {
  nav { display: none; }.doc-state { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 12px; }.flow-arrow { display: none; }
  .modeler { grid-template-columns: 1fr; }.group-tabs { flex-direction: row; border-right: 0; border-bottom: 1px solid #36363d; }.group-tabs button { border-bottom: 0; border-right: 1px solid #36363d; }
  .policy-stats { grid-template-columns: repeat(2,1fr); }
  .code-layout { grid-template-columns: 1fr; }.json-example { grid-template-columns: 1fr; }.json-example > p { border-left: 0; border-top: 1px solid #38383e; }
  .timeline { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .topbar { height: 66px; }.cloudflare-logo { width: 90px; }.netspi-logo { width: 82px; }.brand { gap: 10px; }
  .hero { min-height: auto; padding-top: 70px; }.hero h1 { font-size: 52px; }.hero-copy { font-size: 16px; }.hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .principles { grid-template-columns: 1fr; margin-top: 55px; }.principles article, .principles article + article { padding: 20px 0; border-right: 0; border-bottom: 1px solid #333338; }
  .section { padding-top: 76px; padding-bottom: 76px; }.section-heading { margin-bottom: 40px; }.section-heading h2 { font-size: 39px; }
  .flow { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; gap: 12px; }
  .group-tabs { flex-direction: column; }.group-tabs button { border-right: 0; border-bottom: 1px solid #36363d; }.policy-card { padding: 26px 20px; }.policy-stats { grid-template-columns: 1fr 1fr; }.policy-stats dd { font-size: 13px; }
  .budget-notes { grid-template-columns: 1fr; }.budget-notes article + article { border-left: 0; padding-left: 0; }
  pre { font-size: 10px; padding: 20px; }
  .model-ux { grid-template-columns: 1fr; }.transform-arrow { transform: rotate(90deg); text-align: center; }.enforcement-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid #4a4a50; }.timeline article { padding-left: 24px; }.timeline article:before { top: 5px; left: -7px; }
  .checklist { grid-template-columns: 1fr; }.checklist h3 { grid-column: auto; }
  .references, footer { grid-template-columns: 1fr; gap: 26px; }
}

@media print {
  .topbar, .hero-actions, .copy-button { display: none; }
  .hero { min-height: auto; padding: 55px; }.section { padding: 55px; }
  .dark { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .hero h1 { font-size: 64px; }.hero:after { display: none; }
}
