:root {
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #ffffff;
  --tint: #f6f7f9;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --dark: #111827;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 6px;
  font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .15s;
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.link--light { color: #fff; }
.btn--light { background: #fff; color: var(--sheet, #173a8f); }
.btn--light:hover { background: #e8eefc; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle, .nav__mobile { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__mobile:not([hidden]) { display: flex; flex-direction: column; padding: 0 16px 20px; border-top: 1px solid var(--line); background: #fff; }
  .nav__mobile a:not(.btn) { padding: 12px 0; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__mobile .btn { margin-top: 16px; }
}

/* Hero: a deep blue drawing sheet with zone markers; the animation overlaps
   into the white section below. --overlap is how far it hangs over. */
.hero {
  --overlap: 200px;
  --sheet: #173a8f;
  position: relative;
  padding: 104px 0 0;
  color: #fff;
  background: linear-gradient(to bottom, var(--sheet) calc(100% - var(--overlap)), #fff calc(100% - var(--overlap)));
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.02em; max-width: 16em; color: #fff; }
.lead { font-size: 19px; color: rgba(255, 255, 255, .78); max-width: 40em; margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.hero__media { margin-top: 64px; }

.sheet {
  position: absolute; left: 16px; right: 16px; top: 16px; bottom: calc(var(--overlap) + 16px);
  border: 1px solid rgba(255, 255, 255, .28); pointer-events: none;
}
.sheet::after { /* inner drawing border */
  content: ""; position: absolute; inset: 20px; border: 1.5px solid rgba(255, 255, 255, .22);
}
.sheet__zones { position: absolute; display: flex; font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255, 255, 255, .5); }
.sheet__zones span { flex: 1; display: grid; place-items: center; }
.sheet__zones--top, .sheet__zones--bottom { left: 20px; right: 20px; height: 20px; }
.sheet__zones--top { top: 0; }
.sheet__zones--bottom { bottom: 0; }
.sheet__zones--top span + span, .sheet__zones--bottom span + span { border-left: 1px solid rgba(255, 255, 255, .22); }
.sheet__zones--left, .sheet__zones--right { top: 20px; bottom: 20px; width: 20px; flex-direction: column; }
.sheet__zones--left { left: 0; }
.sheet__zones--right { right: 0; }
.sheet__zones--left span + span, .sheet__zones--right span + span { border-top: 1px solid rgba(255, 255, 255, .22); }

.hero .hero__media { padding: 0; background: none; }
.hero .hero__media::before { display: none; }
.hero .hero__media video { border-radius: 10px; box-shadow: 0 2px 4px rgba(10, 20, 50, .12), 0 30px 60px -20px rgba(10, 20, 50, .45); }

@media (max-width: 640px) {
  .hero { --overlap: 90px; padding-top: 64px; }
  .lead { font-size: 17px; }
  .hero .hero__media { margin-top: 44px; }
  .sheet { left: 8px; right: 8px; top: 8px; }
  .sheet::after { inset: 0; border: 0; }
  .sheet__zones { display: none; }
}

/* Media panel: the same blue sheet, smaller */
.media {
  position: relative;
  padding: clamp(14px, 3.2vw, 44px);
  background: #173a8f;
  border-radius: 12px;
}
.media::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; pointer-events: none;
}
.media video {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; border-radius: 8px;
  box-shadow: 0 20px 40px -18px rgba(10, 20, 50, .5);
}

/* Sections */
.section { padding: 104px 0; }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.015em; margin-bottom: 18px; }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.split > div > p { color: var(--ink-2); font-size: 18px; }
.split .btn { margin-top: 32px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.minor { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.plain { display: grid; gap: 10px; }
.plain li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.plain li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--ink-3); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 48px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps h3::before { content: counter(s) ". "; color: var(--ink-3); font-weight: 500; }
.steps p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Modules */
.modules__tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; }
.modules__tabs button {
  padding: 0 0 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: none; font: 500 16px/1.2 var(--font); color: var(--ink-3); cursor: pointer; white-space: nowrap;
}
.modules__tabs button:hover { color: var(--ink); }
.modules__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.modules__panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.modules__panel[hidden] { display: none; }
.modules__copy h3 { font-size: 24px; margin-bottom: 12px; }
.modules__copy > p { color: var(--ink-2); margin-bottom: 20px; }
@media (max-width: 980px) {
  .modules__panel { grid-template-columns: 1fr; gap: 28px; }
  .modules__panel .media { order: -1; }
}
@media (max-width: 480px) { .modules__tabs { gap: 22px; } }

/* Benchmark */
.bench { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.chart figcaption { font-size: 15px; color: var(--ink-3); margin-bottom: 16px; }
.chart figcaption strong { color: var(--ink); font-weight: 600; }
.bars { display: grid; gap: 2px; }
.bars__row {
  display: grid; grid-template-columns: 72px 1fr 44px; align-items: center; gap: 12px;
  padding: 7px 6px; margin: 0 -6px; border-radius: 4px; outline-offset: 0;
}
.bars__row:hover, .bars__row:focus-visible { background: rgba(17, 24, 39, .04); }
.bars__name { font-size: 15px; color: var(--ink-2); }
.bars__track { position: relative; height: 14px; border-left: 1px solid var(--line-2); }
.bars__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); background: #c3c8d0; border-radius: 0 4px 4px 0; }
.bars__row.is-hero .bars__fill { background: var(--accent); }
.bars__row.is-hero .bars__name, .bars__row.is-hero .bars__val { color: var(--ink); font-weight: 600; }
.bars__val { font-size: 15px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 240px;
  background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; padding: 6px 9px; border-radius: 4px;
}
.footnote { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) { .bench { grid-template-columns: 1fr; gap: 36px; } }

.points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line-2); }
.points h3 { font-size: 18px; margin-bottom: 8px; }
.points p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; gap: 28px; } }

/* Fact list (security, pilot) */
.facts { margin: 0; display: grid; }
.facts div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* Dark band */
.section--dark { background: var(--dark); color: #e5e7eb; }
.section--dark h2 { color: #fff; }
.section--dark .split > div > p { color: #9ca3af; }
.section--dark .facts div { border-color: rgba(255, 255, 255, .12); }
.section--dark .facts dt { color: #fff; }
.section--dark .facts dd { color: #9ca3af; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.audience h3 { font-size: 19px; margin-bottom: 10px; }
.audience p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; gap: 28px; } }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--ink-3); }
.footer__logo { height: 18px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
