/* === Tokens === */
:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-text: #0C4A6E;
  --color-muted: #476A85;
  --color-border: rgba(12, 74, 110, 0.12);
  --color-surface: #FFFFFF;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --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 -20px rgba(12, 74, 110, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
* { box-sizing: border-box; }
html { 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-primary); text-decoration: none; transition: color .2s var(--ease-fast); }
a:hover { color: var(--color-secondary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 1rem; font-weight: 600; }
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); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--color-secondary); margin-bottom: 1rem; }
.skip-link { position: absolute; left: -9999px; top: 0; padding: .5rem 1rem; background: var(--color-neutral-dark); color: #fff; z-index: 10000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease-fast), box-shadow .2s var(--ease-fast), background .2s; text-decoration: none; }
.btn--primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 10px 30px -10px rgba(3, 105, 161, 0.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(3, 105, 161, 0.6); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.5); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 197, 94, 0.6); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-border); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-primary); }
.btn--sm { padding: .55rem 1rem; font-size: 0.86rem; }
.btn:focus-visible { outline: 3px solid rgba(14, 165, 233, 0.5); outline-offset: 2px; }

/* === Header === */
.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 transparent; transition: background .3s, box-shadow .3s, border-color .3s; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.9); border-bottom-color: var(--color-border); box-shadow: 0 6px 24px -12px rgba(12, 74, 110, 0.18); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .75rem; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 72px; width: auto; }
.logo--footer img { height: 56px; }
.nav-toggle { background: transparent; border: 1px solid var(--color-border); border-radius: 10px; padding: .5rem; color: var(--color-neutral-dark); cursor: pointer; display: inline-flex; }
.primary-nav { display: none; flex-direction: column; gap: .25rem; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.primary-nav.is-open { display: flex; }
.primary-nav a { padding: .65rem .25rem; color: var(--color-neutral-dark); font-family: var(--font-heading); font-weight: 500; font-size: 1rem; position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { color: var(--color-primary); }

/* === Hero (saas-spotlight) === */
.hero--spotlight { position: relative; padding: 4rem 0 3rem; overflow: hidden; }
.hero--spotlight::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(240, 249, 255, 0) 0%, rgba(240, 249, 255, 1) 100%); pointer-events: none; }
.hero__glow { position: absolute; top: -20%; left: 50%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(34, 197, 94, 0.14), transparent 70%); pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__inner h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin: 1rem auto 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero__visual { margin: 0 auto; max-width: 1000px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero__visual::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); pointer-events: none; }
.hero__visual img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* === Proof strip === */
.proof-strip { background: #fff; border-block: 1px solid var(--color-border); padding: 1.25rem 0; }
.proof-strip__inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; align-items: center; color: var(--color-muted); font-size: 0.92rem; font-family: var(--font-heading); font-weight: 500; }

/* === Sections === */
.section { padding: 4.5rem 0; }
.section--tinted { background: #fff; }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__header p { color: var(--color-muted); font-size: 1.05rem; }
.section__header--left { text-align: left; margin-inline: 0; }
.section__center { text-align: center; }
.section__lede { text-align: center; color: var(--color-muted); max-width: 720px; margin: -1.5rem auto 3rem; }

/* === Grid === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

/* === Cards === */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-fast), box-shadow .25s var(--ease-fast), border-color .25s; display: block; color: var(--color-text); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link { text-decoration: none; }
.card-link:hover { border-color: rgba(14, 165, 233, 0.4); color: var(--color-text); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(3, 105, 161, 0.12), rgba(14, 165, 233, 0.12)); color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); font-size: 0.97rem; margin: 0; }

/* === Quote === */
.quote { max-width: 780px; margin: 0 auto; text-align: center; padding: 2rem 1rem; }
.quote p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.4; color: var(--color-neutral-dark); font-weight: 500; margin-bottom: 1.25rem; }
.quote cite { font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band { padding: 4rem 0; background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -30%; right: -10%; width: 500px; height: 500px; background: radial-gradient(closest-side, rgba(34, 197, 94, 0.35), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 56ch; }

/* === FAQ === */
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: .75rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); cursor: pointer; list-style: none; 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 { content: "–"; }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact === */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(3, 105, 161, 0.1); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; }
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.form-row label { font-family: var(--font-heading); font-weight: 500; font-size: 0.92rem; color: var(--color-neutral-dark); }
.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-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(14, 165, 233, 0.2); background: #fff; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: 0.88rem; color: var(--color-muted); margin: 1rem 0 1.25rem; line-height: 1.5; }
.form-consent input { margin-top: .2rem; flex: none; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255, 255, 255, 0.85); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.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; font-size: 0.9rem; }
.site-footer__base { padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.site-footer__base 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; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-width: 560px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn--ghost { color: var(--color-neutral-light); border-color: rgba(255, 255, 255, 0.25); }
.cookie-banner__actions .btn--ghost:hover { border-color: #fff; color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cookie-banner__prefs label { display: flex; gap: .55rem; align-items: center; font-size: 0.9rem; }

/* === 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) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__sub { font-size: 1.2rem; }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 64px; }
  .site-header__inner { padding-block: 1rem; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; position: static; background: transparent; box-shadow: none; border: none; padding: 0; }
  .primary-nav a { padding: .35rem 0; }
  .primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-fast); }
  .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.15rem; border-radius: 999px; }
  .primary-nav .nav-cta::after { display: none; }
  .primary-nav .nav-cta:hover { color: #fff; transform: translateY(-2px); }
  .hero--spotlight { padding: 6rem 0 4rem; }
  .section { padding: 6rem 0; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1.4fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr 1.2fr; gap: 3rem; }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
