/* =========================================================
   Arkitech AI - main.css
   ========================================================= */

:root {
  /* Color tokens (HSL) */
  --ark-bg:       220 20% 7%;
  --ark-bg-2:     220 18% 10%;
  --ark-bg-3:     220 16% 12%;
  --ark-line:     220 14% 18%;
  --ark-ink:      210 20% 92%;
  --ark-muted:    215 14% 70%;
  --ark-dim:      215 12% 58%;
  --ark-primary:  32 95% 55%;
  --ark-accent:   175 60% 45%;

  --ark-bg-c:      hsl(var(--ark-bg));
  --ark-bg2-c:     hsl(var(--ark-bg-2));
  --ark-bg3-c:     hsl(var(--ark-bg-3));
  --ark-line-c:    hsl(var(--ark-line));
  --ark-ink-c:     hsl(var(--ark-ink));
  --ark-muted-c:   hsl(var(--ark-muted));
  --ark-dim-c:     hsl(var(--ark-dim));
  --ark-primary-c: hsl(var(--ark-primary));
  --ark-accent-c:  hsl(var(--ark-accent));

  /* Type stacks (self-hosted fonts loaded below) */
  --ff-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --ff-sans:  "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Sizing */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 12px;
  --radius-lg: 18px;

  /* Animation */
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Blueprint grid tokens (used across cards, surfaces) */
  --grid-line: hsla(218, 35%, 55%, 0.04);
  --grid-line-strong: hsla(218, 40%, 60%, 0.07);
  --grid-tick: hsla(32, 60%, 50%, 0.35);
}

/* =========================================================
   Self-hosted fonts (latin + latin-ext, woff2)
   ========================================================= */
@font-face { font-family:"DM Serif Display"; font-style:normal;  font-weight:400; font-display:swap; src:url("/assets/fonts/dm-serif-display-400.woff2") format("woff2"); }
@font-face { font-family:"DM Serif Display"; font-style:italic;  font-weight:400; font-display:swap; src:url("/assets/fonts/dm-serif-display-400-italic.woff2") format("woff2"); }

@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:300; font-display:swap; src:url("/assets/fonts/space-grotesk-300.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:400; font-display:swap; src:url("/assets/fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:500; font-display:swap; src:url("/assets/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:600; font-display:swap; src:url("/assets/fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:700; font-display:swap; src:url("/assets/fonts/space-grotesk-700.woff2") format("woff2"); }

@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:300; font-display:swap; src:url("/assets/fonts/jetbrains-mono-300.woff2") format("woff2"); }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:400; font-display:swap; src:url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:500; font-display:swap; src:url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:600; font-display:swap; src:url("/assets/fonts/jetbrains-mono-600.woff2") format("woff2"); }

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* No CSS smooth-scroll: JS handles all anchor animations to avoid double-smoothing. */
  scroll-behavior: auto;
  scroll-padding-top: 96px;
}
/* prefers-reduced-motion: handled per-component (scroll-reveals at the bottom of
   this file, hero canvas + scroll inside animation.js). Decorative button/UI
   hover transitions are intentionally kept to preserve interaction feedback. */
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ark-ink-c);
  background: var(--ark-bg-c);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ark-primary-c);
  outline-offset: 3px;
  border-radius: 4px;
}
input, button { font: inherit; color: inherit; }

