:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #6B5B9A;
  --color-border: rgba(76, 29, 149, 0.12);
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.2);
  --shadow-lg: 0 30px 60px -20px rgba(76, 29, 149, 0.3);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
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; margin: 0 0 .75em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none; line-height: 1;
}
.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, .5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(124, 58, 237, .6); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(34, 197, 94, .5); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(34, 197, 94, .6); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: rgba(124, 58, 237, .3); }
.btn-ghost:hover { background: rgba(124, 58, 237, .08); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1rem; font-size: .85rem; }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* === Header === */
.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 transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); border-bottom-color: var(--color-border); box-shadow: 0 8px 24px -18px rgba(76, 29, 149, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo--footer img { height: 60px; }

.primary-nav { display: none; gap: 1.75rem; align-items: center; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem; position: relative; }
.primary-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; 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.is-active:not(.btn)::after { transform: scaleX(1); }
.btn-nav { padding: .6rem 1.1rem; font-size: .85rem; }
@media (min-width: 900px) { .primary-nav { display: flex; } }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s; }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1.25rem; gap: 1rem; border-top: 1px solid var(--color-border); box-shadow: var(--shadow-md); }

/* === Hero (saas-spotlight) === */
.saas-hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  background: radial-gradient(1200px 500px at 50% -100px, rgba(167, 139, 250, 0.35), transparent 70%),
              linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%);
  overflow: hidden;
}
.saas-hero::before {
  content: ""; position: absolute; top: 20%; right: -100px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); padding: .35rem .85rem; background: rgba(124, 58, 237, .1); border-radius: 999px; margin-bottom: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; margin: 0 auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-bottom: 3rem; }
.hero-visual { margin-top: 2rem; }
.hero-visual img {
  width: 100%; max-width: 960px; margin: 0 auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10; object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .saas-hero { padding: 5rem 0 5rem; }
  .lead { font-size: 1.25rem; }
}

/* === Intro === */
.intro { padding: 3rem 0; }
.intro h2 { text-align: center; margin-bottom: 1.5rem; }
.intro p { color: var(--color-text); font-size: 1.05rem; line-height: 1.75; }
.intro .narrow p { text-align: center; }

/* === Sections === */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }
.highlights { padding: 3rem 0 4rem; }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { 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);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--color-muted); font-size: .95rem; margin: 0; }
.card .icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(167, 139, 250, .18));
  color: var(--color-primary);
  align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-step { position: relative; padding-top: 2.5rem; }
.step-num {
  position: absolute; top: -18px; left: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; font-weight: 700; font-family: var(--font-heading); font-size: 1.15rem;
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .5);
}

/* === Testimonial === */
.testimonial { padding: 3rem 0; }
.testimonial blockquote {
  margin: 0; padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #fff, var(--color-neutral-light));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}
.testimonial blockquote::before {
  content: "“"; position: absolute; top: -10px; left: 24px;
  font-family: var(--font-heading); font-size: 5rem; color: var(--color-secondary);
  line-height: 1; opacity: .5;
}
.testimonial p { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.6; color: var(--color-neutral-dark); margin-bottom: 1rem; font-style: italic; }
.testimonial cite { display: block; font-style: normal; color: var(--color-muted); font-size: .9rem; font-weight: 500; }

/* === CTA band === */
.cta-band { padding: 4rem 0; }
.cta-band .container {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  position: relative; overflow: hidden;
}
.cta-band .container::before {
  content: ""; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, .25), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; position: relative; }
.cta-band p { color: rgba(255, 255, 255, .85); position: relative; margin-bottom: 1.5rem; }
.cta-band .btn { position: relative; }
.cta-band .contact-line { font-family: var(--font-heading); font-size: 1rem; }
@media (min-width: 768px) {
  .cta-band .container { padding: 4rem 3rem; }
}

/* === FAQ === */
.faq { padding: 3rem 0; }
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
  color: var(--color-neutral-dark); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 1rem 0 0; color: var(--color-muted); }

/* === Contact === */
.contact-details { padding: 3rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  background: #fff; padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--color-primary); }
.contact-card address { font-style: normal; color: var(--color-muted); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--color-border); color: var(--color-muted); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }

/* === Contact form === */
.contact-form-section { padding: 3rem 0; }
.section-lede { text-align: center; color: var(--color-muted); margin-bottom: 2rem; }
.contact-form {
  background: #fff; padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  width: 100%; padding: .75rem .9rem; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light);
  color: var(--color-text); transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.form-row textarea { resize: vertical; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--color-muted); margin: 1rem 0 1.5rem; line-height: 1.5; }
.form-consent input { margin-top: .2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255, 255, 255, .8);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; font-weight: 600; }
.site-footer nav a { display: block; color: rgba(255, 255, 255, .75); padding: .3rem 0; font-size: .95rem; }
.site-footer nav a:hover { color: #fff; }
.site-footer .tagline { font-family: var(--font-heading); font-style: italic; color: rgba(255, 255, 255, .7); margin-top: .75rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; font-size: .9rem; }
.site-footer address a { color: rgba(255, 255, 255, .85); }
.legal-links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.legal-links a { font-size: .85rem; }
.copyright { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .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; border-radius: var(--radius);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .4);
  max-width: 560px; margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; 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(250, 245, 255, .3); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(250, 245, 255, .1); }
.cookie-banner__prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(250, 245, 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 button { align-self: flex-start; margin-top: .5rem; }

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