/* =================================================================
   Dif3r3nt — Website MVP v1.0
   Premium AI-native software partner — marketing site
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --bg:            #0A0A0B;
  --bg-elev:       #111114;
  --surface:       #16161A;
  --surface-2:     #1D1D22;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);

  --text:          #F4F4F0;
  --text-dim:      #A0A0A6;
  --text-faint:    #67676E;

  --accent:        #CBFF47;   /* acid lime */
  --accent-deep:   #A8E020;
  --accent-glow:   rgba(203, 255, 71, 0.18);
  --violet:        #8A6CFF;   /* AI secondary */

  --danger:        #FF5C5C;

  /* Type */
  --font-display:  'Syne', 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body:     'Cabinet Grotesk', 'Syne', system-ui, sans-serif;

  /* Layout */
  --maxw:          1240px;
  --gutter:        clamp(20px, 5vw, 64px);
  --radius:        18px;
  --radius-lg:     26px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --dur:           0.6s;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: #0A0A0B; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { position: relative; padding-block: clamp(72px, 12vh, 140px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.lead { color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 56ch; margin-top: 18px; }

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

/* ---------- 4. Background grain / glow ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-fx::before {
  content: ""; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(30px); opacity: 0.7;
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}

/* ---------- 5. Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-ring.is-hover { width: 60px; height: 60px; background: rgba(203,255,71,0.12); border-color: var(--accent); }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border-radius: 100px; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.btn-primary { background: var(--accent); color: #0A0A0B; box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 8px 36px -6px var(--accent-glow); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { --pad-y: 18px; --pad-x: 34px; font-size: 1.02rem; }

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 80;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.02em; display: inline-flex; align-items: baseline;
}
.brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding-top: 168px; padding-bottom: 90px; }
.hero-inner { max-width: 920px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.03em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero p.lead { margin-top: 30px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 58ch; }
.hero-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 40px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero-meta .stat .num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em;
  display: block; line-height: 1;
}
.hero-meta .stat .lbl { color: var(--text-faint); font-size: 0.85rem; margin-top: 6px; }

/* Staggered entrance */
[data-anim] > span,
.anim-up { transform: translateY(110%); transition: transform 0.9s var(--ease); }
.hero h1 .line > span { transform: translateY(110%); transition: transform 0.95s var(--ease); }
.is-loaded .hero h1 .line > span { transform: translateY(0); }
.hero .lead, .hero-actions, .hero-meta {
  opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.is-loaded .hero .lead { opacity: 1; transform: none; transition-delay: 0.45s; }
.is-loaded .hero-actions { opacity: 1; transform: none; transition-delay: 0.58s; }
.is-loaded .hero-meta { opacity: 1; transform: none; transition-delay: 0.7s; }
.is-loaded .hero h1 .line:nth-child(1) > span { transition-delay: 0.05s; }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: 0.13s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: 0.21s; }

/* ---------- 9. Ticker ---------- */
.ticker {
  position: relative; border-block: 1px solid var(--line);
  background: var(--bg-elev); padding-block: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 18px; padding-inline: 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.01em; color: var(--text); white-space: nowrap;
}
.ticker-item svg { width: 16px; height: 16px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 10. Diensten grid ---------- */
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px 30px; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(203,255,71,0.08), transparent 45%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); margin-bottom: 24px;
}
.card .ico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); margin-top: 12px; font-size: 1rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.card .tags span {
  font-size: 0.78rem; color: var(--text-faint); padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 100px;
}
.card .num-badge {
  position: absolute; top: 26px; right: 30px; font-family: var(--font-display);
  font-size: 0.85rem; color: var(--text-faint); letter-spacing: 0.1em;
}

/* ---------- 11. Why — stacked cards ---------- */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; margin-top: 56px; align-items: start; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; gap: 20px; align-items: flex-start;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stack-card:hover { transform: translateX(6px); border-color: var(--line-strong); }
.stack-card .k {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--line);
}
.stack-card .k svg { width: 22px; height: 22px; stroke-width: 1.7; }
.stack-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.stack-card p { color: var(--text-dim); font-size: 0.96rem; margin-top: 6px; }

