:root {
  --dark: #503724;
  --brand: #9C6F53;
  --brand-hover: #80593F;
  --terracotta: #B87553;
  --caramel: #D9A176;
  --cream: #FDFAF5;
  --white: #FEFEFE;
  --ink: #4A3626;
  --ink-soft: #8A7566;
  --shadow-color: 80, 55, 36;
  --night: #1A120B;
  --cream-soft: #F0E6D8;

  --accent: #D9713F;
  --accent-dark: #BD5E30;
  --hero-bg: #F6F5F3;
  --hero-ink: #16161D;
  --hero-ink-soft: #6E6E76;
  --hero-line: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "League Spartan", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.05rem;
}

h1, h2, h3, .pull-quote {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 500;
  color: var(--dark);
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.narrow { max-width: 680px; }

/* New site nav + hero */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 245, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hero-line);
}

.site-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
}

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.1vw, 23px);
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-mate { color: var(--hero-ink); }
.brand-flow { color: var(--accent); }
.brand-tld { color: #A8A8AC; font-weight: 600; margin-left: 1px; }

.main-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-link-new {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--hero-ink);
  opacity: 0.72;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-link-new:hover { opacity: 1; }
.nav-link-new.is-active { opacity: 1; }

.main-nav-cta {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.hero-banner {
  background: var(--hero-bg);
  padding: clamp(48px, 9vh, 104px) 0 clamp(52px, 10vh, 116px);
}

.hero-banner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-banner-inner { max-width: 560px; }

/* Hero phone / WhatsApp mockup */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: clamp(230px, 24vw, 290px);
  aspect-ratio: 9 / 19.5;
  background: #0b0b0d;
  border-radius: 46px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.04) inset;
}

.phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 22px;
  background: #0b0b0d;
  border-radius: 14px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ECE5DD;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075E54;
  padding: 34px 14px 10px;
  color: #fff;
  flex-shrink: 0;
}

.wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #075E54;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}

.wa-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.wa-name {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-status {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.wa-body {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.wa-bubble {
  max-width: 84%;
  padding: 7px 9px 8px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.wa-bubble-in {
  align-self: flex-start;
  background: #fff;
  color: #111;
  border-top-left-radius: 2px;
}

.wa-bubble-out {
  align-self: flex-end;
  background: #DCF8C6;
  color: #111;
  border-top-right-radius: 2px;
}

.wa-time {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #8d8d8d;
  margin-top: 3px;
}

.wa-time i { font-size: 9px; color: #53bdeb; margin-left: 2px; }

.wa-typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 8px;
  border-top-left-radius: 2px;
  padding: 9px 12px;
  display: none;
  gap: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.wa-typing.is-visible { display: flex; }

.wa-typing-out {
  align-self: flex-end;
  background: #DCF8C6;
  border-top-left-radius: 8px;
  border-top-right-radius: 2px;
}

.wa-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa0a6;
  animation: waBounce 1.1s infinite ease-in-out;
}

.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }

.wa-bubble-typed { display: none; }

.wa-bubble-typed.is-visible {
  display: block;
  animation: waBubbleIn 0.25s ease forwards;
}

@keyframes waBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.wa-caret {
  display: inline-block;
  width: 2px;
  height: 10px;
  background: #111;
  margin-left: 1px;
  vertical-align: -1px;
  opacity: 0;
}

.wa-bubble-typed.is-typing .wa-caret {
  opacity: 1;
  animation: waCaretBlink 0.8s steps(1) infinite;
}

@keyframes waBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes waCaretBlink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-typing span { animation: none; }
  .wa-caret { animation: none; opacity: 0; }
  .wa-bubble-typed.is-visible { animation: none; opacity: 1; transform: none; }
}

.hero-eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(18px, 3vh, 28px);
}

.hero-title {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.96;
  color: var(--hero-ink);
  margin-bottom: clamp(24px, 4vh, 36px);
}

.hero-accent { color: var(--accent); }

.hero-banner-sub {
  font-family: "League Spartan", sans-serif;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--hero-ink-soft);
  max-width: 480px;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vh, 44px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(217, 113, 63, 0.32);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-text {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--hero-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--hero-ink-soft);
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .main-nav-links, .main-nav-cta { display: none; }
  .site-nav .burger { display: flex; }

  .hero-banner-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-banner-inner { max-width: none; }
  .hero-phone-wrap { order: 2; }
}

/* Why MateFlow section */
.why-section { background: var(--hero-bg); padding: clamp(56px, 9vh, 96px) 0; }

.section-heading {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  color: var(--hero-ink);
  margin-bottom: clamp(36px, 5.5vh, 56px);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FBE4D6;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 20px;
}

