:root {
  --color-primary: #8B5CF6;
  --color-secondary: #C4B5FD;
  --color-accent: #10B981;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #6B5B95;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 2px 20px rgba(76, 29, 149, 0.08);
  --shadow-deep: 0 20px 60px -20px rgba(76, 29, 149, 0.35);
}

/* === 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;
}
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.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; }
h4 { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(139, 92, 246, 0.7); color: #fff; }
.btn-ghost { background: rgba(139, 92, 246, 0.08); color: var(--color-neutral-dark); border-color: rgba(139, 92, 246, 0.25); }
.btn-ghost:hover { background: rgba(139, 92, 246, 0.15); transform: translateY(-2px); color: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(16, 185, 129, 0.6); }
.btn-accent:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 40px -14px rgba(16, 185, 129, 0.75); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Header / nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 255, 0.72);
  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: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 6px 24px -18px rgba(76, 29, 149, 0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: .75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: none; border: 0; padding: .5rem; color: var(--color-neutral-dark); cursor: pointer; }
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; }
.primary-nav a { display: block; padding: .5rem .75rem; font-family: var(--font-heading); font-weight: 500; font-size: .95rem; color: var(--color-neutral-dark); position: relative; }
.primary-nav a::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { background: var(--color-neutral-dark); color: #fff; border-radius: 999px; padding: .5rem 1rem; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-primary); color: #fff; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; align-items: center; gap: .25rem; }
}
@media (max-width: 899px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; background: rgba(250, 245, 255, 0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--color-border); gap: .25rem; }
  .primary-nav a { padding: .75rem 0; border-bottom: 1px solid rgba(76,29,149,.06); }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta { margin-top: .75rem; text-align: center; border-bottom: 0; }
}

/* === Hero (saas-spotlight) === */
.hero.saas-hero {
  position: relative;
  padding-block: 3.5rem 4rem;
  background: radial-gradient(1000px 500px at 50% -10%, rgba(16, 185, 129, 0.1), transparent 70%),
              linear-gradient(180deg, var(--color-neutral-light) 0%, rgba(196, 181, 253, 0.25) 100%);
  overflow: hidden;
}
.hero .hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.eyebrow { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: .8rem; color: var(--color-primary); margin: 0; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; margin: 0; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 60ch; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .5rem; }
.hero-visual { width: 100%; max-width: 960px; margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-deep); position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: -10% -5% auto -5%; height: 60%; background: radial-gradient(closest-side, rgba(16,185,129,.18), transparent); z-index: -1; }
.hero-visual img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.proof-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; margin-top: 1.5rem; font-size: .9rem; color: var(--color-muted); font-family: var(--font-heading); font-weight: 500; }
.proof-strip span[aria-hidden] { opacity: .4; }

@media (min-width: 768px) {
  .hero.saas-hero { padding-block: 5rem 5rem; }
  .logo img { height: 96px; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-alt { background: linear-gradient(180deg, rgba(196, 181, 253, 0.18), rgba(250, 245, 255, 0)); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--color-muted); max-width: 60ch; margin-inline: auto; }
.section .narrow p { font-size: 1.05rem; color: #2a1e5c; }
@media (min-width: 768px) { .section { padding-block: 5.5rem; } }

/* === 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;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(76, 29, 149, 0.25); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(16,185,129,.15)); color: var(--color-neutral-dark); margin-bottom: 1rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .97rem; }

/* === Quote === */
.quote { margin: 0; padding: 2rem 1.5rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(16,185,129,.06)); border: 1px solid var(--color-border); text-align: center; }
.quote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; color: var(--color-neutral-dark); margin-bottom: 1rem; line-height: 1.4; }
.quote cite { font-style: normal; color: var(--color-muted); font-weight: 500; font-size: .95rem; }

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

/* === Contact card / form === */
.contact-card { background: #fff; padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); text-align: center; }
.contact-card p { margin: .35rem 0; color: var(--color-text); }
.form-lede { color: var(--color-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-family: var(--font-heading); font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-neutral-light);
  transition: border .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 3px rgba(139,92,246,.18); background: #fff; }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; accent-color: var(--color-primary); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,.85); padding-block: 3rem 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-logo img { height: 60px; filter: brightness(0) invert(1); opacity: .95; }
.footer-tag { margin-top: .75rem; color: rgba(255,255,255,.7); font-size: .95rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: .85rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }

/* === 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; } .site-header { 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-md);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  max-width: 480px;
  margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; }
.cookie-banner p a { color: var(--color-secondary); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { flex: 1 1 auto; padding: .6rem .9rem; border-radius: 999px; border: 0; font-family: var(--font-heading); font-weight: 600; font-size: .88rem; cursor: pointer; background: rgba(255,255,255,.1); color: #fff; transition: background .2s var(--ease); }
.cookie-banner__actions button:hover { background: rgba(255,255,255,.2); }
.cookie-banner__actions [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__actions [data-cookie-accept]:hover { background: #0ea472; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs input { accent-color: var(--color-accent); }
.cookie-banner__prefs [data-cookie-save] { margin-top: .5rem; padding: .55rem .9rem; border: 0; border-radius: 999px; background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-weight: 600; cursor: pointer; }
