/* === Tokens === */
:root {
  --color-primary: #8B5CF6;
  --color-secondary: #C4B5FD;
  --color-accent: #10B981;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1147;
  --color-muted: #5B4B8A;
  --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);
  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(76, 29, 149, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(76, 29, 149, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
}

/* === Reset === */
*, *::before, *::after { 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); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .75em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 780px; }
.section { padding-block: 4rem; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05)); }
.section-title { text-align: center; margin-bottom: 2.5rem; }

/* === Header (glass 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 rgba(76, 29, 149, 0.08); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.scrolled { background: rgba(250, 245, 255, 0.92); box-shadow: 0 4px 20px -10px rgba(76, 29, 149, 0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.primary-nav { display: none; align-items: center; gap: 1.5rem; }
.primary-nav a { position: relative; color: var(--color-text); font-weight: 500; font-size: .95rem; padding: .25rem 0; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { padding: .55rem 1.1rem; border-radius: 999px; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s 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); }

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

/* Mobile nav open */
@media (max-width: 899px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(250, 245, 255, 0.98); backdrop-filter: blur(20px); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(76, 29, 149, 0.08); display: none; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .85rem 0; border-bottom: 1px solid rgba(76, 29, 149, 0.06); }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta { margin-top: .75rem; text-align: center; }
}

/* === Hero (saas-spotlight) === */
.hero { position: relative; padding-block: 4rem 3rem; overflow: hidden; background: linear-gradient(180deg, rgba(196, 181, 253, 0.35), rgba(250, 245, 255, 0)); }
.hero-glow { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(16, 185, 129, 0.14), transparent 60%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: .8rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.hero h1 { max-width: 22ch; margin-inline: auto; font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin: 1rem auto 2rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-visual { max-width: 1000px; margin: 2rem auto 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: -30% -10% auto -10%; height: 60%; background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25), transparent 70%); pointer-events: none; z-index: -1; }
.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-inner-page { padding-block: 3rem 2rem; }
.hero-text-only .hero-visual { display: none; }

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

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.6rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: .95rem; cursor: pointer; border: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.5); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(139, 92, 246, 0.6); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid rgba(76, 29, 149, 0.2); }
.btn-ghost:hover { color: var(--color-neutral-dark); background: rgba(139, 92, 246, 0.08); transform: translateY(-2px); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Proof strip === */
.proof-strip { padding-block: 1.5rem; border-block: 1px solid rgba(76, 29, 149, 0.08); background: rgba(255, 255, 255, 0.6); }
.proof-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; color: var(--color-muted); font-size: .95rem; }
.proof-strip strong { color: var(--color-neutral-dark); font-family: var(--font-heading); font-size: 1.15rem; margin-right: .35rem; }

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; padding: 1.75rem; border-radius: var(--radius); border: 1px solid rgba(76, 29, 149, 0.08); 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 h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); font-size: .95rem; margin: 0; }
.icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(16, 185, 129, 0.12)); color: var(--color-primary); margin-bottom: 1rem; }

/* === Testimonial === */
.testimonial { position: relative; margin: 0; padding: 2.5rem 1.5rem; text-align: center; }
.testimonial::before { content: '"'; position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-size: 5rem; color: var(--color-secondary); line-height: 1; }
.testimonial p { font-size: 1.2rem; font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 500; line-height: 1.5; margin-bottom: 1rem; }
.testimonial cite { display: block; font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band { margin-block: 3rem; }
.cta-band .container { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding: 3rem 2rem; border-radius: 24px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band .container::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.85); position: relative; margin-bottom: 1.5rem; }
.cta-band .btn { position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); }
.cta-band .btn-primary:hover { color: var(--color-neutral-dark); background: var(--color-neutral-light); }
.cta-band a { color: #fff; text-decoration: underline; }

/* === FAQ === */
.faq details { background: #fff; border: 1px solid rgba(76, 29, 149, 0.08); border-radius: var(--radius-sm); padding: 1.1rem 1.35rem; margin-bottom: .75rem; transition: box-shadow .2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; 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.4rem; color: var(--color-primary); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin-top: .75rem; color: var(--color-muted); font-size: .95rem; }

/* === Contact === */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.contact-info { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid rgba(76, 29, 149, 0.08); box-shadow: var(--shadow-sm); }
.contact-info address { font-style: normal; margin-bottom: 1.5rem; line-height: 1.9; color: var(--color-muted); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed rgba(76, 29, 149, 0.1); font-size: .95rem; color: var(--color-muted); }
.hours li:last-child { border-bottom: 0; }

.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid rgba(76, 29, 149, 0.08); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.contact-form label { font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); margin-top: 1rem; margin-bottom: .35rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: .75rem .9rem; border: 1.5px solid rgba(76, 29, 149, 0.15); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.25rem; font-size: .85rem; color: var(--color-muted); font-weight: 400; }
.form-consent input { margin-top: .2rem; accent-color: var(--color-primary); }
.contact-form button { margin-top: 1.5rem; align-self: flex-start; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.8); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.site-footer .tagline { margin-top: 1rem; color: rgba(255, 255, 255, 0.7); font-size: .95rem; max-width: 32ch; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.9; font-size: .92rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 1rem; }
.legal-nav { margin-top: 1rem; }
.copyright { padding-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, 0.55); text-align: center; }

/* === 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: 16px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4); max-width: 560px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(250, 245, 255, 0.9); font-size: .9rem; margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn-primary { background: var(--color-accent); color: #fff; box-shadow: none; }
.cookie-banner__actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: rgba(250, 245, 255, 0.9); }
.cookie-banner__prefs input { accent-color: var(--color-accent); }
.cookie-banner__prefs button { margin-top: .5rem; align-self: flex-start; }

/* === Reveal (scroll animation) === */
.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; } }
