:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #5B4B8A;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 2px 20px rgba(30, 20, 80, 0.06);
  --shadow-lift: 0 20px 60px -25px rgba(76, 29, 149, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: var(--shadow-soft); }
.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; }

.nav-toggle {
  background: none; border: none; color: var(--color-neutral-dark);
  padding: .5rem; cursor: pointer; display: inline-flex;
}
.primary-nav {
  position: fixed; inset: 64px 0 auto 0;
  background: var(--color-neutral-light);
  display: none; flex-direction: column; padding: 1rem 1.25rem 2rem;
  border-bottom: 1px solid rgba(76,29,149,0.1);
  box-shadow: var(--shadow-soft);
}
.primary-nav.is-open { display: flex; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: .75rem 0; border-bottom: 1px solid rgba(76,29,149,0.08); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { background: var(--color-primary); color: #fff; padding: .65rem 1.1rem; border-radius: 999px; text-align: center; margin-top: .75rem; border: none; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    background: transparent; padding: 0; box-shadow: none; border: none; gap: 1.75rem;
  }
  .primary-nav a { padding: 0; border: none; position: relative; }
  .primary-nav a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
    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:hover { text-decoration: none; }
  .primary-nav .nav-cta { margin-top: 0; }
  .primary-nav .nav-cta:hover { background: var(--color-neutral-dark); text-decoration: none; }
}

/* === Hero (saas-spotlight) === */
.hero-saas {
  position: relative;
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(34, 197, 94, 0.12), transparent 60%),
    radial-gradient(70% 70% at 10% 20%, rgba(167, 139, 250, 0.28), transparent 65%),
    linear-gradient(160deg, var(--color-neutral-light) 0%, #EDE4FF 100%);
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--color-primary);
  padding: .35rem .75rem; border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 999px; background: rgba(255,255,255,0.6); margin-bottom: 1.25rem;
}
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin-inline: auto; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-visual { margin: 3rem auto 0; max-width: 960px; }
.hero-visual img {
  border-radius: 20px; box-shadow: var(--shadow-lift);
  aspect-ratio: 16/9; object-fit: cover; width: 100%;
}

@media (min-width: 768px) {
  .hero-saas { padding: 6rem 0 5rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  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;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; box-shadow: 0 10px 25px -10px rgba(124,58,237,0.55);
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 16px 32px -12px rgba(124,58,237,0.65); }
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark); border-color: rgba(76,29,149,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.6); transform: translateY(-2px); text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Sections === */
.section { padding: 4rem 0; }
.section .sub { color: var(--color-muted); font-size: 1.05rem; margin-top: -0.3em; margin-bottom: 1.5em; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-tinted { background: linear-gradient(180deg, #ffffff 0%, var(--color-neutral-light) 100%); }

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

/* === Grid + cards === */
.grid { display: grid; gap: 1.25rem; 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); }
}
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1px solid rgba(76, 29, 149, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: .5rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,197,94,0.14));
  color: var(--color-primary);
}

/* === Quote === */
.quote {
  margin: 0; padding: 2rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(167,139,250,0.12));
  border-left: 4px solid var(--color-primary);
}
.quote p { font-size: 1.2rem; color: var(--color-neutral-dark); font-style: italic; }
.quote cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band {
  padding: 4rem 0;
  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,0.85); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 10px 25px -10px rgba(0,0,0,0.4); }
.cta-band .btn-primary:hover { background: var(--color-accent); color: #fff; }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid rgba(76,29,149,0.2); 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 3px rgba(124,58,237,0.15);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .5rem; }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.logo-footer img { height: 60px; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,0.6); }

address { font-style: normal; line-height: 1.7; }

/* === 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; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font: inherit; font-family: var(--font-heading); font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: var(--color-neutral-light); cursor: pointer;
  transition: background .2s, transform .2s;
}
.cookie-banner button:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]: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,0.2); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
