:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #F97316;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1235;
  --color-muted: #55486B;
  --color-border: rgba(76, 29, 149, 0.14);
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-soft: 0 2px 20px rgba(76, 29, 149, 0.08);
  --shadow-lift: 0 24px 50px -24px rgba(76, 29, 149, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-neutral-dark); }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--color-primary); font-weight: 600; margin-bottom: 0.75rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 12px 30px -12px rgba(124, 58, 237, 0.6); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(124, 58, 237, 0.75); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: rgba(76, 29, 149, 0.25); }
.btn-ghost:hover { background: rgba(124, 58, 237, 0.08); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(249, 115, 22, 0.6); }

/* === Header (glass) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(250, 245, 255, 0.7);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  transition: box-shadow 0.2s, background 0.2s;
}
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 10px 30px -20px rgba(76, 29, 149, 0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.9rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.logo:hover { text-decoration: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: transparent; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-toggle__bar { width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav.is-open { display: block; position: absolute; inset: 100% 0 auto 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.primary-nav.is-open ul { display: flex; flex-direction: column; gap: 0.25rem; }
.primary-nav a { display: block; padding: 0.65rem 0.5rem; color: var(--color-neutral-dark); font-weight: 500; border-radius: 8px; }
.primary-nav a:hover { background: rgba(124, 58, 237, 0.08); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta { background: var(--color-primary); color: #fff !important; padding: 0.55rem 1rem !important; border-radius: 999px !important; }
.nav-cta:hover { background: var(--color-neutral-dark); }

/* === Hero (saas-spotlight) === */
.hero { position: relative; overflow: hidden; padding-block: 3.5rem 3rem; }
.saas-hero {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.08) 0%, rgba(167, 139, 250, 0.05) 50%, transparent 100%);
}
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 500px; background: radial-gradient(600px circle at 50% 0%, rgba(249, 115, 22, 0.14), transparent 70%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-inner h1 { max-width: 20ch; margin-inline: auto; }
.lede { max-width: 58ch; margin: 0 auto 1.75rem; font-size: 1.15rem; color: var(--color-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-visual { max-width: 960px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(76, 29, 149, 0.4), 0 0 0 1px rgba(76, 29, 149, 0.08); }
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.proof-strip {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  text-align: center;
}
.proof-strip li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem; }
.proof-strip strong { font-family: var(--font-heading); font-size: 1.35rem; color: var(--color-neutral-dark); }
.proof-strip span { font-size: 0.85rem; color: var(--color-muted); }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-alt { background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(167, 139, 250, 0.02)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card p { color: var(--color-muted); margin: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.15));
  color: var(--color-primary); margin-bottom: 0.75rem;
}

/* === Quote === */
.quote { margin: 0; padding: 2rem; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--color-accent); box-shadow: var(--shadow-soft); }
.quote p { font-size: 1.15rem; line-height: 1.7; color: var(--color-text); }
.quote cite { font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  margin: 3rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; border-radius: 24px;
}
.cta-band .container { padding-block: 2.5rem; }
.cta-inner { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.pricing-card {
  position: relative;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: 0 30px 60px -30px rgba(249, 115, 22, 0.35); }
.pricing-card__badge {
  position: absolute; top: -12px; right: 1.5rem;
  background: var(--color-accent); color: #fff;
  padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
}
.pricing-card__plan { font-size: 1.35rem; margin-bottom: 0.25rem; }
.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 0.5rem; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.5rem; }
.pricing-card__features { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.pricing-card__features li { display: flex; gap: 0.5rem; align-items: flex-start; }
.pricing-card__features span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { margin-top: auto; align-self: stretch; }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq p { margin: 0; color: var(--color-muted); }

/* === Contact page === */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.contact-block { font-style: normal; line-height: 1.7; margin: 1rem 0; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours caption { text-align: left; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); padding-bottom: 0.5rem; }
.hours th, .hours td { padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 0.95rem; }
.hours th { color: var(--color-muted); font-weight: 500; }

.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 500; color: var(--color-neutral-dark); font-size: 0.9rem; }
.form-row input, .form-row textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.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, 0.15); }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); }
.form-consent input { margin-top: 0.2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: #E9E4F5; margin-top: 4rem; padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h4 { color: #fff; margin-bottom: 0.85rem; }
.site-footer a { color: #D8CBFF; }
.site-footer a:hover { color: #fff; }
.logo-footer img { height: 60px; }
.tagline { color: rgba(255, 255, 255, 0.75); margin-top: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer address { font-style: normal; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.legal-links { margin-top: 1rem; }
.copyline { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; margin-top: 2rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.copyline p { margin: 0; }

/* === 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: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; font-size: 0.95rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  padding: 0.55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.12); color: #fff;
}
.cookie-banner button:hover { background: rgba(255, 255, 255, 0.2); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; background: var(--color-primary); }

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

/* === Responsive === */
@media (min-width: 640px) {
  .proof-strip { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo-footer img { height: 72px; }
  .section { padding-block: 5rem; }
  .hero { padding-block: 5.5rem 4rem; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .pricing-card--featured { transform: translateY(-8px); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; background: transparent; padding: 0; border: 0; box-shadow: none; }
  .primary-nav.is-open { position: static; background: transparent; padding: 0; border: 0; box-shadow: none; }
  .primary-nav ul { display: flex; flex-direction: row; gap: 0.25rem; align-items: center; }
  .primary-nav a { padding: 0.5rem 0.85rem; font-size: 0.95rem; }
}
