:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-muted: #4F4B7F;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(49, 46, 129, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(49, 46, 129, 0.35);
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-weight: 700; font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  line-height: 1;
}
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 10px 30px -12px rgba(99, 102, 241, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px 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); color: var(--color-neutral-dark); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

/* === Header (glass nav) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 242, 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 .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.88); box-shadow: 0 6px 20px -14px rgba(49, 46, 129, .35); 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; }
.nav-toggle { background: transparent; border: 0; color: var(--color-neutral-dark); padding: .5rem; cursor: pointer; display: inline-flex; }
.primary-nav { display: none; flex-direction: column; gap: .5rem; }
.primary-nav a {
  position: relative; color: var(--color-neutral-dark); font-weight: 500; padding: .55rem .25rem;
}
.primary-nav a::after { content: ''; position: absolute; left: .25rem; right: .25rem; bottom: .2rem; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s 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; border-radius: 999px; padding: .55rem 1.1rem; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }
.primary-nav.is-open { display: flex; padding-bottom: 1rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; }
  .logo img { height: 96px; }
}

/* === Hero (centered + SaaS spotlight) === */
.hero { position: relative; overflow: hidden; padding-block: 4.5rem 3rem; background: linear-gradient(180deg, rgba(238,242,255,.7) 0%, #ffffff 100%); }
.hero-glow { position: absolute; inset: -15% 10% auto 10%; height: 60%; background: radial-gradient(closest-side, rgba(129, 140, 248, .35), rgba(129, 140, 248, 0) 70%); filter: blur(20px); z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin: 1rem auto 1.75rem; font-size: 1.15rem; color: var(--color-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-visual { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.6rem;
  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(99,102,241,.14), rgba(129,140,248,.18)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .96rem; }

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

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding-block: 3.5rem; margin-block: 2rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); }
.cta-band .btn-primary:hover { background: var(--color-accent); color: #fff; }
@media (min-width: 768px) { .cta-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

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

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; padding: 1.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-weight: 500; font-size: .92rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font-family: var(--font-body); 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);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: .2rem; }
.contact-form .btn { align-self: flex-start; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(238, 242, 255, .82); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-tag { color: rgba(238, 242, 255, .7); font-size: .95rem; margin-top: .5rem; }
.logo-footer img { filter: brightness(1.2); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a, .footer-legal a { color: rgba(238, 242, 255, .82); font-size: .95rem; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-contact address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-contact address a { color: rgba(238, 242, 255, .82); }
.footer-legal { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed rgba(255,255,255,.1); }
.footer-bottom { padding-top: 1.25rem; font-size: .85rem; color: rgba(238,242,255,.55); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; } }

/* === 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); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); max-width: 560px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .btn-ghost { color: var(--color-neutral-light); border-color: rgba(255,255,255,.25); background: transparent; }
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.cookie-banner .btn-primary { background: var(--color-accent); box-shadow: none; }
.cookie-banner .btn-primary:hover { background: #16a34a; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.cookie-banner__prefs label { display: flex; gap: .55rem; align-items: center; }

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