:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --color-text: #1E1B4B;
  --color-muted: #4B4F7A;
  --color-border: rgba(49, 46, 129, 0.12);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px rgba(49, 46, 129, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  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-hover); }
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: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

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

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(99, 102, 241, 0.45); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--color-neutral-dark);
  border-color: var(--color-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 242, 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-hover), box-shadow .25s var(--ease-hover);
}
.site-header.scrolled { background: rgba(238, 242, 255, 0.92); box-shadow: 0 10px 30px -20px rgba(49,46,129,.25); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.6rem 1.25rem;
  max-width: 1200px; margin-inline: auto;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.primary-nav { display: none; align-items: center; gap: 1.4rem; }
.primary-nav a {
  color: var(--color-neutral-dark); font-weight: 500; position: relative; padding: 0.35rem 0;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-hover);
}
.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: #fff; padding: 0.55rem 1.1rem; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(99,102,241,.3);
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-2px); }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; left: 1rem; right: 1rem; top: calc(100% + 8px);
  background: #fff; padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow-md);
  gap: 0.35rem;
}
.primary-nav.is-open a { padding: 0.75rem 0.5rem; border-radius: 10px; }
.primary-nav.is-open a:hover { background: var(--color-neutral-light); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .logo img { height: 96px; }
}

/* === Hero (saas-spotlight) === */
.hero {
  position: relative; overflow: hidden;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 55%, #F5F3FF 100%);
}
.hero-inner-page { padding: 2.5rem 0 3rem; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(60% 60% at 50% 30%, rgba(34, 197, 94, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; font-weight: 600; color: var(--color-primary);
  padding: 0.4rem 0.9rem; background: rgba(99,102,241,0.1); border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero .sub { max-width: 52ch; margin: 1rem auto 1.75rem; color: var(--color-muted); font-size: 1.15rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-visual {
  margin: 2rem auto 0; max-width: 900px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-visual img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.social-proof { margin-top: 2rem; color: var(--color-muted); font-size: 0.9rem; }

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

/* === Sections === */
.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head p { color: var(--color-muted); max-width: 60ch; margin-inline: auto; }
.intro { text-align: center; }
.intro p { color: var(--color-muted); font-size: 1.075rem; }

/* === Highlights grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }
.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,0.15), rgba(34,197,94,0.15));
  color: var(--color-primary); margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial {
  margin: 0; padding: 2.5rem; text-align: center;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial p { font-size: 1.15rem; color: var(--color-text); line-height: 1.7; font-style: italic; }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; font-weight: 600; color: var(--color-primary); }

/* === CTA band === */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 55ch; margin: 0 auto 1.5rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.cta-band .btn-primary:hover { color: var(--color-neutral-dark); background: var(--color-neutral-light); }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-3 { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  position: relative; background: #fff;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.is-featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--color-accent); color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 999px;
}
.pricing-card__plan { font-family: var(--font-heading); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 0.5rem; }
.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.75rem; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex-grow: 1; }
.pricing-card__features li { display: flex; gap: 0.5rem; padding: 0.4rem 0; color: var(--color-text); font-size: 0.95rem; border-bottom: 1px dashed var(--color-border); }
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__cta { margin-top: auto; text-align: center; }

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

/* === Contact === */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.contact-card h3 { color: var(--color-primary); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card address { font-style: normal; color: var(--color-text); line-height: 1.7; }
.contact-card p { margin: 0.35rem 0; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px dashed var(--color-border); }
.hours th { font-weight: 500; color: var(--color-muted); }

.contact-form { display: grid; gap: 1rem; }
.contact-form .field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label { font-weight: 500; color: var(--color-neutral-dark); font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border); border-radius: 12px;
  background: #fff; color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}
.contact-form button { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(238, 242, 255, 0.85);
  padding: 3.5rem 0 1.5rem; margin-top: 3rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer a { color: rgba(238, 242, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer .logo img { height: 60px; }
.site-footer .tagline { color: rgba(238, 242, 255, 0.7); margin-top: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 0.75rem; }
.copyright { border-top: 1px solid rgba(238, 242, 255, 0.15); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: rgba(238,242,255,0.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 1.5rem; border-radius: var(--radius);
  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: 0.95rem; color: rgba(238,242,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-reject] { background: transparent; color: var(--color-neutral-light); border-color: rgba(238,242,255,0.4); }
.cookie-banner [data-cookie-settings] { background: transparent; color: var(--color-neutral-light); border-color: rgba(238,242,255,0.4); }
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner__prefs { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(238,242,255,0.2); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { background: var(--color-primary); color: #fff; justify-self: start; margin-top: 0.5rem; }

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