@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
}
:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --accent: #0a58d6;
  --accent2: #3b82f6;
  --accent-ink: #ffffff;
  --flag: #b45309;
  --flag-bg: #fdf1dc;
  --shadow: 0 30px 80px rgba(10, 40, 90, 0.16), 0 2px 6px rgba(10, 40, 90, 0.06);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f; --alt: #121317; --card: #181a1f; --ink: #f5f5f7; --muted: #a1a1a6; --rule: #2b2d33;
    --accent: #5b9bff; --accent2: #7db0ff; --accent-ink: #07101f; --flag: #f0b45a; --flag-bg: #35290f;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f; --alt: #121317; --card: #181a1f; --ink: #f5f5f7; --muted: #a1a1a6; --rule: #2b2d33;
  --accent: #5b9bff; --accent2: #7db0ff; --accent-ink: #07101f; --flag: #f0b45a; --flag-bg: #35290f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 70px); color-scheme: light dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { letter-spacing: -0.03em; margin: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 99px; z-index: 40; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; gap: 16px; }
.mark { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { font-size: 14px; color: var(--ink); text-decoration: none; opacity: 0.85; }
nav a:hover { opacity: 1; }
nav .pill { background: var(--accent); color: var(--accent-ink); padding: 7px 16px; border-radius: 99px; opacity: 1; font-weight: 500; }
@media (max-width: 720px) { nav a:not(.pill) { display: none; } }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 14px 28px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 16px; transition: filter .15s; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.light { background: #fff; color: #0a1a3f; }
.btn.line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; justify-content: center; margin-left: auto; margin-right: auto; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 0; text-align: center; background: var(--bg); }
.hero::before { content: ""; position: absolute; left: 50%; top: -120px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent2) 28%, transparent), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(44px, 8.2vw, 88px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch; margin: 0 auto 22px; }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 52ch; margin: 0 auto 34px; line-height: 1.45; }
.creds { margin: 26px auto 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.creds span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.window { position: relative; max-width: 900px; margin: 56px auto 0; background: var(--card); border: 1px solid var(--rule); border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: var(--shadow); text-align: left; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .window { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; } @keyframes rise { from { transform: translateY(24px); } to { transform: none; } } }
.chrome { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--alt); border-bottom: 1px solid var(--rule); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--rule); display: block; }
.chrome b { flex: 1; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 40px; }
.tabs { display: flex; border-bottom: 1px solid var(--rule); }
.tabs button { flex: 1; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 14px 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button:focus-visible { outline-offset: -3px; }
.panel[hidden] { display: none; }
.bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.bar small { color: var(--muted); font-size: 13px; }
.foot { padding: 13px 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.cap { padding: 9px 20px; border-top: 1px solid var(--rule); background: var(--alt); font-size: 12.5px; color: var(--muted); }
.scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.stats div { padding: 14px 20px; border-right: 1px solid var(--rule); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }
table.grid { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 460px; }
table.grid th, table.grid td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); white-space: nowrap; }
table.grid th:last-child, table.grid td:last-child { border-right: 0; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid .letters th { background: var(--alt); color: var(--muted); font-weight: 400; font-size: 12px; padding: 5px 16px; }
table.grid .rn { width: 40px; text-align: center; background: var(--alt); color: var(--muted); font-size: 12px; padding: 10px 4px; font-weight: 400; }
table.grid thead tr:nth-child(2) th { font-weight: 600; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.chip.ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip.warn { color: var(--flag); background: var(--flag-bg); }
.chip.off { color: var(--muted); background: var(--alt); border: 1px solid var(--rule); }
.body { padding: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 99px; background: var(--alt); }
.join { height: 36px; width: 2px; background: var(--accent); margin: 0 auto; position: relative; }
.join::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
.rec { border: 1.5px solid var(--accent); border-radius: 14px; padding: 16px 18px; }
.rec-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.rec dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.rec dt { font-size: 12.5px; color: var(--muted); }
.rec dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.flow { list-style: none; margin: 0; padding: 6px 20px; }
.flow li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.flow li:last-child { border-bottom: 0; }
.flow b { display: block; font-size: 15px; font-weight: 600; }
.flow div span { font-size: 13.5px; color: var(--muted); }
.flow em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.flow em.you { color: var(--flag); }
.dot { width: 20px; height: 20px; border-radius: 50%; display: block; position: relative; }
.dot.done { background: var(--accent); }
.dot.done::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dot.you { background: var(--flag-bg); border: 2px solid var(--flag); }

/* sections */
section { padding: 104px 0; }
section.alt { background: var(--alt); }
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.head h2 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 16px; }
.head p { font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin: 0; line-height: 1.45; }

/* dark band */
.band { background: linear-gradient(160deg, #0a1f55 0%, #06122f 70%); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(59,130,246,.35), transparent 70%); pointer-events: none; }
.band .wrap { position: relative; }
.band .head p { color: rgba(255,255,255,.78); }

/* bridge graphic */
.bridge { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; max-width: 960px; margin: 0 auto; }
@media (min-width: 860px) { .bridge { grid-template-columns: 1fr 1.5fr 1fr; } }
.node { border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); border-radius: 22px; padding: 26px 22px; text-align: center; }
.node b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.node span { font-size: 14px; color: rgba(255,255,255,.78); }
.span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 0; gap: 10px; }
@media (min-width: 860px) { .span { flex-direction: row; padding: 0 8px; gap: 0; justify-content: space-between; } }
.link { position: relative; flex: 0 0 38px; width: 2px; height: 38px; background: repeating-linear-gradient(to bottom, rgba(125,176,255,.9) 0 6px, transparent 6px 12px); }
@media (min-width: 860px) { .link { flex: 1; width: auto; height: 2px; background: repeating-linear-gradient(to right, rgba(125,176,255,.9) 0 6px, transparent 6px 12px); } }
@media (prefers-reduced-motion: no-preference) { .link { background-size: 12px 12px; animation: flowv 1s linear infinite; } @media (min-width: 860px) { .link { animation-name: flowh; } } @keyframes flowv { to { background-position: 0 12px; } } @keyframes flowh { to { background-position: 12px 0; } } }
.step { flex: 0 0 auto; background: #fff; color: #0a1f55; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 99px; white-space: nowrap; }
.legend { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 960px; margin: 56px auto 0; }
.legend b { display: block; font-size: 17px; margin-bottom: 4px; }
.legend span { font-size: 15px; color: rgba(255,255,255,.78); }

/* services */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 30px; }
section.alt .tile { border-color: transparent; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent2), var(--accent)); margin-bottom: 18px; }
.ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 22px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile.feature { grid-column: 1 / -1; display: grid; gap: 32px; grid-template-columns: 1fr; padding: 36px; }
@media (min-width: 900px) { .tile.feature { grid-template-columns: 1fr 1.15fr; align-items: center; } }
.tile.feature h3 { font-size: 30px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 12px; border-radius: 99px; margin-bottom: 14px; }
.mini { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--bg); }
.mini table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 430px; }
.mini th, .mini td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.mini th { font-weight: 500; color: var(--muted); font-size: 13px; background: var(--alt); }
.mini tr:last-child td { border-bottom: 0; }
.mini tr.flag td { background: var(--flag-bg); }
.mini tr.flag td:last-child { color: var(--flag); font-weight: 600; }
.mini td:last-child { color: var(--muted); }
.mini-foot { padding: 13px 16px; font-size: 14px; border-top: 1px solid var(--rule); }
.plans { text-align: center; color: var(--muted); margin: 34px auto 0; max-width: 60ch; font-size: 16px; }

