:root {
  --bg: #FAFAF7;
  --ink: #1A1E3F;
  --ink-soft: #4A4E6B;
  --ink-mute: #8A8EA6;
  --hair: #E6E2D9;
  --accent: #8B5CF6;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --col: 620px;
  --pad-x: clamp(1.5rem, 6vw, 3rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

main {
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--pad-x) clamp(3rem, 8vw, 5rem);
}

/* Brand name in body copy — matches wordmark/header typography */
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: 0.005em;
}

/* Wordmark */
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: clamp(6rem, 18vh, 10rem);
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}

.wordmark-name {
  display: inline-block;
}

.wordmark-beta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  position: relative;
  top: -0.5rem;
  animation: beta-float 4.5s ease-in-out infinite;
}

@keyframes beta-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-2px) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-beta { animation: none; transform: rotate(-4deg); }
}

/* Hero */
.hero {
  margin-bottom: clamp(5rem, 14vh, 8rem);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.175rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0;
  font-weight: 300;
}

/* Section headings */
section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 2rem;
}

/* Voor wie */
.voor-wie {
  margin-bottom: clamp(5rem, 14vh, 8rem);
  position: relative;
}

.voor-wie::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--hair);
  margin-bottom: 2.5rem;
}

.soft-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.soft-list li {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Stappen */
.stappen {
  margin-bottom: clamp(5rem, 14vh, 8rem);
  position: relative;
}

.stappen::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--hair);
  margin-bottom: 2.5rem;
}

.stappen-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.stappen-list li {
  display: block;
}

.stappen-list .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.stappen-list h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.stappen-list p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}

/* Beta */
.beta {
  margin-bottom: clamp(5rem, 12vh, 7rem);
  position: relative;
}

.beta::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--hair);
  margin-bottom: 2.5rem;
}

.beta .lede {
  margin-bottom: 2rem;
}

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.005em;
  color: var(--bg);
  background: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 260ms var(--ease), transform 260ms var(--ease);
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent);
  transform: translateY(-1px);
}

.cta-arrow {
  display: inline-block;
  transition: transform 260ms var(--ease);
}

.cta:hover .cta-arrow,
.cta:focus-visible .cta-arrow {
  transform: translateX(3px);
}

/* Footer */
footer {
  padding-top: 3rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-mute);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 300;
}

footer p {
  margin: 0;
}

footer .muted {
  color: var(--ink-mute);
  margin-top: 0.25rem;
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Reveal animation — JS-enhanced. No-js or pre-JS hydration shows content directly. */
html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}

html:not(.no-js) .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet+ */
@media (min-width: 720px) {
  .stappen-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

/* Accessibility — honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

/* Selection */
::selection {
  background: rgba(139, 92, 246, 0.18);
  color: var(--ink);
}
