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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #7c6af7;
  --accent-dim: #3d3580;
  --text: #e2e2f0;
  --muted: #6b6b88;
  --code-bg: #0d0d16;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
header, main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding-top: 80px;
  padding-bottom: 72px;
  text-align: center;
}

.logo {
  display: inline-block;
  margin-bottom: 32px;
}

.logo img {
  height: 256px;
  width: auto;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

h1 span { color: var(--accent); }

.tagline {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sections */
section { margin-bottom: 72px; }

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

p { color: var(--muted); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* Property grid */
.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.prop {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.prop-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.prop p { font-size: 0.9rem; }

/* Note anatomy */
.note-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

.note-line {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.note-line:last-child { border-bottom: none; }

.note-field {
  min-width: 100px;
  color: var(--accent);
  font-weight: 600;
}

.note-type {
  min-width: 160px;
  color: #a78bfa;
}

.note-desc {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
}

/* Code snippet */
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.83rem;
  line-height: 1.7;
  color: #c4c4e0;
}

.kw { color: #7c6af7; }
.cls { color: #a78bfa; }
.val { color: #6ee7b7; }
.cmt { color: #444466; font-style: italic; }

/* Use cases */
.usecases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 72px;
}
