:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
  --green: #3fb950;
  --red: #f85149;
}

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

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 4rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, #161b22 0%, var(--bg) 100%);
}
header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
header .tld { color: var(--accent); }
.tagline {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* Nav */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .container {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* Sections */
section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-child { border-bottom: none; }
h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem;
}
h4 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.4rem;
  color: var(--accent);
}
p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}
a { color: var(--accent); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.card.featured {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.card h3 { margin-top: 0; font-size: 1.4rem; }
.card .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.card ul { list-style: none; }
.card ul li {
  padding: 0.3rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}
.card ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin: 1rem 0;
}
.feature-list li {
  padding: 0.4rem 0;
  color: var(--text-muted);
}
.feature-list li::before {
  content: '\2713';
  color: var(--green);
  font-weight: bold;
  margin-right: 0.6rem;
}

/* Service blocks */
.service-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.service-block h3 { margin-top: 0; }

/* Code */
pre {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0.8rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}
.service-block pre { background: var(--bg); }
code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  color: var(--text);
}
p code, li code, td code {
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 600; }
td { color: var(--text-muted); }

/* Rules */
.rules {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.rule {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}
.rule.bad {
  background: rgba(248, 81, 73, 0.1);
  border-left: 3px solid var(--red);
  color: var(--text-muted);
}
.rule.good {
  background: rgba(63, 185, 80, 0.1);
  border-left: 3px solid var(--green);
  color: var(--text-muted);
}

/* Ordered lists */
ol { margin: 0.8rem 0; padding-left: 1.5rem; }
ol li { padding: 0.3rem 0; color: var(--text-muted); }

/* Note */
.note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 2rem; }
  .tagline { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  nav a { padding: 0.75rem 0.6rem; font-size: 0.8rem; }
}
