:root {
  --bg: #ffffff;
  --surface: #f5f6ff;
  --text: #14142b;
  --muted: #55587a;
  --accent: #4338ca;
  --on-accent: #ffffff;
  --border: #e3e5f5;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --surface: #181a33;
    --text: #eceefb;
    --muted: #a3a7c9;
    --accent: #818cf8;
    --on-accent: #0f1020;
    --border: #2a2d52;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 0;
  display: inline-block;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--accent);
}

/* content */
main {
  flex: 1;
}

.hero {
  padding: 72px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.4px;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 640px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

section {
  padding: 32px 0;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

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

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
}

.page-title {
  padding: 56px 0 8px;
}

.prose {
  max-width: 680px;
  padding-bottom: 48px;
}

.prose h2 {
  margin-top: 32px;
}

.prose ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 6px;
}

address {
  font-style: normal;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
  padding: 28px 0;
  font-size: 15px;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
}

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

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding-top: 48px;
  }
  .button {
    width: 100%;
    text-align: center;
  }
}
