:root {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --badge-bg: rgba(56, 189, 248, 0.1);
  --badge-border: rgba(56, 189, 248, 0.3);
  --code-bg: #090d16;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --badge-bg: rgba(2, 132, 199, 0.08);
    --badge-border: rgba(2, 132, 199, 0.2);
    --code-bg: #f1f5f9;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

header {
  border-bottom: 1px solid var(--border);
  background-color: var(--card-bg);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--accent);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.25rem;
  transition: color 0.15s ease;
}

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

main {
  flex: 1;
}

.hero {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

ul, ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text);
}

li {
  margin-bottom: 0.4rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background-color: var(--code-bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.contact-box {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

footer {
  border-top: 1px solid var(--border);
  background-color: var(--card-bg);
  padding: 2rem 1.5rem;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}
