:root {
  color-scheme: dark;
  --bg: #0a0e11;
  --surface: #11171b;
  --surface-2: #172026;
  --text: #f3f7f6;
  --muted: #aab8b5;
  --line: #2b373b;
  --brand: #36d5aa;
  --brand-dark: #0e9f7e;
  --accent: #f5bd4f;
  --danger: #f97068;
  --max: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #eaf0ee;
  --text: #14201d;
  --muted: #596965;
  --line: #ced9d6;
  --brand: #087f67;
  --brand-dark: #06644f;
  --accent: #9d6600;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 14px;
}
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}
.nav-shell {
  min-height: 68px; max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 19px; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--brand); color: #06110e; border-radius: 6px;
}
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: 14px; font-weight: 620; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-button svg, .button svg { width: 17px; height: 17px; }
.menu-button { display: none; }
.button {
  min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-weight: 680;
}
.button.primary { background: var(--brand); color: #06110e; border-color: var(--brand); }
.button.primary:hover { background: color-mix(in srgb, var(--brand) 88%, white); }
.hero {
  min-height: 660px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-color: #080c0f;
  background-image: linear-gradient(90deg, rgba(7,11,13,.96) 0%, rgba(7,11,13,.82) 45%, rgba(7,11,13,.22) 100%), url("./dashboard.png");
  background-repeat: no-repeat; background-position: center, 68% 56%; background-size: cover, min(1380px, 116vw) auto;
}
.hero-inner, .page-hero-inner, .section-inner { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero-inner { min-height: 660px; display: flex; align-items: center; padding-top: 72px; padding-bottom: 90px; }
.hero-copy { width: min(620px, 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 20px 0; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: 0; max-width: 850px; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero .lead { color: #c6d2cf; max-width: 590px; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-line { margin-top: 40px; display: flex; gap: 24px; flex-wrap: wrap; color: #b4c2bf; font-size: 13px; }
.trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.trust-line svg { width: 16px; color: var(--brand); }
.page-hero { padding: 112px 0 78px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(42px, 5.7vw, 72px); }
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.section h3 { font-size: 20px; }
.section p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature {
  min-height: 230px; padding: 28px; background: var(--bg);
}
.alt .feature { background: var(--surface); }
.feature-icon {
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 30px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--brand); background: var(--surface-2);
}
.feature-icon svg { width: 19px; height: 19px; }
.status {
  display: inline-flex; align-items: center; min-height: 24px; margin-bottom: 18px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.status.live, .status.beta { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.status.development { color: var(--accent); }
.status.planned { color: var(--muted); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.flow { border-left: 1px solid var(--line); }
.flow-item { position: relative; padding: 0 0 32px 34px; }
.flow-item::before {
  content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
}
.flow-item strong { display: block; margin-bottom: 6px; }
.metric-band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-bottom: 1px solid var(--line); }
.metric { padding: 30px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 24px; }
.metric span { color: var(--muted); font-size: 13px; }
.architecture {
  padding: 30px; border: 1px solid var(--line); background: var(--surface); overflow-x: auto;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre;
}
.note { padding: 22px; border-left: 3px solid var(--accent); background: var(--surface-2); color: var(--muted); }
.cta { background: var(--brand); color: #07120f; }
.cta .section-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: #123c32; }
.cta .button { border-color: #123c32; background: transparent; color: #07120f; }
.site-footer { padding: 52px 0 30px; background: #070a0c; color: #f2f6f5; }
.footer-grid { max-width: var(--max); margin: auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-col strong { display: block; margin-bottom: 14px; }
.footer-col a { display: block; margin: 8px 0; color: #9eaca9; font-size: 14px; }
.footer-note { max-width: var(--max); margin: 42px auto 0; padding: 24px 24px 0; border-top: 1px solid #263033; color: #83918e; font-size: 12px; }

@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 60px; flex-direction: column; align-items: stretch;
    padding: 18px; background: var(--surface); border: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .menu-button { display: grid; }
  .nav-actions .button { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .metric-band { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nav-shell { padding: 0 16px; gap: 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { min-height: 710px; background-position: center, 61% 100%; background-size: cover, 920px auto; }
  .hero-inner { min-height: 710px; align-items: flex-start; padding: 72px 18px 230px; }
  .hero h1 { font-size: 48px; }
  .hero-actions .button { width: 100%; }
  .page-hero { padding: 82px 0 54px; }
  .page-hero-inner, .section-inner { padding-left: 18px; padding-right: 18px; }
  .section { padding: 58px 0; }
  .grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .metric-band { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .cta .section-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
