:root {
  --color-primary: #0EA5E9;
  --color-secondary: #0284C7;
  --color-accent: #10B981;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-sm: 0 2px 20px rgba(12, 74, 110, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(12, 74, 110, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(12, 74, 110, 0.35);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(12,74,110,0.08);
  transition: background .2s, box-shadow .2s;
}
.site-header.scrolled { background: rgba(255,255,255,0.92); box-shadow: 0 6px 24px -12px rgba(12,74,110,0.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.primary-nav { display: none; align-items: center; gap: 1.5rem; }
.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-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 { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-2px); }
.nav-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 32px; height: 24px; background: transparent; border: 0; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}
.primary-nav.is-open { display: flex; }
@media (max-width: 899px) {
  .primary-nav.is-open { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(12,74,110,0.08); box-shadow: var(--shadow-md); }
  .primary-nav.is-open a { padding: .75rem 0; border-bottom: 1px solid rgba(12,74,110,0.06); }
  .primary-nav.is-open .nav-cta { margin-top: .75rem; text-align: center; border-bottom: 0; }
}

/* === Hero === */
.hero { position: relative; padding-block: 3rem 4rem; overflow: hidden; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }
@media (min-width: 768px) { .hero { padding-block: 5rem 6rem; } }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 20%, rgba(16,185,129,0.14), transparent 60%), radial-gradient(ellipse at 80% 60%, rgba(14,165,233,0.12), transparent 55%); }
.hero-inner { position: relative; text-align: center; }
.eyebrow { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-secondary); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { max-width: 28ch; margin-inline: auto; }
.lede { font-size: 1.2rem; color: rgba(12,74,110,0.75); max-width: 52ch; margin: 1.25rem auto 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero-image { margin-top: 2rem; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; padding: .85rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 10px 24px -10px rgba(14,165,233,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(14,165,233,0.65); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid rgba(12,74,110,0.2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-primary); }
.btn-accent { background: linear-gradient(135deg, var(--color-accent), #059669); color: #fff; box-shadow: 0 10px 24px -10px rgba(16,185,129,0.55); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(16,185,129,0.65); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Sections === */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.section-tinted { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: rgba(12,74,110,0.7); }

/* === Grids & 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;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12,74,110,0.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(16,185,129,0.14)); color: var(--color-secondary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: rgba(12,74,110,0.75); font-size: .95rem; margin: 0; }

/* === Testimonial === */
.testimonial { margin: 0; padding: 2rem; background: var(--color-neutral-light); border-radius: var(--radius); border-left: 4px solid var(--color-accent); text-align: left; }
.testimonial p { font-size: 1.15rem; font-family: var(--font-heading); font-weight: 500; line-height: 1.5; color: var(--color-neutral-dark); }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-size: .95rem; color: var(--color-secondary); font-weight: 600; }

/* === CTA band === */
.cta-band { padding-block: 3.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: 0; background: radial-gradient(circle at 20% 30%, rgba(16,185,129,0.25), transparent 55%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin-inline: auto; }
.contact-line { font-size: .95rem; }

/* === Form === */
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(12,74,110,0.06); }
.form-row { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.form-row label { font-weight: 500; font-size: .9rem; margin-bottom: .35rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea { font-family: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid rgba(12,74,110,0.15); border-radius: 10px; background: #fff; 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-primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.15); }
.form-consent { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: rgba(12,74,110,0.8); margin: 0 0 1.25rem; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(240,249,255,0.8); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.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 h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer .tagline { color: rgba(240,249,255,0.65); font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: rgba(240,249,255,0.8); font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { font-size: .92rem; margin-bottom: .75rem; }
.footer-contact a { color: rgba(240,249,255,0.9); }
.legal-links { font-size: .85rem; margin-top: 1rem; }
.copyright { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(240,249,255,0.12); font-size: .85rem; color: rgba(240,249,255,0.55); }
.logo-footer img { height: 60px; filter: brightness(0) invert(1); }

/* === 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: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; color: rgba(240,249,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { font-family: inherit; font-size: .88rem; font-weight: 500; padding: .55rem 1rem; border-radius: 999px; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__actions button[data-cookie-reject] { background: rgba(240,249,255,0.12); color: var(--color-neutral-light); }
.cookie-banner__actions button[data-cookie-settings] { background: transparent; color: var(--color-neutral-light); border: 1px solid rgba(240,249,255,0.2); }
.cookie-banner__actions button:hover { transform: translateY(-1px); }
.cookie-banner__prefs { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(240,249,255,0.12); display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; background: var(--color-primary); color: #fff; border: 0; padding: .55rem 1rem; border-radius: 999px; font-family: inherit; font-weight: 500; cursor: pointer; margin-top: .5rem; }

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