:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #6B5B95;
  --color-border: rgba(76, 29, 149, 0.14);
  --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 12px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 30px rgba(76, 29, 149, 0.10);
  --shadow-lg: 0 20px 60px -20px 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; }
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;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--color-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--color-neutral-dark); color: #fff; padding: .5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10000; }

/* === Header (glass) === */
.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 var(--color-border);
  transition: background .25s var(--ease), box-shadow .25s 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;
  padding: .75rem 1.25rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent; border: 0; color: var(--color-neutral-dark);
  padding: .5rem; cursor: pointer; border-radius: 8px;
}
.nav-toggle:hover { background: rgba(124,58,237,0.08); }
.primary-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(250, 245, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  flex-direction: column; gap: .25rem;
}
.primary-nav.open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark); font-weight: 500;
  padding: .6rem .5rem; border-radius: 8px;
  position: relative;
}
.primary-nav a:hover { background: rgba(124,58,237,0.08); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
.primary-nav .nav-cta {
  background: var(--color-primary); color: #fff;
  border-radius: 999px; padding: .55rem 1.1rem;
  text-align: center; margin-top: .25rem;
}
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static;
    flex-direction: row; align-items: center;
    padding: 0; background: transparent; border: 0;
    gap: .25rem;
  }
  .primary-nav a { padding: .5rem .85rem; }
  .primary-nav a:not(.nav-cta)::after {
    content: ""; position: absolute;
    left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
    background: var(--color-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .primary-nav a:not(.nav-cta):hover::after,
  .primary-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
  .primary-nav .nav-cta { margin-top: 0; margin-left: .5rem; }
}

/* === Hero (saas-spotlight) === */
.hero-saas {
  position: relative;
  padding: 3.5rem 0 2rem;
  background: linear-gradient(135deg, #FAF5FF 0%, #EDE4FF 55%, #DDD1FF 100%);
  overflow: hidden;
}
.hero-saas.hero-inner-page { padding-top: 2.5rem; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 30%, rgba(202,138,4,0.14), transparent 60%),
              radial-gradient(ellipse at 80% 10%, rgba(124,58,237,0.20), transparent 55%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-inner h1 { max-width: 22ch; margin-inline: auto; }
.lede {
  font-size: 1.15rem; line-height: 1.6;
  color: var(--color-muted);
  max-width: 52ch; margin: 1rem auto 1.75rem;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.hero-card {
  margin: 2rem auto 0;
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.proof-strip {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  font-size: .88rem;
  color: var(--color-muted);
}
.proof-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .75rem; text-align: center;
}

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

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  text-align: center;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  box-shadow: 0 10px 24px -12px rgba(124,58,237,0.55);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 32px -12px rgba(124,58,237,0.7); }
.btn-ghost {
  color: var(--color-neutral-dark);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; color: var(--color-primary); }
.btn-accent {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 10px 24px -12px rgba(202,138,4,0.6);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.06); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Sections === */
.section { padding: 4rem 0; }
.section-tint {
  background: linear-gradient(180deg, #fff 0%, #F5EFFF 100%);
  border-block: 1px solid var(--color-border);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }

/* === Grids & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .96rem; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover h3 { color: var(--color-primary); }
.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.14), rgba(202,138,4,0.14));
  color: var(--color-primary); margin-bottom: 1rem;
}

/* === Testimonials === */
.testimonial {
  margin: 0;
  padding: 2rem;
  background: #fff;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--color-neutral-dark);
}
.testimonial p { margin-bottom: 1rem; }
.testimonial cite {
  display: block; font-style: normal; font-size: .92rem;
  color: var(--color-muted); font-weight: 600;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(202,138,4,0.35), transparent 55%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0; }
@media (min-width: 768px) {
  .cta-band-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

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

/* === Contact page === */
.contact-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { margin-bottom: .5rem; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours caption { text-align: left; font-weight: 700; color: var(--color-neutral-dark); margin-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--color-border); }
.hours th { font-weight: 500; color: var(--color-muted); }
.office-photo img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-weight: 600; color: var(--color-neutral-dark); font-size: .95rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: #fff; color: var(--color-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.form-consent {
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: flex-start;
  font-size: .9rem; color: var(--color-muted);
}
.form-consent input { margin-top: .25rem; }
.form-consent span { flex: 1 1 200px; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,0.65); }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.logo-footer img { height: 64px; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.legal-links { margin-top: 1rem !important; font-size: .88rem; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: .85rem; color: rgba(255,255,255,0.6);
}
address { font-style: normal; line-height: 1.7; }

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

/* === 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);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 560px;
  margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font: inherit; font-size: .88rem; font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--color-neutral-light);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cookie-banner button:hover { background: rgba(255,255,255,0.1); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.cookie-banner [data-cookie-accept]:hover { filter: brightness(1.08); background: var(--color-accent); }
.cookie-banner__prefs {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: grid; gap: .5rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] {
  justify-self: start;
  margin-top: .5rem;
  background: var(--color-primary); border-color: var(--color-primary);
}