.why-card h3 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--hero-ink);
  margin-bottom: 12px;
}

.why-card p {
  font-family: "League Spartan", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--hero-ink-soft);
}

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Hoe het werkt section */
.steps-section { background: var(--hero-bg); padding: clamp(56px, 9vh, 96px) 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.step-num {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: clamp(40px, 4vw, 52px);
  color: #F3CBB8;
  line-height: 1;
  margin-bottom: 18px;
}

.step-card h3 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--hero-ink);
  margin-bottom: 12px;
}

.step-card p {
  font-family: "League Spartan", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--hero-ink-soft);
}

@media (max-width: 880px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* Diensten section */
.services-section { background: #fff; padding: clamp(56px, 9vh, 96px) 0; }

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--hero-ink);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.card-btn:hover { background: var(--hero-bg); border-color: rgba(0, 0, 0, 0.2); }

/* Hoe werkt onze AI section */
.ai-flow-section {
  background-color: #0B0D12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  padding: clamp(56px, 9vh, 96px) 0;
}

.ai-flow-section .hero-eyebrow { color: var(--accent); }
.ai-flow-section .section-heading { color: #fff; }

.ai-flow-diagram { width: 100%; }

.ai-flow-svg-mobile { display: block; width: 100%; height: auto; }
.ai-flow-svg-desktop { display: none; width: 100%; height: auto; }

@media (min-width: 860px) {
  .ai-flow-svg-desktop { display: block; }
  .ai-flow-svg-mobile { display: none; }
}

.ai-flow-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
}

.ai-flow-dot { fill: #f97316; opacity: 0; }

.ai-node {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.35;
}

.ai-node-core {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.1);
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 16px;
  font-weight: 400;
  animation: aiCorePulse 2.3s ease-in-out infinite;
}

.ai-node-sub { font-size: 13px; }

@keyframes aiCorePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: 0 0 22px rgba(249, 115, 22, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-flow-dot { display: none; }
  .ai-node-core { animation: none; }
}

/* Ervaringen / testimonials section */
.testimonials-section { background: var(--hero-bg); padding: clamp(56px, 9vh, 96px) 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testimonial-quote {
  font-family: "League Spartan", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hero-ink);
  margin-bottom: 20px;
}

.testimonial-author {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-ink-soft);
}

@media (max-width: 980px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Call-to-action section */
.cta-section {
  background: #0B0D12;
  padding: clamp(64px, 11vh, 110px) 0;
}

.cta-section .hero-eyebrow { color: var(--accent); }
.cta-section .section-heading { color: #fff; }

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-sub {
  font-family: "League Spartan", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 460px;
  margin-bottom: clamp(28px, 4vh, 40px);
}

/* Diensten page */
.page-intro { background: #0B0D12; padding: clamp(56px, 10vh, 100px) 0 clamp(40px, 7vh, 72px); }

.page-intro .section-heading { color: #fff; }

.page-intro-sub {
  font-family: "League Spartan", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin-top: 8px;
}

.service-detail { background: var(--hero-bg); padding: clamp(48px, 8vh, 80px) 0; }
.service-detail-alt { background: #fff; }

.service-detail-inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 48px);
}

.service-detail-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FBE4D6;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.service-detail-body { max-width: 640px; }

.service-detail-heading {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--hero-ink);
  margin-bottom: 14px;
}

.service-detail-lead {
  font-family: "League Spartan", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--hero-ink-soft);
  margin-bottom: 20px;
}

.service-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.service-feature-list li {
  position: relative;
  padding-left: 24px;
  font-family: "League Spartan", sans-serif;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--hero-ink);
}

.service-feature-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  color: var(--accent);
}

@media (max-width: 700px) {
  .service-detail-inner { flex-direction: column; gap: 20px; }
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.inline-link:hover { color: var(--accent-dark); }

.footer-legal { margin-top: 2px; font-size: 0.8rem; }

.footer-legal-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-legal-link:hover { color: #fff; text-decoration: underline; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--hero-ink);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-family: "League Spartan", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0;
}

.cookie-banner-text .inline-link { color: #fff; }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.cookie-btn-accept { background: var(--accent); color: #fff; }

.cookie-btn-accept:hover { background: var(--accent-dark); }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--hero-ink);
  margin-bottom: -6px;
}

.contact-input {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--hero-ink);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.contact-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-textarea { resize: vertical; min-height: 120px; font-family: "League Spartan", sans-serif; }

.contact-submit { align-self: flex-start; margin-top: 6px; }

