:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --text: #1b1339;
  --text-muted: #5f5881;
  --primary: #5b3dc4;
  --primary-dark: #3f2a8e;
  --accent: #f5c23a;
  --border: #e5e1f0;
  --shadow: 0 10px 32px -12px rgba(63, 42, 142, 0.25);
  --radius: 18px;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120d23;
    --surface: #1c1538;
    --text: #f5f3fc;
    --text-muted: #b8b0d8;
    --primary: #8a6df0;
    --primary-dark: #6849d8;
    --border: #2b2250;
    --shadow: 0 10px 32px -12px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  color: white;
}

.brand .accent {
  color: var(--accent);
}

.brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 1px 2px 0;
  transform: translateY(-2px);
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

nav a:hover {
  color: white;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  text-align: center;
  padding: 40px 20px 48px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero .cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -12px rgba(63, 42, 142, 0.35);
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.doc h1 {
  font-size: 32px;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.doc .updated {
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 20px;
  margin: 32px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc h3 {
  font-size: 16px;
  margin: 20px 0 4px;
}

.doc p,
.doc li {
  color: var(--text);
  font-size: 15.5px;
}

.doc ul {
  padding-left: 20px;
}

.doc a {
  color: var(--primary);
  font-weight: 600;
}

.doc strong {
  color: var(--text);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.contact-card .email {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--bg);
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
}

.contact-card .email:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer a {
  color: var(--text-muted);
  margin: 0 8px;
}
