:root {
  --bg: #ffffff;
  --surface: #f4f6fb;
  --text: #121826;
  --muted: #5a6478;
  --accent: #2f6bff;
  --accent-text: #ffffff;
  --border: #e2e6ef;
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d111a;
    --surface: #161c29;
    --text: #eef1f7;
    --muted: #9aa4b8;
    --accent: #5c8cff;
    --border: #252d3d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 72px; text-align: center; }
.hero .logo { width: 96px; height: 96px; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 1.6rem; margin: 0 0 24px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

/* Text pages */
.page { padding-top: 56px; padding-bottom: 72px; max-width: 720px; }
.page h1 { font-size: 2.2rem; margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 32px; }
.page h2 { font-size: 1.25rem; margin: 32px 0 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
