:root {
  --ink: #241639;
  --ink-soft: #5B4E72;
  --purple-700: #6C2BD9;
  --purple-900: #3B1470;
  --pink-500: #C026D3;
  --lilac-50: #F8F5FD;
  --lilac-100: #F0E9FA;
  --lilac-200: #E4D6F7;
  --white: #FFFFFF;
  --grad: linear-gradient(135deg, var(--purple-700) 0%, var(--pink-500) 100%);
  --shadow-soft: 0 20px 45px -20px rgba(76, 24, 140, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--lilac-50);
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Unbounded', sans-serif;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 85% -5%, rgba(192, 38, 211, 0.16), transparent 70%),
    radial-gradient(520px 420px at -5% 20%, rgba(108, 43, 217, 0.14), transparent 70%);
}

/* Banner */
.banner-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 24px 4px;
}

.banner-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-700);
  background: var(--lilac-100);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  background: var(--grad);
  border: none;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -18px rgba(76, 24, 140, 0.45);
}

.btn-large {
  padding: 18px 44px;
  font-size: 16px;
}

.btn-ghost, .link-btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--purple-700);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 16px 6px;
}

.btn-ghost:hover, .link-btn:hover { color: var(--pink-500); }

/* Stat card - signature element */
.stat-card {
  margin-top: 48px;
  width: 100%;
  max-width: 340px;
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  color: var(--white);
}

.stat-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.stat-value {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 38px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.stat-sub {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  opacity: 0.85;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 14px;
}

/* Features */
.features {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-700);
}

.section-title {
  margin-top: 10px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
}

.feature-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--lilac-200);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lilac-100);
  color: var(--purple-700);
  margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* CTA */
.cta {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-title {
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 700;
}

.cta-sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  border-top: 1px solid var(--lilac-200);
}

/* Policy overlay / slide-in panel */
.policy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 22, 57, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 100;
}

.policy-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.policy-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--white);
  box-shadow: -30px 0 60px -20px rgba(36, 22, 57, 0.35);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.32,.72,.24,1);
  display: flex;
  flex-direction: column;
}

.policy-overlay.is-open .policy-panel {
  transform: translateX(0);
}

.policy-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  margin: 16px 16px 0 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: none;
  background: var(--lilac-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease;
}

.policy-close:hover { background: var(--lilac-200); }

.policy-content {
  padding: 4px 32px 40px;
  overflow-y: auto;
}

.policy-content h2 {
  font-size: 21px;
  margin-top: 6px;
  margin-bottom: 18px;
}

.policy-content h3 {
  font-size: 15px;
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--purple-700);
}

.policy-content p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.policy-content ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.policy-generated {
  margin-top: 24px;
  font-size: 11.5px;
  color: #A99BC0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
  .policy-panel { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary, .feature-card, .policy-panel, .policy-overlay { transition: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--purple-700);
  outline-offset: 3px;
}
