/* ============================================================
   ZENRAI — software-studio (SaaS-ontwikkeling & automatisering)
   Stijl: zelfde huisstijl als Faturi (Khand + Inter, groen accent),
   zelf gehoste lettertypen, geen externe fonts/CDN.
   Thema's worden gestuurd via [data-theme="dark"|"light"] op <html>.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Khand";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/khand-500.woff2") format("woff2");
}
@font-face {
  font-family: "Khand";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/khand-600.woff2") format("woff2");
}
@font-face {
  font-family: "Khand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/khand-700.woff2") format("woff2");
}

/* ---------- THEMA: DARK (standaard) ---------- */
:root,
[data-theme="dark"] {
  --bg:            #07080d;
  --bg-alt:        #0c1310;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-brd:   rgba(255, 255, 255, 0.09);
  --text:          #f4f6fb;
  --text-soft:     #a7adbe;
  --text-faint:    #6c7184;

  --accent:        #22c55e;
  --accent-2:      #16a34a;
  --accent-soft:   rgba(34, 197, 94, 0.16);

  --nav-bg:        rgba(8, 9, 14, 0.7);
  --shadow:        0 20px 60px rgba(0, 0, 0, 0.45);

  --glow-1:        rgba(34, 197, 94, 0.5);
  --glow-2:        rgba(22, 163, 74, 0.4);
  --glow-3:        rgba(5, 150, 105, 0.4);
}

/* ---------- THEMA: LIGHT ---------- */
[data-theme="light"] {
  --bg:            #ffffff;
  --bg-alt:        #f5f8f6;
  --surface:       rgba(10, 30, 12, 0.025);
  --surface-brd:   rgba(10, 30, 12, 0.09);
  --text:          #0d0f1a;
  --text-soft:     #4b5063;
  --text-faint:    #8a8fa3;

  --accent:        #16a34a;
  --accent-2:      #15803d;
  --accent-soft:   rgba(22, 163, 74, 0.10);

  --nav-bg:        rgba(255, 255, 255, 0.72);
  --shadow:        0 18px 50px rgba(20, 60, 30, 0.10);

  --glow-1:        rgba(22, 163, 74, 0.25);
  --glow-2:        rgba(21, 128, 61, 0.2);
  --glow-3:        rgba(5, 150, 105, 0.18);
}

/* ---------- RESET / BASIS ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* ruimte onder vaste nav bij ankers */
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  font-family: "Khand", "Inter", sans-serif;
  font-weight: 700;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   KNOPPEN
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--glow-1);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px var(--glow-1);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface-brd);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn--full { width: 100%; }

/* ============================================================
   NAVIGATIE
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.4s ease;
}
.nav.is-scrolled { border-bottom-color: var(--surface-brd); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}
.nav__logo img { height: 30px; width: auto; display: block; }

/* Logo wisselt mee met het thema: wit logo op de donkere achtergrond,
   zwart logo op de lichte achtergrond. Zelfde patroon voor de footer. */
[data-theme="dark"] .logo-black { display: none; }
[data-theme="light"] .logo-white { display: none; }

