:root {
  --bg: #f4f2ff;
  --bg-soft: #ebe8ff;
  --surface: rgba(253, 252, 255, 0.88);
  --border: rgba(110, 90, 230, 0.1);
  --text: #3d3654;
  --muted: #756c92;
  --primary: #6e5ae6;
  --primary-dark: #4c3f91;
  --shadow: 0 16px 48px rgba(76, 63, 145, 0.08), 0 4px 12px rgba(76, 63, 145, 0.05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(175, 163, 255, 0.3), transparent 30%),
    radial-gradient(circle at bottom right, rgba(110, 90, 230, 0.22), transparent 26%),
    linear-gradient(180deg, #f4f2ff 0%, #e9e5ff 50%, #f4f2ff 100%);
  line-height: 1.72;
}

a { color: var(--primary); text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 20px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 136px; height: auto; }

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

.pill,
.cta,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.pill,
.chip {
  padding: 9px 14px;
  background: rgba(110, 90, 230, 0.08);
  border: 1px solid var(--border);
  color: var(--primary);
}

.cta {
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--primary), #8c7ae6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(110, 90, 230, 0.28);
}

.hero,
.card,
.article,
.footer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
}

.breadcrumbs {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 28px 0 12px; }
h3 { font-size: 1.15rem; margin: 18px 0 8px; }

.lead { font-size: 1.06rem; color: var(--muted); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 22px;
}

.card,
.article {
  padding: 24px;
}

.article {
  margin-top: 20px;
}

.article p,
.article li,
.card p { color: var(--muted); }

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

.highlight {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(110, 90, 230, 0.08), rgba(175, 163, 255, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.footer {
  margin-top: 28px;
  padding: 24px;
}

.footer-links,
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.muted { color: var(--muted); }

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .hero, .card, .article, .footer { padding: 20px; }
}