/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B4B;
  --color-muted: #4C4470;
  --color-border: rgba(30, 27, 75, 0.12);
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  border: 0; background: transparent; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .3s var(--ease); }
.primary-nav { display: none; gap: 1.5rem; align-items: center; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; font-size: 0.95rem; position: relative; }
.primary-nav a:hover { text-decoration: none; color: var(--color-primary); }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  background: var(--color-primary); color: #fff; padding: 0.55rem 1.15rem; border-radius: 999px;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); }
.primary-nav.is-open { display: flex; }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; position: static; background: transparent; padding: 0; }
}
@media (max-width: 767px) {
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-neutral-light);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem 1.5rem;
  }
  .primary-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta { margin-top: 0.75rem; text-align: center; border-bottom: 0; }
}

/* === Hero === */
.hero {
  position: relative;
  padding-block: 3.5rem 4rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.12), rgba(6, 182, 212, 0.06) 60%, transparent);
}
.hero-glow {
  position: absolute; inset: -20% 10% auto 10%; height: 500px;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.28), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 600; color: var(--color-primary); margin-bottom: 1rem;
}
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero .lede {
  max-width: 56ch; margin-inline: auto;
  font-size: 1.125rem; color: var(--color-muted); margin-bottom: 2rem;
}
.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-image {
  margin: 0; max-width: 1040px; margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .hero { padding-block: 6rem; } }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #5B21B6);
  color: #fff;
}
.btn-accent {
  background: var(--color-accent); color: var(--color-neutral-dark);
}
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: rgba(30, 27, 75, 0.04); }

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }
.intro { text-align: center; }
.intro p { color: var(--color-muted); font-size: 1.08rem; }

/* === Cards grid === */
.grid { display: grid; gap: 1.25rem; }
.cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.14));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }

/* === Testimonial === */
.testimonial blockquote {
  margin: 0; text-align: center; padding: 2rem 1rem;
}
.testimonial p {
  font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500; color: var(--color-neutral-dark); line-height: 1.4;
  max-width: 44ch; margin: 0 auto 1.25rem;
}
.testimonial cite {
  font-style: normal; color: var(--color-muted); font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
  padding-block: 4rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 3rem 1.25rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin: 0 auto 1.5rem; }
@media (min-width: 768px) { .cta-band { margin-inline: 2rem; padding-block: 5rem; } }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-list details {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  transition: box-shadow .2s var(--ease);
}
.faq-list details[open] { box-shadow: var(--shadow-sm); }
.faq-list summary {
  cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  color: var(--color-neutral-dark); font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; font-size: 1.5rem; color: var(--color-primary); font-weight: 400;
  transition: transform .2s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Pricing === */
.pricing-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: none;
}
@media (min-width: 900px) {
  .pricing-card--featured { transform: translateY(-8px); }
}
.pricing-card__badge {
  position: absolute; top: -12px; right: 1.5rem;
  background: var(--color-accent); color: var(--color-neutral-dark);
  padding: 0.3rem 0.85rem; border-radius: 999px;
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
}
.pricing-card__plan {
  font-size: 1.25rem; color: var(--color-primary); margin-bottom: 0.25rem;
}
.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700;
  color: var(--color-neutral-dark); margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.pricing-card__lede {
  color: var(--color-muted); font-size: 0.95rem; margin-bottom: 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-border);
}
.pricing-card__features {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  flex-grow: 1;
}
.pricing-card__features li {
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.95rem; color: var(--color-text);
}
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === Contact === */
.contact-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
}
.contact-info h2, .contact-form h2 { margin-bottom: 1.25rem; }
.contact-info p { color: var(--color-muted); }
.contact-info strong { color: var(--color-neutral-dark); }
.contact-form {
  background: #fff; padding: 2rem;
  border-radius: var(--radius-md); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.contact-form label {
  font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem;
  color: var(--color-neutral-dark); margin-top: 0.5rem;
}
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-neutral-light);
  color: var(--color-text);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
  border-color: transparent;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { margin-top: 1rem; align-self: flex-start; }
.form-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-family: var(--font-body); font-weight: 400; font-size: 0.85rem;
  color: var(--color-muted); margin-top: 1rem;
  line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: #fff; font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; } }
.footer-logo img { height: 60px; }
.footer-tag { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-top: 0.75rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact p { margin: 0 0 0.6rem; font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.legal-links { margin-top: 1rem; font-size: 0.85rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  text-align: center;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner__actions button {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: var(--color-neutral-light);
  padding: 0.55rem 1rem; border-radius: 999px;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent); color: var(--color-neutral-dark);
  border-color: var(--color-accent);
}
.cookie-banner__actions button:hover { opacity: 0.9; }
.cookie-banner__prefs {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.cookie-banner__prefs label {
  display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem;
}
.cookie-banner__prefs button {
  align-self: flex-start; margin-top: 0.5rem;
  background: var(--color-primary); color: #fff;
  border: 0; padding: 0.55rem 1rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 500; cursor: pointer;
}

/* === Reveal === */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
