:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #F5F3FF;
  --color-text: #1E1B4B;
  --color-muted: #4B4A73;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(49, 46, 129, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, 0.25);
  --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: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
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); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

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

/* === Header / Nav === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245, 243, 255, 0.7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.site-header.scrolled { background: rgba(255, 255, 255, 0.85); box-shadow: 0 6px 24px -18px rgba(49, 46, 129, 0.3); border-bottom-color: var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo:hover { text-decoration: none; }

.primary-nav { display: none; align-items: center; gap: 1.75rem; }
.primary-nav a { position: relative; color: var(--color-neutral-dark); font-weight: 500; font-size: 0.95rem; padding-block: 0.25rem; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover { text-decoration: none; }
.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: 0.6rem 1.1rem; border-radius: 999px; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; justify-content: center; align-items: center; background: transparent; border: 1px solid var(--color-border); border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.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); }

@media (max-width: 899px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); display: none; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--color-border); }
  .primary-nav .nav-cta { margin-top: 0.75rem; text-align: center; border-bottom: none; }
}
@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; text-align: center; }
.btn--primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 12px 30px -14px rgba(99, 102, 241, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(99, 102, 241, 0.65); text-decoration: none; }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 12px 30px -14px rgba(16, 185, 129, 0.55); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(16, 185, 129, 0.6); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero (saas-spotlight) === */
.hero { position: relative; overflow: hidden; padding-block: 4rem 3rem; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%); }
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } }
.hero__glow { position: absolute; inset: -20% 20% auto 20%; height: 60vh; background: radial-gradient(circle at center, rgba(16, 185, 129, 0.18), transparent 65%); pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; margin: 1rem auto 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.hero__visual { max-width: 960px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero__visual::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); pointer-events: none; }
.hero__visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero--inner { padding-block: 3rem 2rem; }
@media (min-width: 768px) { .hero--inner { padding-block: 4.5rem 2.5rem; } }

/* === Sections === */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.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.05rem; }

/* === Grids === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* === Cards === */
.card { background: #fff; padding: 1.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); 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: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(16,185,129,0.12)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }

/* === Testimonial === */
.testimonial blockquote { margin: 0; text-align: center; }
.testimonial blockquote p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 500; color: var(--color-neutral-dark); line-height: 1.4; margin-bottom: 1.5rem; }
.testimonial blockquote 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: 3.5rem; border-radius: 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.25), transparent 55%); pointer-events: none; }
.cta-band__inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
@media (min-width: 768px) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; } }

/* === Split === */
.split__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* === Pricing === */
.grid--pricing { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 960px) { .grid--pricing { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 2.25rem; border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-neutral-light); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border: 2px solid var(--color-accent); background: #fff; box-shadow: var(--shadow-md); }
.pricing-card__badge { position: absolute; top: 1rem; right: 1rem; background: var(--color-accent); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem; padding: 0.35rem 0.75rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-card__plan { color: var(--color-neutral-dark); 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-primary); margin: 0 0 0.5rem; line-height: 1.1; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.pricing-card__features li { display: flex; gap: 0.5rem; padding-block: 0.5rem; border-top: 1px solid var(--color-border); color: var(--color-text); font-size: 0.95rem; }
.pricing-card__features li:first-child { border-top: none; }
.pricing-card__cta { align-self: stretch; }

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

/* === Contact info + form === */
.contact-info .card h3 { color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.contact-info .card p, .contact-info .card a { color: var(--color-muted); }
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem; color: var(--color-neutral-dark); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; color: var(--color-text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
.field textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: 0.2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(245, 243, 255, 0.85); padding-block: 3.5rem 1.5rem; margin-top: 2rem; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(245, 243, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.75; margin-bottom: 1rem; }
.footer-tag { color: rgba(245, 243, 255, 0.7); font-size: 0.95rem; margin-top: 1rem; }
.logo--footer img { height: 64px; }
@media (min-width: 768px) { .logo--footer img { height: 80px; } }
.legal-links { margin-top: 1rem; font-size: 0.85rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.25rem; font-size: 0.85rem; color: rgba(245, 243, 255, 0.7); 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); box-shadow: var(--shadow-lg); max-width: 640px; }
@media (min-width: 768px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }
.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; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button { font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(245, 243, 255, 0.25); background: transparent; color: var(--color-neutral-light); cursor: pointer; transition: background .2s, transform .2s; }
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: 0.5rem; background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* === 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; } .site-header { transition: none; } }

/* === Focus === */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
