/* ════════════════════════════════════════════════════
   Kwetsbaarheidsscan.nl – Main Stylesheet v3.0
   Mobile-first, SEO-optimised
   ════════════════════════════════════════════════════ */

:root {
  --bg:          #050A14;
  --surface:     #0C1524;
  --surface2:    #111E33;
  --accent:      #00C8FF;
  --accent2:     #0066FF;
  --accent-glow: rgba(0,200,255,0.15);
  --red:         #FF4560;
  --green:       #00C864;
  --text:        #E8F0FF;
  --text-muted:  #7A90B8;
  --border:      rgba(0,200,255,0.12);
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      12px;
  --max-width:   1140px;
  --header-h:    64px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}
img { max-width:100%; height:auto; display:block; }
a { color: var(--accent); text-decoration: none; }
button { font-family: var(--font-body); }

/* ── HEADER ─────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,10,20,0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow .3s;
}
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.logo-icon { width:36px; height:36px; flex-shrink:0; }
.logo-text {
  font-family: var(--font-head); font-weight:800; font-size:1rem;
  letter-spacing:-.02em; color:var(--text); white-space:nowrap;
}
.logo-text span { color:var(--accent); }

nav#primary-nav { display:flex; align-items:center; gap:24px; }
nav#primary-nav a {
  color:var(--text-muted); font-size:.83rem; font-weight:500;
  letter-spacing:.02em; transition:color .2s; white-space:nowrap;
}
nav#primary-nav a:hover { color:var(--accent); }
.nav-cta {
  background: var(--accent) !important; color: var(--bg) !important;
  padding: 8px 16px; border-radius:6px; font-weight:600 !important;
  transition: box-shadow .2s, transform .15s !important; white-space:nowrap;
}
.nav-cta:hover { box-shadow:0 0 24px rgba(0,200,255,.4); transform:translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display:none; flex-direction:column; justify-content:center; gap:5px;
  background:none; border:none; cursor:pointer; padding:8px;
  min-width:44px; min-height:44px; /* touch target */
}
.nav-toggle span {
  display:block; width:22px; height:2px;
  background:var(--text); border-radius:2px; transition:all .28s ease;
}
.nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position:relative; z-index:1;
  min-height: calc(100svh - var(--header-h));
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; padding:60px 20px 60px; overflow:hidden;
}
.hero-glow {
  position:absolute; top:-20%; left:50%; transform:translateX(-50%);
  width:min(900px,140vw); height:600px;
  background:radial-gradient(ellipse at center,rgba(0,102,255,.18) 0%,rgba(0,200,255,.06) 50%,transparent 70%);
  pointer-events:none;
}
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(0,200,255,.08); border:1px solid var(--border);
  border-radius:100px; padding:6px 14px;
  font-size:.75rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent); margin-bottom:28px;
  animation:fadeUp .6s ease both;
}
.badge-dot {
  width:6px; height:6px; background:var(--accent); border-radius:50%;
  box-shadow:0 0 8px var(--accent); flex-shrink:0; animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero h1 {
  font-family:var(--font-head); font-size:clamp(2.1rem,8vw,4.5rem);
  font-weight:800; line-height:1.08; letter-spacing:-.03em;
  max-width:900px; margin-bottom:24px;
  animation:fadeUp .7s .1s ease both;
}
.hero h1 em {
  font-style:normal;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero > p {
  font-size:clamp(.95rem,2.5vw,1.15rem); color:var(--text-muted);
  max-width:600px; margin-bottom:40px;
  animation:fadeUp .7s .2s ease both;
}
.hero > p strong { color:var(--text); }
.hero-buttons {
  display:flex; gap:12px; flex-wrap:wrap; justify-content:center;
  animation:fadeUp .7s .3s ease both;
}

/* Buttons */
.btn-primary {
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#050A14; border:none; padding:14px 28px; border-radius:8px;
  font-family:var(--font-body); font-weight:600; font-size:1rem;
  cursor:pointer; text-decoration:none; display:inline-block;
  transition:box-shadow .2s,transform .15s;
  min-height:44px; /* touch */
}
.btn-primary:hover { box-shadow:0 0 40px rgba(0,200,255,.35); transform:translateY(-2px); color:#050A14; }
.btn-secondary {
  background:transparent; color:var(--text); border:1px solid var(--border);
  padding:14px 28px; border-radius:8px; font-family:var(--font-body);
  font-weight:500; font-size:1rem; cursor:pointer; text-decoration:none; display:inline-block;
  transition:border-color .2s,background .2s; min-height:44px;
}
.btn-secondary:hover { border-color:var(--accent); background:var(--accent-glow); color:var(--text); }

/* ── STATS BAR ──────────────────────────────────────── */
.stats-bar {
  position:relative; z-index:1; display:grid;
  grid-template-columns: repeat(4,1fr);
  background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.stat-item {
  padding:28px 16px; text-align:center; border-right:1px solid var(--border);
}
.stat-item:last-child { border-right:none; }
.stat-number { font-family:var(--font-head); font-size:clamp(1.5rem,3vw,2.2rem); font-weight:800; color:var(--accent); line-height:1; display:block; }
.stat-label  { font-size:.75rem; color:var(--text-muted); margin-top:6px; text-transform:uppercase; letter-spacing:.05em; line-height:1.4; }

/* ── NIS2 SECTIE ────────────────────────────────────── */
.nis2-section { background:var(--surface); padding:80px 20px; position:relative; z-index:1; }
.nis2-grid { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.nis2-checks { display:flex; flex-direction:column; gap:10px; }
.nis2-check {
  display:flex; gap:12px; align-items:flex-start;
  background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:12px 16px;
}
.check-icon {
  color:var(--accent); font-weight:800; flex-shrink:0;
  width:22px; height:22px; display:flex; align-items:center; justify-content:center;
  background:var(--accent-glow); border-radius:50%; font-size:.75rem; margin-top:1px;
}
.nis2-visual { display:flex; flex-direction:column; gap:20px; }
.nis2-badge-big {
  display:flex; justify-content:center; align-items:center;
  background:var(--bg); border:1px solid var(--border); border-radius:16px; padding:36px;
}
.nis2-law-box {
  background:var(--bg); border:1px solid rgba(0,200,255,.2); border-left:3px solid var(--accent);
  border-radius:0 12px 12px 0; padding:22px;
}
.nis2-law-label { font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.nis2-law-quote { color:var(--text-muted); font-size:.88rem; line-height:1.7; font-style:italic; margin-bottom:10px; }
.nis2-law-note  { color:var(--accent); font-size:.83rem; font-weight:600; }

/* ── SECTIONS ───────────────────────────────────────── */
section { position:relative; z-index:1; padding:80px 20px; }
.container { max-width:var(--max-width); margin:0 auto; }
.section-label { font-size:.72rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-bottom:14px; }
.section-title { font-family:var(--font-head); font-size:clamp(1.6rem,4vw,2.8rem); font-weight:800; letter-spacing:-.025em; line-height:1.15; margin-bottom:18px; max-width:700px; }
.section-sub   { color:var(--text-muted); max-width:580px; margin-bottom:56px; font-size:1rem; }

/* ── REASONS GRID ───────────────────────────────────── */
.reasons-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:2px; background:var(--border); border:1px solid var(--border); border-radius:16px; overflow:hidden;
}
.reason-card {
  background:var(--surface); padding:36px 28px; position:relative; overflow:hidden; transition:background .25s;
}
.reason-card::before {
  content:''; position:absolute; top:0; left:0; width:100%; height:2px;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
  opacity:0; transition:opacity .25s;
}
.reason-card:hover { background:var(--surface2); }
.reason-card:hover::before { opacity:1; }
.card-number {
  font-family:var(--font-head); font-size:3rem; font-weight:800;
  color:rgba(0,200,255,.07); line-height:1; position:absolute; top:16px; right:20px;
  transition:color .25s; user-select:none;
}
.reason-card:hover .card-number { color:rgba(0,200,255,.13); }
.card-icon { width:44px; height:44px; background:var(--accent-glow); border:1px solid rgba(0,200,255,.2); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:1.3rem; }
.card-title { font-family:var(--font-head); font-size:1rem; font-weight:700; margin-bottom:10px; letter-spacing:-.01em; }
.card-text   { color:var(--text-muted); font-size:.9rem; line-height:1.7; }

/* ── HOW SECTION ────────────────────────────────────── */
.how-section { background:var(--surface); }
.steps { display:flex; flex-direction:column; max-width:720px; }
.step { display:flex; gap:24px; padding:36px 0; border-bottom:1px solid var(--border); }
.step:last-child { border-bottom:none; }
.step-num {
  font-family:var(--font-head); font-size:.72rem; font-weight:700; color:var(--accent);
  background:var(--accent-glow); border:1px solid rgba(0,200,255,.2); border-radius:8px;
  width:38px; height:38px; min-width:38px; display:flex; align-items:center; justify-content:center;
  letter-spacing:.05em; margin-top:4px;
}
.step-title { font-family:var(--font-head); font-size:1.05rem; font-weight:700; margin-bottom:8px; }
.step-text  { color:var(--text-muted); font-size:.93rem; }

/* ── RISK SECTION ───────────────────────────────────── */
.risk-section { background:var(--bg); }
.risk-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.risk-list { list-style:none; display:flex; flex-direction:column; gap:12px; }
.risk-item {
  display:flex; gap:14px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:16px 18px; transition:border-color .2s;
}
.risk-item:hover { border-color:rgba(0,200,255,.3); }
.risk-dot { width:8px; height:8px; min-width:8px; background:var(--red); border-radius:50%; margin-top:8px; box-shadow:0 0 10px rgba(255,69,96,.5); }
.risk-content strong { display:block; font-family:var(--font-head); font-weight:700; font-size:.93rem; margin-bottom:4px; }
.risk-content span   { color:var(--text-muted); font-size:.86rem; }
.visual-panel {
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:36px 28px; text-align:center; position:relative; overflow:hidden;
}
.visual-panel::after {
  content:''; position:absolute; bottom:-60px; right:-60px; width:200px; height:200px;
  background:radial-gradient(circle,rgba(0,102,255,.2),transparent 70%); pointer-events:none;
}
.panel-stat-big { font-family:var(--font-head); font-size:clamp(3rem,8vw,5rem); font-weight:800; color:var(--accent); line-height:1; display:block; }
.panel-stat-label { color:var(--text-muted); font-size:.88rem; margin-top:8px; margin-bottom:24px; display:block; line-height:1.5; }
.divider { width:50px; height:2px; background:var(--border); margin:24px auto; }

/* ── FAQ SECTION ────────────────────────────────────── */
.faq-section { background:var(--surface); }
.faq-list { display:flex; flex-direction:column; max-width:780px; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q {
  width:100%; display:flex; justify-content:space-between; align-items:center;
  background:none; border:none; cursor:pointer; padding:22px 0;
  color:var(--text); font-family:var(--font-head); font-size:1rem; font-weight:700;
  text-align:left; gap:16px; transition:color .2s; min-height:44px;
}
.faq-q:hover { color:var(--accent); }
.faq-q[aria-expanded="true"] { color:var(--accent); }
.faq-arrow { flex-shrink:0; font-size:1rem; transition:transform .3s; display:inline-block; }
.faq-q[aria-expanded="true"] .faq-arrow { transform:rotate(180deg); }
.faq-a[hidden] { display:none; }
.faq-a p { color:var(--text-muted); padding:0 0 22px; font-size:.93rem; line-height:1.75; }

/* ── CTA / BROCHURE ──────────────────────────────────── */
.cta-section {
  background:linear-gradient(135deg,#050A14 0%,#071428 50%,#050A14 100%);
  text-align:center; padding:100px 20px;
}
.cta-title {
  font-family:var(--font-head); font-size:clamp(1.8rem,5vw,3.2rem); font-weight:800;
  letter-spacing:-.025em; margin-bottom:18px; max-width:680px; margin-left:auto; margin-right:auto;
}
.cta-sub { color:var(--text-muted); font-size:1rem; max-width:500px; margin:0 auto 44px; }
.cta-form { display:flex; flex-direction:column; gap:12px; max-width:540px; margin:0 auto; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cta-input {
  background:var(--surface); border:1px solid var(--border); border-radius:8px;
  padding:14px 16px; color:var(--text); font-family:var(--font-body); font-size:1rem;
  outline:none; transition:border-color .2s; width:100%;
  -webkit-appearance:none; /* iOS fix */
}
.cta-input:focus { border-color:var(--accent); }
.cta-input::placeholder { color:var(--text-muted); }
.btn-submit { width:100%; padding:16px; font-size:1rem; margin-top:4px; }
.form-privacy { color:var(--text-muted); font-size:.76rem; margin-top:10px; line-height:1.6; }
.form-privacy a { color:var(--accent); }
.form-notice {
  padding:14px 18px; border-radius:8px; margin-bottom:20px;
  max-width:540px; margin-left:auto; margin-right:auto; font-weight:500; font-size:.93rem;
}
.form-notice--success { background:rgba(0,200,100,.12); border:1px solid rgba(0,200,100,.3); color:var(--green); }
.form-notice--error   { background:rgba(255,69,96,.12);  border:1px solid rgba(255,69,96,.3);  color:var(--red); }

/* ── FOOTER ─────────────────────────────────────────── */
#site-footer {
  position:relative; z-index:1; background:var(--surface); border-top:1px solid var(--border);
  padding:48px 40px 36px; display:flex; justify-content:space-between;
  align-items:flex-start; flex-wrap:wrap; gap:36px;
}
.footer-brand p { color:var(--text-muted); font-size:.84rem; margin-top:10px; max-width:260px; line-height:1.6; }
.footer-links h4 {
  font-family:var(--font-head); font-size:.75rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:14px;
}
.footer-links ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a { color:var(--text-muted); font-size:.86rem; transition:color .2s; }
.footer-links a:hover { color:var(--accent); }
.footer-bottom {
  background:var(--surface); border-top:1px solid var(--border); padding:14px 40px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
  position:relative; z-index:1;
}
.footer-bottom p { color:var(--text-muted); font-size:.78rem; }

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.fade-up { opacity:0; transform:translateY(24px); transition:opacity .55s ease,transform .55s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE – TABLET  (max 1024px)
   ═══════════════════════════════════════════════════════ */
@media (max-width:1024px) {
  #site-header { padding:0 24px; }
  nav#primary-nav { gap:16px; }
  nav#primary-nav a { font-size:.78rem; }
  .nis2-grid { grid-template-columns:1fr; gap:40px; }
  .nis2-visual { flex-direction:row; flex-wrap:wrap; gap:16px; }
  .nis2-badge-big { flex:1; min-width:180px; }
  .nis2-law-box { flex:2; min-width:260px; }
  .risk-grid { grid-template-columns:1fr; gap:36px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE – MOBILE  (max 768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width:768px) {
  :root { --header-h: 60px; }

  /* Header */
  #site-header { padding:0 16px; }
  .nav-toggle { display:flex; }
  nav#primary-nav {
    display:none;
    position:fixed; top:var(--header-h); left:0; right:0; bottom:0;
    background:rgba(5,10,20,.97);
    flex-direction:column; align-items:flex-start;
    padding:28px 24px; gap:8px;
    overflow-y:auto;
    border-top:1px solid var(--border);
  }
  nav#primary-nav.open { display:flex; }
  nav#primary-nav a {
    font-size:1.1rem; padding:12px 0; width:100%;
    border-bottom:1px solid var(--border);
  }
  nav#primary-nav a:last-child { border-bottom:none; }
  .nav-cta {
    background:var(--accent) !important;
    padding:14px 0 !important; text-align:center; width:100%;
    border-radius:8px !important; margin-top:8px;
  }
  .logo-text { font-size:.88rem; }

  /* Hero */
  .hero { padding:48px 16px 52px; min-height:auto; }
  .hero-badge { font-size:.68rem; padding:5px 12px; text-align:center; }
  .hero-buttons { flex-direction:column; width:100%; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width:100%; text-align:center; padding:16px; }

  /* Stats */
  .stats-bar { grid-template-columns:1fr 1fr; }
  .stat-item { border-right:none; border-bottom:1px solid var(--border); }
  .stat-item:nth-child(odd)  { border-right:1px solid var(--border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4)    { border-bottom:none; }

  /* NIS2 */
  .nis2-section { padding:60px 16px; }
  .nis2-visual  { flex-direction:column; }
  .nis2-badge-big { padding:24px; }
  .nis2-checks .nis2-check { font-size:.88rem; }

  /* Sections */
  section { padding:60px 16px; }
  .section-sub { margin-bottom:40px; }

  /* Cards */
  .reasons-grid { grid-template-columns:1fr; gap:2px; }
  .reason-card  { padding:28px 22px; }

  /* Steps */
  .step { gap:16px; padding:28px 0; }

  /* Risk */
  .visual-panel { padding:28px 20px; }

  /* CTA form */
  .form-row { grid-template-columns:1fr; }
  .cta-section { padding:72px 16px; }

  /* Footer */
  #site-footer { flex-direction:column; padding:40px 16px 28px; gap:28px; }
  .footer-brand p { max-width:100%; }
  .footer-bottom { padding:14px 16px; flex-direction:column; text-align:center; gap:4px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE – SMALL MOBILE  (max 400px)
   ═══════════════════════════════════════════════════════ */
@media (max-width:400px) {
  .hero h1 { font-size:1.9rem; }
  .logo-text { font-size:.78rem; }
  .stats-bar { grid-template-columns:1fr; }
  .stat-item { border-right:none !important; }
  .stat-item:nth-child(3) { border-bottom:1px solid var(--border) !important; }
  .panel-stat-big { font-size:2.8rem; }
}

/* ── TOUCH FRIENDLY UTILITIES ───────────────────────── */
@media (hover:none) {
  .reason-card:hover { background:var(--surface); }
  .reason-card:hover::before { opacity:0; }
  .risk-item:hover { border-color:var(--border); }
}

/* ── REDUCE MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  html { scroll-behavior:auto; }
}
