/* === Tokens === */
:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-text: #0C4A6E;
  --color-muted: #475569;
  --color-border: rgba(12, 74, 110, 0.12);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(3, 105, 161, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(3, 105, 161, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(3, 105, 161, 0.35);
}

/* === Base === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--color-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(3, 105, 161, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(3, 105, 161, 0.65); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-primary);
  border-color: var(--color-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; color: var(--color-primary); }

/* === 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 var(--color-border);
  transition: background 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px -12px rgba(12, 74, 110, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-neutral-dark);
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
}
.primary-nav { display: none; }
.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 20px 40px -20px rgba(12, 74, 110, 0.3);
}
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: 0.6rem 0;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  margin-top: 0.4rem;
  text-align: center;
}
.primary-nav .nav-cta:hover { color: #fff; text-decoration: none; }

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

/* === Hero === */
.hero { position: relative; overflow: hidden; padding: 3rem 0 4rem; background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 60%, #ffffff 100%); }
.saas-hero .hero-glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.12), transparent 65%),
              radial-gradient(ellipse at 30% 30%, rgba(14, 165, 233, 0.28), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.saas-hero .hero-inner { position: relative; z-index: 1; text-align: center; }
.saas-hero h1 { max-width: 22ch; margin-inline: auto; }
.saas-hero .lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.hero-visual {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: #fff;
}
.hero-visual img { width: 100%; height: auto; display: block; aspect-ratio: 16/10; object-fit: cover; }
.saas-hero--compact { padding-bottom: 2rem; }
.saas-hero--compact .hero-visual { display: none; }

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

/* === Sections === */
.section { padding: 3.5rem 0; }
.section-tinted { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

/* === 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); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.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;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.1), rgba(14, 165, 233, 0.15));
  color: var(--color-primary);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin: 0; font-size: 0.98rem; }

/* === Quote === */
.quote {
  margin: 0;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1.15rem; line-height: 1.6; color: var(--color-neutral-dark); 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 {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4); }
.cta-band .btn-primary:hover { background: var(--color-accent); color: #fff; }
.contact-inline { font-size: 0.98rem; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.contact-inline a { color: #fff; text-decoration: underline; }

/* === Pricing === */
.pricing-grid { align-items: stretch; }
.pricing-card {
  position: relative;
  background: #fff;
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--color-accent);
  border-width: 2px;
  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;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-card__plan { font-size: 1.35rem; 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-primary);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.pricing-card__lede { color: var(--color-muted); font-size: 0.98rem; 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: 0.5rem;
  padding: 0.4rem 0;
  color: var(--color-neutral-dark);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(12,74,110,0.06);
}
.pricing-card__features li:last-child { border-bottom: 0; }
.pricing-card__cta { text-align: center; }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}
.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;
  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-primary);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.75rem 0 0; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; color: var(--color-neutral-dark); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.form-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 400;
}
.form-consent input { margin-top: 0.15rem; }
.contact-form button { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(255,255,255,0.85); display: block; padding: 0.2rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,0.65); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer address { font-style: normal; color: rgba(255,255,255,0.85); line-height: 1.6; }
.site-footer address a { display: inline; padding: 0; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.legal-links a { display: inline; padding: 0; }
.copyright { text-align: center; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: rgba(255,255,255,0.7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }

/* === 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: 16px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5);
  max-width: 640px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; color: rgba(255,255,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button, .cookie-banner__prefs button {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.1); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #16a34a; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; }

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.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; }
}