.contact-form-note {
  font-family: "League Spartan", sans-serif;
  font-size: 13px;
  color: var(--hero-ink-soft);
  margin: 0;
}

.contact-info {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 32px;
}

.contact-info-email {
  display: inline-block;
  font-size: 19px;
  margin-top: 6px;
}

.contact-info-follow { margin-top: 24px; }

.contact-info-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FBE4D6;
  color: var(--accent);
  font-size: 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-social-btn:hover { background: #F3CBB8; transform: translateY(-1px); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(253, 250, 245, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
}

.logo-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 10px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--brand); }

.nav-links a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.nav-cta {
  color: var(--dark) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}

/* Hero */
.hero { padding-top: 56px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.9rem;
  line-height: 1.22;
  max-width: 11.5em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 26px 0 34px;
  max-width: 46ch;
}

.hero-stage { position: relative; }

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 48px -16px rgba(var(--shadow-color), 0.28);
}

.hero-canvas {
  aspect-ratio: 4 / 5;
  width: 100%;
}

.hero-canvas canvas { display: block; width: 100%; height: 100%; }

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-btn {
  font-family: "League Spartan", sans-serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid rgba(80, 55, 36, 0.18);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.feature-btn:hover { border-color: var(--brand); color: var(--dark); }

.feature-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.feature-btn:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.flow-divider {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 60px;
}

.flow-divider path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2;
  opacity: 0.55;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px -10px rgba(var(--shadow-color), 0.35);
}

.btn:hover { background: var(--brand-hover); box-shadow: 0 14px 28px -10px rgba(var(--shadow-color), 0.42); }
.btn:active { transform: scale(0.98); }

.btn:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.btn-light {
  background: var(--caramel);
  color: var(--dark);
}

.btn-light:hover { background: var(--terracotta); color: var(--white); }

/* Probleem */
.probleem { padding: 100px 0 90px; }

.probleem .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.pull-quote {
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.4;
  color: var(--dark);
  margin: 40px 0;
  max-width: 18ch;
}

/* Oplossing */
.oplossing { padding-bottom: 40px; }

.oplossing > .wrap h2 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.row { padding: 56px 0; }

.row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.row-reverse .row-grid { direction: rtl; }

.row-reverse .row-text,
.row-reverse .row-photo { direction: ltr; }

.row-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 20px 40px -18px rgba(var(--shadow-color), 0.25);
}

