:root {
  --ink: #0b1a2b;
  --ink-soft: #33465b;
  --muted: #64748b;
  --line: #e6eaf1;
  --line-strong: #d6dde8;
  --bg: #ffffff;
  --bg-subtle: #f7f9fc;
  --bg-sunken: #eef2f8;
  --brand: #1d4ed8;
  --brand-ink: #1a43b4;
  --brand-050: #eef3ff;
  --brand-100: #dbe6ff;
  --accent: #0ea5a4;
  --ok: #067a55;
  --ok-bg: #e5f5ee;
  --warn: #b45309;
  --warn-bg: #fbeede;
  --dep: #5b6b7f;
  --dep-bg: #eef1f5;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 43, .06), 0 1px 2px rgba(11, 26, 43, .04);
  --shadow: 0 6px 16px rgba(11, 26, 43, .07), 0 2px 6px rgba(11, 26, 43, .05);
  --shadow-lg: 0 30px 60px -18px rgba(11, 26, 43, .22), 0 10px 24px -12px rgba(11, 26, 43, .12);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
::selection { background: var(--brand-100); color: var(--ink); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 1.95rem); letter-spacing: -.018em; }
h3 { font-size: 1.15rem; letter-spacing: -.012em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
strong { font-weight: 650; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

code, pre, kbd { font-family: var(--mono); font-size: .9em; }
code {
  background: var(--bg-sunken);
  color: #16324f;
  padding: .12em .4em;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: .86em;
}
pre {
  background: #0b1a2b;
  color: #e6edf6;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r);
  overflow-x: auto;
  line-height: 1.6;
  font-size: .875rem;
  border: 1px solid #0b1a2b;
}
pre code { background: none; padding: 0; border: 0; color: inherit; font-size: 1em; }

.c-str { color: #9ece6a; }
.c-key { color: #7aa2f7; }
.c-num { color: #ff9e64; }
.c-punc { color: #9aa5c4; }
.c-url { color: #73daca; }
.c-comment { color: #5f6b85; font-style: italic; }

.muted { color: var(--muted); }
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink-soft); }
p.lead.muted { color: var(--muted); }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding: 3rem 1.5rem 4.5rem; }
.wrap > h1:first-child { margin-bottom: .35rem; }
main.landing { display: block; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 26px; width: auto; }

.nav-toggle, .nav-burger { display: none; }
.nav-inner > nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-inner > nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .92rem; position: relative; padding: .35rem 0;
}
.nav-inner > nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-inner > nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right .18s ease;
}
.nav-inner > nav a:not(.btn):hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: #fff !important;
  padding: .68rem 1.15rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1; cursor: pointer;
  text-decoration: none !important; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff; color: var(--ink) !important; border-color: var(--line-strong); box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { background: var(--bg-subtle); border-color: var(--brand-100); }
.btn.sm { padding: .5rem .85rem; font-size: .875rem; }
.btn.lg { padding: .85rem 1.5rem; font-size: 1rem; }

.actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

.section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-subtle); }
.section.plain { border-top: 0; }
.section-inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(2.75rem, 5vw, 4.75rem) 1.5rem; }
.section-head { max-width: 40rem; margin: 0 0 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }

