/* =========================================================================
   KAMPEN — Landing page chrome (nav, hero, sections, products, footer).
   Dark, premium, industrial-tech. Cohesive with the dark configurator
   (bg #0d1117). Primary accent = KAMPEN red #ef3e42.
   Configurator-specific rules stay in styles.css.
   ========================================================================= */

:root{
  --bg:        #0d1117;
  --bg-2:      #0a0e14;
  --surface:   #11161f;
  --surface-2: #161d29;
  --line-l:    #222c3a;
  --line-soft: rgba(255,255,255,.07);
  --ink:       #e6edf3;
  --ink-dim:   #aeb9c8;
  --muted-l:   #7d8da3;
  --red:       #ef3e42;          /* KAMPEN brand red */
  --red-soft:  rgba(239,62,66,.14);
  --red-glow:  rgba(239,62,66,.30);
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:78px; }

html,body{
  margin:0; padding:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

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

/* shared heading / text helpers ------------------------------------------- */
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--red);
  margin-bottom:14px;
}
.section-title{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:clamp(26px, 3.4vw, 40px);
  line-height:1.12;
  letter-spacing:-0.01em;
  margin:0 0 18px;
  color:#fff;
}
.lead{
  font-size:17px;
  color:var(--ink-dim);
  max-width:60ch;
  margin:0 0 14px;
}
.lead-center{ margin-left:auto; margin-right:auto; text-align:center; }
.muted-p{ color:var(--muted-l); max-width:60ch; margin:0; }

.section{ padding:96px 0; position:relative; }
.section-head{ max-width:760px; margin:0 auto 56px; text-align:center; }

/* buttons ----------------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:15px;
  letter-spacing:0.01em;
  padding:13px 24px;
  border-radius:10px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, background .2s ease,
             border-color .2s ease, box-shadow .2s ease;
}
.btn-primary{
  background:var(--red);
  color:#fff;
  box-shadow:0 6px 22px -8px var(--red-glow);
}
.btn-primary:hover{
  background:#f5565a;
  transform:translateY(-2px);
  box-shadow:0 12px 30px -10px var(--red-glow);
}
.btn-ghost{
  background:transparent;
  color:var(--ink);
  border-color:var(--line-l);
}
.btn-ghost:hover{
  border-color:var(--red);
  color:#fff;
  transform:translateY(-2px);
}

/* ════════════════════════════════ NAV ════════════════════════════════ */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  background:rgba(10,14,20,.55);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:background .25s ease, border-color .25s ease;
}
.nav.scrolled{
  background:rgba(10,14,20,.86);
  border-bottom-color:var(--line-l);
}
.nav-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 28px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-logo{ height:30px; width:auto; }

