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

/* === 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);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -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); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.section { padding-block: 3.5rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 255, 0.75);
  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.9);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  max-width: 1200px; margin: 0 auto;
  padding: .75rem 1.25rem;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-neutral-dark);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
}
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; }
.primary-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: var(--color-white);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  gap: .25rem;
}
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: .6rem .25rem;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav a:last-child { border-bottom: none; }
.primary-nav a.is-current { color: var(--color-primary); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; flex-direction: row;
    background: transparent; padding: 0; box-shadow: none; border: none;
    gap: 1.5rem; align-items: center;
  }
  .primary-nav a { border: none; padding: .25rem 0; position: relative; font-size: .95rem; }
  .primary-nav a::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:hover::after, .primary-nav a.is-current::after { transform: scaleX(1); }
  .primary-nav a.nav-cta {
    background: var(--color-neutral-dark); color: #fff;
    padding: .55rem 1.1rem; border-radius: 999px;
  }
  .primary-nav a.nav-cta::after { display: none; }
  .primary-nav a.nav-cta:hover { background: var(--color-primary); }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-align: center;
}
.btn:focus-visible { outline: 3px solid rgba(99, 102, 241, .35); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(99, 102, 241, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(99, 102, 241, .65); 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-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 12px 28px -12px rgba(16, 185, 129, .55);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(16, 185, 129, .7); color: #fff; }

/* === Hero (saas-spotlight) === */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(129, 140, 248, 0.25), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(16, 185, 129, 0.12), transparent 70%),
    linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: .35rem .85rem;
  background: rgba(99, 102, 241, .1);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub {
  max-width: 58ch;
  margin: 1rem auto 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-muted);
}
.hero-ctas {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-visual {
  max-width: 960px; margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: #fff;
}
.hero-visual img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-inner-page { padding-top: 3rem; }
.hero-short { padding-bottom: 1.5rem; }

/* === Proof strip === */
.proof-strip {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: .95rem;
}
.proof-strip p { margin: 0; }
.proof-strip strong { color: #fff; }

/* === Sections === */
.intro { padding-block: 3rem; }
.intro h2 { text-align: center; }
.intro p { font-size: 1.075rem; color: var(--color-text); }

/* === Grids & cards === */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(99, 102, 241, .3); }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin-bottom: 0; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover h3 { color: var(--color-primary); }
.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(129, 140, 248, .12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  text-align: center;
}
.testimonial::before {
  content: "„";
  position: absolute; top: -20px; left: 20px;
  font-family: var(--font-heading);
  font-size: 5rem; line-height: 1;
  color: var(--color-primary);
  opacity: .35;
}
.testimonial p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--color-neutral-dark);
  font-family: var(--font-heading);
  font-size: .95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 55ch; margin: 0 auto 1.5rem; }

/* === Stats === */
.stats { background: var(--color-neutral-light); }
.stat { background: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--color-accent);
  margin-bottom: .5rem;
  line-height: 1.1;
}
.stat p:not(.stat-num) { color: var(--color-muted); margin-bottom: 0; font-size: .95rem; }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-neutral-dark);
  padding: .35rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact page === */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-info address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.hours { border-collapse: collapse; width: 100%; margin-top: .5rem; }
.hours th, .hours td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--color-border); font-weight: 500; }
.hours th { color: var(--color-neutral-dark); font-family: var(--font-heading); }
.hours td { color: var(--color-muted); }

.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-family: var(--font-heading); color: var(--color-neutral-dark); font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%;
  padding: .7rem .9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  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 3px rgba(99, 102, 241, .15);
}
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--color-muted); margin: 1rem 0 1.25rem; line-height: 1.5; flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* === Contact band (About page) === */
.contact-band { background: var(--color-neutral-light); text-align: center; }
.contact-band .lead { color: var(--color-muted); font-size: 1.1rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding-top: 3rem;
  margin-top: 3rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-tagline { color: rgba(245, 243, 255, .7); font-size: .95rem; max-width: 26ch; }
.footer-logo img { height: 64px; filter: brightness(0) invert(1); margin-bottom: .5rem; }
.legal-links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom { padding: 1.5rem 1.25rem; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .875rem; color: rgba(245, 243, 255, .6); }
.footer-bottom p { margin: 0; }

/* === 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 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  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-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.cookie-banner button:hover { background: rgba(255, 255, 255, .1); }
.cookie-banner [data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.cookie-banner [data-cookie-accept]:hover { background: #0ea371; border-color: #0ea371; }
.cookie-banner__prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] {
  align-self: flex-start; margin-top: .5rem;
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}

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

/* === Small screens spacing === */
@media (max-width: 480px) {
  .section { padding-block: 2.5rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .testimonial { padding: 1.75rem 1.25rem; }
  .cta-band { padding: 2.5rem 0; }
}
