:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --line: rgba(140, 180, 255, 0.10);
  --text: #e8edf5;
  --text-2: #9aa6b8;
  --text-3: #66728a;
  --brand: #1479ff;
  --brand-hi: #6aa8ff;
  --glow: rgba(20, 121, 255, 0.35);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- Kopfzeile: immer sofort erreichbar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(10,12,16,.85), rgba(10,12,16,0));
  backdrop-filter: blur(6px);
}
.top .mark { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .02em; }
.top .mark svg { width: 26px; height: 26px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--text-2); }
.top nav a:hover { color: var(--text); }
.top nav .lang { font: 600 12px/1 var(--mono); letter-spacing: .12em; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.top nav .lang:hover { border-color: var(--brand-hi); }
.eyebrow .beta {
  font-size: 11px; letter-spacing: .14em; color: var(--text); background: rgba(20, 121, 255, .18);
  border: 1px solid rgba(106, 168, 255, .35); border-radius: 999px; padding: 4px 9px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 24px -6px var(--glow); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -6px rgba(20,121,255,.6); }
.btn.ghost { border: 1px solid rgba(255,255,255,.16); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.top .btn { padding: 8px 16px; font-size: 14px; color: #fff; }

/* ---------- Hero mit Splitter-Animation ---------- */
.hero { position: relative; height: 160vh; }
.stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center;
  padding: 0 clamp(16px, 6vw, 96px);
}
.stage::before { /* Raster wie auf einer Planungskarte */
  content: ""; position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 62% 50%, #000 20%, transparent 75%);
  opacity: calc((.4 + var(--p, 0) * .6) * (1 - var(--z, 0)));
  transform: scale(calc(1 + var(--z, 0) * .35)); /* Raster zoomt mit, wirkt wie Anflug */
}
.stage::after { /* Lichtschein hinter dem Logo */
  content: ""; position: absolute; width: 70vmin; height: 70vmin; left: 58%; top: 50%;
  transform: translate(-50%, -50%) scale(calc(.6 + var(--p, 0) * .6));
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  filter: blur(40px); opacity: calc(.25 + var(--p, 0) * .75);
  pointer-events: none;
}
.copy {
  position: relative; z-index: 2; max-width: 34rem;
  opacity: calc(1 - var(--z, 0) * 1.2);
  transform: translateY(calc(var(--z, 0) * -48px)) scale(calc(1 - var(--z, 0) * .04));
  transform-origin: left center;
}
.eyebrow {
  font: 500 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-hi); margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 {
  margin: 0; font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750;
}
h1 .name {
  display: block;
  background: linear-gradient(110deg, #fff 30%, var(--brand-hi) 55%, #fff 80%);
  background-size: 220% 100%; background-position: calc(100% - var(--p, 0) * 100%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 .claim { display: block; font-size: .46em; font-weight: 600; letter-spacing: -.02em; color: var(--text-2); margin-top: 14px; }
.lead { color: var(--text-2); margin: 24px 0 22px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.beta-note { margin: 18px 0 0; font-size: 14px; color: var(--text-2); }
.beta-note a { border-bottom: 1px dashed currentColor; }
.quick { margin-top: 28px; display: flex; gap: 18px; font: 13px var(--mono); color: var(--text-3); }
.quick a { border-bottom: 1px dashed currentColor; }
.quick a:hover { color: var(--text); }

.logo-wrap { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; }
.logo { width: min(100%, 78vmin); overflow: visible; transform: scale(calc(1 + var(--z, 0) * .9)); will-change: transform; }
.logo path {
  fill: url(#shardFill);
  transform-box: fill-box; transform-origin: center;
  will-change: transform, opacity;
}
.logo .trail { fill: none; stroke: var(--brand-hi); stroke-width: 1.5; opacity: 0; }

.readout {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: 28px; z-index: 2;
  font: 12px/1.7 var(--mono); color: var(--text-3); text-align: right; letter-spacing: .06em;
  opacity: calc(1 - var(--z, 0));
}
.readout b { color: var(--brand-hi); font-weight: 500; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  font: 12px var(--mono); letter-spacing: .2em; color: var(--text-3); text-transform: uppercase;
  opacity: calc(var(--p, 0) - var(--s, 0) * 4);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--text-3), transparent); animation: drip 1.8s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Unterstützt: kleine Kennzeichen im Hero ---------- */
.specs { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li {
  font: 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
  padding: 8px 12px; border-radius: 6px;
  border: 1px solid rgba(140, 180, 255, .16); background: rgba(20, 121, 255, .06);
}
.specs li b { color: var(--brand-hi); font-weight: 500; }

/* ---------- Funktionen ---------- */
section.features { padding: clamp(40px, 6vw, 80px) clamp(16px, 6vw, 96px) clamp(80px, 12vw, 160px); display: grid; gap: clamp(90px, 14vw, 180px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-child(even) .text { order: 2; }
.feature .num { font: 13px var(--mono); color: var(--brand-hi); letter-spacing: .14em; }
.feature h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 12px 0 18px; }
.feature p { color: var(--text-2); margin: 0 0 20px; }
.feature .more { color: var(--brand-hi); font-weight: 600; font-size: 15px; }
.feature .more:hover { text-decoration: underline; }
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(20,121,255,.05), 0 0 80px -20px rgba(20,121,255,.25);
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(3deg) translateY(40px);
  opacity: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .6s;
}
.feature:nth-child(even) .shot { --ry: 8deg; }
.shot img { display: block; width: 100%; height: auto; }
.shot::after { /* Glanzkante */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  background-size: 250% 100%; background-position: 100% 0; transition: background-position 1.6s .3s;
}
.feature.in .shot { opacity: 1; transform: perspective(1400px) rotateY(calc(var(--ry, -8deg) * .4)) rotateX(1deg); }
.feature.in .shot::after { background-position: -50% 0; }
.feature .text { opacity: 0; transform: translateY(24px); transition: opacity .6s .1s, transform .6s .1s; }
.feature.in .text { opacity: 1; transform: none; }

/* ---------- Wege rein ---------- */
.doors { padding: 0 clamp(16px, 6vw, 96px) clamp(90px, 12vw, 160px); }
.doors h2 { text-align: center; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; margin: 0 0 12px; }
.doors > p { text-align: center; color: var(--text-2); margin: 0 auto 48px; max-width: 36rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.card {
  position: relative; padding: 28px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(20,121,255,.5); }
.card svg { width: 26px; height: 26px; color: var(--brand-hi); }
.card h3 { margin: 18px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card .go { margin-top: 18px; display: inline-block; font: 13px var(--mono); color: var(--brand-hi); letter-spacing: .06em; }
.card.main { background: linear-gradient(160deg, rgba(20,121,255,.28), rgba(20,121,255,.06)); border-color: rgba(20,121,255,.45); }

footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px clamp(16px, 6vw, 96px);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
  font-size: 14px; color: var(--text-3);
}
footer .links { margin-left: auto; display: flex; gap: 22px; }
footer a:hover { color: var(--text); }
footer .author { color: var(--text-2); border-bottom: 1px dashed currentColor; transition: color .2s; }
footer .author:hover { color: var(--brand-hi); }

/* ---------- Schmal ---------- */
@media (max-width: 860px) {
  .top nav .hide-sm { display: none; }
  .hero { height: 150vh; }
  .stage { grid-template-columns: 1fr; grid-template-rows: 40vh auto; align-content: center; padding-top: 60px; }
  .logo-wrap { order: -1; height: 40vh; }
  .logo { width: min(80vw, 40vh); }
  .stage::after { left: 50%; top: 30%; }
  .copy { text-align: left; }
  .lead { font-size: 16px; margin: 16px 0 22px; }
  .readout, .scroll-hint { display: none; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .text { order: 0; }
  .cards { grid-template-columns: 1fr; }
  footer .links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .stage { position: relative; min-height: 100vh; }
  .shot, .feature .text { opacity: 1; transform: none; transition: none; }
  .scroll-hint i { animation: none; }
}