.page-head { margin-bottom: 2.25rem; }
.page-head .eyebrow { margin-bottom: .75rem; }
.page-head h1 { margin-bottom: .5rem; }
.page-head .lead { margin: 0; max-width: 46rem; }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-subtle), #fff 82%); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11, 26, 43, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 43, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(760px 460px at 78% -8%, #000, transparent);
  mask-image: radial-gradient(760px 460px at 78% -8%, #000, transparent);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -220px;
  background: radial-gradient(circle, rgba(29, 78, 216, .16), transparent 65%); pointer-events: none;
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.hero h1 { margin: 1rem 0 0; max-width: 15ch; }
.hero .lead { margin: 1.1rem 0 0; max-width: 44ch; color: var(--ink-soft); }
.hero .actions { margin-top: 1.9rem; }
.trustline { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; color: var(--muted); font-size: .875rem; }
.trustline span { display: inline-flex; align-items: center; gap: .4rem; }
.trustline span::before {
  content: ""; width: 15px; height: 15px; flex: none; border-radius: 999px;
  background: var(--ok-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23067a55' d='M6.5 10.6 3.9 8l-1 1L6.5 12.6 13 6.1l-1-1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.eyebrow-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .32rem .8rem .32rem .5rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.eyebrow-badge b { color: var(--brand); font-weight: 700; }
.eyebrow-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px rgba(14, 165, 164, .18); }

.code-card {
  background: #0b1a2b; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; position: relative;
}
.code-card .bar {
  display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
}
.code-card .bar i { width: 11px; height: 11px; border-radius: 999px; background: #33455c; display: block; }
.code-card .bar span { margin-left: .6rem; color: #8ba0b6; font-size: .78rem; font-family: var(--mono); }
.code-card pre { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 1.1rem 1.2rem 2.4rem; }
.code-card .tag {
  position: absolute; right: 14px; bottom: 14px; background: var(--ok-bg); color: var(--ok);
  font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; font-family: var(--mono);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card h3 { margin: 0 0 .45rem; }
.card p { margin: 0 0 .6rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card p.muted { color: var(--muted); }

.icon {
  width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-050); color: var(--brand); margin-bottom: 1rem; border: 1px solid var(--brand-100);
}
.icon svg { width: 22px; height: 22px; }

.logos { display: flex; flex-wrap: wrap; gap: 1.1rem 2.75rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.logos span {
  font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  font-size: .95rem; opacity: .75;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.25rem; }
.stat { padding: 1.25rem 0; }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stat span { color: var(--muted); font-size: .92rem; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1.5rem; }

.kv { border-collapse: collapse; width: 100%; margin: 1.25rem 0; }
.kv th, .kv td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv tr:first-child th, .kv tr:first-child td { border-top: 1px solid var(--line); }
.kv th { width: 220px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.kv td { color: var(--ink-soft); }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 650; padding: .2rem .6rem; border-radius: 999px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.dep { background: var(--dep-bg); color: var(--dep); }

.status-hero {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); margin: 1.25rem 0 2rem;
}
.status-hero .dot { width: 12px; height: 12px; border-radius: 999px; flex: none; }
.status-hero.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.status-hero.warn .dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
.status-hero b { font-size: 1.05rem; }
.status-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.status-list div {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: #fff;
}
.status-list div:last-child { border-bottom: 0; }
.status-list div span:first-child { color: var(--ink-soft); }
.incident { border-left: 2px solid var(--line-strong); padding: .1rem 0 .1rem 1.25rem; margin: 1.5rem 0; }
.incident h3 { margin-bottom: .3rem; }
.incident time { color: var(--muted); font-size: .85rem; font-weight: 600; font-family: var(--mono); }
.incident p { margin: .35rem 0 0; color: var(--ink-soft); }

.banner {
  background: var(--warn-bg); border: 1px solid #f0dcbb; color: #7a4a12;
  padding: .85rem 1.1rem; border-radius: var(--r-sm); margin: 0 0 1.75rem; font-size: .95rem;
}
.banner strong { color: #6b3d0c; }

.role { display: flex; flex-direction: column; }
.role .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .85rem; }
.tag {
  font-size: .74rem; font-weight: 650; padding: .18rem .55rem; border-radius: 999px;
  background: var(--bg-sunken); color: var(--ink-soft); border: 1px solid var(--line);
}

.avatar {
  width: 40px; height: 40px; border-radius: 999px; flex: none; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
  background: var(--brand-050); color: var(--brand); border: 1px solid var(--brand-100);
}
.person { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.person h3 { margin: 0; }

.auth-wrap { max-width: 420px; margin: 1rem auto 0; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }

form.stack { max-width: 400px; }
form.stack.full { max-width: none; }
form.stack label { display: block; font-weight: 600; font-size: .875rem; margin: 1rem 0 .35rem; color: var(--ink); }
form.stack input {
  width: 100%; padding: .68rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: inherit; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
form.stack input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050); }
form.stack button { margin-top: 1.35rem; }

.list-tight { padding-left: 1.2rem; }
.list-tight li { margin: .4rem 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

.cta-panel {
  max-width: var(--maxw); margin: 0 auto; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #1d4ed8, #1a337e);
  color: #fff; padding: clamp(2.25rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow-lg);
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, .82); max-width: 40rem; margin: .6rem auto 1.6rem; }
.cta-panel .actions { justify-content: center; }
.cta-panel .btn { background: #fff; color: var(--brand) !important; }
.cta-panel .btn:hover { background: #eef3ff; }
.cta-panel .btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.cta-panel .btn.ghost:hover { background: rgba(255, 255, 255, .12); }

.foot { background: #0b1a2b; color: #9fb2c6; margin-top: 4rem; }
.foot-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 2.5rem;
}
.foot .brand-block .wordmark { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.foot .brand-block .wordmark span { color: #7aa2f7; }
.foot .brand-block p { margin: .75rem 0 0; color: #8195aa; font-size: .9rem; max-width: 28ch; }
.foot .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.foot .cols h4 { color: #cdd9e6; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: .45rem 0; }
.foot a { color: #9fb2c6; font-size: .92rem; }
.foot a:hover { color: #fff; text-decoration: none; }
.foot-legal {
  max-width: var(--maxw); margin-inline: auto; padding: 1.25rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .09); color: #7488a0; font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
.foot-legal a { color: #9fb2c6; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .code-card { order: 2; }
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .foot-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .nav-inner { position: relative; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; background: #fff;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav-burger span::before { position: absolute; top: -6px; }
  .nav-burger span::after { position: absolute; top: 6px; }
  .nav-inner > nav {
    display: none; position: absolute; right: 0; top: calc(100% + 12px); width: min(78vw, 280px);
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .6rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ nav { display: flex; }
  .nav-inner > nav a { padding: .6rem .7rem; border-radius: var(--r-sm); }
  .nav-inner > nav a:not(.btn):hover { background: var(--bg-subtle); }
  .nav-inner > nav a:not(.btn)::after { display: none; }
  .nav-inner > nav .btn { margin-top: .4rem; text-align: center; }
}

@media (max-width: 620px) {
  .kv th { width: auto; display: block; padding-bottom: .1rem; border-bottom: 0; }
  .kv td { display: block; padding-top: .1rem; }
  .kv tr:first-child td { border-top: 0; }
  .stat + .stat { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