/* ---------- 12. CTA choice ---------- */
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
@media (max-width: 760px) { .cta-cards { grid-template-columns: 1fr; } }
.choice {
  position: relative; text-align: left; border-radius: var(--radius-lg);
  padding: 40px 36px; border: 1px solid var(--line-strong); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.choice-demo { background: linear-gradient(160deg, #1a1d12, #111114); }
.choice-intake { background: linear-gradient(160deg, #16161A, #111114); }
.choice:hover { transform: translateY(-5px); box-shadow: 0 24px 60px -28px rgba(0,0,0,0.8); }
.choice .chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 12px;
}
.choice h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; margin-top: 20px; letter-spacing: -0.01em; }
.choice p { color: var(--text-dim); margin-top: 10px; max-width: 38ch; }
.choice .go { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-family: var(--font-display); font-weight: 600; }
.choice .go svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.choice:hover .go svg { transform: translateX(5px); }

/* ---------- 13. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 14. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding-block: 64px 36px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { font-size: 1.6rem; }
.footer-brand p { color: var(--text-dim); margin-top: 14px; max-width: 34ch; font-size: 0.95rem; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  color: var(--text-faint); font-size: 0.85rem;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- 15. Modal ---------- */
.modal-root {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-root.open { display: flex; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(5,5,6,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.modal-root.open .modal-overlay { opacity: 1; }
.modal {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 34px; transform: translateY(24px) scale(0.98); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.modal-root.open .modal { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head .mode-tag {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-strong); border-radius: 100px; padding: 5px 12px;
}
.modal-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-dim); transition: all 0.2s; }
.modal-close:hover { border-color: var(--danger); color: var(--danger); }
.modal-close svg { width: 20px; height: 20px; }

/* Progress */
.steps-bar { display: flex; gap: 8px; margin: 24px 0 6px; }
.steps-bar .seg { height: 4px; flex: 1; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.steps-bar .seg i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.4s var(--ease); }
.steps-bar .seg.done i { width: 100%; }
.steps-bar .seg.active i { width: 50%; }
.step-count { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 20px; }

.modal h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; }
.modal .sub { color: var(--text-dim); font-size: 0.95rem; margin-top: 6px; }

.step { display: none; animation: stepIn 0.4s var(--ease); }
.step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* Project type picker */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.pick {
  text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); display: flex; gap: 14px; align-items: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.pick:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pick.sel { border-color: var(--accent); background: rgba(203,255,71,0.06); }
.pick .pi { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex: none; }
.pick .pi svg { width: 20px; height: 20px; }
.pick b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; display: block; }
.pick span { color: var(--text-faint); font-size: 0.82rem; }

/* Fields */
.field { margin-top: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-elev); }
.field textarea { resize: vertical; min-height: 96px; }
.field .err-msg { color: var(--danger); font-size: 0.8rem; margin-top: 7px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err-msg { display: block; }
.field .counter { float: right; color: var(--text-faint); font-size: 0.78rem; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* Honeypot — visually hidden, off-screen */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.modal-nav { display: flex; gap: 12px; margin-top: 28px; }
.modal-nav .btn { flex: 1; }
.gdpr-note { color: var(--text-faint); font-size: 0.78rem; margin-top: 18px; display: flex; gap: 8px; align-items: flex-start; }
.gdpr-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text-dim); }

/* Success */
.success { display: none; text-align: center; padding: 14px 0 6px; }
.success.active { display: block; animation: stepIn 0.5s var(--ease); }
.success .check {
  width: 76px; height: 76px; margin: 6px auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(203,255,71,0.12); border: 1px solid var(--accent); color: var(--accent);
}
.success .check svg { width: 38px; height: 38px; stroke-width: 2; }
.success h3 { font-size: 1.7rem; }
.success p { color: var(--text-dim); margin-top: 10px; max-width: 40ch; margin-inline: auto; }

.form-error-banner {
  display: none; margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,92,92,0.1); border: 1px solid rgba(255,92,92,0.3); color: #ffb3b3; font-size: 0.88rem;
}
.form-error-banner.show { display: block; }

/* spinner */
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn .spin { display: none; width: 17px; height: 17px; border: 2px solid rgba(0,0,0,0.3); border-top-color: #0A0A0B; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.loading .spin { display: inline-block; }
.btn.loading .lbl { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 16. Misc ---------- */
.divider-label { display: flex; align-items: center; gap: 16px; color: var(--text-faint); font-size: 0.85rem; margin-top: 14px; }
.divider-label::before, .divider-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .modal { padding: 26px 22px; }
  .pick-grid { grid-template-columns: 1fr; }
}