.row-text h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.row-text p {
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Interactive demo */
.demo { padding: 90px 0 20px; }

.demo h2 { font-size: 2.1rem; margin-bottom: 10px; }

.demo .section-sub { color: var(--ink-soft); margin-bottom: 28px; }

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.demo-chip {
  font-family: "League Spartan", sans-serif;
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid rgba(80, 55, 36, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.demo-chip:hover { border-color: var(--brand); }

.demo-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.demo-chip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.demo-chat {
  background: var(--white);
  border: 1px solid rgba(80, 55, 36, 0.12);
  border-radius: 16px;
  padding: 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-placeholder { color: var(--ink-soft); font-size: 0.95rem; }

.demo-bubble {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  animation: demoBubbleIn 0.35s ease forwards;
}

@keyframes demoBubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

.demo-bubble-user {
  align-self: flex-end;
  background: var(--cream-soft);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.demo-bubble-bot {
  align-self: flex-start;
  background: var(--brand);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

.demo-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  background: var(--cream-soft);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.demo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: demoTyping 1s ease-in-out infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes demoTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-bubble { animation: none; opacity: 1; transform: none; }
  .demo-typing span { animation: none; }
}

/* Features grid */
.features { padding: 20px 0 90px; }

.features h2 { font-size: 2.1rem; margin-bottom: 32px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(80, 55, 36, 0.12);
  border-radius: 16px;
  padding: 26px 24px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Werkwijze */
.werkwijze { padding: 20px 0 90px; }

.werkwijze h2 { font-size: 2.1rem; margin-bottom: 36px; }

.werkwijze-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-number {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  background: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-bottom: 16px;
}

.werkwijze-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.werkwijze-step p { color: var(--ink-soft); font-size: 0.95rem; max-width: 38ch; }

@media (max-width: 720px) {
  .werkwijze-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .demo { padding: 64px 0 10px; }
  .demo h2 { font-size: 1.7rem; }
  .features { padding: 10px 0 64px; }
  .features h2 { font-size: 1.7rem; }
  .werkwijze { padding: 10px 0 64px; }
  .werkwijze h2 { font-size: 1.7rem; }
}

/* FAQ */
.faq-section { background: var(--hero-bg); padding: clamp(56px, 9vh, 96px) 0; }

.faq-list { border-top: 1px solid var(--hero-line); }

.faq-item { border-bottom: 1px solid var(--hero-line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--hero-ink);
}

.faq-question:hover { color: var(--accent); }

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }

.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-question[aria-expanded="true"] + .faq-answer-wrap { grid-template-rows: 1fr; }

.faq-answer-inner { overflow: hidden; }

.faq-answer-inner p {
  padding-bottom: 22px;
  max-width: 65ch;
  font-family: "League Spartan", sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--hero-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer-wrap, .faq-icon::before, .faq-icon::after { transition: none; }
}

@media (max-width: 600px) {
  .faq-question { font-size: 15px; }
}

/* CTA */
.cta {
  background: var(--dark);
  color: var(--white);
  padding: 90px 0;
  text-align: left;
}

.cta h2 {
  color: var(--white);
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.cta p {
  color: rgba(253, 250, 245, 0.75);
  margin-bottom: 34px;
  max-width: 48ch;
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.9);
  padding: 0 0 36px;
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.credits { color: rgba(253, 250, 245, 0.55); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-email {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.footer-email:hover { color: #fff; text-decoration: underline; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-btn:hover { background: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }

/* Scroll reveal: visible by default so content never depends on JS running.
   JS adds .reveal-pending just before observing, then swaps to .is-visible. */
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .hero-text h1 { font-size: 2.3rem; }
  .row-grid { grid-template-columns: 1fr; gap: 28px; }
  .row-reverse .row-grid { direction: ltr; }
  .pull-quote { font-size: 1.4rem; max-width: 100%; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; flex-wrap: wrap; }
  .nav-links { justify-content: flex-start; width: 100%; }
  .nav-links a { margin-left: 0; margin-right: 24px; }
  .hero { padding-top: 32px; }
  .hero-text h1 { font-size: 1.9rem; line-height: 1.26; }
  .hero-sub { font-size: 1.02rem; margin: 18px 0 26px; }
  .btn { width: 100%; text-align: center; padding: 15px 20px; }
  .probleem { padding: 64px 0; }
  .probleem .lead { font-size: 1.02rem; }
  .pull-quote { font-size: 1.25rem; }
  .oplossing > .wrap h2 { font-size: 1.7rem; }
  .row { padding: 36px 0; }
  .row-text h3 { font-size: 1.35rem; }
  .cta { padding: 64px 0; text-align: left; }
  .cta h2 { font-size: 1.7rem; }
  .cta .btn { width: 100%; text-align: center; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Contact page */
.contact-intro {
  padding: 72px 0 24px;
}

.contact-intro h1 {
  font-size: 2.4rem;
  line-height: 1.22;
  margin-bottom: 20px;
}

.contact-form-section { padding: 24px 0 100px; }

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(80, 55, 36, 0.18);
  border-radius: 2px;
  padding: 13px 16px;
  transition: border-color 0.2s ease;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

#submit-btn {
  border: none;
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  cursor: pointer;
}

#submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#submit-btn:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.form-status {
  margin-top: 18px;
  font-size: 0.95rem;
}

.form-status-error { color: #A3412C; }

.form-status-success {
  color: var(--dark);
  font-size: 1.15rem;
  font-family: "Poppins", sans-serif;
}

@media (max-width: 600px) {
  .contact-intro { padding: 48px 0 16px; }
  .contact-intro h1 { font-size: 1.9rem; }
}

/* ======================================================
   Home video-hero page — scoped entirely under body.home
   so it never affects contact/login/portal pages.
   ====================================================== */

body.home {
  background: var(--night);
  color: var(--white);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home .bg {
  position: fixed;
  inset: 0;
  background: var(--night);
  overflow: hidden;
  z-index: 0;
}

.home .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home .bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 18, 11, 0.55) 0%, rgba(26, 18, 11, 0.72) 60%, rgba(26, 18, 11, 0.88) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(184, 117, 83, 0.25), transparent 60%);
}

.home .page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

/* Content below the hero viewport: back to the regular MateFlow look */
.below-fold {
  position: relative;
  z-index: 1;
  background: var(--cream);
  font-family: "League Spartan", sans-serif;
  color: var(--ink);
}

.below-fold .wrap h2,
.below-fold .pull-quote { color: var(--dark); }

/* Header */
.home-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px) 10px;
  opacity: 0;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home .home-header { padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .home-header { animation: none; opacity: 1; }
}

.logo-badge {
  flex-shrink: 0;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--nav-shadow, 0 4px 14px rgba(0, 0, 0, 0.16));
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.logo-badge:hover { transform: scale(1.04); }

.logo-badge img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 50%;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 18px);
  background: var(--white);
  height: clamp(44px, 5.2vw, 48px);
  max-width: 320px;
  flex: 1;
  padding: 4px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.nav-link {
  position: relative;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--dark);
  text-decoration: none;
  opacity: 0.5;
  padding-bottom: 8px;
  transition: opacity 0.2s ease;
}

.nav-link:hover { opacity: 0.75; }

.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dark);
  box-shadow: -5px 0 var(--dark), 5px 0 var(--dark);
}

.signin-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 20px;
  background: var(--dark);
  color: rgba(253, 250, 245, 0.78);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.signin-pill:hover { background: #6b4c34; color: var(--white); transform: translateY(-1px); }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  flex-shrink: 0;
}

.burger span {
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger.is-open { background: var(--white); }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--dark); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--dark); }

