:root {
  --color-primary: #1C1917;
  --color-secondary: #44403C;
  --color-accent: #CA8A04;
  --color-neutral-dark: #0C0A09;
  --color-neutral-light: #FAFAF9;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-lift: 0 20px 60px -20px rgba(0,0,0,0.25);
}

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

/* === Layout helpers === */
.section { padding: 3.5rem 1rem; }
.section-inner { max-width: 1160px; margin-inline: auto; }
.section-inner.narrow { max-width: 760px; }
.section-inner.center { text-align: center; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .sub, .sub { color: var(--color-secondary); font-size: 1.125rem; }
.section-tinted { background: linear-gradient(180deg, rgba(202,138,4,0.04), rgba(28,25,23,0.02)); }
.eyebrow { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--color-accent); margin: 0 0 1rem; font-weight: 600; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(28,25,23,0.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(250, 250, 249, 0.92); box-shadow: 0 6px 24px -18px rgba(0,0,0,0.25); }
.nav-inner { max-width: 1200px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.nav-toggle { background: none; border: 1px solid rgba(28,25,23,0.15); border-radius: 10px; padding: 6px 8px; color: var(--color-primary); cursor: pointer; }
.primary-nav { display: none; }
.primary-nav a { color: var(--color-primary); font-weight: 500; padding: 0.4rem 0.6rem; border-radius: 8px; position: relative; }
.primary-nav a::after { content: ''; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.15rem; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover { text-decoration: none; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav .nav-cta { background: var(--color-primary); color: var(--color-neutral-light); border-radius: 999px; padding: 0.55rem 1.1rem; }
.primary-nav .nav-cta::after { display: none; }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem; border-bottom: 1px solid rgba(28,25,23,0.08); gap: 0.25rem; }

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

/* === Hero (saas-spotlight) === */
.saas-hero {
  position: relative;
  padding: 4rem 1rem 3rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(202,138,4,0.14), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(28,25,23,0.06), transparent 60%),
    linear-gradient(135deg, #FAFAF9 0%, #F5F5F4 100%);
  overflow: hidden;
}
.hero-inner { max-width: 1160px; margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero-inner.center-only { text-align: center; max-width: 780px; }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .lede { font-size: 1.2rem; color: var(--color-secondary); max-width: 46ch; margin-bottom: 1.75rem; }
.hero-inner.center-only .hero-copy .lede { margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-inner.center-only .cta-row { justify-content: center; }
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); background: #eee; }
.proof-strip { max-width: 1160px; margin: 3rem auto 0; padding: 1rem 1.25rem; border-top: 1px solid rgba(28,25,23,0.08); display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; justify-content: center; align-items: center; color: var(--color-secondary); font-size: 0.95rem; }
.proof-strip span:nth-child(even) { opacity: 0.4; }

@media (min-width: 900px) {
  .saas-hero { padding: 6rem 1.5rem 5rem; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero-visual img { aspect-ratio: 5/6; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.85rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: var(--color-neutral-light); box-shadow: 0 10px 30px -12px rgba(28,25,23,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(28,25,23,0.7); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: rgba(28,25,23,0.2); }
.btn-ghost:hover { border-color: var(--color-primary); background: rgba(28,25,23,0.04); text-decoration: none; }

/* === Grid + Cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-neutral-light);
  border: 1px solid rgba(28,25,23,0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: block;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(28,25,23,0.25); border-color: rgba(202,138,4,0.35); }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; }
.card .icon { color: var(--color-accent); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-secondary); margin: 0; font-size: 0.98rem; }

/* === Testimonial === */
.testimonial { text-align: center; margin: 0; padding: 1rem 0; }
.testimonial-portrait { width: 88px; height: 88px; object-fit: cover; border-radius: 999px; margin: 0 auto 1.25rem; box-shadow: var(--shadow-soft); }
.testimonial blockquote { margin: 0 auto 1rem; max-width: 60ch; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.5; color: var(--color-primary); }
.testimonial cite { font-style: normal; color: var(--color-secondary); font-size: 0.95rem; }

/* === Stats === */
.stats { display: grid; grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1.5rem 1rem; border-radius: var(--radius-md); background: var(--color-neutral-light); border: 1px solid rgba(28,25,23,0.06); box-shadow: var(--shadow-soft); }
.stat-num { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--color-accent); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.stat-label { color: var(--color-secondary); font-size: 0.98rem; }

/* === CTA band === */
.cta-band {
  margin: 2rem 1rem;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-neutral-light);
  position: relative;
  overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(202,138,4,0.35), transparent 55%); pointer-events: none; }
.cta-band h2, .cta-band .sub { color: var(--color-neutral-light); position: relative; }
.cta-band .sub { opacity: 0.85; }
.cta-band .btn-primary { position: relative; background: var(--color-accent); color: var(--color-neutral-dark); }
.cta-band .btn-primary:hover { background: #b3760a; }
@media (min-width: 900px) { .cta-band { margin: 3rem auto; max-width: 1160px; } }

/* === FAQ === */
.faq details { border: 1px solid rgba(28,25,23,0.1); border-radius: var(--radius-md); padding: 1rem 1.25rem; background: var(--color-neutral-light); margin-bottom: 0.75rem; transition: box-shadow .2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-soft); border-color: rgba(202,138,4,0.4); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); 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.4rem; color: var(--color-accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.75rem 0 0; color: var(--color-secondary); }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; background: var(--color-neutral-light); padding: 2rem; border-radius: var(--radius-md); border: 1px solid rgba(28,25,23,0.08); box-shadow: var(--shadow-soft); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; color: var(--color-secondary); }
.field input, .field textarea { font: inherit; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid rgba(28,25,23,0.15); background: #fff; color: var(--color-primary); transition: border-color .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(202,138,4,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-secondary); line-height: 1.5; }
.form-consent input { margin-top: 0.2rem; }
.contact-form .btn { justify-self: start; }

/* === Contact band === */
.contact-band { text-align: center; padding: 1.5rem; background: var(--color-neutral-light); border: 1px solid rgba(28,25,23,0.08); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.contact-band p { margin: 0; color: var(--color-secondary); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250,250,249,0.75); padding: 3rem 1rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: 1160px; margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-col h4 { color: var(--color-neutral-light); margin-bottom: 0.75rem; }
.footer-col a { color: rgba(250,250,249,0.8); display: block; padding: 0.15rem 0; }
.footer-col a:hover { color: var(--color-accent); text-decoration: none; }
.footer-col .logo img { height: 60px; }
.footer-col address { font-style: normal; line-height: 1.7; }
.tagline { color: rgba(250,250,249,0.65); margin: 0.75rem 0 0; }
.legal-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.9rem; }
.legal-links a { padding: 0; }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(250,250,249,0.1); color: rgba(250,250,249,0.5); font-size: 0.85rem; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 3rem; }
}

/* === 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-md);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  max-width: 560px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.95rem; color: rgba(250,250,249,0.85); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button { font: inherit; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(250,250,249,0.2); background: transparent; color: var(--color-neutral-light); cursor: pointer; font-family: var(--font-heading); font-weight: 500; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); color: var(--color-neutral-dark); border-color: var(--color-accent); }
.cookie-banner__actions button:hover { background: rgba(250,250,249,0.08); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #b3760a; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; padding: 0.5rem 0.9rem; background: var(--color-accent); color: var(--color-neutral-dark); border: none; border-radius: 999px; cursor: pointer; font-family: var(--font-heading); font-weight: 500; }

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