/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #F5F3FF;
  --color-text: #1E1B4B;
  --color-muted: #4B5079;
  --color-border: rgba(30, 27, 75, 0.12);
  --color-white: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
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.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 255, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease-hover), border-color .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(245, 243, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(30, 27, 75, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s var(--ease-hover), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(245, 243, 255, 0.98);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  gap: .25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a { position: relative; color: var(--color-neutral-dark); font-weight: 500; padding: .75rem 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: .5rem; width: 100%; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-hover); }
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: .7rem 1.15rem;
  border-radius: 999px;
  margin-top: .5rem;
  text-align: center;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .5);
}
.primary-nav .nav-cta::after { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; display: flex; flex-direction: row; align-items: center; background: transparent; padding: 0; border: 0; gap: 1.75rem; }
  .primary-nav a { padding: .25rem 0; }
  .primary-nav a::after { bottom: -2px; }
  .primary-nav .nav-cta { margin-top: 0; margin-left: .75rem; }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99, 102, 241, .65); text-decoration: none; }
.btn-ghost {
  background: rgba(99, 102, 241, .08);
  color: var(--color-primary);
}
.btn-ghost:hover { background: rgba(99, 102, 241, .14); transform: translateY(-2px); text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Hero === */
.hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.saas-hero {
  background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, .28), transparent 60%),
              radial-gradient(circle at 75% 20%, rgba(16, 185, 129, .18), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--color-primary);
  background: rgba(99, 102, 241, .1);
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-inner h1 { margin-bottom: 1rem; }
.hero-inner .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 640px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero-visual { max-width: 960px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -20px; background: radial-gradient(circle, rgba(16, 185, 129, .15), transparent 70%); z-index: -1; }
.hero-visual img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hero-visual.small { max-width: 640px; }
.hero.compact { padding-bottom: 2.5rem; }

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

/* === Proof strip === */
.proof-strip { padding: 1.5rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-white); }
.proof-strip p { margin: 0; text-align: center; color: var(--color-muted); font-weight: 500; }

/* === Sections === */
.intro { padding: 4rem 0; }
.intro .narrow { text-align: left; }
.intro h2 { text-align: left; }
.intro p { color: var(--color-muted); font-size: 1.05rem; }

.split-grid { display: grid; gap: 2.5rem; align-items: center; }
.split-visual img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .split-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }

/* === Highlights grid === */
.highlights { padding: 4rem 0; background: linear-gradient(180deg, #ffffff 0%, var(--color-neutral-light) 100%); }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(129, 140, 248, .12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); font-size: .975rem; margin: 0; }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { text-decoration: none; }

/* === Testimonial === */
.testimonial { padding: 4rem 0; background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.testimonial blockquote { margin: 0; text-align: center; }
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-neutral-light);
  max-width: 780px; margin: 0 auto 1.25rem;
}
.testimonial cite { color: var(--color-secondary); font-style: normal; font-weight: 500; }

/* === CTA band === */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: var(--color-white); color: var(--color-primary); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3); }
.cta-band .btn-primary:hover { background: var(--color-neutral-light); }

/* === Pricing === */
.pricing { padding: 4rem 0; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  position: relative;
  background: var(--color-white);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.pricing-card.is-featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pricing-card__badge {
  position: absolute; top: -14px; right: 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 999px;
}
.pricing-card__plan { font-size: 1.15rem; margin-bottom: .25rem; color: var(--color-primary); }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-neutral-dark); margin: 0 0 .5rem; }
.pricing-card__lede { color: var(--color-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.pricing-card__features { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.pricing-card__features li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; color: var(--color-text); }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { margin-top: auto; align-self: stretch; text-align: center; }

/* === Contact band === */
.contact-band { padding: 3rem 0; background: var(--color-neutral-light); text-align: center; }
.contact-band h2 { margin-bottom: .5rem; }
.contact-band p { color: var(--color-muted); }

/* === Contact form === */
.contact-layout { padding: 4rem 0; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; color: var(--color-neutral-dark); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}
.form-consent { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; font-weight: 400 !important; font-size: .9rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; }
.contact-form .btn { align-self: flex-start; margin-top: .5rem; }

/* === FAQ === */
.faq { padding: 4rem 0; }
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  background: var(--color-white);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-heading); font-weight: 600; cursor: pointer; color: var(--color-neutral-dark); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--color-primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--color-muted); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(245, 243, 255, .82); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.site-footer .logo img { height: 64px; }
.site-footer .tagline { color: rgba(245, 243, 255, .7); margin-top: .75rem; }
.site-footer h4 { color: var(--color-white); font-family: var(--font-heading); margin-bottom: 1rem; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: rgba(245, 243, 255, .82); }
.site-footer a:hover { color: var(--color-white); }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { margin-top: 1rem; font-size: .9rem; }
.copyright { border-top: 1px solid rgba(245, 243, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; }
.copyright p { margin: 0; text-align: center; color: rgba(245, 243, 255, .6); font-size: .875rem; }

/* === 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: var(--shadow-lg);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(245, 243, 255, .1);
  color: var(--color-neutral-light);
  transition: background .2s;
}
.cookie-banner button:hover { background: rgba(245, 243, 255, .2); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: var(--color-white); }
.cookie-banner [data-cookie-accept]:hover { background: #0ea672; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; background: var(--color-primary); color: var(--color-white); }

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