:root {
  --bg: #121418;
  --bg-2: #171a1f;
  --surface: #1d2127;
  --surface-2: #242932;
  --line: #313844;
  --text: #e9ecf0;
  --muted: #aab3bf;
  --accent: #7fd1e3;
  --accent-strong: #a6e4f1;
  --accent-ink: #0d1a1f;
  --warm: #f2c46d;
  --focus: #ffd866;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 520px at 80% -10%, rgba(127, 209, 227, .10), transparent 60%),
    radial-gradient(900px 480px at -10% 10%, rgba(242, 196, 109, .06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--focus);
  color: #111;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.panel-title { font-size: 1.2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 24, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .2px;
}
.nav-list, .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
}
.nav-list a:hover { color: var(--text); background: var(--surface); }
.nav-list a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-list a.nav-download { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.nav-list a.nav-download:hover { background: var(--accent-strong); }
.nav-list a.nav-download[aria-current="page"] { box-shadow: inset 0 0 0 2px #fff; }

/* Sections */
.hero { padding: 72px 0 56px; }
.page-head { padding: 56px 0 24px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: 0 0 18px; max-width: 18ch; }
.page-head h1 { max-width: 22ch; font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 66ch; margin: 0 0 28px; }
p { margin: 0 0 14px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.25;
}
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.button-secondary:hover { background: var(--surface-2); color: #fff; }
.button-large { font-size: 1.15rem; padding: 18px 28px; }
.button svg { flex: none; }
.fine { color: var(--muted); font-size: .92rem; margin-top: 12px; }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding: 0; margin: 0; list-style: none; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(127, 209, 227, .12);
  color: var(--accent);
  margin-bottom: 14px;
}
.card p { color: var(--muted); }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.1fr .9fr; } }

.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 14px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 20px 72px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.steps p { color: var(--muted); }
.steps p:last-child { margin-bottom: 0; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
caption { text-align: left; padding: 14px 16px; color: var(--muted); caption-side: top; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); border-top: none; }
tbody th { font-weight: 600; }
td { color: var(--muted); }

/* Diagram */
.flow { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.flow strong { display: block; color: var(--text); margin-bottom: 4px; }
.flow span { color: var(--muted); }

/* Callouts */
.note {
  border-left: 4px solid var(--warm);
  background: rgba(242, 196, 109, .07);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
}
.note p:last-child { margin-bottom: 0; }

.download-box {
  background: linear-gradient(160deg, #1f2a33, var(--surface));
  border: 1px solid #355063;
  border-radius: 20px;
  padding: 28px;
}
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details p { color: var(--muted); }

/* Team */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); list-style: none; padding: 0; margin: 0; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.person .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--accent-ink);
  background: var(--accent);
}
.person.warm .avatar { background: var(--warm); }
.role { color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.person.warm .role { color: var(--warm); }
.person p { color: var(--muted); }

.cta {
  margin: 24px 0 64px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 24px 0; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-row p { margin: 0; }
.footer-links a { color: var(--muted); padding: 4px 8px; }
.footer-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .button, .nav-list a { transition: background-color .15s ease, color .15s ease; }
}
@media (forced-colors: active) {
  .button, .card, .panel, .steps > li { border: 1px solid CanvasText; }
}
