/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1E1B2E;
  --color-muted: #6B5B85;
  --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);
  --shadow-sm: 0 2px 20px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(76, 29, 149, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
}

/* === 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); 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.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-align: center;
  line-height: 1.2;
}
.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, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(124, 58, 237, 0.6); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.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 var(--color-border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.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;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--color-neutral-dark);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.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 {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(250, 245, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: 0.6rem 0.25rem;
  position: relative;
}
.primary-nav a.is-active { color: var(--color-primary); }
.nav-cta {
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 999px;
  margin-top: 0.5rem;
}

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

/* === Hero (saas-spotlight) === */
.hero-saas {
  position: relative;
  padding-block: 4rem 3rem;
  background: linear-gradient(180deg, #FAF5FF 0%, #F3E8FF 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  margin-bottom: 1.25rem;
}
.hero-saas h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin: 1rem auto 2rem;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-visual {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin-inline: auto;
}
.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-compact { padding-block: 4rem 2rem; }
.hero-compact .hero-inner { max-width: 780px; margin-inline: auto; }

@media (min-width: 768px) {
  .hero-saas { padding-block: 6rem 4rem; }
  .hero-sub { font-size: 1.25rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; max-width: 60ch; margin-inline: auto; }
.intro { text-align: left; }
.intro .container.narrow { max-width: 780px; }
.intro h2 { text-align: left; }
.intro .section-sub { margin-inline: 0; text-align: left; margin-bottom: 1.5rem; }
.intro p { font-size: 1.05rem; line-height: 1.75; color: var(--color-text); }
.content-image { margin-block: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff;
  padding: 2rem;
  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-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 197, 94, 0.12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.98rem; margin: 0; }

/* === Testimonial === */
.testimonial blockquote {
  margin: 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(167, 139, 250, 0.06));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  text-align: center;
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-neutral-dark);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.testimonial cite { color: var(--color-muted); font-style: normal; font-size: 0.95rem; font-weight: 500; }

/* === CTA Band === */
.cta-band {
  margin-block: 4rem;
  padding-block: 4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.2), transparent 50%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; max-width: 26ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3); }
.cta-band .btn-primary:hover { color: var(--color-neutral-dark); }

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

/* === Contact Form === */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 500; font-size: 0.92rem; color: var(--color-neutral-dark); }
.form-row input,
.form-row textarea {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color .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(124, 58, 237, 0.15);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-block: 0.5rem;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }
.contact-form button[type="submit"] { justify-self: start; margin-top: 0.5rem; }

/* === Hours table === */
.hours-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hours-table th, .hours-table td { padding: 0.85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 600; }
.hours-table td { color: var(--color-muted); }

.contact-band { text-align: center; padding-block: 3rem; background: rgba(124, 58, 237, 0.04); border-radius: var(--radius-lg); }
.contact-band a { font-weight: 500; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3.5rem 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { filter: brightness(0) invert(1); height: 64px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.copyright { padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); text-align: center; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* === 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 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin-inline: auto;
  font-size: 0.92rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; color: rgba(255,255,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.cookie-banner__actions .btn-primary { background: var(--color-accent); color: #fff; box-shadow: none; }
.cookie-banner__actions .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255,255,255,0.15); }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs .btn { margin-top: 0.5rem; justify-self: start; }

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