/* === Tokens === */
:root {
  --color-primary: #1E40AF;
  --color-secondary: #3B82F6;
  --color-accent: #F97316;
  --color-neutral-dark: #1E3A8A;
  --color-neutral-light: #EFF6FF;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-surface: #FFFFFF;
  --color-border: rgba(30, 58, 138, 0.14);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 20px rgba(30, 58, 138, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(30, 58, 138, 0.25);
  --shadow-lg: 0 30px 60px -30px rgba(30, 58, 138, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -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-hover); }
a:hover { color: var(--color-accent); }
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 .75rem; }
h1 { font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

/* === Layout === */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-text-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--color-secondary); margin: 0 0 1rem; }

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

/* === Header (glass nav) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 246, 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 .3s var(--ease-hover), box-shadow .3s var(--ease-hover);
}
.site-header.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 4px 20px rgba(30,58,138,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .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: 1.75rem; }
.primary-nav a { position: relative; color: var(--color-neutral-dark); font-weight: 500; font-size: .95rem; padding-block: .25rem; }
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-hover);
}
.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a.is-current::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;
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(30, 64, 175, 0.6);
}
.primary-nav .nav-cta:hover { color: #fff; transform: translateY(-1px); }
.nav-toggle { display: inline-flex; background: transparent; border: 0; color: var(--color-neutral-dark); padding: .25rem; }

.primary-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  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: 0 20px 40px -20px rgba(30, 58, 138, 0.2);
}
.primary-nav.is-open a { padding: .75rem 0; border-bottom: 1px solid var(--color-border); }
.primary-nav.is-open a.nav-cta { text-align: center; margin-top: .75rem; border: 0; }

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

/* === Hero (saas-spotlight) === */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4rem 3rem;
  background: linear-gradient(135deg, var(--color-neutral-light) 0%, #DBEAFE 100%);
}
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 700px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 0 auto 1.25rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.hero__ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__figure {
  margin: 2rem auto 0;
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero--compact { padding-block: 3rem 2rem; }
.hero--compact .hero__title { max-width: 26ch; }

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease-hover), box-shadow .2s var(--ease-hover), background .2s var(--ease-hover);
}
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(30, 64, 175, 0.6);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(30, 64, 175, 0.7); }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(249, 115, 22, 0.55);
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); background: #EA6A0A; }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: #fff; color: var(--color-primary); transform: translateY(-2px); }

/* === Intro paragraph === */
.intro { text-align: center; }
.intro p { color: var(--color-text-muted); font-size: 1.05rem; }

/* === Grid & 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); } .grid-2 { 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-hover), box-shadow .25s var(--ease-hover);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card p { color: var(--color-text-muted); margin: 0; }
.card__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card--wide { grid-column: 1 / -1; }

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

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }
.cta-band .btn-accent { box-shadow: 0 12px 30px -8px rgba(0,0,0,0.35); }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease-hover);
}
.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);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform .2s var(--ease-hover);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--color-text-muted); }

/* === Pricing === */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease-hover), box-shadow .25s var(--ease-hover);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: 0 30px 60px -30px rgba(249, 115, 22, 0.35);
}
.pricing-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 999px;
  letter-spacing: .04em;
}
.pricing-card__plan { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-secondary); margin-bottom: .5rem; }
.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 1rem;
}
.pricing-card__lede { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.pricing-card__features li { display: flex; gap: .55rem; align-items: flex-start; padding-block: .45rem; color: var(--color-text); font-size: .95rem; border-top: 1px solid var(--color-border); }
.pricing-card__features li:first-child { border-top: 0; }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { width: 100%; }

/* === Contact band === */
.contact-band { background: var(--color-neutral-light); }
.contact-band__body { font-size: 1.05rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* === Contact form === */
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.form-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form-row label { font-weight: 500; font-size: .95rem; color: var(--color-neutral-dark); }
.form-row input, .form-row textarea {
  font-family: inherit; font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s var(--ease-hover), box-shadow .2s var(--ease-hover);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .875rem; color: var(--color-text-muted);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding-block: .3rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.footer__tag { color: rgba(255,255,255,0.7); font-size: .95rem; margin-top: .75rem; }
.logo--footer img { height: 64px; filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; }
.legal-links li { font-size: .875rem; }
.copyright { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: .85rem; color: rgba(255,255,255,0.7); }

/* === Reveal (scroll-in) === */
.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; } }

/* === 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: 0 20px 50px -10px rgba(0,0,0,0.4);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner__actions .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; }
