:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-soft: 0 2px 20px rgba(12,74,110,0.06);
  --shadow-lift: 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;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
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: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }

/* === 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 .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 4px 20px rgba(12,74,110,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle { background: none; border: none; color: var(--color-neutral-dark); cursor: pointer; padding: .5rem; display: inline-flex; }
.primary-nav { display: none; flex-direction: column; gap: .25rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(12,74,110,0.08); box-shadow: 0 10px 30px rgba(12,74,110,0.1); }
.primary-nav a { padding: .6rem 0; font-weight: 500; color: var(--color-neutral-dark); position: relative; }
.primary-nav a.is-active { color: var(--color-primary); }
.primary-nav .nav-cta { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff !important; padding: .65rem 1.25rem; border-radius: 999px; text-align: center; margin-top: .5rem; }

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

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  font-size: 1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 8px 24px -8px rgba(3,105,161,0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(3,105,161,0.6); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: rgba(3,105,161,0.3); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(3,105,161,0.06); }
.btn:focus-visible { outline: 3px solid rgba(3,105,161,0.4); outline-offset: 2px; }

/* === Hero (saas-spotlight) === */
.hero-saas { position: relative; overflow: hidden; padding-block: 3.5rem 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(ellipse at 20% 20%, rgba(34,197,94,0.12), transparent 60%),
  radial-gradient(ellipse at 80% 30%, rgba(14,165,233,0.18), transparent 60%),
  linear-gradient(180deg, var(--color-neutral-light), #ffffff 90%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); background: rgba(3,105,161,0.08); padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero-saas h1 { max-width: 22ch; margin-inline: auto; }
.hero-saas .sub { max-width: 55ch; margin: 1rem auto 1.75rem; font-size: 1.15rem; color: rgba(12,74,110,0.75); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-visual { margin-top: 2rem; }
.hero-visual img { border-radius: 20px; box-shadow: var(--shadow-lift); margin-inline: auto; max-width: 900px; width: 100%; }
.hero-inner-page { padding-block: 3rem 3rem; }
.hero-inner-page h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }

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

/* === Sections === */
.section { padding-block: 4rem; }
.section-tinted { background: linear-gradient(180deg, #ffffff, var(--color-neutral-light)); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.section-head .sub { color: rgba(12,74,110,0.7); font-size: 1.05rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

/* === Grids & cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@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;
  border: 1px solid rgba(12,74,110,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(12,74,110,0.2); }
.card h3 { margin-bottom: .5rem; }
.card p { color: rgba(12,74,110,0.78); font-size: .97rem; margin-bottom: 0; }
.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.15), rgba(34,197,94,0.15)); color: var(--color-primary); margin-bottom: 1rem; }
.card-link { color: inherit; display: block; }
.card-link:hover { color: inherit; }

/* === Testimonial === */
.testimonial { margin: 0; padding: 2rem; background: linear-gradient(135deg, rgba(3,105,161,0.05), rgba(14,165,233,0.05)); border-left: 4px solid var(--color-accent); border-radius: var(--radius); }
.testimonial p { font-size: 1.2rem; font-style: italic; color: var(--color-neutral-dark); line-height: 1.6; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--color-primary); }

/* === CTA band === */
.cta-band { padding-block: 4rem; 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(240,249,255,0.85); max-width: 55ch; margin: 0 auto 1.75rem; font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); }
.cta-band .btn-primary:hover { background: var(--color-neutral-light); }
.cta-band .contact-inline { color: rgba(240,249,255,0.9); margin-bottom: 1.5rem; }
.cta-band .contact-inline a { color: #fff; text-decoration: underline; }

/* === FAQ === */
.faq details { background: #fff; border: 1px solid rgba(12,74,110,0.08); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary { font-family: var(--font-heading); font-weight: 600; cursor: pointer; padding: .25rem 0; list-style: none; position: relative; padding-right: 2rem; color: var(--color-neutral-dark); }
.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); transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; color: rgba(12,74,110,0.78); }

/* === Pricing === */
.pricing-grid { align-items: stretch; }
.pricing-card { position: relative; background: #fff; border: 1px solid rgba(12,74,110,0.12); border-radius: var(--radius); padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(12,74,110,0.2); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: 0 20px 50px -20px rgba(34,197,94,0.35); }
.pricing-card__badge { position: absolute; top: 1rem; right: 1rem; background: var(--color-accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.pricing-card__plan { font-size: 1.25rem; color: var(--color-primary); 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-bottom: .5rem; }
.pricing-card__lede { font-size: .95rem; color: rgba(12,74,110,0.7); margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.pricing-card__features li { display: flex; gap: .5rem; align-items: flex-start; padding: .4rem 0; font-size: .95rem; color: rgba(12,74,110,0.85); }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { margin-top: auto; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-form .form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.contact-form label { font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: .8rem 1rem; border: 1px solid rgba(12,74,110,0.2); border-radius: 10px; 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 3px rgba(3,105,161,0.15); }
.form-consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .875rem; color: rgba(12,74,110,0.85); margin-block: .5rem 1.25rem; flex-wrap: wrap; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(240,249,255,0.85); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(240,249,255,0.12); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .3rem 0; }
.site-footer a { color: rgba(240,249,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 60px; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.tagline { font-size: .95rem; color: rgba(240,249,255,0.75); }
.legal-links { margin-top: 1.25rem; font-size: .875rem; }
.site-footer address { font-style: normal; margin-bottom: 0; }
.copyright { padding-top: 1.5rem; font-size: .875rem; 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: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { font: inherit; padding: .55rem 1rem; border-radius: 8px; border: 1px solid rgba(240,249,255,0.2); background: transparent; color: var(--color-neutral-light); cursor: pointer; font-size: .9rem; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 600; }
.cookie-banner__actions button:hover { background: rgba(240,249,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: .4rem; padding-top: 1rem; border-top: 1px solid rgba(240,249,255,0.15); }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .88rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: .5rem; padding: .5rem 1rem; border-radius: 8px; background: var(--color-primary); color: #fff; border: none; cursor: pointer; }

/* === Scroll 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; } html { scroll-behavior: auto; } }