/* =========================================================
   Architectural grid background (subtle, low opacity)
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  hsla(220, 14%, 28%, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(220, 14%, 28%, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}


/* =========================================================
   Utilities
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 500;
  color: var(--ark-primary-c);
  margin-bottom: 16px;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-scrolled {
  background: hsla(220, 20%, 7%, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ark-line-c);
}
.brand {
  font-family: var(--ff-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ark-ink-c);
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ark-primary-c);
  display: inline-block;
  transform: translateY(-6px);
  box-shadow: 0 0 12px hsla(32, 95%, 55%, 0.5);
}
.nav__links {
  display: flex; gap: 28px;
  font-size: 14px;
  color: var(--ark-muted-c);
}
.nav__links a:hover { color: var(--ark-ink-c); }
.nav__right {
  display: flex; align-items: center; gap: 14px;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--ark-muted-c);
  user-select: none;
}
.lang-switch button {
  background: none; border: 0;
  color: inherit;
  font: inherit; font-weight: 500;
  padding: 4px 2px;
  cursor: pointer;
  letter-spacing: 0.12em;
  transition: color 200ms ease;
}
.lang-switch button:hover { color: var(--ark-ink-c); }
.lang-switch button.is-active { color: var(--ark-primary-c); }
.lang-switch__sep { opacity: 0.4; }
.btn {
  --bg: transparent;
  --fg: var(--ark-ink-c);
  --bd: var(--ark-primary-c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 2s var(--ease);
}
.btn:hover {
  box-shadow: 0 0 0 6px hsla(32, 95%, 55%, 0.10), 0 0 24px hsla(32, 95%, 55%, 0.18);
}

/* ---------- Primary CTA: gradient + 45° Käsekästchen + 2s hover transitions ---------- */
.btn--primary {
  --bg: transparent;
  --fg: hsl(220, 30%, 8%);
  --bd: transparent;
  font-weight: 600;
  background:
    linear-gradient(140deg, hsl(34, 96%, 62%) 0%, hsl(30, 95%, 56%) 55%, hsl(26, 92%, 48%) 100%);
  /* 2s transition: gradient, glow, käsekästchen — nothing else */
  transition:
    background 2s var(--ease),
    box-shadow 2s var(--ease),
    filter 2s var(--ease);
}
/* Käsekästchen-Raster, 45° via crossed linear-gradients, faded into dark areas */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  hsla(220, 65%, 16%, 0.22) 1px, transparent 1px),
    linear-gradient(135deg, hsla(220, 65%, 16%, 0.22) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(140deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(140deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 100%);
  z-index: 0;
  opacity: 0.7;
  transition: background-size 2s var(--ease), opacity 2s var(--ease);
}
.btn--primary > * { position: relative; z-index: 1; }

/* HOVER (2s): gradient warms up, glow blooms, käsekästchen wächst */
.btn--primary:hover {
  background:
    linear-gradient(140deg, hsl(40, 100%, 70%) 0%, hsl(34, 98%, 60%) 55%, hsl(28, 95%, 52%) 100%);
  filter: saturate(1.18) brightness(1.06);
  box-shadow:
    0 0 0 6px hsla(32, 95%, 55%, 0.16),
    0 14px 40px hsla(32, 95%, 55%, 0.32),
    0 0 80px hsla(45, 100%, 70%, 0.22);
}
.btn--primary:hover::before {
  background-size: 20px 20px;
  opacity: 1;
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--ark-muted-c);
  --bd: transparent;
  padding-inline: 0;
  overflow: visible;
  transition: color 2s var(--ease);
}
.btn--ghost:hover { color: var(--ark-ink-c); box-shadow: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: min(100svh, 880px);
  padding-top: clamp(120px, 16vw, 160px);
  padding-bottom: clamp(64px, 10vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  position: relative;
}
.hero__content { position: relative; z-index: 1; }
.hero__visual {
  position: relative;
  z-index: 1;
  overflow: visible;
  aspect-ratio: 16/9;
}
.hero__visual-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  z-index: 2;
}
.hero__visual-source {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}
.hero__visual-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
}
.hero__visual-fallback img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}
.js .hero__visual-fallback { transition: opacity .5s var(--ease); }
.js .hero__visual.is-canvas-ready .hero__visual-fallback { opacity: 0; }
@media (min-width: 961px) {
  .hero__visual {
    margin-right: calc(var(--gutter) * -1);
    transform: translateX(2vw);
  }
  .hero__visual-canvas,
  .hero__visual-fallback img {
    transform: scale(1.6);
    transform-origin: left center;
    margin-left: -28%;
    margin-top: -3%;
  }
}
@media (max-width: 960px) {
  .hero__visual {
    margin-inline: calc(var(--gutter) * -1);
    width: calc(100% + var(--gutter) * 2);
  }
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50vw);
  background:
    radial-gradient(circle at 88% 12%, hsla(32, 95%, 55%, 0.12), transparent 45%),
    radial-gradient(circle at 6% 88%,  hsla(175, 60%, 45%, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; }
.hero__headline {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ark-ink-c);
}
.hero__headline span { display: block; }
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ark-muted-c);
  max-width: 46ch;
  margin: 0 0 36px;
}
.hero__ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__visual .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ark-dim-c);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* =========================================================
   Divider
   ========================================================= */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, hsla(32, 60%, 50%, 0.18) 30%, hsla(32, 60%, 50%, 0.18) 70%, transparent);
  width: min(100%, var(--container));
  margin: 0 auto;
}

