:root {
  --color-primary: #0EA5E9;
  --color-secondary: #0284C7;
  --color-accent: #10B981;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-text: #0C4A6E;
  --color-muted: #475569;
  --color-border: rgba(12, 74, 110, 0.12);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(12, 74, 110, 0.06);
  --shadow-md: 0 10px 30px -10px 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 { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-primary); }
button { font: inherit; cursor: pointer; }

/* === Typography === */
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;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding: 4rem 0; }
.section--tint { background: var(--color-neutral-light); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section__lede { color: var(--color-muted); font-size: 1.1rem; }
.prose { color: var(--color-muted); font-size: 1.05rem; line-height: 1.75; }

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

/* === 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 var(--color-border);
  transition: background .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.site-header__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; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo--footer img { height: 64px; }

.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.4rem;
  color: var(--color-neutral-dark);
  display: inline-flex;
}
.site-nav { display: none; }
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem 1.25rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: 0.6rem 0;
  position: relative;
}
.site-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.2rem;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease-hover);
  }
  .site-nav a:not(.nav-cta):hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s var(--ease-hover);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(14, 165, 233, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(14, 165, 233, 0.7); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-neutral-light); transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* === Hero (saas-spotlight) === */
.hero--spotlight {
  position: relative;
  padding: 4rem 0 2rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--color-neutral-light) 100%);
}
.hero__glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(60% 50% at 80% 10%, rgba(14, 165, 233, 0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__inner h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.hero__visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero__visual::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

.proof-strip {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.proof-strip span:nth-child(even) { opacity: 0.4; }

@media (min-width: 768px) {
  .hero--spotlight { padding: 6rem 0 4rem; }
}

/* === Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .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);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
  display: block;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link { text-decoration: none; color: inherit; }
.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.12), rgba(16, 185, 129, 0.12));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.97rem; }

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

/* === Testimonial === */
.testimonial {
  margin: 0;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  color: var(--color-neutral-dark);
  font-weight: 500;
}
.testimonial cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* === CTA Band === */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-secondary));
  color: #fff;
  text-align: center;
}
.cta-band__inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-band .btn--primary { background: var(--color-accent); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, 0.6); }
.cta-band .btn--primary:hover { box-shadow: 0 14px 28px -10px rgba(16, 185, 129, 0.7); }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  position: relative;
  background: #fff;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  background: linear-gradient(180deg, #fff, var(--color-neutral-light));
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.pricing-card__plan { font-size: 1.25rem; margin-bottom: 0.25rem; }
.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-neutral-dark);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.pricing-card__lede { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 1.25rem; min-height: 2.8em; }
.pricing-card__features { list-style: none; margin: 0 0 1.75rem; padding: 0; flex: 1; }
.pricing-card__features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
}
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { width: 100%; }

/* === FAQ === */
.faq details {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: box-shadow .2s var(--ease-hover);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 400;
  transition: transform .2s var(--ease-hover);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-neutral-dark);
}
.field input,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s var(--ease-hover), box-shadow .15s var(--ease-hover);
}
.field input:focus,
.field 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; margin-top: 0.5rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240, 249, 255, 0.8);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(240, 249, 255, 0.8); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.footer__tag { color: rgba(240, 249, 255, 0.7); font-size: 0.95rem; margin-top: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 0.3rem 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer__legal { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.site-footer__copy {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(240,249,255,0.6);
}

/* === 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);
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin-left: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.cookie-banner__actions .btn--ghost:hover { background: rgba(255,255,255,0.08); }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs .btn { justify-self: start; margin-top: 0.5rem; }

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