:root {
  --color-primary: #1E3A8A;
  --color-secondary: #1E40AF;
  --color-accent: #B45309;
  --color-neutral-dark: #0F172A;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(15, 23, 42, 0.12);
  --color-muted: rgba(15, 23, 42, 0.65);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(15, 23, 42, 0.18);
  --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 { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-neutral-dark);
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow, .narrow { max-width: 780px; margin-inline: auto; padding-inline: 1.25rem; }
.center { text-align: center; }
.center h1, .center h2 { margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: .5rem 1rem; z-index: 10000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* === Header / 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 var(--ease-hover), box-shadow .25s var(--ease-hover), border-color .25s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 4px 24px -12px rgba(15, 23, 42, 0.15);
  border-bottom-color: var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent; border: 0; padding: .5rem; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 5px;
}
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav { display: none; gap: 1.5rem; align-items: center; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem; position: relative; padding: .25rem 0; }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--color-secondary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-hover);
}
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta {
  background: var(--color-primary); color: #fff; padding: .55rem 1.1rem; border-radius: 999px;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-secondary); }
.primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem 0 1.25rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-family: var(--font-heading);
  font-size: .95rem; cursor: pointer; border: 0; transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: rgba(30, 58, 138, 0.06); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 12px 32px -12px rgba(180, 83, 9, .5); }
.btn-accent:hover { background: #92400E; }

/* === Hero === */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, rgba(30,58,138,0.06), rgba(180,83,9,0.05));
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 500px;
  background: radial-gradient(closest-side, rgba(30,64,175,.22), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin-inline: auto; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { font-size: 1.2rem; max-width: 55ch; margin: 0 auto 2rem; color: var(--color-muted); }
.hero__ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(30, 58, 138, 0.4); background: #fff; }
.hero__visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero--compact { padding-bottom: 2rem; }
.hero--compact .hero__inner { padding-bottom: 0; }

/* === Sections === */
.section { padding: 4rem 0; }
.section-tinted { background: linear-gradient(180deg, rgba(30,58,138,0.04), rgba(30,58,138,0.02)); }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.section-head.center .lede { max-width: 60ch; margin-inline: auto; }

/* === Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }
.card {
  background: #fff; padding: 1.75rem; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,58,138,0.12), rgba(180,83,9,0.12));
  color: var(--color-primary); margin-bottom: 1rem;
}
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }

/* === Testimonial === */
.testimonial-section { background: transparent; }
.testimonial { margin: 0; }
.testimonial__portrait {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.25rem; box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0 0 1rem; }
.testimonial blockquote p {
  font-size: 1.35rem; font-family: var(--font-heading); font-weight: 500;
  line-height: 1.45; color: var(--color-neutral-dark); max-width: 60ch; margin-inline: auto;
}
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(closest-side, rgba(180,83,9,0.35), transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(248, 250, 252, 0.9); max-width: 55ch; margin: 0 auto 1.5rem; }
.cta-band__meta { font-size: .95rem; color: rgba(248, 250, 252, 0.85); }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.pricing-card {
  position: relative; background: #fff; padding: 2.25rem; border-radius: 16px;
  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--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); }
.pricing-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--color-accent); color: var(--color-neutral-light);
  padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  font-family: var(--font-heading); letter-spacing: .04em; text-transform: uppercase;
}
.pricing-card__plan { font-size: 1.25rem; margin-bottom: .5rem; }
.pricing-card__price { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; font-family: var(--font-heading); color: var(--color-primary); margin-bottom: .5rem; letter-spacing: -0.02em; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.pricing-card__features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.pricing-card__features span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { margin-top: auto; text-align: center; }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; margin-bottom: .75rem;
}
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-heading); list-style: none; padding-right: 1.5rem; position: relative; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: var(--color-secondary); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-weight: 500; font-size: .9rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--color-border);
  border-radius: 10px; background: var(--color-neutral-light); color: var(--color-neutral-dark);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(30,64,175,.2);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: .3rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(248, 250, 252, 0.85); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer p { color: rgba(248, 250, 252, 0.7); }
.site-footer a { color: rgba(248, 250, 252, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-legal { flex-direction: row; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .88rem; }
.logo--footer img { height: 60px; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.copyline { border-top: 1px solid rgba(248, 250, 252, 0.1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: rgba(248, 250, 252, 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-md);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; color: rgba(248, 250, 252, 0.9); }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner button {
  font: inherit; padding: .55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(248, 250, 252, 0.1); color: var(--color-neutral-light); font-weight: 500; font-size: .88rem;
  transition: background .2s;
}
.cookie-banner button:hover { background: rgba(248, 250, 252, 0.18); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #92400E; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .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; } }

/* === Responsive === */
@media (min-width: 640px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
  .hero { padding: 6rem 0 4.5rem; }
  .section { padding: 5.5rem 0; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__visual img { aspect-ratio: 21/9; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4rem; }
}