/* =========================================================
   Pillars
   ========================================================= */
.pillars__head { text-align: center; margin-bottom: 56px; }
.pillars__title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ark-ink-c);
  word-break: keep-all;
  hyphens: auto;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pillar {
  background:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, hsl(220, 18%, 11%) 0%, hsl(220, 20%, 8%) 100%);
  border: 1px solid var(--ark-line-c);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar::before,
.pillar::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--grid-tick);
  pointer-events: none;
  opacity: 0.6;
}
.pillar::before {
  top: 10px; left: 10px;
  border-right: 0; border-bottom: 0;
}
.pillar::after {
  bottom: 10px; right: 10px;
  border-left: 0; border-top: 0;
}
.pillar:hover {
  border-color: hsla(32, 95%, 55%, 0.45);
  box-shadow: 0 0 0 1px hsla(32, 95%, 55%, 0.15), 0 12px 40px hsla(32, 95%, 55%, 0.05);
}
.pillar__icon {
  width: 88px; height: 88px;
  margin-bottom: 28px;
  display: block;
  filter: drop-shadow(0 6px 16px hsla(32, 60%, 40%, 0.18));
}
.pillar__icon svg { width: 100%; height: 100%; display: block; }
.pillar__title {
  font-family: var(--ff-sans);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  color: var(--ark-ink-c);
}
.pillar__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ark-muted-c);
  margin: 0;
}

/* =========================================================
   Product Preview
   ========================================================= */
.preview__head { text-align: center; margin-bottom: 48px; }
.preview__title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.preview__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ark-line-c);
  background:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--ark-bg2-c);
  aspect-ratio: 16/10;
  position: relative;
}
.preview__media::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 18px 18px 0 -17px var(--grid-tick),
    inset -18px 18px 0 -17px var(--grid-tick),
    inset 18px -18px 0 -17px var(--grid-tick),
    inset -18px -18px 0 -17px var(--grid-tick);
  pointer-events: none;
  opacity: 0.5;
  z-index: 2;
}
.preview__media img { width: 100%; height: 100%; object-fit: cover; }
.preview__caption {
  text-align: center;
  color: var(--ark-muted-c);
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* =========================================================
   Audience
   ========================================================= */
.audience { text-align: center; }
.audience__title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}
.audience__tier {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.audience__tier--primary { gap: 14px; margin-bottom: 36px; }
.audience__tier--secondary {
  gap: 10px;
  opacity: 0.55;
  margin-bottom: 8px;
}
.audience__coming-next {
  text-align: center;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ark-muted-c);
  margin: 0 0 14px;
  opacity: 0.7;
}
.pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid hsla(32, 60%, 50%, 0.35);
  color: var(--ark-ink-c);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.pill:hover {
  border-color: hsla(32, 95%, 55%, 0.75);
  background: hsla(32, 95%, 55%, 0.06);
}
.pill--primary {
  padding: 13px 30px;
  font-size: 16px;
  font-weight: 600;
  border-color: hsla(32, 85%, 60%, 0.75);
  border-width: 1.5px;
  background: hsla(32, 85%, 55%, 0.04);
}
.pill--primary:hover {
  border-color: hsla(32, 95%, 62%, 0.95);
  background: hsla(32, 95%, 55%, 0.10);
}
.pill--secondary {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 400;
  border-color: hsla(218, 14%, 55%, 0.30);
  color: var(--ark-muted-c);
}

