:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #F5F3FF;
  --color-text: #1F1B4D;
  --color-muted: #4F4B7A;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --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 20px 60px -20px rgba(49, 46, 129, 0.28);
  --radius: 16px;
}

/* === 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; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; }
.section { padding-block: 4rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }
.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; }

@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  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.92); box-shadow: 0 6px 24px -18px rgba(49,46,129,.4); border-bottom-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }

.nav-toggle { background: transparent; border: 1px solid var(--color-border); border-radius: 10px; padding: .5rem; color: var(--color-neutral-dark); display: inline-flex; }
.primary-nav { display: none; flex-direction: column; gap: .25rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow-md); border-top: 1px solid var(--color-border); }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: .6rem 0; position: relative; }
.primary-nav a.nav-cta { background: var(--color-primary); color: #fff; padding: .6rem 1rem; border-radius: 999px; text-align: center; margin-top: .5rem; }
.primary-nav a.nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }

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

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-family: var(--font-heading); font-size: 1rem; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 10px 30px -12px rgba(99, 102, 241, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(99, 102, 241, .7); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-neutral-light); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === Hero (saas-spotlight) === */
.saas-hero { position: relative; padding-block: 3.5rem 4rem; overflow: hidden; background: linear-gradient(160deg, #F5F3FF 0%, #EEF2FF 55%, #E0E7FF 100%); }
.saas-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 55%; height: 60%; background: radial-gradient(circle at center, rgba(16, 185, 129, 0.18), transparent 65%); pointer-events: none; }
.saas-hero::after { content: ""; position: absolute; left: -10%; bottom: -30%; width: 55%; height: 70%; background: radial-gradient(circle at center, rgba(129, 140, 248, 0.22), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; max-width: 840px; margin: 0 auto; text-align: center; }
.hero-inner h1 { color: var(--color-neutral-dark); }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin: 0 auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero-visual { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.hero-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 768px) {
  .saas-hero { padding-block: 5rem 5rem; }
  .hero-sub { font-size: 1.25rem; }
}

/* === Grids & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .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); } }

.card { display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); color: inherit; }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: .95rem; }
.card h3 { margin-top: .5rem; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(99,102,241,.35); text-decoration: none; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(16,185,129,.12)); color: var(--color-primary); }
.card-icon svg { width: 22px; height: 22px; }

/* === Split section === */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-media { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* === Testimonial === */
.testimonial { margin: 0; text-align: center; padding: 2rem 1rem; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--color-neutral-dark); line-height: 1.5; font-weight: 500; }
.testimonial cite { display: block; margin-top: 1rem; color: var(--color-muted); font-style: normal; font-size: .95rem; }

/* === CTA band === */
.cta-band { padding-block: 4rem; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); }
.cta-band .btn-primary:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); }

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

/* === Contact page === */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-top: 1.5rem; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--color-border); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: var(--color-neutral-dark); font-weight: 500; }
.hours span:last-child { color: var(--color-muted); }
.contact-map { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.contact-map img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* === Form === */
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field textarea { font-family: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; color: var(--color-text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(245, 243, 255, 0.85); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.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 h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer .logo img { filter: brightness(0) invert(1); height: 64px; }
.site-footer .tagline { color: rgba(245,243,255,.7); font-size: .95rem; }
.site-footer nav { display: grid; gap: .4rem; }
.site-footer nav a { color: rgba(245,243,255,.75); font-size: .95rem; }
.site-footer nav a:hover { color: #fff; }
.site-footer address { font-style: normal; font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
.site-footer address a { color: rgba(245,243,255,.85); }
.legal-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: .5rem; }
.legal-links a { font-size: .85rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; color: rgba(245,243,255,.55); font-size: .85rem; text-align: center; }

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

/* === 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: 14px; box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto; font-size: .95rem; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; color: rgba(245,243,255,.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .2s var(--ease); }
.cookie-banner button:hover { background: rgba(255,255,255,.08); }
.cookie-banner button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner button[data-cookie-accept]:hover { background: #0EA271; }
.cookie-banner__prefs { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.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; }
