/* === Tokens === */
:root {
  --color-primary: #1E3A8A;
  --color-secondary: #3B82F6;
  --color-accent: #CA8A04;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #F8FAFC;
  --color-ink: #0F172A;
  --color-muted: #475569;
  --color-border: rgba(15, 23, 42, 0.10);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(15, 23, 42, 0.20);
  --shadow-lg: 0 24px 60px -20px rgba(30, 58, 138, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
*, *::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-ink);
  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; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .75rem; color: var(--color-ink); }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--color-ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: 4rem; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.0625rem; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease-hover), border-color .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.12);
}
.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; }
.nav-toggle { background: transparent; border: 1px solid var(--color-border); border-radius: 10px; padding: .5rem; color: var(--color-ink); display: inline-flex; }
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; }
.primary-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--color-border);
  flex-direction: column; padding: 1rem 1.25rem; gap: .25rem;
  box-shadow: var(--shadow-md);
}
.primary-nav a {
  padding: .625rem .5rem; color: var(--color-ink); font-weight: 500;
  border-radius: 8px; position: relative;
}
.primary-nav a:hover { background: rgba(59, 130, 246, 0.08); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta {
  background: var(--color-primary); color: #fff; margin-top: .5rem;
  text-align: center; padding: .625rem 1rem;
}
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    background: transparent; box-shadow: none; border: 0; padding: 0; gap: .25rem;
  }
  .primary-nav a { padding: .5rem .875rem; }
  .primary-nav a::after {
    content: ''; position: absolute; left: .875rem; right: .875rem; bottom: .25rem;
    height: 2px; background: var(--color-secondary);
    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 { margin-top: 0; margin-left: .5rem; }
  .primary-nav .nav-cta::after { display: none; }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s var(--ease-hover);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; box-shadow: 0 10px 24px -10px rgba(30, 58, 138, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(30, 58, 138, 0.65); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); background: rgba(59, 130, 246, 0.06); }
.btn-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(202, 138, 4, 0.6);
}
.btn-accent:hover { background: #a67203; color: #fff; box-shadow: 0 16px 32px -12px rgba(202, 138, 4, 0.7); }

/* === Hero === */
.hero {
  position: relative; overflow: hidden;
  padding-block: 3.5rem 4rem;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(202, 138, 4, 0.14), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(180deg, #eff6ff 0%, var(--color-neutral-light) 90%);
}
.hero-compact { padding-block: 3rem 2.5rem; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .8125rem; font-weight: 600; color: var(--color-primary);
  margin-bottom: 1rem; padding: .375rem .75rem; border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
}
.hero h1 { max-width: 22ch; }
.hero .lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 56ch; margin-bottom: 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff; position: relative;
}
.hero-visual img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-visual::after {
  content: ''; position: absolute; inset: -30% -20% auto auto; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(202, 138, 4, 0.25), transparent 65%);
  pointer-events: none;
}
.proof-strip {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  color: var(--color-muted); font-size: .9375rem; font-weight: 500;
}
.proof-strip span { position: relative; padding-left: 1.25rem; }
.proof-strip span::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-secondary);
}

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 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 .25s var(--ease-hover), box-shadow .25s var(--ease-hover), border-color .25s var(--ease-hover);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59, 130, 246, 0.35); }
a.card-link { color: inherit; }
a.card-link:hover { text-decoration: none; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.12), rgba(59, 130, 246, 0.12));
  color: var(--color-primary); margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: .9375rem; }

/* === Testimonial === */
.testimonial { margin: 0; text-align: center; }
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.4; color: var(--color-ink);
  max-width: 40em; margin-inline: auto;
}
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--color-primary); }

/* === CTA Band === */
.cta-band {
  margin: 3rem 1.25rem; border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  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: auto -20% -50% -20%; height: 300px;
  background: radial-gradient(ellipse, rgba(202, 138, 4, 0.35), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin-inline: auto; margin-bottom: 1.5rem; }
.cta-band__meta { font-size: .875rem; color: rgba(255,255,255,0.75) !important; }
.cta-band .btn { position: relative; z-index: 1; }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card {
  position: relative; padding: 2.25rem 1.75rem; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); }
.pricing-card__badge {
  position: absolute; top: -14px; right: 1.5rem;
  background: var(--color-accent); color: #fff;
  padding: .375rem .875rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.pricing-card__plan { font-size: 1.125rem; color: var(--color-primary); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-ink); margin-bottom: .75rem; }
.pricing-card__lede { color: var(--color-muted); font-size: .9375rem; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .625rem; }
.pricing-card__features li { display: flex; gap: .5rem; font-size: .9375rem; color: var(--color-ink); align-items: flex-start; }
.pricing-card__cta { margin-top: auto; width: 100%; }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid var(--color-border); border-radius: 12px;
  padding: 1rem 1.25rem; margin-bottom: .625rem;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--color-secondary); }
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-heading);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--color-ink);
}
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact === */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list strong { color: var(--color-primary); font-family: var(--font-heading); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; margin-bottom: 1.125rem; }
.field label { font-weight: 500; font-size: .9375rem; margin-bottom: .375rem; }
.field input, .field textarea {
  font: inherit; padding: .75rem .875rem; border: 1px solid var(--color-border);
  border-radius: 10px; background: var(--color-neutral-light); color: var(--color-ink);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-secondary); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; color: var(--color-muted); margin: .5rem 0 1.25rem; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: #0b1e4a; color: rgba(255,255,255,0.75); padding-block: 3rem 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .875rem; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; }
.logo-footer img { height: 60px; width: auto; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.tagline { color: rgba(255,255,255,0.7); font-size: .9375rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; }
.site-footer address { font-style: normal; font-size: .9375rem; line-height: 1.7; }
.legal-links { margin-top: 1.25rem !important; flex-direction: row !important; flex-wrap: wrap; gap: 1rem !important; }
.legal-links a { font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: .8125rem; color: rgba(255,255,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: 520px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9375rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  border: 0; padding: .5rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: .875rem;
  background: rgba(255,255,255,0.14); color: #fff;
  transition: background .2s;
}
.cookie-banner button:hover { background: rgba(255,255,255,0.24); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #a67203; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs [data-cookie-save] { margin-top: .5rem; align-self: flex-start; background: #fff; color: var(--color-primary); }

/* === Reveal on scroll === */
.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; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