/* =========================================================
   Beachhead microsection
   ========================================================= */
.beachhead {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, hsla(32, 75%, 45%, 0.045) 0%, transparent 65%),
    radial-gradient(circle at center, hsla(218, 30%, 55%, 0.08) 1px, transparent 1.4px) 0 0 / 20px 20px,
    linear-gradient(180deg, hsl(220, 22%, 6%) 0%, hsl(220, 20%, 8%) 50%, hsl(220, 22%, 6%) 100%);
  position: relative;
  overflow: hidden;
}
.beachhead__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.beachhead__inner .eyebrow {
  display: block;
  margin-bottom: 18px;
}
.beachhead__title {
  font-family: var(--ff-serif);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--ark-ink-c);
}
.beachhead__body {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--ark-ink-c);
  margin: 0 auto;
  max-width: 520px;
}

/* =========================================================
   Waitlist
   ========================================================= */
.waitlist { padding-block: clamp(48px, 8vw, 96px); }
.waitlist__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, hsl(220, 18%, 11%), hsl(220, 18%, 9%));
  border: 1px solid hsla(32, 60%, 50%, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  box-shadow: 0 24px 80px hsla(220, 30%, 0%, 0.35);
  position: relative;
  overflow: hidden;
}
.waitlist__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 20px 20px 0 -19px var(--grid-tick),
    inset -20px 20px 0 -19px var(--grid-tick),
    inset 20px -20px 0 -19px var(--grid-tick),
    inset -20px -20px 0 -19px var(--grid-tick);
  pointer-events: none;
  opacity: 0.55;
  border-radius: inherit;
}
.waitlist__title {
  font-family: var(--ff-serif);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.waitlist__sub {
  color: var(--ark-muted-c);
  margin: 0 0 32px;
}
.waitlist__form {
  display: flex;
  gap: 10px;
  background: var(--ark-bg-c);
  border: 1px solid var(--ark-line-c);
  border-radius: 999px;
  padding: 6px;
  max-width: 520px;
  margin: 0 auto 16px;
  transition: border-color .25s var(--ease);
}
.waitlist__form:focus-within { border-color: hsla(32, 95%, 55%, 0.6); }
.waitlist__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--ark-ink-c);
}
.waitlist__input::placeholder { color: var(--ark-dim-c); }
.waitlist__input:focus { outline: none; }
.waitlist__consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ark-muted-c);
  max-width: 520px; margin: 0 auto;
  text-align: left;
}
.waitlist__consent a { color: var(--ark-ink-c); text-decoration: underline; text-underline-offset: 3px; }
.waitlist__consent input[type=checkbox] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--ark-line-c);
  border-radius: 4px;
  background: var(--ark-bg-c);
  display: grid; place-items: center;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.waitlist__consent input[type=checkbox]:checked {
  background: var(--ark-primary-c);
  border-color: var(--ark-primary-c);
}
.waitlist__consent input[type=checkbox]:checked::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid hsl(220, 30%, 8%);
  border-bottom: 2px solid hsl(220, 30%, 8%);
  transform: rotate(-45deg) translate(1px, -1px);
}
.waitlist__hp { position: absolute; left: -9999px; }
.waitlist__msg {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.4em;
}
.waitlist__msg.is-ok { color: hsl(140, 60%, 65%); }
.waitlist__msg.is-err { color: hsl(0, 70%, 65%); }
.waitlist__footnote {
  color: var(--ark-dim-c);
  font-size: 12px;
  margin-top: 18px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding-block: 32px;
  border-top: 1px solid var(--ark-line-c);
  color: var(--ark-dim-c);
  font-size: 13px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}
