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

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-neutral-light); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease-quick); }
a:hover { color: var(--color-accent); }
ul { padding-left: 1.1rem; }

/* === Layout === */
.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.container.narrow { max-width: 780px; }
.section { padding-block: 3.5rem; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }

/* === Header / Nav === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 245, 255, 0.7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--color-border); transition: background .3s var(--ease-quick), box-shadow .3s var(--ease-quick); }
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 4px 20px rgba(30, 27, 75, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle { background: none; border: 0; padding: 0.5rem; cursor: pointer; display: inline-flex; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .3s var(--ease-quick), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.primary-nav ul { list-style: none; padding: 1rem; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: 0.5rem 0.75rem; display: block; border-radius: var(--radius-sm); position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav a.nav-cta { background: var(--color-primary); color: #fff; text-align: center; }
.primary-nav a.nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; background: transparent; border: 0; box-shadow: none; }
  .primary-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 0.25rem; }
  .primary-nav a { position: relative; }
  .primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.25rem; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-quick); }
  .primary-nav a:not(.nav-cta):hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

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

/* === Hero === */
.hero { position: relative; text-align: center; padding-block: 4rem 3rem; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% 10% auto 10%; height: 500px; background: radial-gradient(closest-side, rgba(6, 182, 212, 0.18), transparent 70%); z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.hero h1 { max-width: 22ch; margin-inline: auto; margin-bottom: 1.25rem; }
.hero-sub { max-width: 48ch; margin: 0 auto 2rem; font-size: 1.15rem; color: var(--color-muted); }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-image { max-width: 960px; margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.hero-image img { width: 100%; height: auto; display: block; }
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } }

/* === Cards / Grid === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-quick), box-shadow .25s var(--ease-quick); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(124, 58, 237, 0.1); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover { color: inherit; }

/* === Testimonial === */
.testimonial-section { background: transparent; }
.testimonial { margin: 0; padding: 2rem 1.5rem; text-align: center; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); position: relative; }
.testimonial p { font-size: 1.2rem; line-height: 1.6; color: var(--color-neutral-dark); font-family: var(--font-heading); font-weight: 500; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band { margin-block: 3rem; padding: 3rem 0; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; text-align: center; border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 300px; background: radial-gradient(closest-side, rgba(6, 182, 212, 0.35), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 32ch; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin: 0 auto 1.5rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); }
.cta-band .btn-primary:hover { background: var(--color-accent); color: #fff; }

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

/* === FAQ === */
details { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: #fff; box-shadow: var(--shadow-sm); }
details summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); color: var(--color-neutral-dark); list-style: none; position: relative; padding-right: 2rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s var(--ease-quick); }
details[open] summary::after { content: "−"; }
details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15); }
.form-success { background: rgba(6, 182, 212, 0.12); border: 1px solid var(--color-accent); border-radius: var(--radius-md); padding: 1rem 1.25rem; color: var(--color-neutral-dark); margin-top: 1rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.85); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.footer-tag { color: rgba(255, 255, 255, 0.65); margin-top: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.5rem; padding-top: 1.25rem; 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: 620px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner button { border: 0; padding: 0.5rem 1rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; cursor: pointer; background: rgba(255, 255, 255, 0.1); color: #fff; transition: background .2s; }
.cookie-banner button:hover { background: rgba(255, 255, 255, 0.2); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: var(--color-neutral-dark); }
.cookie-banner [data-cookie-accept]:hover { background: #22D3EE; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.95rem; }
.cookie-banner__prefs [data-cookie-save] { background: var(--color-primary); margin-top: 0.5rem; align-self: flex-start; }

/* === Reveal motion === */
.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; } }