/* process */
.steps4 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps4 li { counter-increment: s; background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 28px; position: relative; }
section.alt .steps4 li { border-color: transparent; }
.steps4 li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 18px; }
.steps4 h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.steps4 p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* guardrails */
.guard { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .guard { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.shield { max-width: 300px; margin: 0 auto; width: 100%; }
.guard h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; line-height: 1.06; margin-bottom: 14px; }
.guard .sub { color: var(--muted); font-size: 19px; margin: 0 0 32px; max-width: 52ch; }
.two { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }
.two h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.facts b { display: block; font-weight: 600; font-size: 16px; }
.facts span { color: var(--muted); font-size: 15px; }
.tools { margin-top: 56px; padding: 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--rule); }
.tools h3 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pills.gap { margin-top: 18px; }
.pills span { font-size: 14.5px; font-weight: 500; padding: 7px 15px; border-radius: 99px; background: var(--alt); border: 1px solid var(--rule); }
.tools p { margin: 0 0 6px; color: var(--muted); font-size: 15.5px; }

/* about */
.about { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 0.75fr 1.25fr; gap: 80px; } }
.portrait { aspect-ratio: 4 / 5; max-width: 380px; width: 100%; margin: 0 auto; border-radius: 28px; background: linear-gradient(150deg, #0a1f55, #1d4ed8 70%, #3b82f6); display: grid; place-items: center; color: #fff; font-size: 96px; font-weight: 700; letter-spacing: -0.05em; box-shadow: var(--shadow); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; line-height: 1.06; margin-bottom: 20px; }
.about p { color: var(--muted); font-size: 18px; margin: 0 0 16px; max-width: 54ch; }
.about .facts { margin-top: 28px; }

/* intro video (hidden until a source is set) */
.video-wrap { max-width: 820px; margin: 0 auto; }
.video-wrap video, .video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 24px; background: #000; box-shadow: var(--shadow); display: block; }

/* contact */
.cta h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.04; margin: 0 auto 18px; max-width: 16ch; text-align: center; }
.cta > .wrap > p { text-align: center; color: rgba(255,255,255,.82); font-size: 20px; max-width: 46ch; margin: 0 auto 34px; }
.form { max-width: 620px; margin: 0 auto; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); border-radius: 24px; padding: 28px; text-align: left; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form .field { margin-bottom: 18px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 16px; color: #0a1a3f; background: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid #7db0ff; outline-offset: 2px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: 13.5px; color: rgba(255,255,255,.78); margin: 14px 0 0; }
.form .note a { color: #fff; }
.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15.5px; display: none; }
.status.show { display: block; }
.status.ok { background: #e6f4ea; color: #0b3d1b; }
.status.err { background: #fde8e8; color: #7a1212; }
.book { text-align: center; margin-top: 26px; }
.book[hidden] { display: none; }

/* blog */
.post-list { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.post-list a.card { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 28px; text-decoration: none; color: var(--ink); }
.post-list a.card:hover { border-color: var(--accent); }
.post-list h2 { font-size: 24px; margin-bottom: 8px; }
.post-list p { margin: 0; color: var(--muted); }
.meta { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; margin-bottom: 18px; }
.article h2 { font-size: 26px; margin: 40px 0 10px; }
.article p, .article li { color: var(--ink); font-size: 18px; }
.draft-flag { background: var(--flag-bg); color: var(--flag); border-radius: 14px; padding: 14px 18px; font-weight: 600; margin-bottom: 28px; }
.page-top { padding: 72px 0 40px; }
.page-top h1 { font-size: clamp(36px, 6vw, 60px); text-align: center; line-height: 1.05; }
.page-top p { text-align: center; color: var(--muted); font-size: 19px; max-width: 54ch; margin: 14px auto 0; }
.legal { max-width: 720px; margin: 0 auto; padding-bottom: 96px; }
.legal h2 { font-size: 24px; margin: 34px 0 8px; }
.legal p, .legal li { font-size: 17px; }

footer { padding: 34px 0 44px; font-size: 14px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--rule); }
footer p { margin: 0 0 8px; max-width: 72ch; }
footer nav { gap: 18px; margin-bottom: 14px; }
footer nav a { color: var(--ink); opacity: 1; text-decoration: underline; }
