:root {
  --brand: #6c3fc5;
  --brand-dark: #4a2a8a;
  --brand-light: #f3eefc;
  --accent: #1aa6a0;
  --accent-dark: #0f7d78;
  --ink: #1f2330;
  --muted: #5d6377;
  --line: #e7e9f2;
  --bg: #f7f8fc;
  --panel: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(31, 35, 48, 0.06), 0 2px 8px rgba(31, 35, 48, 0.04);
  --shadow-md: 0 10px 30px rgba(76, 42, 138, 0.1);
  --shadow-lg: 0 18px 44px rgba(76, 42, 138, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft brand wash behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 340px;
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(108, 63, 197, 0.1), transparent 60%),
    radial-gradient(720px 300px at 100% -20%, rgba(26, 166, 160, 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 4px 12px rgba(108, 63, 197, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: radial-gradient(8px 8px at 70% 25%, rgba(255, 255, 255, 0.55), transparent 60%);
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-header nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 7px 12px;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}

.site-header nav a:hover {
  color: var(--brand-dark);
  background: var(--brand-light);
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--brand-light);
}

/* ── Layout ─────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #7d4fd6 100%);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(26, 166, 160, 0.45), transparent 60%),
    radial-gradient(500px 260px at 0% 120%, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9be7e2;
  box-shadow: 0 0 0 3px rgba(155, 231, 226, 0.25);
}

h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

/* ── Card grid ──────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 63, 197, 0.35);
}

.card .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 6px 16px rgba(108, 63, 197, 0.28);
}

.card .ico svg {
  width: 24px;
  height: 24px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--brand);
}

.card .go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.card:hover .go svg {
  transform: translateX(4px);
}

.card .go:hover {
  text-decoration: none;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

.site-footer .brand-name {
  font-size: 0.95rem;
  color: var(--ink);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  main {
    padding: 28px 16px 56px;
  }

  .hero {
    padding: 36px 24px;
    border-radius: 18px;
  }

  .site-header {
    padding: 12px 16px;
  }
}
