/* === Tokens === */
:root {
  --color-primary: #4F46E5;
  --color-secondary: #6366F1;
  --color-accent: #F97316;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-muted: #4B5275;
  --color-bg: #FFFFFF;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-lift: 0 18px 40px -20px rgba(49, 46, 129, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 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-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease-ui); }
a:hover { color: var(--color-secondary); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* === Header / Nav === */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238, 242, 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 .25s var(--ease-ui), box-shadow .25s var(--ease-ui); }
.site-header.scrolled { background: rgba(255, 255, 255, 0.85); box-shadow: 0 6px 24px -16px rgba(49, 46, 129, 0.3); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .5rem; color: var(--color-neutral-dark); cursor: pointer; }
.primary-nav { display: none; align-items: center; gap: 1.5rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem; position: relative; padding: .25rem 0; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-ui); }
.primary-nav a:hover::after, .primary-nav a[aria-current='page']::after { transform: scaleX(1); }
.primary-nav .nav-cta { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.primary-nav.is-open a { padding: .65rem 0; border-bottom: 1px solid var(--color-border); }
.primary-nav.is-open a:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; position: static; flex-direction: row; padding: 0; background: transparent; border: none; box-shadow: none; }
  .primary-nav a { border: none !important; padding: .25rem 0; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease-ui), box-shadow .2s var(--ease-ui), background .2s var(--ease-ui); }
.btn--primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 8px 24px -10px rgba(79, 70, 229, 0.6); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(79, 70, 229, 0.7); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-neutral-dark); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(249, 115, 22, 0.6); }
.btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(249, 115, 22, 0.7); }

/* === Hero (centered) === */
.hero { position: relative; padding: 3.5rem 1.25rem 3rem; overflow: hidden; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 70%), radial-gradient(50% 40% at 80% 20%, rgba(99, 102, 241, 0.18), transparent 70%); }
.hero__inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 28ch; margin: 0 auto 1.25rem; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 48ch; margin: 0 auto 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero__image { margin: 0; max-width: 1000px; margin-inline: auto; }
.hero__image img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 30px 80px -30px rgba(49, 46, 129, 0.45); }
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } }

/* === Sections === */
.section { padding: 4rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.section--narrow { max-width: 720px; text-align: center; }
.section--narrow p { color: var(--color-muted); font-size: 1.05rem; }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section__lede { color: var(--color-muted); font-size: 1.1rem; }

/* === Card grid === */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid--3 { 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-soft); transition: transform .25s var(--ease-ui), box-shadow .25s var(--ease-ui), border-color .25s var(--ease-ui); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(79, 70, 229, 0.3); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--color-neutral-light); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .98rem; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link h3 { color: var(--color-neutral-dark); }

/* === Quote === */
.section--quote { max-width: 880px; }
.quote { margin: 0; padding: 2rem 1.5rem; text-align: center; }
.quote p { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--color-neutral-dark); line-height: 1.5; margin: 0 0 1.25rem; }
.quote cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band { margin: 2rem 1.25rem; }
.cta-band__inner { max-width: 1100px; margin: 0 auto; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; border-radius: var(--radius-lg); padding: 3rem 1.5rem; text-align: center; box-shadow: 0 30px 60px -30px rgba(49, 46, 129, 0.6); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 50ch; margin: 0 auto 1.75rem; }

/* === FAQ === */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; transition: border-color .2s var(--ease-ui); }
.faq details[open] { border-color: var(--color-primary); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); list-style: none; padding-right: 2rem; position: relative; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s var(--ease-ui); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .75rem 0 0; color: var(--color-muted); }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card { position: relative; background: var(--color-neutral-light); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease-ui), box-shadow .25s var(--ease-ui); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pricing-card--featured { border: 2px solid var(--color-accent); background: #fff; }
.pricing-card__badge { position: absolute; top: -14px; right: 1.5rem; background: var(--color-accent); color: #fff; padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pricing-card__plan { font-size: 1.4rem; margin: 0 0 .5rem; }
.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 1rem; }
.pricing-card__lede { color: var(--color-muted); margin: 0 0 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; }
.pricing-card__features li { display: flex; gap: .5rem; color: var(--color-text); font-size: .98rem; }
.pricing-card__features span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { margin-top: auto; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; max-width: 640px; margin: 0 auto; background: #fff; padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.form-field { display: grid; gap: .4rem; }
.form-field label { font-weight: 600; color: var(--color-neutral-dark); font-size: .95rem; }
.form-field input, .form-field textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-neutral-light); transition: border-color .2s var(--ease-ui), background .2s var(--ease-ui); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.contact-form button { justify-self: start; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.85); padding: 3.5rem 1.25rem 1.5rem; margin-top: 4rem; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; } }
.site-footer__col h3 { color: #fff; font-size: 1rem; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer__col p { color: rgba(255, 255, 255, 0.7); }
.site-footer__col a { color: rgba(255, 255, 255, 0.85); display: block; padding: .25rem 0; }
.site-footer__col a:hover { color: #fff; }
.site-footer address { font-style: normal; color: rgba(255, 255, 255, 0.7); line-height: 1.7; margin-bottom: 1rem; }
.legal-links a { font-size: .9rem; }
.logo--footer img { height: 64px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer__copy { max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: .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: 0 30px 60px -20px rgba(0,0,0,0.4); max-width: 720px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { font: inherit; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: var(--color-neutral-light); cursor: pointer; font-weight: 600; transition: background .2s var(--ease-ui); }
.cookie-banner button:hover { background: rgba(255,255,255,0.1); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #ea670a; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { justify-self: start; margin-top: .5rem; }

/* === 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; }
  html { scroll-behavior: auto; }
}
