:root {
  --bg-deep: #0b1120;
  --bg-card: rgba(19, 28, 49, 0.88);
  --bg-elevated: #17233d;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --radius-lg: 14px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at top right, #172554 0%, transparent 42%),
    var(--bg-deep);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: #7dd3fc;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

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

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

.hero {
  display: grid;
  gap: 22px;
  padding: 28px 0 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 16ch;
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
}

.lede {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-weight: 750;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.note {
  color: var(--text-muted);
  font-size: 13px;
}

.grid,
.steps,
.legal-links {
  display: grid;
  gap: 12px;
}

.grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0;
}

.card,
.english,
.prose {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.card,
.english {
  padding: 18px;
}

.card h2,
.english h2,
.prose h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card p,
.english p,
.prose p,
.prose li {
  color: var(--text-muted);
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 28px;
}

.step {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.step span {
  display: block;
  margin-bottom: 6px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 750;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.formats li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.english {
  margin-bottom: 28px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.prose {
  margin: 12px 0 36px;
  padding: 22px;
}

.prose h1 {
  max-width: none;
  font-size: 34px;
}

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

.prose ul {
  padding-left: 18px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .grid,
  .steps {
    display: grid;
    grid-template-columns: 1fr;
  }
}
