:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --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);
}

/* === Reset === */
*, *::before, *::after { 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;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-secondary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(240, 249, 255, 0.7);
  border-bottom: 1px solid rgba(12,74,110,0.08);
  transition: background .2s var(--ease), box-shadow .2s 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 {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.25rem;
  gap: 1rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent; border: 0; padding: .5rem; color: var(--color-neutral-dark); cursor: pointer;
}
.primary-nav { display: none; }
.primary-nav a {
  position: relative;
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: .35rem 0;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; 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;
  box-shadow: 0 8px 20px -10px rgba(3,105,161,0.6);
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav.is-open {
  display: flex; flex-direction: column; gap: 1rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-neutral-light);
  padding: 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(12,74,110,0.08);
}

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; align-items: center; gap: 2rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  cursor: pointer; border: 0; font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; box-shadow: 0 10px 24px -10px rgba(3,105,161,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(3,105,161,0.6); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border: 1.5px solid rgba(3,105,161,0.25);
}
.btn-ghost:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.btn-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(34,197,94,0.55);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(34,197,94,0.65); color: #fff; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; border-radius: 6px; }

/* === Hero (saas-spotlight) === */
.hero.saas-hero {
  position: relative;
  padding: 3.5rem 1.25rem 4rem;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(34,197,94,0.10), transparent 70%),
    radial-gradient(80% 60% at 10% 20%, rgba(14,165,233,0.14), transparent 70%),
    linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  font-size: .8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(3,105,161,0.08); padding: .35rem .8rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-sub {
  max-width: 60ch; margin: 1rem auto 1.75rem;
  font-size: 1.15rem; color: rgba(12,74,110,0.78);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.75rem; }
.hero-visual {
  margin: 2.5rem auto 0; max-width: 1000px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(12,74,110,0.35);
  position: relative;
}
.hero-visual::before {
  content: ''; position: absolute; inset: -20px -20px 30% -20px;
  background: radial-gradient(50% 60% at 50% 0%, rgba(14,165,233,0.25), transparent 70%);
  z-index: -1;
}
.hero-visual img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

@media (min-width: 768px) {
  .hero.saas-hero { padding: 5.5rem 2rem 6rem; }
}

/* === Sections === */
.section { padding: 4rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.section.narrow { max-width: 760px; }
.section-title { text-align: center; margin-bottom: 2.5rem; }

@media (min-width: 768px) {
  .section { padding: 6rem 2rem; }
}

/* === 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 rgba(12,74,110,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.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.10), rgba(14,165,233,0.14));
  color: var(--color-primary); margin-bottom: 1rem;
}
.card p { font-size: .97rem; color: rgba(12,74,110,0.85); margin: 0; }
.card h3 { margin-bottom: .6rem; }

/* === Team === */
.team-card { text-align: left; }
.team-photo { margin: 0 0 1.25rem; border-radius: 14px; overflow: hidden; }
.team-photo img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* === Testimonial === */
.testimonial-section { max-width: 900px; }
.testimonial {
  margin: 0; padding: 2.5rem 1.5rem;
  background: var(--color-neutral-light);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}
.testimonial p {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45; color: var(--color-neutral-dark);
  max-width: 60ch; margin: 0 auto 1.25rem;
}
.testimonial cite { font-style: normal; color: var(--color-primary); font-weight: 600; }

/* === CTA band === */
.cta-band {
  margin: 4rem 1.25rem; padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }
@media (min-width: 768px) { .cta-band { margin: 5rem auto; max-width: 1100px; padding: 4rem 2rem; } }

/* === Contact band === */
.contact-band { text-align: center; max-width: 900px; }
.contact-band p { color: rgba(12,74,110,0.85); font-size: 1.05rem; }

/* === Form === */
.contact-form { display: grid; gap: 1.1rem; max-width: 640px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 500; font-size: .95rem; color: var(--color-neutral-dark); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: .8rem 1rem;
  border: 1.5px solid rgba(12,74,110,0.15);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--color-primary); outline: none;
  box-shadow: 0 0 0 4px rgba(3,105,161,0.12);
}
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem; color: rgba(12,74,110,0.85);
  flex-wrap: wrap;
}
.form-consent input { margin-top: .2rem; }

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

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240,249,255,0.85);
  padding: 3.5rem 1.25rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(240,249,255,0.85); }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.legal-links li { display: inline; }
.footer-logo img { height: 72px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.copyright {
  max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(240,249,255,0.15);
  font-size: .85rem; color: rgba(240,249,255,0.65); 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 25px 50px -12px rgba(0,0,0,0.5);
  max-width: 640px; margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: inherit; font-size: .88rem; font-weight: 500;
  padding: .55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(240,249,255,0.12); color: var(--color-neutral-light);
  transition: background .2s var(--ease);
}
.cookie-banner button:hover { background: rgba(240,249,255,0.22); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #16a34a; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs [data-cookie-save] { margin-top: .5rem; justify-self: start; background: var(--color-primary); }

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