/* Hero */
.home .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.trust-row {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
  --trust-size: clamp(36px, 4.5vw, 42px);
}

.trust-avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: #28282a;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px;
  display: block;
  transition: transform 0.35s ease;
}

.trust-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-avatar.a2 { margin-left: calc(var(--trust-size) * -0.42); z-index: 2; }
.trust-avatar.a3 { margin-left: calc(var(--trust-size) * -0.42); z-index: 3; }
.trust-avatar.a1 { z-index: 1; }

.trust-row:hover .a1 { transform: translateY(-2px); }
.trust-row:hover .a2 { transform: translateY(-4px); }
.trust-row:hover .a3 { transform: translateY(-2px); }

.trust-pill {
  display: flex;
  align-items: center;
  height: var(--trust-size);
  background: #28282a;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: #c4c2c3;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
  z-index: 0;
}

.headline {
  color: var(--white);
  font-size: clamp(28px, 6.2vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  white-space: nowrap;
}

.headline-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.subhead {
  max-width: min(500px, 92%);
  margin: clamp(16px, 2.4vh, 22px) auto 0;
  font-size: clamp(15.5px, calc(1.55vw + 2pt), 18.5px);
  color: #d0d0d0;
  opacity: 0.8;
  line-height: 1.55;
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  margin-top: clamp(22px, 3.4vh, 32px);
  background: var(--white);
  color: var(--dark);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  text-decoration: none;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(217, 161, 118, 0.3),
    0 0 22px rgba(217, 161, 118, 0.38),
    0 0 44px rgba(184, 117, 83, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(217, 161, 118, 0.45),
    0 0 28px rgba(217, 161, 118, 0.5),
    0 0 56px rgba(184, 117, 83, 0.26);
}

/* Stats footer */
.home .stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: clamp(20px, 3vh, 32px) auto 0;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-icon {
  font-family: "Silkscreen", monospace;
  color: var(--white);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
}

.stat-value {
  font-family: "Inter", sans-serif;
  color: var(--white);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: #8e8e8e;
  font-size: clamp(11px, 1.2vw, 12.5px);
}

/* Mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(26, 18, 11, 0.62);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease forwards;
}

.mobile-sheet {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 88vw);
  background: var(--white);
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-link {
  position: relative;
  text-align: center;
  padding: 14px 0;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  opacity: 0;
  animation: linkIn 0.4s ease forwards;
}

.mobile-sheet .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-sheet .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-sheet .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-sheet .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-sheet .mobile-link:nth-child(5) { animation-delay: 0.25s; }

.mobile-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dark);
  box-shadow: -5px 0 var(--dark), 5px 0 var(--dark);
}

.mobile-signin {
  margin-top: 10px;
  text-align: center;
  background: var(--dark);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 0;
  border-radius: 999px;
  opacity: 0;
  animation: linkIn 0.4s ease forwards;
  animation-delay: 0.3s;
}

body.menu-open { overflow: hidden; }

/* Entrance animations */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.anim-pulse {
  opacity: 0;
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  70% { opacity: 1; transform: translateY(0) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes headlineFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes linkIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .anim, .anim-pulse, .headline-line, .mobile-link, .mobile-signin {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 720px) {
  .nav-pill, .signin-pill { display: none; }
  .burger { display: flex; }
  .home-header { justify-content: space-between; max-width: none; }

  .headline { line-height: 1.12; }
  .home .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
}

@media (max-width: 420px) {
  .headline { line-height: 1.1; }
  .trust-row { --trust-size: 34px; }
  .trust-pill { font-size: 12px; }
}

@media (max-height: 700px) {
  .trust-row { margin-bottom: 10px; }
  .subhead { margin-top: 10px; }
  .cta { margin-top: 16px; }
}
