/* ===========================
   Design Tokens
   =========================== */

:root {
  --bg: #000000;
  --text-primary: #FFFFFF;
  --text-secondary: #666666;
  --text-tertiary: #333333;
  --font: 'Inter', system-ui, sans-serif;
  --content-narrow: 800px;
  --content-wide: 1200px;
  --section-padding: 120px;
  --anim-dur: 0.6s;
  --anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===========================
   Reset & Base
   =========================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Language Toggle
   =========================== */

html[data-lang="nl"] [data-en] { display: none; }
html[data-lang="en"] [data-nl] { display: none; }

.lang-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-family: var(--font);
}

.lang-toggle__btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.lang-toggle__btn--active {
  color: var(--text-primary);
}

.lang-toggle__sep {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ===========================
   The Void (Hero)
   =========================== */

.void {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.descriptor {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-top: 24px;
  opacity: 0;
  transition: opacity 0.5s ease, color 0.8s ease;
  pointer-events: none;
}

.descriptor--visible {
  opacity: 1;
  color: var(--text-primary);
}

/* ===========================
   Logo Animation
   =========================== */

.logo-stage {
  position: relative;
}

.logo-wrap {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  overflow: hidden;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  cursor: pointer;
  user-select: none;
}

.logo__chevron {
  font-family: var(--font);
  font-weight: 700;
  font-size: 42px;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: all var(--anim-dur) var(--anim-ease);
}

.logo__chevron--left { margin-right: -1px; }
.logo__chevron--right { margin-left: 1px; }

.logo__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 52px;
  height: 78px;
  transition: width var(--anim-dur) var(--anim-ease);
}

.logo__emblem {
  font-family: var(--font);
  font-weight: 700;
  font-size: 62px;
  color: var(--text-primary);
  position: absolute;
  white-space: nowrap;
  letter-spacing: -2.6px;
  opacity: 1;
  transform: scale(1);
}

.logo__wordmark {
  font-family: var(--font);
  font-weight: 700;
  font-size: 42px;
  color: var(--text-primary);
  position: absolute;
  white-space: nowrap;
  letter-spacing: -0.65px;
  clip-path: inset(0 50% 0 50%);
}

/* ===========================
   Prism Effects
   =========================== */

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: linear-gradient(180deg,
    #ff0044 0%, #ff4400 12%, #ff8800 24%, #ffdd00 36%,
    #44ff00 48%, #00ffcc 60%, #0088ff 72%, #4400ff 84%, #aa00ff 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0;
  filter: blur(1px);
}

.scan-line--active {
  opacity: 1;
  animation: scan-sweep 4.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes scan-sweep {
  0%   { transform: translateX(-20px); }
  100% { transform: translateX(calc(var(--logo-width, 110px) + 12px)); }
}

.scan-glow {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 16px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.24) 35%, rgba(255,255,255,0.32) 50%, rgba(255,255,255,0.24) 65%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  filter: blur(2px);
  transform: translateX(-12px);
}

.scan-glow--active {
  opacity: 1;
  animation: scan-glow-sweep 4.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes scan-glow-sweep {
  0%   { transform: translateX(-12px); opacity: 0; }
  7%   { opacity: 1; }
  93%  { opacity: 1; }
  100% { transform: translateX(calc(var(--logo-width, 110px) + 12px)); opacity: 0; }
}

.prism-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg,
    #ff0044 0%, #ff4400 10%, #ff8800 20%, #ffdd00 32%,
    #44ff00 44%, #00ffcc 56%, #0088ff 68%, #4400ff 80%, #aa00ff 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.prism-overlay--active { opacity: 1; }
.prism-overlay--cooling { transition: opacity 0.6s ease; opacity: 0; }

.prism-glow {
  position: absolute;
  top: -30px;
  bottom: -30px;
  left: -40px;
  right: -40px;
  z-index: 2;
  mix-blend-mode: screen;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 15%,
    rgba(255, 220, 130, 0.35) 30%, rgba(255, 160, 60, 0.2) 45%,
    rgba(100, 50, 255, 0.1) 65%, transparent 85%
  );
  pointer-events: none;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.15s ease;
}

.prism-glow--active {
  opacity: 1;
  animation: prism-glow-pulse 1.2s ease-out forwards;
}

.prism-glow--cooling { transition: opacity 0.6s ease; opacity: 0; }

@keyframes prism-glow-pulse {
  0%   { transform: scale(0.8); opacity: 0; }
  15%  { transform: scale(1.1); opacity: 1; }
  30%  { transform: scale(1.0); opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 0.7; }
}

/* ===========================
   Content Layout
   =========================== */

.content-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   The Signal
   =========================== */

.signal {
  padding: var(--section-padding) 24px;
}

.signal p {
  font-size: 17px;
  line-height: 1.7;
  max-width: var(--content-narrow);
  margin: 0 auto;
}

/* ===========================
   The Anatomy
   =========================== */

.anatomy {
  padding: var(--section-padding) 24px;
}

.anatomy__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.anatomy__symbol {
  font-family: var(--font);
  font-weight: 700;
  font-size: 80px;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.anatomy__annotations {
  max-width: var(--content-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.anatomy__item {
  padding-left: 32px;
  border-left: 1px solid var(--text-tertiary);
}

.anatomy__label {
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 12px;
}

.anatomy__item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

.anatomy__closing {
  text-align: center;
  padding-top: 16px;
}

.anatomy__closing p {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===========================
   The Three (Cards)
   =========================== */

.three {
  padding: var(--section-padding) 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--content-wide);
  margin: 0 auto;
}

.card {
  border: 1px solid var(--text-tertiary);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.card__heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

.card__body {
  flex: 1;
}

.card__body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.card__direction {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.card__label {
  font-weight: 700;
  font-size: 18px;
  margin-top: auto;
}

.card__link {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===========================
   The Ground (Footer)
   =========================== */

.ground {
  padding: var(--section-padding) 24px 40px;
}

.ground__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--content-wide);
  margin: 0 auto;
}

.ground__col-info {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.ground__subtle {
  color: var(--text-tertiary);
}

.ground__kvk {
  margin-top: 16px;
}

.ground__col-contact {
  display: flex;
  flex-direction: column;
}

.ground__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ground__linkedin {
  color: var(--text-secondary);
  display: inline-flex;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.ground__linkedin:hover {
  color: var(--text-primary);
}

.ground__linkedin-icon {
  width: 20px;
  height: 20px;
}

.ground__cta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===========================
   Contact Form
   =========================== */

.contact-form {
  position: relative;
}

.contact-form__field {
  position: relative;
  margin-bottom: 16px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-secondary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-bottom-color: var(--text-primary);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form__label {
  position: absolute;
  top: 8px;
  left: 0;
  font-size: 14px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: all 0.2s ease;
}

.contact-form__input:focus ~ .contact-form__label,
.contact-form__input:not(:placeholder-shown) ~ .contact-form__label,
.contact-form__textarea:focus ~ .contact-form__label,
.contact-form__textarea:not(:placeholder-shown) ~ .contact-form__label {
  top: -16px;
  font-size: 11px;
  color: var(--text-secondary);
}

.contact-form__expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.contact-form__expand--open {
  max-height: 250px;
  opacity: 1;
}

.contact-form__submit {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  display: inline-block;
}

.contact-form__submit::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.contact-form__submit:hover::after {
  width: 100%;
}

.contact-form__thanks p {
  font-size: 14px;
  color: var(--text-secondary);
  animation: fadeIn 0.4s ease;
}

/* ===========================
   Ground Bottom
   =========================== */

.ground__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--content-wide);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--text-tertiary);
  font-size: 12px;
  color: var(--text-secondary);
}

.ground__tagline {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.ground__login {
  color: var(--text-tertiary);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
  text-align: right;
}

.ground__login:hover {
  color: var(--text-secondary);
}

/* ===========================
   Scroll Reveal
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 1024px) {
  .cards {
    gap: 24px;
  }

  .card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ground__columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .anatomy__symbol {
    font-size: 48px;
  }

  .anatomy__logo {
    margin-bottom: 48px;
  }

  .logo__inner {
    width: 39px;
  }

  .logo__emblem {
    font-size: 47px;
  }

  .logo__chevron {
    font-size: 31px;
  }

  .logo__wordmark {
    font-size: 31px;
  }
}
