:root {
  --indigo: #3D5AFE;
  --indigo-dark: #2D3FB8;
  --amber: #FFB300;
  --amber-dark: #FF8F00;
  --dark: #1A1F36;
  --gray: #5C6678;
  --light: #F5F7FB;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

code {
  background: rgba(61, 90, 254, 0.08);
  color: var(--indigo-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: var(--white);
  padding: 0 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,179,0,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.08) 0%, transparent 35%);
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.brand {
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  color: var(--white);
  letter-spacing: -0.5px;
}

.brand-doc { color: var(--white); }
.brand-shelf { color: var(--amber); }

.nav-links a {
  color: rgba(255,255,255,0.85);
  margin-left: 24px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 24px 0;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hl { color: var(--amber); }

.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0 auto 32px;
  font-weight: 500;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-primary, .cta-secondary {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta-primary {
  background: var(--amber);
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(255,179,0,0.4);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,179,0,0.5);
  text-decoration: none;
}

.cta-secondary {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.32);
}

.cta-secondary:hover {
  background: rgba(255,255,255,0.22);
  text-decoration: none;
}

.pillars {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ─── Sections ─────────────────────────────────────────────────── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  font-size: 15px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 500;
}

/* ─── Features grid ────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(61,90,254,0.10);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.55;
}

/* ─── How it works ─────────────────────────────────────────────── */
.how {
  background: var(--white);
  margin-top: 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  max-width: none;
}

.how > * { max-width: 800px; margin-left: auto; margin-right: auto; }

.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 60px;
  background: var(--light);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--indigo);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.steps li strong { font-weight: 900; }

/* ─── Privacy block ────────────────────────────────────────────── */
.privacy-block {
  text-align: center;
  background: linear-gradient(135deg, rgba(61,90,254,0.04), rgba(255,179,0,0.04));
  border-radius: 24px;
  margin: 48px auto;
  max-width: 1000px;
}

.privacy-block p {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
}

.privacy-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-weight: 800;
  font-size: 14px;
}

/* ─── Footer ───────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}

.footer-meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(92,102,120,0.7);
  font-weight: 500;
}

/* ─── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links a { margin-left: 16px; font-size: 13px; }
  .hero-content { padding-top: 30px; }
  .hero { padding-bottom: 60px; }
  section { padding: 60px 20px; }
  .feature-card { padding: 20px; }
}

/* ─── Article (privacy / terms) ────────────────────────────────── */
.article {
  max-width: 720px;
  background: var(--white);
  margin: 40px auto;
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
}

.article h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.article .last-updated {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.article h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 28px 0 8px;
  text-align: left;
}

.article p, .article li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--dark);
  font-weight: 500;
}

.article ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.article a.back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 800;
  font-size: 13px;
}

/* ─── "Who's it for" section ─────────────────────────────────────── */
.who {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  text-align: center;
}

.who h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

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

.who-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.who-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(61,90,254,0.32);
}

.who-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.who-card h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
}

.who-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.55;
}