.footer__center { text-align: center; }
.footer__right { text-align: right; }
.footer__right a + a { margin-left: 16px; }
.footer__right a:hover { color: var(--ark-ink-c); }

/* =========================================================
   Legal pages
   ========================================================= */
body.legal { background: var(--ark-bg-c); }
.legal__nav { padding: 24px var(--gutter); }
.legal__main {
  max-width: 760px;
  margin: 32px auto 96px;
  padding: 0 var(--gutter);
  color: var(--ark-ink-c);
}
.legal__main h1 {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}
.legal__main h2 {
  font-family: var(--ff-serif);
  font-size: 22px;
  margin: 36px 0 12px;
  font-weight: 400;
}
.legal__main h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--ark-muted-c);
  font-weight: 600;
}
.legal__main p { color: var(--ark-muted-c); line-height: 1.65; }
.legal__main .placeholder {
  border-left: 2px solid var(--ark-primary-c);
  padding: 12px 16px;
  background: hsla(32, 95%, 55%, 0.05);
  color: var(--ark-ink-c);
  font-size: 14px;
  font-family: var(--ff-mono);
}
.legal__back { margin-top: 48px; }
.legal__back a { color: var(--ark-primary-c); }

/* =========================================================
   Scroll-reveal helpers (progressive enhancement - only with JS)
   ========================================================= */
/* `.no-anim` wird vom JS gesetzt, wenn ein Reveal beim Page-Load (vor dem
   ersten User-Scroll) feuert. Alle Transitions/Animationen werden für diesen
   Frame ausgeschaltet — das Element snappt direkt zum Endzustand, statt vom
   Initial-State zu animieren. */
.js .no-anim,
.js .no-anim *,
.js .no-anim *::before,
.js .no-anim *::after {
  transition: none !important;
  animation: none !important;
}

.js .fade-in,
.js .reveal-up,
.js .reveal-left,
.js .reveal-right,
.js .reveal-zoom,
.js .reveal-blur,
.js .reveal-mask,
.js .reveal-line {
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  will-change: opacity, transform, filter;
}
.js .fade-in,
.js .reveal-up      { transform: translateY(28px); }
.js .reveal-left    { transform: translateX(-32px); }
.js .reveal-right   { transform: translateX(32px); }
.js .reveal-zoom    { transform: scale(0.96); }
.js .reveal-blur    { filter: blur(8px); transform: translateY(14px); }

.js .fade-in.is-visible,
.js .reveal-up.is-visible,
.js .reveal-left.is-visible,
.js .reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.js .reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}
.js .reveal-blur.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Clip-mask reveal: each child span wipes up from below.
   Parent gets overflow:hidden so translateY(110%) hides the line until reveal. */
.js .reveal-mask {
  opacity: 1;
  overflow: hidden;
  padding-bottom: 0.12em; /* room for descenders + transform overshoot */
}
.js .reveal-mask > span {
  display: block;
  opacity: 0;
  transform: translateY(115%);
  transition: opacity .9s var(--ease), transform 1.05s var(--ease);
  will-change: opacity, transform;
}
.js .reveal-mask.is-visible > span {
  opacity: 1;
  transform: translateY(0);
}

/* Line: draws from center outward */
.js .reveal-line {
  opacity: 0.001;
  clip-path: inset(0 50% 0 50%);
  -webkit-clip-path: inset(0 50% 0 50%);
  transition: clip-path 1s var(--ease), -webkit-clip-path 1s var(--ease), opacity .6s var(--ease);
}
.js .reveal-line.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

