/* === Tokens === */
:root {
  --color-primary: #0EA5E9;
  --color-secondary: #38BDF8;
  --color-accent: #FBBF24;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-ink: #0B2C42;
  --color-muted: #4B6A80;
  --color-line: rgba(12, 74, 110, 0.12);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(12, 74, 110, 0.06);
  --shadow-md: 0 12px 40px -18px rgba(12, 74, 110, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(12, 74, 110, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { 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; 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.15; letter-spacing: -0.02em; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--color-primary); font-weight: 600; margin: 0 0 1rem; }
.lede { font-size: 1.125rem; color: var(--color-muted); max-width: 52ch; }

/* === Header (glass nav) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 249, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-line);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(240, 249, 255, 0.92); box-shadow: 0 6px 24px -18px rgba(12, 74, 110, 0.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; max-width: 1240px; margin-inline: auto; }
.logo { display: inline-flex; align-items: center; }
.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: .4rem 0; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: .55rem 1.1rem; border-radius: 999px; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-primary); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }
.primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; position: absolute; left: 0; right: 0; top: 100%; padding: 1rem 1.25rem 1.5rem; background: var(--color-neutral-light); border-bottom: 1px solid var(--color-line); }
.primary-nav.is-open a { padding: .6rem 0; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; position: static; padding: 0; background: transparent; border: 0; }
}

/* === Buttons === */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease); border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-line); }
.btn-ghost:hover { background: rgba(14, 165, 233, 0.1); transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-dark); box-shadow: var(--shadow-md); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--color-neutral-dark); }

/* === Hero (split) === */
.hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle at center, rgba(251, 191, 36, 0.18), transparent 65%); z-index: 0; pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -10%; bottom: -30%; width: 55vw; height: 55vw; max-width: 620px; max-height: 620px; background: radial-gradient(circle at center, rgba(56, 189, 248, 0.22), transparent 65%); z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}
.hero-compact { padding: 3rem 0 1rem; }
.hero-compact h1 { max-width: 20ch; }

/* === Sections === */
.section { padding: 4rem 0; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--color-muted); }

/* === Cards / grids === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--color-line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: block; color: inherit; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; }
.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.14), rgba(56, 189, 248, 0.18)); color: var(--color-primary); margin-bottom: 1rem; }
a.card-link { text-decoration: none; }
a.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }

/* === Testimonial === */
.testimonial { text-align: center; }
.testimonial blockquote { margin: 0; padding: 2.5rem 1rem; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--color-neutral-dark); line-height: 1.4; max-width: 40ch; margin-inline: auto; }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band { position: relative; margin: 3rem 1rem; padding: 3.5rem 1.5rem; text-align: center; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary)); color: #fff; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: -30% auto auto -20%; width: 60vw; height: 60vw; max-width: 500px; max-height: 500px; background: radial-gradient(circle at center, rgba(251, 191, 36, 0.28), transparent 65%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.85); position: relative; }
.cta-band .contact-line a { color: var(--color-accent); }
@media (min-width: 900px) { .cta-band { margin: 4rem auto; max-width: 1120px; padding: 4.5rem 2rem; } }

/* === FAQ === */
.faq details { border-top: 1px solid var(--color-line); padding: 1.2rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--color-line); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.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 { color: var(--color-muted); margin-top: .75rem; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); }
.field input, .field textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-neutral-light); color: var(--color-ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--color-muted); flex-wrap: wrap; line-height: 1.4; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); 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: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer address { font-style: normal; line-height: 1.7; font-size: .95rem; margin-bottom: 1rem; }
.legal-links { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 1rem; font-size: .85rem; opacity: .85; }
.footer-logo img { height: 64px; }
.site-footer .tagline { color: rgba(240, 249, 255, 0.75); font-size: .95rem; }
.copy { text-align: center; margin: 2rem 0 0; font-size: .8rem; color: rgba(240, 249, 255, 0.6); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* === 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; } html { scroll-behavior: auto; } }

/* === 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: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: .85rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(240, 249, 255, 0.25); background: transparent; color: var(--color-neutral-light); cursor: pointer; transition: background .2s, color .2s; }
.cookie-banner button:hover { background: rgba(240, 249, 255, 0.1); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: var(--color-neutral-dark); border-color: var(--color-accent); }
.cookie-banner [data-cookie-accept]:hover { background: #fbc93d; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: .5rem; }
