:root {
  --color-primary: #475569;
  --color-secondary: #64748B;
  --color-accent: #2563EB;
  --color-neutral-dark: #1E293B;
  --color-neutral-light: #F8FAFC;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-sm: 0 2px 20px rgba(15,23,42,0.06);
  --shadow-md: 0 12px 40px -12px rgba(15,23,42,0.18);
  --shadow-lg: 0 24px 60px -24px rgba(15,23,42,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: var(--color-neutral-light); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; margin: 0 0 1rem; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Header / Nav === */
.site-header { position: sticky; top: 0; z-index: 500; background: rgba(248,250,252,0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(30,41,59,0.06); transition: background .25s ease, box-shadow .25s ease; }
.site-header.scrolled { background: rgba(248,250,252,0.92); box-shadow: 0 8px 24px -18px rgba(15,23,42,0.35); }
.nav-wrap { max-width: 1200px; margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.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; }
.primary-nav { display: none; flex-direction: column; gap: .5rem; }
.primary-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(30,41,59,0.08); box-shadow: var(--shadow-md); }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: .5rem 0; position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-accent); }
.primary-nav .nav-cta { background: var(--color-accent); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; text-align: center; }
.primary-nav .nav-cta:hover { text-decoration: none; background: #1d4ed8; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; position: static; padding: 0; background: transparent; box-shadow: none; border: 0; }
  .primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .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; }
}

/* === Buttons === */
.btn { display: inline-block; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer; border: none; text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-accent), #1d4ed8); color: #fff; box-shadow: 0 10px 30px -12px rgba(37,99,235,0.55); }
.btn-primary:hover { box-shadow: 0 16px 40px -14px rgba(37,99,235,0.7); }
.btn-primary:focus-visible { outline: 3px solid rgba(37,99,235,0.35); outline-offset: 3px; }
.btn-ghost { background: rgba(37,99,235,0.08); color: var(--color-accent); }
.btn-ghost:hover { background: rgba(37,99,235,0.14); }
.btn-on-dark { }

/* === Sections === */
main { display: block; }
section { padding: 4rem 1.25rem; }
@media (min-width: 900px) { section { padding: 6rem 2rem; } }

/* === Hero (saas-spotlight) === */
.saas-hero { position: relative; overflow: hidden; padding-top: 3rem; padding-bottom: 4rem; background: radial-gradient(60% 60% at 50% 0%, rgba(37,99,235,0.12) 0%, rgba(37,99,235,0) 60%), linear-gradient(180deg, #ffffff 0%, var(--color-neutral-light) 100%); }
.saas-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 40% at 85% 20%, rgba(37,99,235,0.10), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: .8rem; font-weight: 600; color: var(--color-accent); margin: 0 0 1rem; }
.saas-hero h1 { max-width: 22ch; margin-inline: auto; }
.lede { font-size: 1.15rem; color: var(--color-secondary); max-width: 58ch; margin: 1.25rem auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero-visual { margin-top: 2.5rem; }
.hero-visual img { width: 100%; max-width: 980px; margin-inline: auto; border-radius: 20px; box-shadow: 0 30px 80px -30px rgba(15,23,42,0.35); aspect-ratio: 16/9; object-fit: cover; }
.social-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; margin-top: 3rem; color: var(--color-secondary); font-size: .95rem; }

/* === Intro === */
.intro { max-width: 780px; margin: 0 auto; text-align: center; }
.intro p { color: var(--color-primary); font-size: 1.05rem; }
.intro-split { max-width: 1100px; display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: left; }
.intro-split .intro-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .intro-split { grid-template-columns: 1.05fr 1fr; align-items: center; }
}

/* === Section head === */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-secondary); }

/* === Grid / cards === */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid rgba(30,41,59,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: rgba(37,99,235,0.10); color: var(--color-accent); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-primary); font-size: .98rem; margin: 0; }

/* === Testimonial === */
.testimonial { max-width: 820px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0; padding: 2.5rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid rgba(30,41,59,0.08); box-shadow: var(--shadow-sm); }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--color-neutral-dark); line-height: 1.4; margin-bottom: 1.25rem; }
.testimonial cite { font-style: normal; color: var(--color-secondary); font-size: .95rem; }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-neutral-dark), #0f172a); color: var(--color-neutral-light); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(248,250,252,0.8); max-width: 60ch; margin-inline: auto; }
.cta-inner { max-width: 780px; margin: 0 auto; }
.cta-band .btn-primary { margin-top: 1rem; }

/* === Contact band === */
.contact-band { background: rgba(37,99,235,0.06); text-align: center; }
.contact-band h2 { margin-bottom: .5rem; }
.contact-band a { color: var(--color-accent); }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card { position: relative; background: #fff; border: 1px solid rgba(30,41,59,0.12); border-radius: var(--radius); padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); }
.pricing-card__badge { position: absolute; top: -14px; right: 1.5rem; background: var(--color-accent); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; }
.pricing-card__plan { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 .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-secondary); margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .6rem; flex-grow: 1; }
.pricing-card__features li { display: flex; gap: .6rem; font-size: .95rem; color: var(--color-primary); }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === Services === */
.services { max-width: 1200px; margin: 0 auto; }

/* === FAQ === */
.faq { max-width: 820px; margin: 0 auto; }
.faq-list details { background: #fff; border: 1px solid rgba(30,41,59,0.08); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm); }
.faq-list summary { font-family: var(--font-heading); font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; color: var(--color-neutral-dark); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--color-accent); font-size: 1.4rem; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: .75rem; color: var(--color-primary); }

/* === Contact form === */
.contact-form-section { background: var(--color-neutral-light); }
.contact-form-wrap { max-width: 680px; margin: 0 auto; background: #fff; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid rgba(30,41,59,0.06); }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; color: var(--color-neutral-dark); font-size: .95rem; }
.contact-form input, .contact-form textarea { font-family: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid rgba(30,41,59,0.16); border-radius: 10px; background: #fff; color: var(--color-neutral-dark); transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.18); }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--color-primary); font-weight: 400; }
.form-consent input { flex-shrink: 0; margin-top: 3px; }
.contact-form button { align-self: flex-start; margin-top: .5rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(248,250,252,0.85); padding: 4rem 1.25rem 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer nav a { color: rgba(248,250,252,0.75); }
.site-footer nav a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.site-footer address a { color: rgba(248,250,252,0.85); }
.legal-links a { color: rgba(248,250,252,0.7); }
.footer-logo img { height: 72px; width: auto; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.copyright { max-width: 1200px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(248,250,252,0.12); font-size: .85rem; color: rgba(248,250,252,0.6); 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: var(--radius); box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { font-family: inherit; font-size: .9rem; padding: .55rem 1rem; border-radius: 999px; border: none; cursor: pointer; font-weight: 600; }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-reject] { background: rgba(248,250,252,0.14); color: var(--color-neutral-light); }
.cookie-banner [data-cookie-settings] { background: transparent; color: var(--color-neutral-light); text-decoration: underline; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { background: var(--color-accent); color: #fff; align-self: flex-start; margin-top: .5rem; }

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