.nav-links{
  display:flex;
  align-items:center;
  gap:30px;
}
.nav-links > a:not(.nav-cta){
  font-size:15px;
  color:var(--ink-dim);
  font-weight:500;
  position:relative;
  transition:color .18s ease;
}
.nav-links > a:not(.nav-cta):hover{ color:#fff; }
.nav-links > a:not(.nav-cta)::after{
  content:"";
  position:absolute;
  left:0; bottom:-6px;
  width:0; height:2px;
  background:var(--red);
  transition:width .2s ease;
}
.nav-links > a:not(.nav-cta):hover::after{ width:100%; }
.nav-cta{ padding:9px 18px; font-size:14px; }

/* hamburger */
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px; height:42px;
  background:transparent;
  border:1px solid var(--line-l);
  border-radius:9px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px; height:2px;
  margin:0 auto;
  background:var(--ink);
  transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════ HERO ════════════════════════════════ */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:110px 0 80px;
}
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(circle at 72% 18%, var(--red-glow), transparent 42%),
    radial-gradient(circle at 12% 82%, rgba(63,182,255,.10), transparent 45%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
/* subtle industrial grid texture (no stock photo) */
.hero-grid{
  position:absolute;
  inset:0;
  z-index:1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:54px 54px;
  mask-image:radial-gradient(circle at 60% 40%, #000 0%, transparent 78%);
  -webkit-mask-image:radial-gradient(circle at 60% 40%, #000 0%, transparent 78%);
}
.hero-inner{ position:relative; z-index:2; max-width:880px; }
.hero-eyebrow{
  display:inline-block;
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--red);
  padding:7px 14px;
  border:1px solid var(--red-soft);
  border-radius:999px;
  background:var(--red-soft);
  margin-bottom:26px;
}
.hero-title{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:clamp(36px, 6vw, 68px);
  line-height:1.04;
  letter-spacing:-0.02em;
  margin:0 0 24px;
  color:#fff;
}
.hero-title .accent{ color:var(--red); }
.hero-sub{
  font-size:clamp(17px, 2vw, 20px);
  color:var(--ink-dim);
  max-width:60ch;
  margin:0 0 36px;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; }

/* ════════════════════════════════ ABOUT ════════════════════════════════ */
.about{ background:linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:56px;
  align-items:center;
}
.about-trust{
  display:flex;
  align-items:center;
  gap:20px;
  padding:28px;
  border:1px solid var(--line-l);
  border-radius:16px;
  background:var(--surface);
}
.trust-mark{ width:108px; height:auto; flex:none; }
.trust-text{ display:flex; flex-direction:column; gap:4px; }
.trust-text strong{ color:#fff; font-family:'Space Grotesk', sans-serif; }
.trust-text span{ color:var(--muted-l); font-size:14px; }

/* ════════════════════════════════ PRODUCTS ════════════════════════════════ */
.card-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.card{
  padding:30px 26px;
  border:1px solid var(--line-l);
  border-radius:16px;
  background:linear-gradient(180deg, var(--surface-2), var(--surface));
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:var(--red);
  box-shadow:0 18px 40px -22px var(--red-glow);
}
.card-icon{
  width:50px; height:50px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--red-soft);
  color:var(--red);
  margin-bottom:18px;
}
.card-icon svg{ width:26px; height:26px; }
.card h3{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:19px;
  color:#fff;
  margin:0 0 8px;
}
.card p{ color:var(--muted-l); font-size:15px; margin:0; }

/* ════════════════════════════ CONFIGURATOR SECTION ════════════════════════ */
.configurator-section{ background:var(--bg-2); }

/* ════════════════════════════════ FOOTER ════════════════════════════════ */
.footer{
  border-top:1px solid var(--line-l);
  background:var(--bg-2);
  padding:54px 0 38px;
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-start;
  gap:32px;
}
.footer-brand{ display:flex; flex-direction:column; gap:16px; max-width:420px; }
.footer-logo{ height:30px; width:auto; }
.footer-tagline{ color:var(--ink-dim); font-size:15px; margin:0; }
.footer-metaalunie{ width:120px; height:auto; opacity:.92; }
.footer-meta{
  text-align:right;
  color:var(--muted-l);
  font-size:13px;
}
.footer-meta p{ margin:0 0 6px; }
.footer-credit{ font-family:'JetBrains Mono', monospace; font-size:12px; }

/* ════════════════════════════ SCROLL REVEAL ════════════════════════════ */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .6s ease, transform .6s ease;
  will-change:opacity, transform;
}
.reveal.in{ opacity:1; transform:none; }
/* stagger cards inside a grid */
.card-grid .reveal.in:nth-child(2){ transition-delay:.06s; }
.card-grid .reveal.in:nth-child(3){ transition-delay:.12s; }
.card-grid .reveal.in:nth-child(4){ transition-delay:.18s; }
.card-grid .reveal.in:nth-child(5){ transition-delay:.24s; }
.card-grid .reveal.in:nth-child(6){ transition-delay:.30s; }

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

/* ════════════════════════════════ RESPONSIVE ════════════════════════════ */
@media (max-width:960px){
  .card-grid{ grid-template-columns:repeat(2, 1fr); }
  .about-grid{ grid-template-columns:1fr; gap:32px; }
}

@media (max-width:760px){
  .section{ padding:72px 0; }
  .container, .nav-inner{ padding-left:20px; padding-right:20px; }

  /* nav collapses into a slide-down panel */
  .nav-toggle{ display:flex; }
  .nav-links{
    position:absolute;
    top:70px; left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:14px 20px 22px;
    background:rgba(10,14,20,.97);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line-l);
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .nav-links.open{ transform:none; opacity:1; pointer-events:auto; }
  .nav-links > a:not(.nav-cta){ padding:12px 4px; font-size:16px; }
  .nav-links > a:not(.nav-cta)::after{ display:none; }
  .nav-cta{ margin-top:8px; width:100%; }

  .card-grid{ grid-template-columns:1fr; }
  .footer-inner{ flex-direction:column; }
  .footer-meta{ text-align:left; }
}
