:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #576071;
  --accent: #3b66f5;
  --accent-soft: #e8edff;
  --border: #e1e5ee;
  --code-bg: #f1f3f8;
  --shadow: 0 18px 40px rgba(31, 36, 48, 0.08);
}

* {
  box-sizing: border-box;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 32px 0 64px;
}

header {
  background: linear-gradient(130deg, #1f2430, #3142a0);
  color: #fff;
  padding: 28px 0;
}

header .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav a {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.card h2,
.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.section-subtitle {
  margin-top: 0;
  color: var(--muted);
}

.code-block {
  background: var(--code-bg);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: var(--code-bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.callout {
  border-left: 4px solid var(--accent);
  background: #f4f6ff;
  padding: 16px;
  border-radius: 12px;
  color: var(--text);
}

.callout strong {
  color: var(--accent);
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 6px;
}

footer {
  margin-top: 56px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.page-header {
  padding: 28px 0 0;
}

.page-header h1 {
  margin: 0 0 8px;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.section {
  margin-top: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

@media (max-width: 720px) {
  header .container {
    align-items: flex-start;
  }

  .nav {
    gap: 8px;
  }
}
