/* ===========================================================
   DCS.nl — Design System
   Clean, modern corporate. Generous whitespace. Blue accent.
   =========================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---- Tokens ---- */
:root {
  /* Brand blue (refined, oklch) */
  --brand-50:  oklch(0.97 0.02 256);
  --brand-100: oklch(0.94 0.045 256);
  --brand-200: oklch(0.88 0.08 256);
  --brand-400: oklch(0.66 0.16 256);
  --brand-500: oklch(0.58 0.19 256);
  --brand-600: oklch(0.52 0.20 257);
  --brand-700: oklch(0.45 0.18 259);
  --brand: var(--brand-600);
  --brand-ink: oklch(0.32 0.13 260);

  /* Neutrals — cool-neutral slate */
  --ink:    oklch(0.24 0.018 264);
  --ink-2:  oklch(0.38 0.015 264);
  --muted:  oklch(0.54 0.012 264);
  --line:   oklch(0.92 0.006 264);
  --line-2: oklch(0.88 0.008 264);
  --surface: oklch(0.975 0.005 264);
  --surface-2: oklch(0.955 0.006 264);
  --bg: #ffffff;
  --navy:   oklch(0.22 0.035 262);
  --navy-2: oklch(0.28 0.04 262);

  /* Type */
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', 'Hanken Grotesk', system-ui, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --container-wide: 1320px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,.07), 0 12px 28px rgba(15,23,42,.06);
  --shadow-lg: 0 18px 50px rgba(15,23,42,.12), 0 6px 16px rgba(15,23,42,.07);
  --shadow-brand: 0 14px 34px oklch(0.52 0.20 257 / .28);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: var(--container-wide); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--gap, 16px); }

/* ---- Type scale ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--brand); display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.display {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.maxw-sm { max-width: 42ch; }
.maxw-md { max-width: 56ch; }
.maxw-lg { max-width: 68ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-onnavy { background: rgba(255,255,255,.1); color:#fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.btn-onnavy:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--brand); font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
/* ---- DCS logo tile (white square, navy wordmark, blue dot) ---- */
.logo-tile {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: #fff; border: 1px solid var(--line-2);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.logo-word {
  display: inline-flex; align-items: flex-end;
  font-family: var(--sans); font-weight: 800; font-size: 19px;
  letter-spacing: -0.055em; line-height: .78; color: #0c1a2e;
}
.logo-dot {
  width: .34em; height: .34em; border-radius: 50%; flex: none;
  background: var(--brand); margin-left: .07em; margin-bottom: .04em;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: 15px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--surface);
}
.lang-toggle button {
  border: none; background: transparent; padding: 5px 11px; border-radius: 999px;
  font-weight: 600; font-size: 13px; color: var(--muted); transition: all .15s;
}
.lang-toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* ---- Cards ---- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ---- Grids ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Pills / chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.chip.brand { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-ink); }

/* ---- Phone mockup (placeholder app screens) ---- */
.phone {
  position: relative; width: 240px; aspect-ratio: 240 / 500;
  background: #0b1220; border-radius: 34px; padding: 9px;
  box-shadow: var(--shadow-lg); flex: none;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden; position: relative;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px);
  display: flex; flex-direction: column;
}
.phone .notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 19px; background: #0b1220; border-radius: 0 0 12px 12px; z-index: 3;
}
.screen-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 11px; color: var(--muted);
  letter-spacing: .04em; padding: 20px;
}

/* ---- Image placeholder ---- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px);
  border: 1px solid var(--line);
  display: grid; place-content: center; min-height: 200px;
}
.ph span {
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 12px; color: var(--muted);
  letter-spacing: .03em; text-align: center; padding: 14px;
}

/* ---- Stats ---- */
.stat-num { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.stat-num .accent { color: var(--brand); }
.stat-label { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* ---- Logo wall ---- */
.logo-wall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.logo-item {
  height: 38px; padding: 0 8px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--muted);
  opacity: .72; letter-spacing: -0.01em;
}

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: oklch(0.86 0.01 264); padding: 72px 0 36px; }
.site-footer a { color: oklch(0.82 0.012 264); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand .logo-tile { width: 48px; height: 48px; border-radius: 12px; }
.footer-brand .logo-word { font-size: 21px; }
.footer-col h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: oklch(0.66 0.02 264); margin-bottom: 16px; font-weight: 600; }
.footer-col li + li { margin-top: 10px; }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: oklch(0.66 0.02 264);
}
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .2s; }
.social-row a:hover { background: rgba(255,255,255,.16); }
.social-row svg { width: 17px; height: 17px; }

/* ---- Sections: tinted ---- */
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy); color: oklch(0.92 0.01 264); }
.bg-navy .h2, .bg-navy .display { color: #fff; }
.bg-navy .lead { color: oklch(0.82 0.012 264); }
.bg-navy .eyebrow { color: var(--brand-200); }
.bg-navy .eyebrow::before { background: var(--brand-200); }
.bg-brand { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; }
.bg-brand .h2, .bg-brand .display { color: #fff; }
.bg-brand .lead { color: rgba(255,255,255,.86); }

/* ---- Section heading block ---- */
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

/* ---- Testimonial ---- */
.quote { font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink); font-weight: 500; }
.quote-author { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.quote-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); font-weight: 700; flex: none; }

/* ---- Reveal on scroll — base state is VISIBLE; .in animates from hidden.
   If JS/IO ever fails, content still shows (safe for capture, print, SEO). ---- */
.reveal.in { animation: revealIn .7s cubic-bezier(.2,.7,.3,1) both; }
@keyframes revealIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Mobile nav drawer ---- */
.mobile-menu { display: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-right .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .mobile-menu.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; z-index: 59; padding: 10px 20px 20px;
    border-top: 1px solid var(--line); box-shadow: 0 22px 32px -20px rgba(12,26,46,.35);
    max-height: calc(100vh - 73px); overflow-y: auto;
  }
  .mobile-menu.open a { display: block; padding: 14px 6px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-menu.open a:last-child { border-bottom: none; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
/* ---- Hero: stack on tablet/mobile (overrides inline 2-col grid) ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 34px !important; }
}
@media (max-width: 520px) {
  .hero-phones { display: none !important; }
}
