:root {
  --ink: #0b1220;
  --ink-2: #253047;
  --muted: #566176;
  --line: #dbe2ec;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef4fb;
  --blue: #246bfd;
  --blue-deep: #1749bd;
  --teal: #10a99a;
  --teal-deep: #087a70;
  --purple: #7357e8;
  --purple-deep: #5136b8;
  --amber: #bd7800;
  --navy: #0f1a2d;
  --shadow: 0 18px 50px rgba(18, 37, 63, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:not(.js) .js-only { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: #fff;
  padding: .8rem 1rem;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: 6.5rem 0; }
.section-soft { background: var(--surface-2); border-block: 1px solid #edf1f6; }
.section-gradient { background: linear-gradient(135deg, #f7f9ff 0%, #effaf8 50%, #fbf9ff 100%); }
.section-dark { background: var(--navy); color: #f7fbff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(18px);
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid rgba(219,226,236,.9);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 190px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--purple), var(--blue), var(--teal)); font-weight: 900; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { margin-top: .22rem; color: var(--muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.primary-nav { display: flex; justify-content: center; gap: .2rem; }
.primary-nav a { padding: .65rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: .9rem; }
.primary-nav a:hover, .primary-nav a.is-active { background: var(--surface-3); color: var(--blue-deep); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(11,18,32,.15); }
.button-primary:hover { background: #17233b; }
.button-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button-small { min-height: 40px; padding: .6rem .9rem; font-size: .9rem; }

.eyebrow { margin: 0 0 .75rem; color: var(--purple-deep); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(3.9rem, 9vw, 7.6rem); line-height: .88; margin-bottom: 1rem; }
h2 { font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1; margin-bottom: 1.1rem; }
h3 { line-height: 1.15; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--ink-2); }
.section-heading { max-width: 850px; margin-bottom: 3rem; }
.section-heading p:last-child { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.section-heading.compact { margin-bottom: 2.5rem; }

.hero { padding-top: 5rem; min-height: calc(100vh - 74px); display: grid; align-items: center; background: radial-gradient(circle at 77% 25%, rgba(36,107,253,.10), transparent 30%), radial-gradient(circle at 84% 57%, rgba(16,169,154,.10), transparent 28%), linear-gradient(180deg, #fff 0%, #f9fbfe 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr); gap: 4.5rem; align-items: center; }
.hero-hook { margin: 0 0 1rem; color: var(--blue-deep); font-weight: 900; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.03em; }
.hero-lede { max-width: 700px; color: var(--ink-2); font-size: clamp(1.1rem, 2vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.7rem 0 1rem; }
.core-message { margin: 0; color: var(--muted); }

.signal-ribbon { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin: 1.8rem 0; }
.signal-ribbon span:not(.ribbon-arrow) { display: inline-grid; min-width: 126px; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(18,37,63,.05); }
.signal-ribbon b { font-size: .78rem; letter-spacing: .1em; color: var(--purple-deep); }
.signal-ribbon span:nth-of-type(3) b { color: var(--blue-deep); }
.signal-ribbon span:nth-of-type(5) b { color: var(--teal-deep); }
.signal-ribbon small { color: var(--muted); margin-top: .18rem; }
.ribbon-arrow { color: #8090a8; font-weight: 900; }

.hero-visual { position: relative; min-height: 580px; border-radius: 34px; border: 1px solid var(--line); background: linear-gradient(140deg, #fff 0%, #f8fbff 100%); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 1fr 120px 1fr; gap: .5rem; align-items: center; padding: 2.2rem; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(115,87,232,.16), rgba(36,107,253,.04) 48%, transparent 70%); left: -130px; top: 45px; z-index: -1; }
.hero-visual::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(16,169,154,.15), rgba(36,107,253,.03) 52%, transparent 70%); right: -170px; bottom: 20px; z-index: -1; }
.hero-stage { text-align: center; }
.hero-stage .stage-label { display: inline-block; margin-bottom: 1rem; font-weight: 950; font-size: .8rem; letter-spacing: .12em; }
.shadow-stage .stage-label { color: var(--purple-deep); }
.signal-stage .stage-label { color: var(--teal-deep); }
.hero-stage p { margin: 1.2rem 0 0; color: var(--muted); font-size: .9rem; }
.shadow-cloud { position: relative; height: 190px; }
.shadow-cloud i { position: absolute; display: block; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(145deg, rgba(115,87,232,.85), rgba(36,107,253,.55)); filter: blur(.2px); opacity: .72; transform: rotate(18deg); }
.shadow-cloud i:nth-child(1){left:16%;top:18%}.shadow-cloud i:nth-child(2){left:52%;top:3%;width:42px;height:42px}.shadow-cloud i:nth-child(3){left:60%;top:46%;width:64px;height:64px}.shadow-cloud i:nth-child(4){left:22%;top:58%;width:38px;height:38px}.shadow-cloud i:nth-child(5){left:44%;top:32%;width:72px;height:72px;opacity:.5}.shadow-cloud i:nth-child(6){left:5%;top:44%;width:26px;height:26px;opacity:.45}
.gate-stage { display: grid; place-items: center; gap: .35rem; }
.gate-slab { width: 62px; height: 170px; border-radius: 22px; border: 1px solid rgba(36,107,253,.35); background: linear-gradient(180deg, rgba(36,107,253,.18), rgba(16,169,154,.15)); box-shadow: inset 0 0 28px rgba(255,255,255,.8), 0 12px 30px rgba(36,107,253,.12); }
.gate-core { position: absolute; padding: .55rem .72rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .12em; box-shadow: 0 10px 30px rgba(11,18,32,.25); }
.signal-lines { height: 190px; position: relative; display: grid; place-items: center; }
.signal-lines::before { content:""; width: 84%; height: 2px; background: linear-gradient(90deg, rgba(16,169,154,.2), var(--teal), rgba(36,107,253,.2)); box-shadow: 0 0 18px rgba(16,169,154,.5); }
.signal-lines i { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 6px solid var(--teal); box-shadow: 0 0 0 6px rgba(16,169,154,.10); }
.signal-lines i:nth-child(1){left:8%;top:35%}.signal-lines i:nth-child(2){left:38%;top:58%;border-color:var(--blue)}.signal-lines i:nth-child(3){right:18%;top:20%;border-color:var(--purple)}.signal-lines i:nth-child(4){right:2%;top:58%}
.qr-card { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); width: min(88%, 460px); display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: center; padding: .85rem; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgba(11,18,32,.12); }
.qr-card img { width: 92px; height: 92px; object-fit: contain; image-rendering: crisp-edges; }
.qr-card span, .qr-card a { display: block; }
.qr-card span { color: var(--muted); font-size: .82rem; }
.qr-card a { font-weight: 900; color: var(--blue-deep); text-decoration: none; margin-top: .12rem; }
.copy-link { margin-top: .45rem; border: 0; background: none; padding: 0; color: var(--teal-deep); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.split-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; margin-bottom: 3rem; }
.problem-statement { padding-top: 2rem; }
.problem-statement p:not(.lead) { color: var(--muted); }
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.risk-grid article { padding: 1.45rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 28px rgba(18,37,63,.05); }
.risk-grid span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef3ff; color: var(--blue-deep); font-weight: 900; }
.risk-grid h3 { margin: 1rem 0 .55rem; font-size: 1.05rem; }
.risk-grid p { color: var(--muted); font-size: .92rem; }
.gap-banner { margin-top: 1.5rem; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-left: 4px solid var(--teal); background: #fff; border-radius: 0 14px 14px 0; }
.gap-banner span { color: var(--muted); }

.workflow { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.workflow-step { position: relative; min-height: 190px; padding: 1.2rem; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 28px rgba(18,37,63,.06); }
.workflow-step:not(:last-child)::after { content: "→"; position: absolute; right: -.72rem; top: 50%; transform: translateY(-50%); z-index: 2; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--teal-deep); font-weight: 900; }
.workflow-step span { color: #7e8ca2; font-weight: 900; font-size: .75rem; }
.workflow-step h3 { margin: 2rem 0 .55rem; color: var(--blue-deep); font-size: 1rem; letter-spacing: .04em; }
.workflow-step:nth-child(3n+1) h3 { color: var(--purple-deep); }
.workflow-step:nth-child(n+4) h3 { color: var(--teal-deep); }
.workflow-step p { color: var(--muted); font-size: .9rem; }
.flow-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; padding: .9rem 1rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; font-weight: 750; }
.flow-line i { color: var(--teal-deep); font-style: normal; }
.advisory-note { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; margin-top: 1.5rem; padding: 1.2rem 1.35rem; border-radius: 16px; background: #f2f8ff; border: 1px solid #cfe1fa; color: var(--ink-2); }
.note-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value-card { padding: 2rem; border-radius: 24px; background: rgba(255,255,255,.88); border: 1px solid rgba(219,226,236,.95); box-shadow: var(--shadow); }
.value-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 900; margin-bottom: 1.4rem; }
.value-card:nth-child(2) .value-number { background: var(--teal); }
.value-card:nth-child(3) .value-number { background: var(--purple); }
.kicker { margin: 0 0 .35rem; color: var(--teal-deep); font-weight: 900; letter-spacing: .08em; font-size: .76rem; }
.value-card h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.value-card p:last-child { color: var(--muted); }
.transformation-bar { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 900; letter-spacing: .04em; }
.transformation-bar span:last-child { text-align: right; }
.transformation-bar b { color: #5eead4; font-size: 1.4rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.boundary-label { padding: 1rem 1.1rem; border-left: 4px solid var(--amber); background: #fff8e8; border-radius: 0 14px 14px 0; }
.sme-stack { display: grid; gap: .9rem; }
.sme-stack div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(18,37,63,.05); }
.sme-stack strong { color: var(--blue-deep); }
.sme-stack span { color: var(--muted); }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-card { padding: 2rem; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 32px rgba(18,37,63,.06); }
.compare-card.current { border-top: 5px solid var(--blue); }
.compare-card.future { border-top: 5px solid var(--teal); }
.status-tag { display: inline-block; padding: .4rem .62rem; border-radius: 999px; background: #edf3ff; color: var(--blue-deep); font-weight: 900; letter-spacing: .06em; font-size: .72rem; }
.future .status-tag { background: #eaf9f6; color: var(--teal-deep); }
.compare-card h3 { margin: 1.2rem 0 .75rem; font-size: 1.4rem; }
.compare-card p { color: var(--muted); }
.compare-card blockquote { margin: 1.25rem 0 0; padding: 1rem 1.1rem; border-left: 4px solid var(--teal); background: #f4fbfa; font-weight: 800; color: var(--ink-2); }

.curriculum-section { background: linear-gradient(180deg, #fff 0%, #f7f8ff 48%, #fff 100%); }
.curriculum-intro { max-width: 900px; }
.curriculum-intro h2 { text-transform: uppercase; letter-spacing: -.045em; }
.convergence-map { margin-top: 3rem; display: grid; grid-template-columns: 1.2fr auto .78fr auto 1fr; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: 26px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.convergence-inputs, .convergence-outcomes { display: flex; flex-wrap: wrap; gap: .5rem; }
.convergence-inputs span, .convergence-outcomes span { padding: .55rem .7rem; border-radius: 10px; background: #f2f5fa; font-size: .78rem; font-weight: 750; color: var(--ink-2); }
.convergence-outcomes span { background: #eefaf8; color: #14675f; }
.convergence-arrow { color: var(--teal); font-weight: 900; font-size: 1.5rem; }
.convergence-hub { min-height: 116px; display: grid; place-items: center; text-align: center; padding: 1rem; border-radius: 22px; color: #fff; background: linear-gradient(145deg, var(--purple), var(--blue), var(--teal)); box-shadow: 0 16px 30px rgba(36,107,253,.18); }
.convergence-hub strong { font-size: 1.4rem; }
.convergence-hub small { margin-top: .25rem; opacity: .9; }
.curriculum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 2rem; }
.curriculum-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: clip; }
.curriculum-card[open] { box-shadow: 0 12px 34px rgba(18,37,63,.07); }
.curriculum-card summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem; font-weight: 850; }
.curriculum-card summary::-webkit-details-marker { display: none; }
.curriculum-card summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--blue-deep); font-size: 1.15rem; }
.curriculum-card[open] summary::after { content: "−"; }
.curriculum-card summary span { display: block; }
.curriculum-card summary small { display: none; }
.curriculum-card > div { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.curriculum-card p:last-child { margin-bottom: 0; }
.discipline-note { margin-top: 1.3rem; padding: 1.4rem; border-radius: 18px; background: #f7f9fc; border: 1px solid var(--line); }
.discipline-note h3 { margin-bottom: .5rem; }
.discipline-note p { color: var(--muted); }
.micro-note { font-size: .83rem; color: #667085 !important; }

.architecture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.architecture-grid article { position: relative; padding: 1.45rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.architecture-grid article:not(:last-child)::after { content:"→"; position:absolute; right:-.7rem; top:50%; transform:translateY(-50%); z-index:2; color:var(--teal-deep); font-weight:900; }
.architecture-grid article > span { color: #7f8ba0; font-weight: 900; font-size: .75rem; }
.architecture-grid h3 { font-size: 1.15rem; margin: .8rem 0 .65rem; }
.architecture-grid p:last-child { color: var(--muted); font-size: .9rem; }
.architecture-note { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

.safety-layout { align-items: start; }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.principles-grid div { padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.principles-grid strong, .principles-grid span { display: block; }
.principles-grid strong { color: var(--blue-deep); margin-bottom: .35rem; }
.principles-grid span { color: var(--muted); font-size: .9rem; }
.safety-banner { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 14px; color: #fff; background: var(--ink); text-align: center; font-weight: 800; }

.section-heading.light p:last-child { color: #b8c4d6; }
.section-dark .eyebrow { color: #6ee7d8; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.screenshot-grid figure { margin: 0; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 44px rgba(0,0,0,.22); }
.screenshot-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; display: block; }
.screenshot-grid figcaption { color: #172033; background: #fff; padding: .7rem .9rem; font-weight: 800; font-size: .9rem; }
.screenshot-wide { grid-column: 1 / -1; }
.screenshot-wide img { aspect-ratio: 21 / 8; }

.boundary-grid ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.boundary-grid li { position: relative; padding-left: 1.55rem; color: var(--ink-2); }
.boundary-grid li::before { position: absolute; left: 0; top: .03rem; font-weight: 900; }
.check-list li::before { content: "✓"; color: var(--teal-deep); }
.future-list li::before { content: "→"; color: var(--purple-deep); }

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; counter-reset: road; }
.roadmap li { list-style: none; min-height: 230px; padding: 1.4rem; border-radius: 20px; background: rgba(255,255,255,.86); border: 1px solid var(--line); }
.roadmap li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue); color:#fff; font-weight:900; margin-bottom: 1.2rem; }
.roadmap li:nth-child(2) > span { background: var(--teal); }.roadmap li:nth-child(3) > span { background: var(--purple); }.roadmap li:nth-child(4) > span { background: var(--ink); }
.roadmap strong { display: block; font-size: .9rem; letter-spacing: .06em; }
.roadmap p { margin: .7rem 0 0; color: var(--muted); font-size: .92rem; }
.roadmap-note { margin-top: 1rem; color: var(--muted); font-size: .84rem; text-align: right; }

.final-cta { background: radial-gradient(circle at 80% 30%, rgba(16,169,154,.12), transparent 32%), radial-gradient(circle at 25% 20%, rgba(115,87,232,.11), transparent 28%), #fff; }
.final-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; }
.final-grid h2 { max-width: 820px; }
.short-link { font-size: 1.2rem; font-weight: 900; color: var(--blue-deep); }
.capstone-label { color: var(--muted); font-weight: 700; }
.final-qr { justify-self: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.final-qr img { display: block; width: 220px; height: 220px; margin-inline: auto; }
.final-qr span { display: block; margin-top: .7rem; color: var(--muted); font-size: .85rem; }

.site-footer { padding: 2.5rem 0; background: #f7f9fc; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.footer-grid p { margin: .4rem 0 0; color: var(--muted); font-size: .86rem; }
.footer-grid a { color: var(--blue-deep); font-weight: 750; }
.back-to-top { position: fixed; z-index: 50; right: 1rem; bottom: 1rem; width: 48px; height: 48px; display: grid; place-items: center; text-decoration: none; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(11,18,32,.22); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.toast { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 20px); padding: .65rem .9rem; border-radius: 12px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 120; font-size: .9rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-cta { display: none; }
  .primary-nav { justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 520px; }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .workflow-step:nth-child(3)::after { display:none; }
  .architecture-grid { grid-template-columns: repeat(2, 1fr); }
  .architecture-grid article:nth-child(2)::after { display:none; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .convergence-map { grid-template-columns: 1fr; text-align: center; }
  .convergence-inputs, .convergence-outcomes { justify-content: center; }
  .convergence-arrow { transform: rotate(90deg); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .section { padding: 4.5rem 0; }
  .container { width: min(calc(100% - 1.2rem), var(--max)); }
  .site-header { position: sticky; }
  .header-inner { min-height: auto; padding: .65rem 0 .5rem; display: block; }
  .brand { margin-left: .1rem; }
  .primary-nav {
    margin-top: .55rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .2rem .35rem;
    overflow: visible;
  }
  .primary-nav a {
    white-space: nowrap;
    padding: .42rem .55rem;
    font-size: .78rem;
    line-height: 1.2;
  }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(3.6rem, 20vw, 5.5rem); }
  .hero-visual { min-height: 560px; grid-template-columns: 1fr 84px 1fr; padding: 1rem; border-radius: 24px; }
  .hero-stage p { font-size: .78rem; }
  .shadow-cloud, .signal-lines { height: 170px; }
  .gate-slab { width: 48px; height: 150px; }
  .qr-card { width: calc(100% - 1.2rem); grid-template-columns: 82px 1fr; }
  .qr-card img { width: 82px; height: 82px; }
  .split-intro, .two-col, .final-grid { grid-template-columns: 1fr; gap: 2rem; }
  .problem-statement { padding-top: 0; }
  .risk-grid, .value-grid, .compare-grid, .curriculum-grid, .screenshot-grid, .principles-grid, .architecture-grid, .roadmap { grid-template-columns: 1fr; }
  .screenshot-wide { grid-column: auto; }
  .screenshot-wide img { aspect-ratio: 16 / 9; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow-step:nth-child(3)::after { display:grid; }
  .workflow-step:nth-child(even)::after { display:none; }
  .architecture-grid article::after { display:none !important; }
  .transformation-bar { grid-template-columns: 1fr; border-radius: 18px; text-align: center; }
  .transformation-bar span:last-child { text-align: center; }
  .transformation-bar b { transform: rotate(90deg); }
  .sme-stack div { grid-template-columns: 1fr; gap: .25rem; }
  .gap-banner { display: block; }
  .gap-banner span { display:block; margin-top:.2rem; }
  .final-qr { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 460px) {
  .workflow { grid-template-columns: 1fr; }
  .workflow-step::after { display:none !important; }
  .hero-visual { min-height: 620px; grid-template-columns: 1fr 62px 1fr; }
  .shadow-cloud i:nth-child(2), .shadow-cloud i:nth-child(6), .signal-lines i:nth-child(4) { display:none; }
  .hero-stage p { font-size: .72rem; }
  .gate-slab { width: 40px; }
  .qr-card { grid-template-columns: 76px 1fr; padding: .7rem; }
  .qr-card img { width: 76px; height: 76px; }
  .flow-line { justify-content: flex-start; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 0.6in; }
  * { box-shadow: none !important; text-shadow: none !important; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  .site-header, .back-to-top, .toast, .hero-actions, .copy-link, .screenshot-grid { display: none !important; }
  .section, .hero { padding: 1.2rem 0 !important; min-height: auto !important; background: #fff !important; border: 0 !important; }
  .container { width: 100% !important; max-width: none !important; }
  h1 { font-size: 34pt; }
  h2 { font-size: 24pt; }
  h3 { font-size: 14pt; }
  p, li { color: #111 !important; }
  .hero-grid, .split-intro, .two-col, .final-grid, .compare-grid, .value-grid, .risk-grid, .architecture-grid, .roadmap, .curriculum-grid { grid-template-columns: 1fr 1fr !important; gap: .35in !important; }
  .hero-visual { min-height: 330px !important; background: #fff !important; border: 1px solid #bbb !important; }
  .qr-card { position: static !important; transform: none !important; grid-column: 1 / -1; width: 100% !important; margin-top: .2in; }
  .workflow { grid-template-columns: repeat(3, 1fr) !important; }
  .workflow-step, .value-card, .compare-card, .risk-grid article, .architecture-grid article, .curriculum-card, .roadmap li, .sme-stack div, .principles-grid div { break-inside: avoid; border: 1px solid #aaa !important; background: #fff !important; }
  .section-dark { color: #000 !important; }
  .section-dark .section-heading p, .section-dark .eyebrow { color: #111 !important; }
  .transformation-bar, .safety-banner { background: #fff !important; color: #000 !important; border: 2px solid #111 !important; }
  .convergence-hub { background: #fff !important; color: #000 !important; border: 2px solid #111 !important; }
  details { break-inside: avoid; }
  details > * { display: block !important; }
  a { text-decoration: none; }
  .site-footer { background: #fff !important; border-top: 1px solid #aaa; }
}
