/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-ink: #1F1235;
  --color-muted: #5B4B7A;
  --color-border: rgba(76, 29, 149, 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(31, 18, 53, 0.06);
  --shadow-md: 0 10px 40px -10px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.28);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
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 1rem; }
h1 { font-weight: 800; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow, .narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, #FFFFFF 0%, var(--color-neutral-light) 100%); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-lede { text-align: center; color: var(--color-muted); max-width: 60ch; margin: 0 auto 2rem; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

/* === Header (glass 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(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.nav-toggle { background: none; border: 0; color: var(--color-neutral-dark); cursor: pointer; padding: .5rem; 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: var(--color-neutral-light); 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[aria-current="page"] { color: var(--color-primary); }
.nav-cta { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff !important; padding: .6rem 1.1rem !important; border-radius: 999px; text-align: center; }
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; position: static; padding: 0; background: none; box-shadow: none; border: 0; }
  .primary-nav a { padding: .25rem 0; }
  .primary-nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--color-primary); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600; font-family: var(--font-heading); font-size: 1rem; border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.5); }
.btn-accent:hover { transform: translateY(-2px); color: #fff; background: #ea6a13; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid var(--color-border); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); color: var(--color-neutral-dark); border-color: var(--color-primary); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero === */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.saas-hero { background: linear-gradient(180deg, #FAF5FF 0%, #F3E8FF 100%); }
.hero-glow { position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0) 65%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: .8rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin-inline: auto; max-width: 22ch; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 55ch; margin: 1rem auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.hero-visual { margin: 0 auto; max-width: 960px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(76, 29, 149, 0.35); position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.proof-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; color: var(--color-muted); font-size: .95rem; }
@media (min-width: 768px) { .hero { padding: 5rem 0 6rem; } }

/* === Cards grid === */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(124, 58, 237, 0.3); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(249, 115, 22, 0.12));
  color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card p { color: var(--color-muted); margin: 0; }

/* === Quotes === */
.quote { margin: 0; padding: 2.5rem 1.5rem; text-align: center; }
.quote p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.65rem); color: var(--color-neutral-dark); line-height: 1.4; font-weight: 500; }
.quote cite { display: block; margin-top: 1.5rem; font-style: normal; color: var(--color-muted); font-size: .95rem; letter-spacing: .04em; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-neutral-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.25), transparent 55%); pointer-events: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; }
.cta-band .container { position: relative; z-index: 1; }

/* === FAQ === */
.faq details { border-bottom: 1px solid var(--color-border); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-primary); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 1rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-heading); font-weight: 600; font-size: .95rem; color: var(--color-neutral-dark); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-ink);
  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.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.8); padding: 4rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer-logo img { filter: brightness(0) invert(1); height: 64px; }
.footer-tag { color: rgba(255, 255, 255, 0.7); max-width: 30ch; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .9rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, 0.6); text-align: center; }

/* === 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: var(--shadow-lg);
  max-width: 620px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: var(--color-neutral-light); margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn-ghost { color: var(--color-neutral-light); border-color: rgba(255, 255, 255, 0.25); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cookie-banner__prefs { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs .btn { margin-top: .5rem; justify-self: start; }

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