.nav__links {
  display: flex;
  gap: 30px;
}
.nav__links a {
  font-size: 0.94rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.nav__cta {
  color: var(--accent);
  font-weight: 700;
}
.nav__links a.nav__cta:hover { color: var(--accent-2); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle:hover {
  transform: rotate(-15deg) scale(1.05);
  border-color: var(--accent);
}
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

/* ---------- HAMBURGER-KNOP (mobiel) ---------- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
}
.blob--1 {
  width: 520px; height: 520px;
  background: var(--glow-1);
  top: -120px; left: 50%;
  transform: translateX(-60%);
  animation: float1 16s ease-in-out infinite;
}
.blob--2 {
  width: 420px; height: 420px;
  background: var(--glow-2);
  bottom: -100px; left: 15%;
  animation: float2 20s ease-in-out infinite;
}
.blob--3 {
  width: 380px; height: 380px;
  background: var(--glow-3);
  top: 30%; right: 8%;
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateX(-60%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(40px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-50px) translateX(40px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(40px) translateX(-30px); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
}

.hero__subtitle {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-soft);
  font-family: "Inter", sans-serif;
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-faint);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTIES (generiek)
   ============================================================ */
.section {
  padding: 110px 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }

.section__label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  max-width: 720px;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section__head .section__title { margin: 0 auto; }

.section__intro {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 1.1rem;
  font-family: "Inter", sans-serif;
}

/* ============================================================
   OVER ZENRAI
   ============================================================ */
.over {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.over__text p { color: var(--text-soft); margin-top: 18px; }
.over__text .section__title { margin-top: 4px; margin-bottom: 4px; }

.over__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat-card__value {
  font-family: "Khand", "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stat-card__label { font-size: 0.9rem; color: var(--text-soft); }

/* ============================================================
   KAARTEN (diensten)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 22px;
  padding: 36px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 24px -8px var(--glow-1);
}
.card__title { font-size: 1.3rem; margin-bottom: 12px; }
.card__text { color: var(--text-soft); font-size: 1rem; font-family: "Inter", sans-serif; }

/* ============================================================
   FATURI-SHOWCASE
   ============================================================ */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.spotlight__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
}
.spotlight__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.spotlight__text { color: var(--text-soft); font-size: 1.05rem; font-family: "Inter", sans-serif; }
.spotlight__text + .spotlight__text { margin-top: 14px; }

.spotlight__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spotlight__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  font-family: "Inter", sans-serif;
}
.spotlight__list li svg { flex: none; color: var(--accent); margin-top: 3px; }

.spotlight__cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Telefoon-mockup met WhatsApp-achtige chat, zelfde patroon als Faturi. */
.phone-frame {
  border: 8px solid var(--surface);
  border-radius: 36px;
  background: var(--bg-alt);
  box-shadow: var(--shadow), 0 0 0 1px var(--surface-brd);
  overflow: hidden;
  width: min(320px, 100%);
  margin: 0 auto;
}
.phone-frame .notch { height: 22px; display: flex; align-items: center; justify-content: center; }
.phone-frame .notch span { width: 60px; height: 4px; border-radius: 3px; background: var(--surface-brd); }
.phone-chat {
  padding: 14px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
  justify-content: flex-end;
}
.phone-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  font-family: "Inter", sans-serif;
}
.phone-bubble.me {
  align-self: flex-end;
  background: #25d366;
  color: #06170e;
  border-bottom-right-radius: 5px;
}
.phone-bubble.them {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  color: var(--text);
  border-bottom-left-radius: 5px;
}
.phone-bubble.them strong { font-family: "Khand", sans-serif; font-weight: 700; }

/* ============================================================
   WERKWIJZE / TIJDLIJN
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.timeline__step {
  position: relative;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline__step:hover { transform: translateY(-5px); border-color: var(--accent); }
.timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: "Khand", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  margin-bottom: 18px;
}
.timeline__title { font-size: 1.12rem; margin-bottom: 10px; }
.timeline__text { color: var(--text-soft); font-size: 0.96rem; font-family: "Inter", sans-serif; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__intro p { color: var(--text-soft); margin-top: 18px; font-family: "Inter", sans-serif; }
.contact__intro .section__title { margin-bottom: 4px; }

.contact__direct {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__direct a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  transition: transform 0.2s ease, border-color 0.2s ease;
  width: fit-content;
  font-family: "Inter", sans-serif;
}
.contact__direct a:hover { transform: translateX(4px); border-color: var(--accent); }
.contact__direct svg { color: var(--accent); flex-shrink: 0; }

.contact__note {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-faint);
  font-family: "Inter", sans-serif;
}

/* Formulier */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 24px;
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-family: "Inter", sans-serif;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--surface-brd);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--accent);
  min-height: 1.2em;
  font-family: "Inter", sans-serif;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--surface-brd);
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer__logo { height: 22px; width: auto; display: block; margin-bottom: 2px; }
.footer__copy { color: var(--text-soft); font-size: 0.92rem; font-family: "Inter", sans-serif; }
.footer__legal { color: var(--text-faint); font-size: 0.82rem; font-family: "Inter", sans-serif; }
.footer__links { display: flex; gap: 22px; }
.footer__links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-family: "Inter", sans-serif;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--accent); }

/* ============================================================
   SCROLL-ANIMATIES (reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .over,
  .contact,
  .spotlight { grid-template-columns: 1fr; gap: 40px; }
  .spotlight__visual { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}

/* ---------- MOBIELE NAVIGATIE (hamburger) ---------- */
@media (max-width: 820px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 80px 32px;
    background: var(--bg-alt);
    border-left: 1px solid var(--surface-brd);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.is-open .nav__links { transform: translateX(0); }

  .nav__links a {
    font-size: 1.15rem;
    padding: 10px 0;
  }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .over__cards { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .contact__form { padding: 26px; }
}

/* ============================================================
   TOEGANKELIJKHEID: respecteer "reduce motion"
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
