/* ============================================================
   Blijnder — Zo vind je mijn kantoor
   Styles. Mobile-first, CSS custom properties, no build step.
   ============================================================ */

/* ─── Tokens ─── */
:root {
  /* Blijnder brand */
  --b-orange: #f19f3f;
  --b-turquoise: #5ec2a9;
  --b-gradient: linear-gradient(135deg, #f19f3f 0%, #5ec2a9 100%);

  /* Connekt palette */
  --dark-bg: #19313B;
  --dark-card: #1E3A46;
  --dark-var: #243D49;

  --warm-white: #F8F5F1;
  --white: #FFFFFF;

  --accent: #2CEAAC;
  --accent-mint: #7AFCD6;
  --accent-dim: #22C990;
  --accent-gradient: linear-gradient(135deg, #2CEAAC 0%, #7AFCD6 100%);

  --text: #2C3E44;
  --muted: #5A7580;
  --light: #8BA3AD;

  --border: rgba(25, 49, 59, 0.07);
  --selection: rgba(44, 234, 172, 0.25);
  --error: #FF6B6B;

  /* Shadows */
  --shadow-card: 0 4px 40px rgba(25, 49, 59, 0.06);
  --shadow-cta: 0 4px 25px rgba(44, 234, 172, 0.3), 0 0 60px rgba(44, 234, 172, 0.12);
  --shadow-cta-hover: 0 8px 40px rgba(44, 234, 172, 0.3), 0 0 80px rgba(44, 234, 172, 0.18);
  --shadow-ring: 0 0 0 1px #2CEAAC, 0 8px 30px rgba(44, 234, 172, 0.08);

  /* Radii */
  --r-card: 16px;
  --r-btn: 14px;
  --r-surface: 24px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Programmatic scroll is handled in JS so we can slow it down. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--selection);
  color: var(--dark-bg);
}

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--dark-bg);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--dark-bg);
  outline-offset: 2px;
}

/* ─── Focus ring ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─── Typography ─── */
.kicker {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 18px;
}
.kicker--dark {
  color: var(--muted);
}

.hero__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 20px;
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--dark-bg);
  margin: 0;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--white);
  padding: 180px 0 120px;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__subtitle {
  margin: 0 0 36px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(248, 245, 241, 0.72);
  max-width: 620px;
}
.hero__subtitle-link {
  color: var(--warm-white);
  border-bottom: 1px dashed rgba(248, 245, 241, 0.35);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero__subtitle-link:hover {
  color: var(--accent-mint);
  border-bottom-color: var(--accent-mint);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
}

.hero__addr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(248, 245, 241, 0.72);
  transition: color 0.25s var(--ease);
}
.hero__addr:hover {
  color: var(--accent-mint);
}
.icon-pin {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 auto;
}

/* Orbs */
.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.orb--1 {
  top: -120px;
  left: -140px;
  background: radial-gradient(circle, rgba(44, 234, 172, 0.8), rgba(44, 234, 172, 0) 70%);
  animation: orb-float-1 16s var(--ease) infinite;
}
.orb--2 {
  top: 20%;
  right: -180px;
  background: radial-gradient(circle, rgba(122, 252, 214, 0.6), rgba(122, 252, 214, 0) 70%);
  animation: orb-float-2 18s var(--ease) infinite;
}
.orb--3 {
  bottom: -220px;
  left: 30%;
  background: radial-gradient(circle, rgba(94, 194, 169, 0.55), rgba(94, 194, 169, 0) 70%);
  animation: orb-float-3 14s var(--ease) infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(1.12); }
}
@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.06); }
}

/* Dot grid */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(44, 234, 172, 0.28) 1px, transparent 1.6px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  opacity: 0.5;
  pointer-events: none;
}

/* Scanlines */
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(44, 234, 172, 0.015) 0px,
    rgba(44, 234, 172, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

/* Lyrid shooting stars container */
.hero__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-mint);
  opacity: 0;
}
.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 140px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(to left, rgba(122, 252, 214, 0.9), rgba(122, 252, 214, 0));
}
.shooting-star.is-firing {
  animation: shoot 1.1s linear forwards;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-520px, 320px); }
}

