/* ONYX Aim - Website. Ein Akzent (#5865F2, wie die App), eine Radius-Skala:
   Karten 24/18 px (Schale/Kern), Bedienelemente 12 px, Buttons als Pille. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a0b0f;
  --bg-raise: #0f1117;
  --shell: #0c0e13;
  --core: #13151c;
  --core-2: #181b24;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #e8eaf0;
  --muted: #a1a6b3;
  --dim: #6d7282;
  --accent: #5865f2;
  --accent-hi: #7480ff;
  --accent-soft: rgba(88, 101, 242, 0.14);
  --accent-line: rgba(88, 101, 242, 0.45);
  --r-shell: 24px;
  --r-core: 18px;
  --r-ctl: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Feine Koernung ueber allem - fix und ohne Klicks, damit nichts neu malt. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: scale(0.98); }
.btn .ico {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.5s var(--ease);
}
.btn .ico svg { width: 15px; height: 15px; }
.btn:hover .ico { transform: translate(2px, -1px) scale(1.05); }
.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 30px -12px rgba(88, 101, 242, 0.7);
}
.btn.primary:hover { background: var(--accent-hi); }
.btn.primary .ico { background: rgba(255, 255, 255, 0.18); }
.btn.plain { padding: 0 22px; }
.btn.small { height: 38px; font-size: 14px; padding: 0 18px; }

/* ---------- Navigation: schwebende Insel ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(calc(100% - 24px), 1060px);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 15, 20, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--accent-hi); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang {
  display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.lang button {
  border: 0; background: none; cursor: pointer; padding: 5px 10px; border-radius: 999px;
  font: 500 12px "Geist Mono", monospace; color: var(--dim);
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.burger { display: none; }

/* ---------- Abschnitte ---------- */
section { position: relative; }
.sec { padding: 120px 0; }
.h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.h2 em { font-style: normal; color: var(--accent-hi); }
.lede { margin: 0; color: var(--muted); max-width: 58ch; font-size: 17px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font: 500 12px "Geist Mono", monospace; color: var(--muted);
  letter-spacing: 0.02em;
}

