/* === Tokens === */
:root {
  --color-primary: #1E3A8A;
  --color-secondary: #3B82F6;
  --color-accent: #F97316;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #EFF6FF;
  --color-text: #0F172A;
  --color-muted: #475569;
  --color-border: rgba(30, 58, 138, 0.12);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --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 30px 60px -30px rgba(15, 23, 42, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-secondary); }
img { max-width: 100%; display: block; height: auto; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }

.primary-nav { display: none; align-items: center; gap: 2rem; }
.primary-nav a {
  position: relative;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding-block: .25rem;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--color-accent);
  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: var(--color-primary); color: #fff;
  padding: .55rem 1.1rem; border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); transform: translateY(-1px); }
.primary-nav .nav-cta::after { display: none; }

.nav-toggle {
  background: none; border: 0; padding: .5rem; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); 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); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .logo img { height: 96px; }
}
@media (max-width: 899px) {
  .primary-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 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-block: .8rem; border-bottom: 1px solid var(--color-border); }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav .nav-cta { margin-top: .75rem; text-align: center; }
}

/* === Hero === */
.hero { position: relative; overflow: hidden; padding-block: 4rem 3rem; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #fff 100%); }
.saas-hero { padding-block: 5rem 4rem; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(ellipse at 50% 20%, rgba(249, 115, 22, 0.12), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.18), transparent 55%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--color-secondary); margin-bottom: 1rem; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 55ch; margin: 1rem auto 2rem; font-size: 1.15rem; color: var(--color-muted); }
.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 img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid rgba(249, 115, 22, 0.5); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(30, 58, 138, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(30, 58, 138, 0.7); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--color-primary); border-color: var(--color-border); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(249, 115, 22, 0.6); }
.btn-accent:hover { transform: translateY(-2px); background: #ea6a10; color: #fff; }

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

/* === Sections === */
.section { padding-block: 4.5rem; }
.section-tinted { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.center { text-align: center; }
.lede { color: var(--color-muted); font-size: 1.1rem; }

/* === Grid / Cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .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: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(30, 58, 138, 0.2); }
.card h3 { margin-top: .5rem; color: var(--color-primary); }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: 0.97rem; }
.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.1), rgba(59, 130, 246, 0.15));
  color: var(--color-primary);
}

/* === Split === */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.split-visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-visual img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* === Quote === */
.quote {
  margin: 0; padding: 2.25rem;
  background: #fff; border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1.15rem; line-height: 1.6; color: var(--color-text); font-style: italic; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--color-primary); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding-block: 4rem;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.2), transparent 50%);
  pointer-events: none;
}
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; margin-bottom: .5rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; }
@media (min-width: 780px) { .cta-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 2rem; } }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem; margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(59, 130, 246, 0.35); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--color-primary);
  list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--color-accent); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; font-size: 0.92rem; color: var(--color-text); }
.field input, .field textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: #fff; color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: 0.88rem; color: var(--color-muted); }
.form-consent input { margin-top: 3px; }
.contact-line { text-align: center; font-size: 1.05rem; }

/* === Footer === */
.site-footer { background: #0b1e4a; color: rgba(255, 255, 255, 0.8); padding-block: 3.5rem 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.footer-logo img { height: 64px; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-tagline { margin-top: 1rem; color: rgba(255, 255, 255, 0.7); }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer nav a { display: block; color: rgba(255, 255, 255, 0.75); padding-block: .3rem; }
.site-footer nav a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }
.site-footer address a { color: rgba(255, 255, 255, 0.85); }
.legal-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.88rem; }
.legal-links a { color: rgba(255, 255, 255, 0.65); }
.legal-links a:hover { color: #fff; }
.copyright { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); text-align: center; }

/* === 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: var(--shadow-lg);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; color: var(--color-neutral-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button, .cookie-banner__prefs button {
  font: inherit; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(239, 246, 255, 0.3); background: transparent;
  color: var(--color-neutral-light); cursor: pointer;
  transition: background .2s, color .2s;
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.1); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #ea6a10; color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs button[data-cookie-save] { justify-self: start; margin-top: .5rem; background: var(--color-neutral-light); color: var(--color-primary); border-color: var(--color-neutral-light); }

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

.disclaimer-bar { position: relative; z-index: 1000; background: #f4f6f8; border-bottom: 2px solid #64748b; color: #33404d; padding: 0.875rem 1.5rem; }
.disclaimer-bar p { max-width: 68rem; margin: 0 auto; font-size: 0.8125rem; line-height: 1.6; text-align: center; }
.disclaimer-bar strong { text-transform: uppercase; letter-spacing: 0.04em; }
.disclaimer-bar__icon { font-size: 1rem; }
