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

:root {
  --brand-blue:   #4F8EF7;
  --brand-purple: #7B5EEA;
  --text:         #1a1a2e;
  --muted:        #6b7280;
  --border:       #e5e7eb;
  --bg:           #f9fafb;
  --white:        #ffffff;
  --radius:       12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Nav ──────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 800px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
  color: var(--white);
  padding: 72px 24px 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hero p {
  font-size: 17px;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

/* ── Content ──────────────────────────────────────── */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Index card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(79,142,247,0.12);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card p  { font-size: 14px; color: var(--muted); line-height: 1.5; }
.card .arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Legal pages */
.meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 10px;
  color: var(--text);
}
.legal h2:first-child { margin-top: 0; }
.legal p  { margin-bottom: 14px; color: #374151; }
.legal ul {
  margin: 0 0 14px 20px;
  color: #374151;
}
.legal ul li { margin-bottom: 6px; }
.legal a  { color: var(--brand-blue); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--text); }