/* Glas-Panel: Doppelrand (App) + Lichtkante oben (Figma) */
.panel {
  position: relative;
  padding: 6px;
  border-radius: var(--r-shell);
  background: var(--shell);
  border: 1px solid var(--line);
}
.panel > .core {
  position: relative;
  height: 100%;
  border-radius: var(--r-core);
  background: linear-gradient(180deg, var(--core-2), var(--core) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.panel.lit::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: 72px; height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: var(--accent-hi);
  box-shadow: 0 0 18px 2px rgba(116, 128, 255, 0.55);
  z-index: 2;
}

/* ---------- Hero ---------- */
.hero { padding: 150px 0 40px; overflow: hidden; }
.hero::before {
  /* Lichtkegel hinter dem App-Fenster */
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 900px;
  background:
    radial-gradient(ellipse 50% 45% at 50% 62%, rgba(88, 101, 242, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 30% at 82% 18%, rgba(88, 101, 242, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: end;
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero h1 span { display: block; color: var(--accent-hi); }
.hero-side { padding-bottom: 8px; }
.hero-side p { margin: 0 0 26px; color: var(--muted); font-size: 18px; max-width: 42ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.demo-stage { position: relative; margin-top: 64px; }
.demo-frame {
  position: relative;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 120px -40px rgba(88, 101, 242, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.demo-viewport { position: relative; border-radius: 14px; overflow: hidden; }
.demo-hint {
  display: flex; justify-content: center; gap: 10px; align-items: center;
  margin-top: 18px; color: var(--dim); font-size: 13px;
}
.demo-hint.narrow { display: none; }
@media (max-width: 640px) { .demo-hint.wide { display: none; } .demo-hint.narrow { display: flex; } }
.demo-hint kbd {
  font: 500 11px "Geist Mono", monospace; padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--line-strong); color: var(--muted);
}

/* ---------- Messwerte ---------- */
.metrics { padding: 90px 0 30px; }
.metric-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}
.metric { padding: 28px 24px 4px 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
.metric .num { font: 500 clamp(34px, 4vw, 48px)/1 "Geist Mono", monospace; letter-spacing: -0.04em; }
.metric .num small { font-size: 0.45em; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.metric p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 30ch; }
.metric-note { margin: 22px 0 0; color: var(--dim); font-size: 13px; }

/* ---------- Funktionen: Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 14px;
  margin-top: 56px;
}
.b-aim { grid-column: span 7; grid-row: span 2; }
.b-shoot { grid-column: span 5; }
.b-gpu { grid-column: span 5; }
.b-perf { grid-column: span 6; }
.b-live { grid-column: span 6; }
.cell .core { padding: 28px; display: flex; flex-direction: column; }
.cell h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.cell p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.cell .ic {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hi);
  box-shadow: inset 0 0 0 1px rgba(116, 128, 255, 0.22);
}
.cell .ic svg { width: 19px; height: 19px; }
.cell .art { margin-top: auto; padding-top: 26px; }

/* Aim: FOV-Ringe */
.b-aim .core { background:
  radial-gradient(circle at 50% 78%, rgba(88, 101, 242, 0.16), transparent 55%),
  linear-gradient(180deg, var(--core-2), var(--core)); }
.fov {
  position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 18px auto 0;
}
.fov .ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.fov .ring.r1 { width: 100%; height: 100%; border-style: dashed; }
.fov .ring.r2 { width: 54%; height: 54%; border-color: var(--accent-line); background: rgba(88, 101, 242, 0.06); }
.fov .ring.r3 { width: 16%; height: 16%; border-color: var(--accent-hi); background: rgba(88, 101, 242, 0.18); }
.fov .lbl {
  position: absolute; font: 500 11px "Geist Mono", monospace; color: var(--muted);
  padding: 3px 8px; border-radius: 999px; background: rgba(10, 11, 15, 0.8); border: 1px solid var(--line);
  white-space: nowrap;
}
.fov .l1 { left: 50%; top: 2%; transform: translateX(-50%); }
.fov .l2 { left: 50%; top: 26%; transform: translateX(-50%); color: var(--text); }
.fov .l3 { left: 50%; top: 59%; transform: translateX(-50%); color: var(--accent-hi); }
.fov .target {
  position: absolute; left: 61%; top: 37%; width: 13%; height: 25%;
  border: 1.5px solid var(--accent-hi); border-radius: 6px;
  animation: drift 6s var(--ease) infinite alternate;
}
.fov .target::after {
  content: "0.91"; position: absolute; top: -20px; left: -1px;
  font: 500 10px "Geist Mono", monospace; color: #fff;
  background: var(--accent); padding: 1px 5px; border-radius: 4px;
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-58%, 18%); } }

/* Shoot: Schuss-Takt */
.shots { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.shots i {
  flex: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.07);
}
.shots i.on { background: var(--accent); box-shadow: 0 0 14px -2px rgba(88, 101, 242, 0.8); }
.shots-legend { display: flex; justify-content: space-between; margin-top: 10px; font: 500 11px "Geist Mono", monospace; color: var(--dim); }

/* GPU-Pfade */
.paths { display: grid; gap: 8px; }
.path {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  font-size: 14px;
}
.path b { font-weight: 600; }
.path span { font: 500 12px "Geist Mono", monospace; color: var(--muted); }
.path.best { border-color: var(--accent-line); background: var(--accent-soft); }

/* Leistungsprofile */
.b-perf .core { background:
  linear-gradient(135deg, rgba(88, 101, 242, 0.12), transparent 50%),
  linear-gradient(180deg, var(--core-2), var(--core)); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button {
  border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: none;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.perf-out { display: flex; gap: 26px; margin-top: 18px; }
.perf-out div { font-size: 13px; color: var(--muted); }
.perf-out b { display: block; font: 500 22px "Geist Mono", monospace; color: var(--text); letter-spacing: -0.02em; }

/* Live / eigene Modelle */
.models { display: flex; flex-wrap: wrap; gap: 8px; }
.models span {
  padding: 7px 12px; border-radius: 999px; font: 500 12px "Geist Mono", monospace;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted);
}
.models span.hl { color: var(--text); border-color: var(--accent-line); }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: linear-gradient(90deg, var(--accent-line), var(--line) 70%);
}
.step { position: relative; padding-right: 32px; }
.step .dot {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--accent-hi);
  position: relative;
}
.step .dot svg { width: 20px; height: 20px; }
.step:first-child .dot { border-color: var(--accent-line); background: #10121a; }
.step h3 { margin: 22px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; }

/* ---------- Preise ---------- */
.prices { display: grid; grid-template-columns: 1fr 1fr 1fr 1.25fr; gap: 14px; margin-top: 56px; align-items: stretch; }
.price .core { padding: 26px; display: flex; flex-direction: column; }
.price h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--muted); }
.price .amount { margin: 18px 0 4px; font: 500 46px/1 "Geist Mono", monospace; letter-spacing: -0.05em; }
.price .amount small { font-size: 18px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price .per { color: var(--dim); font-size: 13px; min-height: 20px; }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent-hi); }
.price .btn { margin-top: auto; justify-content: space-between; }
.price.best .core {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(88, 101, 242, 0.28), transparent 60%),
    linear-gradient(180deg, #171a28, var(--core));
}
.price.best { border-color: var(--accent-line); }
.price .badge {
  position: absolute; top: 22px; right: 22px;
  padding: 4px 10px; border-radius: 999px; font: 500 11px "Geist Mono", monospace;
  background: var(--accent); color: #fff;
}
.price-note { margin-top: 20px; color: var(--dim); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.help .core { padding: 26px; }
.help h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.help p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg-raise);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.faq details[open] { border-color: var(--accent-line); background: #10121a; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 500; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none; width: 26px; height: 26px; border-radius: 8px; position: relative;
  border: 1px solid var(--line-strong);
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px;
  background: var(--muted); transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; max-width: 64ch; }

/* ---------- Schluss ---------- */
.final { padding: 140px 0 120px; text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 55% at 50% 45%, rgba(88, 101, 242, 0.18), transparent 70%);
  pointer-events: none;
}
.final img { width: 84px; height: 84px; margin: 0 auto 28px; filter: drop-shadow(0 12px 30px rgba(88, 101, 242, 0.45)); }
.final .h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.final .lede { margin: 0 auto 32px; }
.final .cta-row { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--dim); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .fov .target { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-top { grid-template-columns: 1fr; gap: 26px; }
  .b-aim, .b-shoot, .b-gpu, .b-perf, .b-live { grid-column: span 12; grid-row: auto; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prices { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 84px 0; }
  .nav { height: 56px; padding: 0 8px 0 14px; gap: 10px; }
  .nav .btn.discord-nav { display: none; }
  .brand span.full { display: none; }
  .hero { padding-top: 112px; }
  .hero-side p { font-size: 16px; }
  .demo-stage { margin-top: 40px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 22px 0 4px; border-left: 0; }
  .metric + .metric { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { display: none; }
  .prices { grid-template-columns: 1fr; }
  .cell .core { padding: 22px; }
  .perf-out { flex-wrap: wrap; gap: 18px; }
}
