@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/red-hat-display-latin.woff2') format('woff2');
}

:root {
  --bg: #FCFBF9;
  --text: #1C1C20;
  --text-2: #64646B;
  --text-3: #8A8990;
  --accent: #D9283B;
  --line-email: #DAD7D1;
  --wave: #ECE9E4;
  --wave-accent: #F3D4D7;
  --ease-up: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(24px, 5.6vw, 72px);
}

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

html, body {
  margin: 0;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: 'Red Hat Display', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Pagina ---------- */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Netwerk + golven ---------- */

.network {
  position: absolute;
  right: max(-18vw, -260px);
  top: calc(-8vw - 60px);
  width: max(78vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260%;
  aspect-ratio: 1;
  border: 1px solid var(--wave);
  border-radius: 50%;
  opacity: 0;
  animation: dfWave 10s var(--d) cubic-bezier(.2, .6, .4, 1) infinite;
}
.wave:nth-child(1) { --d: 2s; }
.wave:nth-child(2) { --d: 5.33s; }
.wave:nth-child(3) { --d: 8.66s; border-color: var(--wave-accent); }

.network svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: dfDrift 14s ease-in-out infinite;
}

.network line {
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: dfDraw 1s var(--d) cubic-bezier(.4, 0, .2, 1) both;
}

.network circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: dfPop .6s var(--d) cubic-bezier(.3, 1.4, .5, 1) both;
}
.network circle.pulse {
  animation:
    dfPop .6s var(--d) cubic-bezier(.3, 1.4, .5, 1) both,
    dfPulse var(--p) var(--pd) ease-in-out infinite;
}

/* ---------- Header ---------- */

.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(24px, 3.6vw, 40px) var(--gutter);
  animation: dfFade 1s both;
}

.logo {
  display: block;
  width: clamp(120px, 13vw, 160px);
  height: auto;
}

.domain {
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Main ---------- */

.main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 24px);
  padding: 0 var(--gutter) clamp(28px, 5vw, 72px);
  max-width: 640px;
}

.main > * { animation: dfUp 1s var(--d) var(--ease-up) both; }

.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  animation-duration: .9s;
  --d: .4s;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 13ch;
  text-wrap: balance;
  --d: .55s;
}
h1 strong { font-weight: 500; }

.intro {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 38ch;
  text-wrap: pretty;
  --d: .7s;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 6px;
  --d: .85s;
}

.button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--text);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .3s, gap .3s;
}
.button:hover {
  background: var(--accent);
  gap: 14px;
}

.email {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-email);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.button:focus-visible,
.email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Keyframes ---------- */

@keyframes dfDraw  { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dfPop   { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dfPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dfWave {
  0%   { transform: translate(-50%, -50%) scale(.08); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@keyframes dfUp    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dfFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes dfDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, 6px); } }

/* ---------- Reduced motion: alles direct in eindstaat ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .wave { display: none; }
}