/* Per-word stagger reveal: each token fades up with cascading delay (--i set in JS) */
.js .split-words {
  /* Hide whole element until JS has split words to avoid an FOUC of unsplit text. */
  visibility: hidden;
  opacity: 1;
}
.js .split-words.words-ready { visibility: visible; }
.js .split-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) translateZ(0);
  transition:
    opacity .65s var(--ease),
    transform .8s var(--ease);
  transition-delay: calc(min(var(--i, 0), 24) * 35ms);
  will-change: opacity, transform;
}
.js .split-words.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* Eyebrow reveal: subtle slide-from-left + letter-spacing expansion.
   Selector raised to 3 classes so it beats `.stagger > *` (2 classes + element). */
.js .reveal-eyebrow,
.js .stagger > .reveal-eyebrow {
  opacity: 0;
  transform: translateX(-14px);
  letter-spacing: 0.34em;
  transition:
    opacity .8s var(--ease),
    transform .85s var(--ease),
    letter-spacing 1s var(--ease);
}
.js .reveal-eyebrow.is-visible,
.js .stagger.is-visible > .reveal-eyebrow.is-visible,
.js .stagger.is-visible > .reveal-eyebrow {
  opacity: 1;
  transform: translateX(0);
  letter-spacing: 0.22em;
}

/* Stagger children: applies to .stagger > * inside a revealed parent */
.js .stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.js .stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.js .stagger.is-visible > *:nth-child(2) { transition-delay: .15s; }
.js .stagger.is-visible > *:nth-child(3) { transition-delay: .25s; }
.js .stagger.is-visible > *:nth-child(4) { transition-delay: .35s; }
.js .stagger.is-visible > *:nth-child(5) { transition-delay: .45s; }
.js .stagger.is-visible > *:nth-child(6) { transition-delay: .55s; }
.js .stagger.is-visible > *:nth-child(7) { transition-delay: .65s; }
.js .stagger.is-visible > *:nth-child(8) { transition-delay: .75s; }

/* Per-element fine delays via data attribute (used by JS) */
.js [data-reveal-delay="100"] { transition-delay: .1s; }
.js [data-reveal-delay="200"] { transition-delay: .2s; }
.js [data-reveal-delay="300"] { transition-delay: .3s; }
.js [data-reveal-delay="400"] { transition-delay: .4s; }
.js [data-reveal-delay="500"] { transition-delay: .5s; }

/* Reveals laufen unabhängig von prefers-reduced-motion (user-Wunsch).
   Falls jemand das System-Setting wieder respektieren möchte, hier wieder
   aktivieren. */

/* =========================================================
   Responsive breakpoints
   ========================================================= */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(96px, 18vw, 140px);
    min-height: auto;
  }
  .hero__visual { aspect-ratio: 16/9; }
  .pillars__grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar {
    display: grid;
    grid-template-columns: 84px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 4px;
    padding: 22px;
    align-items: center;
  }
  .pillar__icon {
    grid-row: 1 / span 2;
    width: 84px;
    height: 100%;
    min-height: 84px;
    aspect-ratio: auto;
    margin-bottom: 0;
    align-self: stretch;
    display: grid;
    place-items: center;
  }
  .pillar__icon svg { width: 100%; height: auto; max-height: 100%; }
  .pillar__title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 2px;
    font-size: 20px;
    align-self: end;
  }
  .pillar__body {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    align-self: start;
  }
  .pillar::before { top: 8px; left: 8px; }
  .pillar::after { bottom: 8px; right: 8px; }
  .nav__links { display: none; }
  .footer__row { grid-template-columns: 1fr; text-align: center; }
  .footer__center, .footer__right { text-align: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .waitlist__form { flex-direction: column; border-radius: var(--radius-lg); padding: 10px; }
  .waitlist__form .btn { width: 100%; }
  .hero__headline { font-size: clamp(38px, 11vw, 54px); }
  .pillars__title, .preview__title, .audience__title, .waitlist__title {
    font-size: clamp(26px, 8vw, 40px);
  }
}
