:root {
  --color-primary: #0EA5E9;
  --color-secondary: #38BDF8;
  --color-accent: #F97316;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', 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 20px 60px -20px rgba(12, 74, 110, 0.25);
}

/* === 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; line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 249, 255, 0.7);
  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 .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px -8px rgba(12, 74, 110, 0.15);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 0;
  color: var(--color-neutral-dark);
  cursor: pointer;
  padding: 0.5rem;
}
.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta {
  background: var(--color-neutral-dark);
  color: #fff !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 999px;
  text-align: center;
}

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    background: transparent;
    border: 0;
    padding: 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 .25s var(--ease);
  }
  .primary-nav a:hover::after { transform: scaleX(1); }
  .nav-cta::after { display: none !important; }
}

/* === Hero (saas-spotlight) === */
.hero { padding: 3rem 1.25rem 4rem; position: relative; overflow: hidden; }
.saas-hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.10), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.20), transparent 55%),
    linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(14, 165, 233, 0.10);
  border-radius: 999px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(12, 74, 110, 0.78);
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.hero-visual {
  max-width: 960px;
  margin: 3rem auto 0;
}
.hero-visual img {
  border-radius: 20px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(12, 74, 110, 0.06);
  aspect-ratio: 16/9;
  object-fit: cover;
}
.hero-compact { padding-bottom: 2rem; }
.hero-compact .hero-visual { display: none; }

@media (min-width: 768px) {
  .hero { padding: 5rem 1.25rem 6rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 0;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(14, 165, 233, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(14, 165, 233, 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border: 1.5px solid rgba(12, 74, 110, 0.2);
}
.btn-ghost:hover { background: rgba(12, 74, 110, 0.05); }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(249, 115, 22, 0.6);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(249, 115, 22, 0.7); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }

/* === Sections === */
.section { padding: 4rem 1.25rem; }
@media (min-width: 768px) { .section { padding: 5.5rem 1.25rem; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: rgba(12, 74, 110, 0.7); }

.intro { text-align: center; }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 74, 110, 0.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: block;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(12, 74, 110, 0.2); }
.card-link { text-decoration: none; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.18));
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}
.card p { color: rgba(12, 74, 110, 0.78); margin: 0; font-size: 0.98rem; }

/* === Stats === */
.stats .stat { text-align: center; padding: 1rem; }
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin: 0 0 0.5rem;
}
.stat h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.stat p { color: rgba(12, 74, 110, 0.7); font-size: 0.95rem; }

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial { margin: 0; text-align: center; }
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-neutral-dark);
  margin-bottom: 1.25rem;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

/* === CTA Band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.75rem; }
.contact-line { font-size: 0.95rem; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 500; font-size: 0.95rem; }
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(12, 74, 110, 0.15);
  background: #fff;
  color: var(--color-neutral-dark);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.contact-form .btn { justify-self: start; }
.form-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem !important;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(12, 74, 110, 0.8);
}
.form-consent input { margin-top: 0.25rem; }

/* === FAQ === */
details {
  border: 1px solid rgba(12, 74, 110, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: border-color .2s;
}
details[open] { border-color: var(--color-primary); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform .2s;
}
details[open] summary::after { content: '−'; }
details p { margin: 0.75rem 0 0; color: rgba(12, 74, 110, 0.78); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240, 249, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(240, 249, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(240, 249, 255, 0.12);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.footer-logo img { filter: brightness(0) invert(1); height: 72px; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.legal-links { margin-top: 1.25rem; font-size: 0.9rem; }
.copyright {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(240, 249, 255, 0.6);
  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: 16px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(240, 249, 255, 0.15);
  color: var(--color-neutral-light);
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: 0.5rem; background: var(--color-primary); color: #fff; }

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