:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --text: #eceef2;
  --muted: #9aa3b2;
  --accent: #e8b84a;
  --accent-ink: #1a1405;
  --border: #2a2f3a;
  --radius: 14px;
  --maxw: 1040px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-2: #f0eee8;
    --text: #15171c;
    --muted: #5b6372;
    --accent: #b6841a;
    --accent-ink: #ffffff;
    --border: #e1ded4;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand span { color: var(--accent); }
nav a { margin-left: 18px; color: var(--muted); font-size: 0.95rem; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 84px 0 56px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 18ch;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 0 0 28px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  margin-right: 10px;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

section { padding: 56px 0; }
section h2 { font-size: 1.7rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step::before {
  counter-increment: s;
  content: counter(s);
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 10px;
}
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.about { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.about p { margin: 0 0 12px; color: var(--muted); }
.about p:last-child { margin: 0; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); margin-left: 16px; }
footer a:first-child { margin-left: 0; }

/* Legal pages */
.legal { padding: 56px 0 72px; max-width: 760px; }
.legal h1 { font-size: 2rem; max-width: none; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--muted); }

@media (max-width: 560px) {
  nav a { margin-left: 12px; font-size: 0.9rem; }
  .hero { padding-top: 56px; }
}

/* ---- Landing page additions ---- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

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

.tag.live { color: var(--accent); border: 1px solid var(--border); background: transparent; }
.tag.soon { color: var(--muted); border: 1px dashed var(--border); background: transparent; }

.btn.disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.btn.disabled:hover { filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.actions .btn { margin-right: 0; }
.hero .btn { margin-bottom: 10px; }
.note { font-size: 0.9rem; border-left: 2px solid var(--border); padding-left: 12px; }

.principles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 22px; }
.principles .card p { margin: 0; }

.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.linklist a {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; color: var(--text);
}
.linklist a:hover { border-color: var(--accent); text-decoration: none; }
.linklist span { color: var(--muted); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 560px) {
  .brand { white-space: nowrap; }
  nav a:nth-child(-n+2) { display: none; }
}
