    :root {
  --navy: #14253d;
  --navy-2: #203b5b;
  --blue: #477da8;
  --blue-light: #eaf2f8;
  --ink: #1d2938;
  --muted: #627184;
  --line: #dce4eb;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --green: #8aa6a1;
  --mint: #8fd1b8;
--head: #14253d; --card: #ffffff; --field: #ffffff; --line-strong: #c9d5e0; --faint: #8793a0;
  --radius: 20px;
  --shadow: 0 18px 48px rgba(20, 37, 61, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow .2s ease;
}
.topbar.scrolled { box-shadow: 0 6px 24px rgba(20,37,61,.07); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; overflow: hidden; flex: 0 0 42px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-weight: 760; letter-spacing: -.035em; color: var(--head); line-height: 1.15; }
.brand-sub { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: #526174; text-decoration: none; position: relative; }
.nav-links a:not(.nav-cta):hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px;
  border-radius: 10px; background: var(--navy); color: white !important; font-weight: 650;
}
.nav-cta:hover { background: var(--navy-2); }

/* hero */
.hero { padding: 72px 0 70px; overflow: hidden; background: linear-gradient(180deg, #f3f7fb 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 23px; height: 2px; background: var(--green); }
h1 { margin: 20px 0 22px; max-width: 680px; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -.055em; color: var(--head); }
.hero p { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.75; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; border-radius: 11px; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(20,37,61,.18); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { border: 1px solid var(--line); color: var(--head); background: white; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #e3f3ec; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(143,209,184,.14); } }

.scene { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #0f2038; aspect-ratio: 560 / 470; }
.scene > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-head { position: absolute; z-index: 2; left: 22px; right: 22px; top: 20px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.visual-label { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: #c3d4e3; }
.visual-pill { padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: #dce9f4; font-size: 11px; background: rgba(15,32,56,.4); backdrop-filter: blur(6px); }
.metric-card { position: absolute; z-index: 2; bottom: 20px; left: 20px; right: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; overflow: hidden; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.metric { padding: 14px 16px; background: rgba(15,32,56,.62); color: white; }
.metric strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.metric span { display: block; margin-top: 3px; font-size: 11px; color: #b8c9d9; }
.led { animation: blink 3s ease-in-out infinite; }
.led:nth-of-type(3n) { animation-delay: .8s; } .led:nth-of-type(4n) { animation-delay: 1.6s; }
@keyframes blink { 50% { opacity: .35; } }
.node-pulse { transform-box: fill-box; transform-origin: center; animation: ring 3.2s ease-out infinite; }
.node-pulse.d2 { animation-delay: 1s; } .node-pulse.d3 { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.aurora { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(22px); opacity: .75; } }

/* topics strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 10px; }
.strip-label { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-right: 10px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: #43546a; background: var(--surface); font-weight: 560; }

section { padding: 78px 0; }
.hero, .strip { padding-left: 0; padding-right: 0; }
.section-head { max-width: 650px; margin-bottom: 34px; }
.section-head h2 { margin: 12px 0; color: var(--head); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-art { aspect-ratio: 16 / 9; background: var(--blue-light); border-bottom: 1px solid var(--line); }
.card-art svg { width: 100%; height: 100%; }
.card-body { padding: 24px 26px 28px; }
.card h3 { margin: 0 0 10px; color: var(--head); font-size: 18px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.band { background: var(--surface); }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.two-col.center { align-items: center; }
.two-col h2 { margin: 12px 0 18px; color: var(--head); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.13; letter-spacing: -.045em; }
.two-col p { color: var(--muted); margin: 0 0 16px; }

/* lab */
.figure { margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid #1e3550; box-shadow: var(--shadow); background: #0f1d30; }
.figure svg { width: 100%; height: auto; }
.figure figcaption { padding: 12px 18px; font-size: 12px; color: #9fb3c7; background: #0c1829; border-top: 1px solid #1e3550; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.fact { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.fact strong { display: block; color: var(--head); font-size: 14px; }
.fact span { font-size: 12.5px; color: var(--muted); }

/* dashboard demo */
.window { border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d5dde5; }
.window-url { margin-left: 10px; flex: 1; max-width: 340px; padding: 4px 12px; border-radius: 8px; background: white; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.window-tag { margin-left: auto; font-size: 11px; color: #8a6d1f; background: #fbf3dc; padding: 3px 9px; border-radius: 99px; font-weight: 650; }
.dash { display: grid; grid-template-columns: 200px 1fr; }
.dash-side { padding: 18px 14px; border-right: 1px solid var(--line); background: #fafcfd; display: grid; gap: 4px; align-content: start; }
.dash-side div { padding: 9px 12px; border-radius: 9px; font-size: 13px; color: #526174; }
.dash-side div.on { background: var(--blue-light); color: var(--head); font-weight: 650; }
.dash-main { padding: 22px; display: grid; gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.tile small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.tile b { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -.03em; color: var(--head); }
.tile em { font-style: normal; font-size: 12px; color: #4e756e; }
.chart-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 8px; }
.chart-title { display: flex; justify-content: space-between; font-size: 13px; color: var(--head); font-weight: 650; margin-bottom: 6px; }
.chart-title span { font-weight: 400; color: var(--muted); font-size: 12px; }
.chart-box svg { width: 100%; height: auto; }
.svc { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.svc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 11px 16px; font-size: 13px; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-row span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #e3f3ec; color: #2f6a58; }
.pill.warn { background: #fbf3dc; color: #8a6d1f; }
.note { margin-top: 14px; font-size: 12px; color: #8793a0; }

/* topology */
.topo { border: 1px solid var(--line); border-radius: 24px; background: white; padding: 20px; box-shadow: var(--shadow); }
.topo { overflow-x: auto; }
.topo svg { width: 100%; min-width: 680px; height: auto; }

/* principles */
.principles { display: grid; gap: 13px; }
.principle { display: flex; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.check { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: #eaf1ef; color: #4e756e; font-weight: 800; }
.principle strong { display: block; margin-bottom: 3px; color: var(--head); font-size: 14px; }
.principle span { display: block; color: var(--muted); font-size: 13px; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; padding: 24px 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.step h3 { margin: 0 0 8px; color: var(--head); font-size: 17px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* docs */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-link { display: grid; grid-template-columns: 112px 1fr auto; gap: 18px; align-items: center; padding: 14px 22px 14px 14px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: white; transition: border-color .18s, transform .18s, box-shadow .18s; }
.doc-link:hover { border-color: #a8c3d8; transform: translateY(-2px); box-shadow: var(--shadow); }
.doc-cover { width: 112px; height: 88px; border-radius: 12px; overflow: hidden; }
.doc-cover svg { width: 100%; height: 100%; }
.doc-link strong { display: block; color: var(--head); font-size: 15px; }
.doc-link span.sub { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.arrow { color: var(--blue); font-size: 22px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; color: var(--head); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* contact */
.contact-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px; border-radius: 24px; color: white; background: radial-gradient(circle at 90% 0%, #2f5578 0, transparent 45%), var(--navy); }
.contact-box h2 { margin: 0 0 9px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.contact-box p { max-width: 610px; margin: 0; color: #c0cedc; font-size: 14px; }
.contact-box .button { flex: 0 0 auto; background: white; color: var(--head); position: relative; }

footer { padding: 52px 0 28px; border-top: 1px solid var(--line); background: #fbfcfd; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 34px; }
.footer-top p { color: var(--muted); font-size: 13px; max-width: 300px; margin: 14px 0 0; }
.footer-col h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--head); }
.footer-col a { display: block; padding: 4px 0; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-copy { font-size: 12px; color: var(--muted); }
.disclaimer { margin-top: 12px; color: #8793a0; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 950px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .window-url { display: none; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1120px); }
  .nav { min-height: 66px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 9px 12px; font-size: 12px; }
  .hero { padding: 48px 0 44px; }
  .hero p { font-size: 16px; }
  .metric { padding: 11px 9px; } .metric strong { font-size: 13px; } .metric span { font-size: 10px; }
  .metric-card { left: 12px; right: 12px; bottom: 12px; }
  section { padding: 56px 0; }
  .steps, .facts { grid-template-columns: 1fr; }
  .doc-link { grid-template-columns: 88px 1fr; }
  .doc-cover { width: 88px; height: 72px; }
  .doc-link .arrow { display: none; }
  .contact-box { padding: 26px; align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- inner pages ---- */
.page-hero { padding: 54px 0 46px; background: linear-gradient(180deg, #f3f7fb 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: var(--blue); }
.crumbs a:hover { text-decoration: underline; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 48px); margin: 14px 0 16px; }
.page-hero p.lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 640px; line-height: 1.7; }
.page-art { width: 260px; height: 200px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.page-art svg { width: 100%; height: 100%; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 56px 0 30px; align-items: start; }
.toc { position: sticky; top: 96px; border-left: 2px solid var(--line); padding-left: 18px; font-size: 14px; }
.toc strong { display: block; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 5px 0; color: #526174; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.prose { max-width: 760px; min-width: 0; }
.page-hero-grid > *, .doc-layout > * { min-width: 0; }
.prose h2 { margin: 44px 0 12px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; font-size: 17px; color: var(--navy); }
.prose p, .prose li { color: #3c4b5d; font-size: 16px; line-height: 1.75; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--blue-light); color: var(--navy); padding: 2px 6px; border-radius: 6px; }
.prose pre { margin: 0 0 20px; padding: 18px 20px; border-radius: 14px; background: #0f1d30; color: #d7e6f2; overflow-x: auto; font-size: 13.5px; line-height: 1.65; border: 1px solid #1e3550; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose .cap { margin: -8px 0 20px; font-size: 12px; color: var(--muted); }
.callout { margin: 22px 0; padding: 16px 20px; border-radius: 14px; background: #eef5f2; border: 1px solid #cfe2dc; color: #2f564c; font-size: 14.5px; line-height: 1.65; }
.callout b { color: #1f4a3f; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); color: var(--navy); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.prose td { color: #3c4b5d; }
.prose .topo { margin: 0 0 24px; box-shadow: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 30px 0 70px; }
.pager a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: white; transition: border-color .18s, transform .18s; }
.pager a:hover { border-color: #a8c3d8; transform: translateY(-2px); }
.pager small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager strong { color: var(--navy); font-size: 16px; }
.pager .next { text-align: right; }
.shot { margin: 8px 0 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0f1d30; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 16px; font-size: 12.5px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 26px; }
.shot-grid .shot { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .shot { margin: 0; transition: transform .2s ease, box-shadow .2s ease; }
.gallery .shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery .shot:first-child { grid-column: span 2; }
.gallery .shot { display: flex; flex-direction: column; }
.gallery .shot img { flex: 1 1 auto; min-height: 0; object-fit: cover; }
.gallery .shot figcaption { flex: none; }
@media (max-width: 700px) { .shot-grid, .gallery { grid-template-columns: 1fr; } .gallery .shot:first-child { grid-column: auto; } }
.more { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: none; }
.more:hover { text-decoration: underline; }
@media (max-width: 950px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page-art { width: 100%; height: 170px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
  .toc a { display: inline-block; margin-right: 16px; }
}
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } .prose h2 { font-size: 23px; } }


/* ---- theme toggle ---- */
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--head); cursor: pointer; transition: background .18s, border-color .18s, transform .18s; padding: 0; }
.theme-toggle:hover { border-color: var(--blue); transform: translateY(-1px); }
.theme-toggle:focus-visible, .button:focus-visible, .form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid rgba(71,125,168,.45); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---- contact form ---- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; padding: 56px 0 80px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: 24px; background: var(--card); padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.03em; color: var(--head); }
#formBox > p { margin: 0 0 24px; color: var(--muted); font-size: 14.5px; }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; color: var(--head); }
.field label i { font-style: normal; color: var(--muted); font-weight: 450; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--field); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(71,125,168,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c4574f; }
.err { display: none; margin-top: 6px; font-size: 12.5px; color: #c4574f; }
.field.invalid .err { display: block; }
.counter { margin-top: 6px; text-align: right; font-size: 12px; color: var(--muted); }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check-row input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--blue); }
.check-row.invalid { color: #c4574f; }
.form .button { border: 0; cursor: pointer; width: 100%; font-family: inherit; }
.form .button[disabled] { opacity: .7; cursor: progress; transform: none; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.sending .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin: 4px 0 0; font-size: 12px; color: var(--faint); }
.success { display: none; text-align: center; padding: 22px 6px 8px; }
.success.show { display: block; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.success .ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: #e3f3ec; color: #2f6a58; }
.success .ok svg { width: 36px; height: 36px; }
.success h2 { font-size: 26px; }
.success p { color: var(--muted); max-width: 440px; margin: 8px auto 0; font-size: 15px; }
.summary { text-align: left; margin: 24px auto 0; max-width: 440px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.summary div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 16px; font-size: 14px; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary span { color: var(--muted); } .summary b { color: var(--head); text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.success .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.success .actions .button { width: auto; }
.side-card { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 24px; margin-bottom: 16px; }
.side-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--head); }
.side-card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.side-card li { margin-bottom: 6px; }
.side-steps { counter-reset: st; list-style: none; padding: 0 !important; }
.side-steps li { counter-increment: st; position: relative; padding-left: 38px; margin-bottom: 14px; }
.side-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-weight: 800; font-size: 13px; }
@media (max-width: 950px) { .contact-layout { grid-template-columns: minmax(0, 1fr); padding-top: 36px; } }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } }

/* ---- dark theme ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #e6eef6; --navy-2: #cfdceb; --head: #e9f1f8;
  --blue: #7fb0d8; --blue-light: #16283f; --ink: #d4e0eb; --muted: #94a7bb; --faint: #7a8ea4;
  --line: #22344c; --line-strong: #2f4766; --paper: #0b1422; --surface: #0f1c2f; --card: #111f34; --field: #0d1829;
  --green: #8aa6a1; --shadow: 0 18px 48px rgba(0,0,0,.45);
}
:root[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .topbar { background: rgba(11,20,34,.86); }
:root[data-theme="dark"] .topbar.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.4); }
:root[data-theme="dark"] .nav-links a, :root[data-theme="dark"] .toc a, :root[data-theme="dark"] .dash-side div { color: #a9bbcd; }
:root[data-theme="dark"] .nav-links a:not(.nav-cta):hover, :root[data-theme="dark"] .nav-links a.active, :root[data-theme="dark"] .toc a:hover { color: #9cc6e6; }
:root[data-theme="dark"] .nav-cta, :root[data-theme="dark"] .button-primary { background: #3a6d99; color: #fff !important; }
:root[data-theme="dark"] .nav-cta:hover, :root[data-theme="dark"] .button-primary:hover { background: #4a82b3; }
:root[data-theme="dark"] .button-primary { box-shadow: 0 8px 20px rgba(0,0,0,.35); }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0f1e34 0%, #0b1422 100%); }
:root[data-theme="dark"] .status-dot { box-shadow: 0 0 0 4px rgba(143,209,184,.15); }
:root[data-theme="dark"] .strip, :root[data-theme="dark"] .card, :root[data-theme="dark"] .fact, :root[data-theme="dark"] .window, :root[data-theme="dark"] .window-url,
:root[data-theme="dark"] .topo, :root[data-theme="dark"] .principle, :root[data-theme="dark"] .step, :root[data-theme="dark"] .doc-link,
:root[data-theme="dark"] .faq details, :root[data-theme="dark"] .pager a, :root[data-theme="dark"] .button-secondary, :root[data-theme="dark"] .shot figcaption { background: var(--card); }
:root[data-theme="dark"] .band { background: var(--surface); }
:root[data-theme="dark"] .chip { background: #14253c; color: #b5c5d6; }
:root[data-theme="dark"] .window-bar, :root[data-theme="dark"] .dash-side { background: #0e1a2c; }
:root[data-theme="dark"] .window-bar i { background: #2a3d55; }
:root[data-theme="dark"] .dash-side div.on { background: #17304d; color: #fff; }
:root[data-theme="dark"] .window-tag, :root[data-theme="dark"] .pill.warn { background: #3a3217; color: #e6c27a; }
:root[data-theme="dark"] .pill, :root[data-theme="dark"] .check { background: #173a30; color: #8fd1b8; }
:root[data-theme="dark"] .tile em { color: #8fd1b8; }
:root[data-theme="dark"] .note, :root[data-theme="dark"] .disclaimer { color: var(--faint); }
:root[data-theme="dark"] .contact-box { background: radial-gradient(circle at 90% 0%, #2f5578 0, transparent 45%), #10243e; border: 1px solid #243a56; }
:root[data-theme="dark"] .contact-box h2 { color: #fff; }
:root[data-theme="dark"] .contact-box .button { background: #fff; color: #14253d; }
:root[data-theme="dark"] footer { background: #08101c; }
:root[data-theme="dark"] .prose p, :root[data-theme="dark"] .prose li, :root[data-theme="dark"] .prose td { color: #c3d1df; }
:root[data-theme="dark"] .prose th { background: #101c2e; color: #e6eef6; }
:root[data-theme="dark"] .prose code { background: #17304d; color: #dbe8f5; }
:root[data-theme="dark"] .prose pre code { background: none; }
:root[data-theme="dark"] .callout { background: #12302a; border-color: #245045; color: #bfe3d6; }
:root[data-theme="dark"] .callout b { color: #e0f5ec; }
:root[data-theme="dark"] .doc-link:hover, :root[data-theme="dark"] .pager a:hover { border-color: #4a6a8c; background: #14243b; }
:root[data-theme="dark"] .success .ok { background: #173a30; color: #8fd1b8; }
:root[data-theme="dark"] .err, :root[data-theme="dark"] .check-row.invalid { color: #ef8f87; }
:root[data-theme="dark"] .field.invalid input, :root[data-theme="dark"] .field.invalid select, :root[data-theme="dark"] .field.invalid textarea { border-color: #ef8f87; }
/* inline-SVG tweaks */
:root[data-theme="dark"] .chart-box svg g[stroke="#e6edf3"] { stroke: #223650; }
:root[data-theme="dark"] .topo svg rect[fill="#fff"] { fill: #16283f; }
:root[data-theme="dark"] .topo svg rect[fill="#eaf2f8"] { fill: #1b3452; }
:root[data-theme="dark"] .topo svg rect[fill="#14253d"] { fill: #2c557f; }
:root[data-theme="dark"] .topo svg rect[fill="#e6f0ee"] { fill: #15302b; }
:root[data-theme="dark"] .topo svg text[fill="#14253d"] { fill: #e9f1f8; }
:root[data-theme="dark"] .topo svg text[fill="#627184"] { fill: #9fb2c6; }
:root[data-theme="dark"] .topo svg path[stroke="#477da8"] { stroke: #7fb0d8; }
:root[data-theme="dark"] .topo svg g[fill="#14253d"] { fill: #eaf2f9; }
:root[data-theme="dark"] .topo svg g[fill="#627184"] { fill: #aebfd0; }
:root[data-theme="dark"] .topo svg rect[stroke="#c9d6e2"] { stroke: #3a5778; }
:root[data-theme="dark"] .topo svg rect[stroke="#a8c3d8"] { stroke: #4f7aa3; }
:root[data-theme="dark"] .topo svg rect[stroke="#b9d3cd"] { stroke: #3f7a6b; }
:root[data-theme="dark"] .topo svg marker path { fill: #7fb0d8; }
:root[data-theme="dark"] .topo svg circle[fill="#8fd1b8"] { fill: #8fd1b8; }
:root[data-theme="dark"] .card-art svg, :root[data-theme="dark"] .doc-cover svg, :root[data-theme="dark"] .page-art svg { filter: brightness(.78) saturate(.95); }
:root[data-theme="dark"] .shot img { filter: brightness(.88); }
:root[data-theme="dark"] .brand-mark { box-shadow: 0 0 0 1px #2f4766; }
:root[data-theme="dark"] ::selection { background: #3a6d99; color: #fff; }


/* ---- account link + auth pages ---- */
.nav-links a.nav-account { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--head); font-weight: 600; background: var(--paper); transition: border-color .18s, transform .18s; }
.nav-links a.nav-account:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.nav-account svg { width: 18px; height: 18px; }
@media (max-width: 620px) { .nav-links { gap: 8px; } .nav-links a.nav-account { padding: 0; width: 40px; height: 40px; justify-content: center; } .nav-links a.nav-account span { display: none; } }
.nav-links a, .brand-name { white-space: nowrap; }
.nav-links { gap: 20px; }
@media (max-width: 1180px) { .nav-links a:not(.nav-cta):not(.nav-account) { display: none; } .nav-links { gap: 10px; } }
@media (max-width: 620px) {
  .brand { gap: 9px; } .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .brand-name { font-size: 14px; } .brand-sub { display: none; }
  .nav-links { gap: 6px; } .theme-toggle, .nav-links a.nav-account { width: 36px; height: 36px; }
  .nav-cta { padding: 8px 11px; font-size: 12px; }
}
@media (max-width: 440px) { .brand-name { display: none; } }
.auth { display: grid; place-items: start center; padding: 56px 0 90px; }
.auth .form-card { width: min(480px, 100%); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 96px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.pw-toggle:hover { background: var(--blue-light); }
.alert { display: none; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55; background: #fdecea; border: 1px solid #f1c3bd; color: #8a2d26; }
.alert.show { display: flex; animation: rise .35s ease both; }
.alert svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
.alert b { display: block; margin-bottom: 2px; }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.link-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
.link-row a { color: var(--blue); font-weight: 600; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }
.auth-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--blue); font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.check-row a { color: var(--blue); }
:root[data-theme="dark"] .alert { background: #3a1c1c; border-color: #6b3030; color: #f2b9b3; }
:root[data-theme="dark"] .nav-links a.nav-account { background: transparent; color: #dbe7f3; }
:root[data-theme="dark"] .nav-links a.nav-account:hover { color: #9cc6e6; }


/* ---- statistics ---- */
.window-tag { white-space: nowrap; display: inline-block; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 22px 22px 20px; }
.stat-tile small { display: block; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.stat-tile b { display: block; margin: 8px 0 4px; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; color: var(--head); font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: 13px; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.stat-card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 22px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 210px; margin-top: 18px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { display: block; width: 100%; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #77a8d0, var(--blue)); transform-origin: bottom; transition: filter .18s; }
.bar:hover i { filter: brightness(1.15); }
.bv { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .18s; }
.bar:hover .bv { opacity: 1; }
.bm { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.top-list { display: grid; gap: 16px; margin-top: 18px; }
.top-name { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); }
.top-name b { color: var(--head); font-variant-numeric: tabular-nums; }
.top-bar { height: 8px; border-radius: 99px; background: var(--blue-light); margin-top: 7px; overflow: hidden; }
.top-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--blue)); }
@media (max-width: 950px) { .stat-tiles { grid-template-columns: 1fr 1fr; } .stats-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .stat-tiles { grid-template-columns: 1fr; } .bars { gap: 4px; } .bm { font-size: 10px; letter-spacing: 0; } .bv { display: none; } }
