:root {
  color-scheme: light;
  --background: #f6f3ed;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #17181a;
  --muted: #656155;
  --border: #d9d1c3;
  --brand: #5b57e6;
  --brand-strong: #4b47d7;
  --brand-soft: rgba(91, 87, 230, 0.12);
  --success: #198754;
  --shadow: 0 14px 34px rgba(27, 24, 18, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top center, rgba(91, 87, 230, 0.08), transparent 34%),
    var(--background);
  color: var(--text);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--background) 88%, white 12%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header-inner,
.content-wrap,
.footer-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #6a66f0, #4f4bdc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(91, 87, 230, 0.24);
}

.brand-mark img {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(91, 87, 230, 0.18);
}

.hero {
  padding: 48px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.hero h1,
.article h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p,
.article-deck {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 72px;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 92%, white 8%);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card p,
.meta,
.lede,
.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 78%, var(--background));
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.article-wrap {
  width: min(100%, calc(var(--content-width) + 48px));
  margin: 0 auto;
  padding: 42px 24px 88px;
}

.article-surface {
  border: 1px solid var(--border);
  border-radius: 36px;
  background: color-mix(in srgb, var(--surface) 94%, white 6%);
  box-shadow: var(--shadow);
  padding: 34px;
}

.breadcrumbs,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta {
  margin-top: 22px;
}

.article {
  margin-top: 22px;
}

.article-body {
  margin-top: 36px;
}

.article-body h2 {
  margin: 40px 0 14px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.quote-box,
.cta-box {
  margin-top: 36px;
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 24px;
}

.quote-box {
  background: color-mix(in srgb, var(--surface-strong) 70%, var(--background));
}

.cta-box {
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand-soft) 52%, white 48%), rgba(255,255,255,0.92));
}

.cta-box h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.button-primary {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(91, 87, 230, 0.18);
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li + li {
  margin-top: 14px;
}

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .article-surface {
    padding: 24px;
    border-radius: 28px;
  }

  .hero p,
  .article-deck {
    font-size: 18px;
  }

  .article-body h2 {
    font-size: 26px;
  }
}
