:root {
  color-scheme: light;
  --bg: #f7f4fb;
  --bg-elevated: rgba(255, 252, 255, 0.78);
  --panel: rgba(255, 251, 255, 0.9);
  --panel-strong: #fcf7ff;
  --text: #2f3347;
  --text-strong: #22263a;
  --muted: #6f748f;
  --line: rgba(135, 145, 179, 0.2);
  --line-strong: rgba(135, 145, 179, 0.3);
  --brand: #b592e5;
  --brand-2: #8dcfe0;
  --brand-3: #f0b7c6;
  --brand-soft: rgba(181, 146, 229, 0.18);
  --success: #76b9a5;
  --warning: #d9b57b;
  --danger: #d78ea2;
  --shadow: 0 20px 55px rgba(112, 100, 145, 0.12);
  --shadow-soft: 0 10px 28px rgba(112, 100, 145, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(141, 207, 224, 0.26), transparent 24%),
    radial-gradient(circle at top right, rgba(181, 146, 229, 0.24), transparent 28%),
    radial-gradient(circle at bottom, rgba(240, 183, 198, 0.18), transparent 30%),
    linear-gradient(180deg, #f9f6fc 0%, #f5f1f8 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(249, 246, 252, 0.72);
  border-bottom: 1px solid rgba(135, 145, 179, 0.16);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-strong);
  background: linear-gradient(135deg, #e8d8fb 0%, #d8eff5 55%, #f7dbe3 100%);
  border: 1px solid rgba(181, 146, 229, 0.28);
  box-shadow: 0 12px 30px rgba(181, 146, 229, 0.18);
}

.brand-copy strong,
.brand-copy span {
  display: block;
  line-height: 1.1;
}

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

.brand-copy span {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-strong);
  border-color: rgba(181, 146, 229, 0.26);
  background: rgba(255, 255, 255, 0.66);
}

main {
  padding: 52px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-aside {
  padding: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d659f;
  background: rgba(255, 250, 255, 0.92);
  border: 1px solid rgba(181, 146, 229, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
}

h1, h2, h3 { line-height: 1.08; margin: 0 0 12px; color: var(--text-strong); }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.5rem, 2vw, 2rem); }
h3 { font-size: 1.08rem; }

.lead {
  color: #5f647e;
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  transition: 160ms ease;
}

.button.primary {
  color: var(--text-strong);
  background: linear-gradient(135deg, #e5d5fa 0%, #f8dde6 52%, #d8eff5 100%);
  border-color: rgba(181, 146, 229, 0.18);
  box-shadow: var(--shadow-soft);
}

.button.secondary {
  color: var(--text-strong);
  background: rgba(255,255,255,0.62);
}
.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.meta-list,
.stat-list,
.card-grid,
.quick-links,
.surface-grid,
.checklist {
  display: grid;
  gap: 16px;
}

.meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
.stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
.quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.surface-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; }
.checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }

.card,
.stat,
.mini-card,
.surface-card,
.check-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,252,255,0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(112, 100, 145, 0.05);
}

.surface-card {
  text-decoration: none;
  transition: 160ms ease;
}

.surface-card:hover,
.surface-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(181, 146, 229, 0.32);
  box-shadow: var(--shadow-soft);
}

.card p,
.stat p,
.mini-card p,
.surface-card p,
.check-item p,
.muted {
  color: var(--muted);
  margin: 0;
}

.stat strong,
.card strong,
.mini-card strong,
.surface-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-strong);
}

.section {
  margin-top: 26px;
  padding: 28px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.kicker {
  color: #8d76aa;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(118, 185, 165, 0.3);
  color: #527d70;
  background: rgba(118, 185, 165, 0.12);
  font-size: 0.92rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

footer.site-footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 24px;
}

footer.site-footer a { color: #8d76aa; }

.code-block {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(135, 145, 179, 0.22);
  background: rgba(250, 246, 252, 0.92);
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #665780;
  overflow-x: auto;
}

.small-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #8d76aa;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

::selection {
  background: rgba(181, 146, 229, 0.24);
  color: var(--text-strong);
}

@media (max-width: 1000px) {
  .hero,
  .surface-grid,
  .card-grid,
  .meta-list,
  .checklist,
  .quick-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-aside,
  .section { padding: 24px; }

  .meta-list,
  .surface-grid,
  .card-grid,
  .checklist,
  .quick-links,
  .stat-list { grid-template-columns: 1fr; }

  main { padding-top: 28px; }
}
