/* === Design tokens === */
:root {
  --color-primary: #1F1F1F;
  --color-secondary: #EFE8D6;
  --color-accent: #D4B675;
  --color-neutral-dark: #0A0A0A;
  --color-neutral-light: #F8F8F8;
  --color-text: #1a1a1a;
  --color-muted: #55524a;
  --color-border: rgba(10, 10, 10, 0.10);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(10,10,10,0.05);
  --shadow-md: 0 10px 30px -12px rgba(10,10,10,0.18);
  --shadow-lg: 0 30px 60px -30px rgba(10,10,10,0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  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-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 1rem; }

.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--color-primary); color: var(--color-neutral-light);
  padding: .5rem 1rem; z-index: 10000;
}
.skip:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); margin: 0 0 1rem;
}
.lede { font-size: 1.125rem; color: var(--color-muted); max-width: 60ch; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 500; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #2b2b2b);
  color: var(--color-neutral-light);
  box-shadow: 0 8px 24px -10px rgba(10,10,10,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(10,10,10,0.6); color: var(--color-secondary); }
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border-color: rgba(10,10,10,0.18);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-primary); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 248, 248, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.site-header.scrolled {
  background: rgba(248, 248, 248, 0.92);
  box-shadow: 0 6px 20px -12px rgba(10,10,10,0.2);
  border-bottom-color: var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .85rem; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }

.nav-toggle {
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--color-primary);
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  display: none; flex-direction: column; gap: .25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  padding: .75rem .25rem;
  font-family: var(--font-heading); font-weight: 500; font-size: .95rem;
  color: var(--color-primary); position: relative;
}
.primary-nav a.is-active { color: var(--color-accent); }
.primary-nav .nav-cta {
  margin-top: .5rem; padding: .75rem 1.2rem;
  background: var(--color-primary); color: var(--color-neutral-light);
  border-radius: 999px; text-align: center;
}
.primary-nav .nav-cta.is-active { background: var(--color-accent); color: var(--color-primary); }

/* === Hero (saas-spotlight) === */
.hero {
  position: relative; overflow: hidden;
  padding-block: 4rem 3rem;
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-neutral-light) 100%);
}
.hero-inner-page { padding-block: 3rem 2.5rem; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(circle at 50% 20%, rgba(212, 182, 117, 0.28), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: left; }
.hero .lede { margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-visual {
  margin: 2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proof-strip {
  list-style: none; padding: 1.25rem 0 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: .9rem; color: var(--color-muted);
}
.proof-strip strong { display: block; color: var(--color-primary); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-head { text-align: center; margin: 0 auto 2.5rem; max-width: 720px; }
.section-head .lede { margin-inline: auto; }

.intro .container { text-align: left; }
.intro h2 { max-width: 28ch; }

/* === Cards / grid === */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(212,182,117,0.5); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: .95rem; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--color-primary); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-secondary); color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial-section { background: var(--color-primary); color: var(--color-secondary); }
.testimonial-section h2, .testimonial-section p, .testimonial-section cite { color: inherit; }
.testimonial {
  margin: 0; padding: 0;
  text-align: center;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}
.testimonial cite {
  display: block; font-style: normal;
  color: var(--color-accent);
  font-size: .9rem; letter-spacing: .05em;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a2a2a 100%);
  color: var(--color-secondary);
  padding-block: 3rem;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 200%;
  background: radial-gradient(circle at 80% 10%, rgba(212,182,117,0.22), transparent 55%);
  pointer-events: none;
}
.cta-band-inner { position: relative; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.cta-band h2 { color: var(--color-secondary); }
.cta-band p { color: rgba(239, 232, 214, 0.75); margin: 0; }
.contact-inline { font-size: .9rem; }
.contact-inline a { color: var(--color-accent); }

/* === Split === */
.split-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.split-visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-info address {
  font-style: normal; line-height: 1.8; margin: 1rem 0 1.5rem;
}
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours caption { text-align: left; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); padding-bottom: .5rem; }
.hours th, .hours td { padding: .5rem .25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.hours th { font-weight: 500; color: var(--color-muted); }

.contact-form {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--color-muted); font-family: var(--font-heading); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field 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;
  margin: 1rem 0 1.25rem;
  font-size: .85rem; color: var(--color-muted); line-height: 1.5;
}
.form-consent input { margin-top: .25rem; }
.form-consent a { color: var(--color-primary); text-decoration: underline; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(239,232,214,0.72); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer h4 { color: var(--color-secondary); margin-bottom: 1rem; font-size: .85rem; }
.site-footer .logo img { height: 60px; }
.site-footer .tagline { color: var(--color-accent); font-family: var(--font-heading); margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-grid ul, .footer-grid .legal-links { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .5rem; }
.footer-grid a { color: rgba(239,232,214,0.75); font-size: .9rem; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-grid address { font-style: normal; font-size: .9rem; line-height: 1.8; margin-bottom: 1rem; }
.legal-links { border-top: 1px solid rgba(239,232,214,0.15); padding-top: 1rem !important; margin-top: 1rem !important; }
.copyright { border-top: 1px solid rgba(239,232,214,0.10); padding-top: 1.25rem; font-size: .85rem; color: rgba(239,232,214,0.5); }

/* === 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-left: auto; margin-right: auto;
  font-size: .9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; color: rgba(248,248,248,0.85); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .btn-ghost { color: var(--color-secondary); border-color: rgba(239,232,214,0.3); }
.cookie-banner .btn-ghost:hover { color: var(--color-accent); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(239,232,214,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }

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

/* === Responsive: tablet === */
@media (min-width: 640px) {
  .proof-strip { grid-template-columns: repeat(4, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-block: 5rem 4rem; }
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band-inner > div { flex: 1; }
}

/* === Responsive: desktop === */
@media (min-width: 900px) {
  .cards-grid.three { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.four { grid-template-columns: repeat(4, 1fr); }
  .split-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .site-footer .logo img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    background: transparent; border: 0; padding: 0; gap: 1.75rem;
  }
  .primary-nav a { padding: .5rem 0; }
  .primary-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    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.is-active::after { transform: scaleX(1); }
  .primary-nav .nav-cta { margin-top: 0; padding: .6rem 1.2rem; }
  .primary-nav .nav-cta::after { display: none; }
  .hero { padding-block: 6rem 5rem; }
  .hero-inner-page { padding-block: 4.5rem 3.5rem; }
  .section { padding-block: 5rem; }
  h1 { max-width: 22ch; }
}