/* ─── Button ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--r-btn);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: var(--dark-bg);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-cta-hover);
  background: var(--accent-mint);
}
.btn--primary:active {
  transform: translateY(-1px);
}

/* ─── Steps section ─── */
.steps-section {
  position: relative;
  padding: 100px 0;
  background: var(--warm-white);
  overflow: hidden;
}
.steps-section__accent {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(44, 234, 172, 0.14), rgba(44, 234, 172, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.section-head {
  margin: 0 0 64px;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* Steps list */
.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-left: 48px;
  z-index: 1;
}

/* Progress rail */
.rail {
  position: absolute;
  top: 0;
  bottom: 180px;
  left: 18px;
  width: 2px;
  pointer-events: none;
}
.rail__line {
  position: absolute;
  inset: 0;
  background: var(--b-gradient);
  border-radius: 2px;
  opacity: 0.55;
}
.rail__marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: top 0.12s linear;
}
.rail__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 234, 172, 0.25), 0 0 18px rgba(44, 234, 172, 0.7);
  z-index: 2;
}
.rail__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(44, 234, 172, 0.55);
  animation: pulse 1.6s var(--ease) infinite;
  z-index: 1;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Step card */
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: var(--white);
  border-radius: var(--r-surface);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.step:hover {
  box-shadow: var(--shadow-ring);
  transform: translateY(-2px);
}

.step__num {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--b-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.step__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--dark-bg);
  margin: 0 0 12px;
}

.step__body {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}
.step__body strong {
  color: var(--dark-bg);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 65%, rgba(94, 194, 169, 0.3) 65%);
  padding: 0 2px;
}

.step__media {
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--dark-var);
  aspect-ratio: 4 / 3;
  position: relative;
}
.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax, 0px), 0);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

/* ─── Arrival ─── */
.arrival {
  position: relative;
  text-align: center;
  padding: 96px 24px 24px;
}
.arrival__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.arrival__body {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Confetti layer */
.confetti-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}
.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  will-change: transform, opacity;
}
.confetti-piece.is-burst {
  animation: confetti-burst 1.2s var(--ease) forwards;
}
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% {
    opacity: 0;
    transform:
      translate(var(--cx, 0px), var(--cy, 0px))
      rotate(var(--cr, 360deg))
      scale(0.6);
  }
}

/* ─── Footer ─── */
.footer {
  background: var(--dark-bg);
  color: rgba(248, 245, 241, 0.78);
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(44, 234, 172, 0.08), transparent 60%);
  pointer-events: none;
}
.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 10px;
}
.footer__text {
  margin: 0;
  line-height: 1.55;
}
.footer__text a {
  transition: color 0.25s var(--ease);
  border-bottom: 1px dashed rgba(248, 245, 241, 0.25);
}
.footer__text a:hover {
  color: var(--accent-mint);
}
.footer__bottom {
  position: relative;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 245, 241, 0.08);
  font-size: 0.85rem;
  color: rgba(248, 245, 241, 0.5);
  text-align: center;
}
.footer__bottom a {
  color: rgba(248, 245, 241, 0.75);
  border-bottom: 1px dashed rgba(248, 245, 241, 0.25);
  transition: color 0.25s var(--ease);
}
.footer__bottom a:hover {
  color: var(--accent-mint);
}

/* ─── Scroll reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s var(--ease) var(--reveal-delay, 0s),
    transform 0.8s var(--ease) var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (min-width: 600px) {
  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .step {
    padding: 40px;
  }
}

@media (min-width: 900px) {
  .steps {
    gap: 110px;
    padding-left: 72px;
  }

  .rail {
    left: 28px;
    width: 3px;
  }

  .step {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 48px;
  }
  .step__text { order: 1; }
  .step__media { order: 2; }

  .step--reverse .step__text { order: 2; }
  .step--reverse .step__media { order: 1; }

  .section-head {
    margin-bottom: 80px;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: 220px 0 160px;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
