:root {
  --color-primary: #1F1F1F;
  --color-secondary: #EFE8D6;
  --color-accent: #D4B675;
  --color-neutral-dark: #0A0A0A;
  --color-neutral-light: #F8F8F8;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --shadow-sm: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 40px -12px rgba(0,0,0,0.18);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.28);
}

/* === Reset === */
*, *::before, *::after { 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%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--color-neutral-dark); }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; margin: 0 auto; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 248, 248, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { background: rgba(248, 248, 248, 0.92); box-shadow: 0 8px 24px -20px rgba(0,0,0,0.35); }
.nav-inner {
  max-width: 1180px; 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: 0; padding: .5rem; color: var(--color-primary); cursor: pointer;
  display: inline-flex; align-items: center;
}
.primary-nav { display: none; }
.primary-nav.is-open {
  display: flex; flex-direction: column; gap: .25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.primary-nav a {
  padding: .6rem .25rem; font-weight: 500; font-size: .95rem;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-accent); }
.primary-nav .nav-cta {
  display: inline-block; margin-top: .5rem;
  background: var(--color-primary); color: var(--color-neutral-light);
  padding: .6rem 1rem; border-radius: 999px; text-align: center;
}

@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; border: 0;
  }
  .primary-nav a { padding: .25rem 0; }
  .primary-nav a::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:hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .nav-cta {
    margin-top: 0; padding: .6rem 1.15rem;
  }
  .primary-nav .nav-cta::after { display: none; }
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer; border: 0; font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #2f2f2f);
  color: var(--color-neutral-light);
  box-shadow: 0 10px 30px -12px rgba(31,31,31,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(31,31,31,0.65); }
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #b8994f);
  color: var(--color-neutral-dark);
  box-shadow: 0 10px 30px -12px rgba(212, 182, 117, 0.7);
}
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border: 1px solid rgba(31, 31, 31, 0.2);
}
.btn-ghost:hover { background: rgba(31,31,31,0.05); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* === Hero (saas-spotlight) === */
.saas-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-neutral-light) 100%);
  padding: 4rem 0 3rem;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; pointer-events: none;
  background: radial-gradient(circle, rgba(212, 182, 117, 0.28) 0%, rgba(212, 182, 117, 0) 60%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: left; padding-block: 2rem 1.5rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-heading);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 600; margin: 0 0 1rem;
}
.hero-inner h1 { max-width: 20ch; }
.lead { font-size: 1.15rem; color: #444; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-visual { position: relative; z-index: 1; margin-top: 2rem; }
.hero-visual img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow-lg);
}
.proof-strip {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  margin-top: 2.5rem; font-size: .9rem; color: #555;
}
.proof-strip span:nth-child(even) { color: var(--color-accent); }

@media (min-width: 900px) {
  .saas-hero { padding: 5rem 0 4rem; }
  .hero-inner { padding-block: 3rem 2rem; }
}

/* === Sections === */
.section { padding: 4rem 0; }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { max-width: 24ch; margin-inline: auto; }
.section-sub { color: #555; max-width: 60ch; margin: .5rem auto 0; }

.intro-grid { display: grid; gap: 2rem; }
.intro-image img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4rem; }
}

/* === 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: var(--color-neutral-light);
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(212, 182, 117, 0.4); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(212, 182, 117, 0.18), rgba(212, 182, 117, 0.05));
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.card p { color: #444; font-size: .95rem; margin: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { border-color: var(--color-accent); }

/* === Testimonial === */
.testimonial-section { background: var(--color-secondary); }
.testimonial {
  max-width: 780px; margin: 0 auto; text-align: center;
  font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.4; color: var(--color-neutral-dark);
}
.testimonial p { margin: 0 0 1.25rem; }
.testimonial cite { display: block; font-family: var(--font-body); font-size: .95rem; color: #555; font-style: normal; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
  padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 182, 117, 0.22), transparent 60%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--color-neutral-light); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(248, 248, 248, 0.75); max-width: 52ch; margin: 0 auto 1.5rem; }

/* === FAQ === */
.faq details {
  background: var(--color-neutral-light); border: 1px solid rgba(31,31,31,0.08);
  border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(212,182,117,0.4); }
.faq summary {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
  cursor: pointer; padding: .25rem 0; 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;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: .75rem 0 0; color: #444; }

/* === Contact form === */
.contact-form {
  background: var(--color-neutral-light); padding: 2rem;
  border-radius: var(--radius); border: 1px solid rgba(31,31,31,0.08);
  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: .9rem; }
.form-row input, .form-row textarea {
  padding: .75rem .9rem; border: 1px solid rgba(31,31,31,0.15); border-radius: 10px;
  font: inherit; background: #fff; color: var(--color-primary);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(212,182,117,0.25);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem; color: #555; margin: 0 0 1.25rem;
}
.form-consent input { margin-top: .2rem; }
.form-consent a { color: var(--color-accent); text-decoration: underline; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(248,248,248,0.75);
  padding: 3rem 0 1.5rem; margin-top: 4rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-logo img { height: 64px; filter: brightness(0) invert(1) opacity(0.9); }
.tagline { color: rgba(248,248,248,0.6); font-size: .95rem; margin-top: .5rem; }
.site-footer h4 { color: var(--color-neutral-light); font-size: 1rem; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; font-size: .9rem; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { margin-top: 1rem; font-size: .85rem; }
.copyright {
  border-top: 1px solid rgba(248,248,248,0.1); padding-top: 1.5rem; margin-top: 2rem;
  font-size: .85rem; color: rgba(248,248,248,0.5);
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 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);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto;
  font-size: .9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button {
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(248,248,248,0.2);
  background: transparent; color: var(--color-neutral-light); font: inherit; cursor: pointer;
  transition: background .2s;
}
.cookie-banner__actions button:hover { background: rgba(248,248,248,0.08); }
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent); color: var(--color-neutral-dark); border-color: var(--color-accent);
}
.cookie-banner__actions [data-cookie-accept]:hover { background: #e2c88a; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button {
  align-self: flex-start; margin-top: .5rem;
  padding: .5rem 1rem; border-radius: 999px; border: 0;
  background: var(--color-accent); color: var(--color-neutral-dark); font: inherit; font-weight: 600; cursor: pointer;
}

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