/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #14181f;
  --ink-soft: #4a5160;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --border: #e6e8ec;
  --maxw: 1080px;
  --radius: 14px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav { display: flex; gap: 28px; }

.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 96px;
  background: radial-gradient(120% 120% at 50% 0%, #eef3fc 0%, #ffffff 60%);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  max-width: 16ch;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 0 40px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

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

.section-alt .card { background: #ffffff; }

.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Brand grid ---------- */
.brand-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.brand {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact { text-align: center; max-width: 640px; }
.contact p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-links a { color: var(--ink-soft); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Legal / prose pages ---------- */
.legal {
  max-width: 740px;
  padding: 64px 0 88px;
}

.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); }

.legal .updated { color: var(--ink-soft); margin: 0 0 40px; }

.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.legal p, .legal li { color: var(--ink-soft); }

.legal ul { padding-left: 22px; }

.legal a { color: var(--accent); }

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-weight: 500;
}
.back-link:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.85rem; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
}
