:root {
  --color-primary: #1E3A8A;
  --color-secondary: #3B82F6;
  --color-accent: #CA8A04;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #F8FAFC;
  --color-text: #0F172A;
  --color-muted: #475569;
  --color-border: rgba(30, 58, 138, 0.12);
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 18px;
  --shadow-soft: 0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 50px -20px rgba(30, 58, 138, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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-secondary); text-decoration: none; }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; 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-flex; align-items: center; justify-content: center; gap: .5rem; padding: .875rem 1.5rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; text-decoration: none; line-height: 1; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 8px 24px -8px rgba(30, 58, 138, 0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(30, 58, 138, 0.55); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-ghost:hover { background: rgba(59, 130, 246, 0.08); transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #a26f03; transform: translateY(-2px); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* === Header (glass nav) === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 252, 0.7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled { background: rgba(248, 250, 252, 0.92); border-bottom-color: var(--color-border); box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.15); }
.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.75rem; }
.primary-nav a { position: relative; color: var(--color-primary); 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-accent); 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); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-border); color: var(--color-primary); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 767px) {
  .primary-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: .75rem; border-radius: 14px; box-shadow: var(--shadow-soft); border: 1px solid var(--color-border); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .75rem 1rem; border-radius: 10px; }
  .primary-nav a:hover { background: rgba(59, 130, 246, 0.08); }
  .primary-nav a::after { display: none; }
}

/* === Hero (saas-spotlight) === */
.hero { position: relative; overflow: hidden; padding-block: 3.5rem 4rem; background: linear-gradient(135deg, rgba(30, 58, 138, 0.06), rgba(59, 130, 246, 0.04)); }
.hero-glow { position: absolute; inset: -20% 0 auto 0; height: 60%; background: radial-gradient(60% 60% at 50% 0%, rgba(202, 138, 4, 0.12), transparent 70%); 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-secondary); margin-bottom: 1rem; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.lede { max-width: 56ch; margin-inline: auto; color: var(--color-muted); font-size: 1.125rem; margin-block: 1.25rem 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 3rem; }
.hero-visual { max-width: 960px; margin-inline: auto; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(30, 58, 138, 0.45), 0 0 0 1px rgba(30, 58, 138, 0.06); background: #fff; }
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 768px) { .hero { padding-block: 5rem 5.5rem; } }

/* === Sections === */
.section { padding-block: 4rem; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--color-muted); }

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

/* === Cards === */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.75rem; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .95rem; }
.card-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(30, 58, 138, 0.1)); color: var(--color-primary); margin-bottom: 1.25rem; }
a.card-link { display: block; color: inherit; }
a.card-link:hover { color: inherit; }

/* === Testimonial === */
.testimonial { position: relative; margin: 0; padding: 2.5rem 1.5rem; text-align: center; background: #fff; border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.testimonial .quote-mark { color: rgba(59, 130, 246, 0.18); margin: 0 auto .75rem; display: block; }
.testimonial p { font-size: 1.15rem; line-height: 1.65; color: var(--color-text); max-width: 60ch; margin: 0 auto 1rem; font-family: var(--font-heading); font-weight: 500; }
.testimonial cite { color: var(--color-muted); font-style: normal; font-size: .95rem; }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding-block: 4rem; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(248, 250, 252, 0.85); max-width: 56ch; margin: 0 auto 1.75rem; }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 960px) { .pricing-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 2.25rem 1.75rem; border-radius: 16px; border: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: 0 20px 50px -20px rgba(202, 138, 4, 0.35); }
.pricing-card__badge { position: absolute; top: 1rem; right: 1rem; background: var(--color-accent); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; letter-spacing: 0.03em; text-transform: uppercase; }
.pricing-card__plan { margin-bottom: .25rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-primary); margin-bottom: .75rem; }
.pricing-card__lede { color: var(--color-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.pricing-card__features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; color: var(--color-text); }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { margin-top: auto; align-self: stretch; text-align: center; }

/* === FAQ === */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem 1.25rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); cursor: pointer; padding: .25rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; font-size: 1.5rem; line-height: 1; color: var(--color-accent); transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { background: #fff; padding: 2rem 1.5rem; border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-form { padding: 2.5rem; } }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 500; color: var(--color-primary); font-size: .9rem; }
.form-row input, .form-row textarea { font-family: var(--font-body); font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-text); transition: border-color .2s, box-shadow .2s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.form-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--color-muted); }
.form-consent input { margin-top: .25rem; }
.contact-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 2rem; text-align: center; box-shadow: var(--shadow-soft); }
.contact-card p { color: var(--color-muted); margin-bottom: 1.5rem; }

/* === Footer === */
.site-footer { background: var(--color-primary); color: rgba(248, 250, 252, 0.85); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(248, 250, 252, 0.85); font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-tagline { color: rgba(248, 250, 252, 0.75); font-size: .95rem; margin-top: .5rem; }
.footer-contact address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .875rem; }
.copyright { border-top: 1px solid rgba(248, 250, 252, 0.15); padding-top: 1.25rem; font-size: .85rem; color: rgba(248, 250, 252, 0.7); }
.copyright 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 1.25rem; border-radius: 14px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.4); max-width: 640px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .75rem; font-size: .9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__prefs { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(248, 250, 252, 0.2); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner .btn-ghost { color: var(--color-neutral-light); border-color: rgba(248, 250, 252, 0.3); }
.cookie-banner .btn-ghost:hover { background: rgba(248, 250, 252, 0.1); }

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