:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --text: #1c2333;
  --muted: #5b6475;
  --accent: #2f5bea;
  --accent-text: #ffffff;
  --border: #e2e6ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --bg-alt: #161d2d;
    --text: #e8ecf4;
    --muted: #a3acbf;
    --accent: #6d8dff;
    --accent-text: #0f1420;
    --border: #273047;
  }
}

* { box-sizing: border-box; }

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

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo span { color: var(--accent); }

nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
}

nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--text); }

.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { opacity: 0.9; }

.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { margin-top: 0; font-size: 1.75rem; }

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

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

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
