:root {
  color-scheme: light dark;
  --background: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-muted: #eef2ff;
  --text: #151827;
  --muted: #5f6678;
  --border: #dfe4ef;
  --accent: #3565f3;
  --accent-strong: #244fd1;
  --success: #087b5a;
  --shadow: 0 18px 55px rgba(40, 54, 94, 0.11);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #10131c;
    --surface: rgba(27, 31, 44, 0.96);
    --surface-muted: #222943;
    --text: #f4f6ff;
    --muted: #b4bbcc;
    --border: #343b50;
    --accent: #7c9cff;
    --accent-strong: #a8bcff;
    --success: #63d6af;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(53, 101, 243, 0.12), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.page,
.site-footer {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 760;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--accent-strong);
}

.page {
  padding-block: clamp(2.4rem, 7vw, 5.25rem);
}

.hero,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(1.6rem, 5vw, 3.25rem);
  margin-bottom: 1.4rem;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.45rem);
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.45rem 0 0.4rem;
}

p,
ul,
ol {
  margin-top: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  max-width: 66ch;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.card {
  padding: clamp(1.35rem, 4vw, 2.3rem);
  margin-top: 1rem;
}

.notice {
  background: var(--surface-muted);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.success {
  color: var(--success);
  font-weight: 680;
}

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

.button {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 700;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
}

.button.secondary {
  background: var(--surface-muted);
  color: var(--accent-strong);
}

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

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .site-header {
    position: static;
  }
}

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