/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B2E;
  --color-muted: #6B6485;
  --border: rgba(76,29,149,0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(76,29,149,0.06);
  --shadow-md: 0 20px 60px -20px rgba(76,29,149,0.25);
  --shadow-hover: 0 30px 70px -25px rgba(76,29,149,0.35);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
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; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
img { max-width: 100%; height: auto; display: block; }

/* === 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 transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 4px 20px rgba(76,29,149,0.08); border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: none; border: 1px solid var(--border); color: var(--color-neutral-dark);
  padding: 0.5rem; border-radius: 10px; cursor: pointer; display: inline-flex;
}
.primary-nav { display: none; }
.primary-nav a {
  position: relative; padding: 0.5rem 0.25rem; font-weight: 500; color: var(--color-text);
}
.primary-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:not(.btn):hover::after, .primary-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem; gap: 0.5rem; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border); }

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

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  font-size: 0.95rem;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 8px 24px -8px rgba(124,58,237,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(124,58,237,0.6); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--border); }
.btn-ghost:hover { background: rgba(124,58,237,0.06); transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(249,115,22,0.5); }
.btn-accent:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 30px -8px rgba(249,115,22,0.6); }
.btn-nav { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

/* === Hero (saas-spotlight) === */
.hero-spotlight {
  position: relative; overflow: hidden;
  padding: 4rem 1.25rem 3rem;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(249,115,22,0.10), transparent 60%),
    radial-gradient(50% 60% at 15% 80%, rgba(167,139,250,0.20), transparent 60%),
    linear-gradient(135deg, rgba(124,58,237,0.05), rgba(76,29,149,0.08));
}
.hero-inner { max-width: 1120px; margin: 0 auto; text-align: left; }
.hero-inner.center { text-align: center; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-visual { max-width: 1120px; margin: 0 auto; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 16/10; object-fit: cover; }

@media (min-width: 900px) {
  .hero-spotlight { padding: 6rem 2rem 4rem; }
  .hero-inner { text-align: center; }
  .hero-ctas { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
}

/* === Proof strip === */
.proof-strip {
  max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.5rem;
  text-align: center; color: var(--color-muted); font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.proof-strip strong { color: var(--color-neutral-dark); font-weight: 600; }

/* === Sections === */
.section { max-width: 1120px; margin: 0 auto; padding: 4rem 1.25rem; }
.section.narrow { max-width: 780px; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .sub { color: var(--color-muted); max-width: 60ch; margin: 0 auto; }
.narrow-p { max-width: 60ch; margin: 0 auto 1.5rem; text-align: center; color: var(--color-muted); }
.center { text-align: center; }

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

/* === 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: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: block; color: inherit;
}
.card p { color: var(--color-muted); margin-bottom: 0; font-size: 0.95rem; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-link { text-decoration: none; }
.card-link:hover h3 { color: var(--color-primary); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(167,139,250,0.25));
  color: var(--color-primary); margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial-section { max-width: 900px; }
.testimonial {
  text-align: center; padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(167,139,250,0.10));
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  margin: 0;
}
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: var(--color-neutral-dark); margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band { padding: 3rem 1.25rem; }
.cta-inner {
  max-width: 1120px; margin: 0 auto; padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  border-radius: var(--radius-lg); text-align: center; color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto 1.75rem; }

/* === Stats === */
.stats { text-align: center; }
.stat { padding: 1.5rem; }
.stat-num { display: block; font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; color: var(--color-accent); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.stat p { color: var(--color-muted); font-size: 0.95rem; }

/* === FAQ === */
.faq details { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq summary { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); cursor: pointer; font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact === */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.hours li:last-child { border-bottom: 0; }

.contact-form { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 500; color: var(--color-neutral-dark); font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit; padding: 0.85rem 1rem; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; color: inherit;
  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(124,58,237,0.15); }
.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.25rem; }

/* === Footer === */
.site-footer {
  margin-top: 4rem; padding: 3rem 1.25rem 1.5rem;
  background: var(--color-neutral-dark); color: rgba(250,245,255,0.85);
}
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer-col h4 { color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(250,245,255,0.85); padding: 0.2rem 0; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col .logo { display: inline-block; margin-bottom: 1rem; }
.footer-col .logo img { height: 60px; filter: brightness(0) invert(1); }
.footer-col .tagline { color: var(--color-secondary); font-style: italic; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.legal-links a { display: inline; }
.copyright { max-width: 1120px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.85rem; color: rgba(250,245,255,0.6); }

/* === 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: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 720px; margin: 0 auto;
}
.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: inherit; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(250,245,255,0.3);
  background: transparent; color: var(--color-neutral-light); cursor: pointer; font-size: 0.85rem;
}
.cookie-banner button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner button:hover { background: rgba(250,245,255,0.1); }
.cookie-banner button[data-cookie-accept]:hover { background: #ea6a13; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

/* === 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; } html { scroll-behavior: auto; } }
