:root {
  color-scheme: dark light;
  --bg: #1b1029;
  --bg-alt: #23153a;
  --surface: #2c1b47;
  --border: #45306a;
  --text: #f4ecff;
  --muted: #cbbde3;
  --accent: #c9a6ff;
  --accent-strong: #e0ccff;
  --on-accent: #1b1029;
  --focus: #ffd86b;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf7ff;
    --bg-alt: #f1eafc;
    --surface: #ffffff;
    --border: #d9cbef;
    --text: #22143a;
    --muted: #4f3f6b;
    --accent: #6a3fb5;
    --accent-strong: #52289b;
    --on-accent: #ffffff;
    --focus: #b35c00;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--accent-strong);
}

a:hover {
  color: var(--accent);
}

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

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 720px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0;
  background:
    radial-gradient(circle at 85% 15%, rgb(201 166 255 / 22%), transparent 45%),
    radial-gradient(circle at 10% 90%, rgb(140 90 220 / 18%), transparent 40%),
    var(--bg);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.01em;
}

.tagline {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--accent-strong);
  font-weight: 600;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}

.button-ghost {
  color: var(--accent-strong);
}

.button-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card,
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p,
.step p {
  color: var(--muted);
  margin: 0;
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.env-banner {
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 700;
  background: #f5c518;
  color: #111;
}

.env-banner a {
  color: #111;
  text-decoration: underline;
}
