@font-face { font-family: "Orbitron"; src: url("fonts/Orbitron.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #02070d; --bg2: #06121c; --panel: #081a26cc; --panel2: #0b2433;
  --line: #0f3a4a; --line-strong: #1a6b80;
  --cyan: #00e5ff; --cyan-dim: #4fb8c9; --text: #cdeff6; --dim: #6c93a0;
  --amber: #ffb648; --red: #ff4f6d; --green: #3dffb0;
  --display: "Orbitron", "Avenir Next", sans-serif;
  --body: "Rajdhani", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: radial-gradient(ellipse at 70% -10%, #0a3346 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.55; overflow-x: hidden;
}
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-shadow: 0 0 8px var(--cyan); }
h1, h2, h3 { font-family: var(--display); letter-spacing: .06em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 4.2vw, 3.1rem); overflow-wrap: break-word; hyphens: manual; line-height: 1.1; color: #fff; text-shadow: 0 0 24px #00e5ff55; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--cyan); text-transform: uppercase; }
h3 { font-size: 1rem; color: #fff; text-transform: uppercase; }
.dim { color: var(--dim); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: #02070de6; backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { font-family: var(--display); font-weight: 700; letter-spacing: .25em; color: #fff; }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { color: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.nav nav a:hover { color: var(--cyan); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.lang button {
  background: transparent; color: var(--dim); border: 0; padding: 4px 10px; cursor: pointer;
  font-family: var(--display); font-size: .7rem; letter-spacing: .1em;
}
.lang button.on { background: var(--cyan); color: var(--bg); }

/* ---------------------------------------------------------------- engine */
.engine { position: relative; display: inline-block; border-radius: 50%; }
.engine i, .engine b { position: absolute; border-radius: 50%; inset: 0; }
.engine i { border: 2px solid var(--cyan); border-left-color: transparent; border-right-color: transparent; animation: spin 6s linear infinite; }
.engine i:nth-child(2) { inset: 18%; animation-direction: reverse; animation-duration: 4s; border-color: var(--cyan-dim) transparent; }
.engine i:nth-child(3) { inset: 34%; animation-duration: 9s; border-style: dashed; }
.engine b { inset: 40%; background: radial-gradient(circle, #fff 0%, var(--cyan) 45%, transparent 75%); box-shadow: 0 0 30px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
.engine.small { width: 30px; height: 30px; }
.engine.small b { inset: 32%; }
.engine.big { width: 260px; height: 260px; position: absolute; right: -40px; top: -70px; opacity: .55; z-index: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.9); } }

/* ---------------------------------------------------------------- layout */
main { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(48px, 8vw, 96px) 0 0; }
.section-lead { color: var(--dim); font-size: 1.15rem; margin-top: -.4em; }

.hud {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: inset 0 0 40px #00e5ff0a, 0 0 0 1px #00000040;
}
.hud::before, .hud::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan); pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------------------------------------------------------------- hero */
.hero > *, .gallery > *, .downloads > *, .steps > * { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 8vw, 96px); }
.eyebrow { font-family: var(--display); color: var(--cyan); font-size: .75rem; letter-spacing: .3em; margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 12px; }
.version { color: var(--dim); font-family: var(--mono); font-size: .85rem; }
.version b, .js-version { color: var(--cyan); font-weight: 400; }
.hero-visual { position: relative; }
.hero-shot { position: relative; z-index: 1; width: 100%; display: block; padding: 6px; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 4px; font-family: var(--display); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--cyan); transition: all .2s; cursor: pointer;
}
.btn.primary { background: linear-gradient(180deg, #00e5ff33, #00e5ff14); color: #fff; box-shadow: 0 0 18px #00e5ff40; }
.btn.primary:hover { background: var(--cyan); color: var(--bg); text-shadow: none; }
.btn.ghost { color: var(--cyan); }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; box-shadow: none; filter: grayscale(.6); }

/* ---------------------------------------------------------------- features */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.cards.three { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.card { padding: 22px 22px 18px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .icon { display: block; font-size: 1.6rem; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); margin-bottom: 8px; }
.card p { margin: 0; color: var(--text); opacity: .9; }

/* ---------------------------------------------------------------- screens */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.gallery figure { margin: 0; padding: 8px; }
.gallery img { width: 100%; display: block; border-radius: 3px; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.01); }
.gallery figcaption { padding: 10px 6px 4px; color: var(--dim); font-size: 1rem; }
.gallery a { display: block; cursor: zoom-in; }

/* ---------------------------------------------------------------- lightbox */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px clamp(8px, 2vw, 24px); background: #010509f2; backdrop-filter: blur(6px); animation: lb-in .2s ease-out;
}
.lightbox[hidden] { display: none; }
.lb-frame { margin: 0; padding: 8px; max-width: min(1600px, 100%); flex: 0 1 auto; min-width: 0; }
.lb-frame img { display: block; max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: 3px; }
.lb-frame figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 6px 2px; color: var(--text); }
.lb-count { font-family: var(--mono); font-size: .8rem; color: var(--cyan); white-space: nowrap; }
.lb-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--cyan); background: #00e5ff14;
  color: var(--cyan); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 0 16px #00e5ff33; transition: all .2s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--cyan); color: var(--bg); outline: none; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.1rem; }
@keyframes lb-in { from { opacity: 0; } }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { padding: 22px; }
.steps li b { font-family: var(--display); font-size: 2rem; color: var(--cyan); opacity: .5; display: block; margin-bottom: 6px; }
.steps p { margin: 0; }

/* ---------------------------------------------------------------- download */
.warning { padding: 24px 28px; border-color: #ffb64866; margin: 28px 0 24px; background: #1a1206cc; }
.warning::before, .warning::after { border-color: var(--amber); }
.warning h3 { color: var(--amber); }
.warning ul { margin: .5em 0; padding-left: 1.2em; }
.warning li { margin: .2em 0; }
.ack { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 600; color: #fff; cursor: pointer; }
.ack input { width: 18px; height: 18px; accent-color: var(--cyan); }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.dl h3 { font-size: 1.2rem; color: var(--cyan); margin: 0; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ver-badge {
  font-family: var(--mono); font-size: .8rem; color: var(--green); border: 1px solid #3dffb066; border-radius: 3px;
  padding: 2px 8px; white-space: nowrap;
}
.ver-badge[hidden] { display: none; }
.dl p { margin: 0; }
.dl .btn { align-self: stretch; text-align: center; margin: 10px 0 2px; }
.size { font-family: var(--mono); font-size: .8rem; color: var(--dim); min-height: 1.2em; }
.hint { font-size: .95rem; color: var(--dim); }
.hint code { font-family: var(--mono); font-size: .75rem; color: var(--green); word-break: break-all; }
.code {
  font-family: var(--mono); font-size: .75rem; background: #000c; border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 12px; margin: 6px 0 0; color: var(--green); white-space: pre-wrap; word-break: break-all;
}
.req { padding: 20px 28px; margin-top: 18px; }
.req ul { margin: 0; padding-left: 1.2em; }

/* ---------------------------------------------------------------- legal + footer */
.legal { max-width: 860px; padding-top: 48px; }
.legal-box { padding: 28px clamp(18px, 4vw, 40px); }
.legal-box h1 { font-size: 1.8rem; }
.legal-box h2 { font-size: 1rem; margin-top: 1.6em; }
.legal-box h3 { font-size: .85rem; color: var(--cyan-dim); margin-top: 1.2em; }
.legal-box p { margin: .4em 0; }
[data-show] { display: none; }
html[lang="en"] [data-show="en"], html[lang="de"] [data-show="de"] { display: block; }

.footer {
  position: relative; z-index: 1; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  padding: 36px 16px; margin-top: 96px; border-top: 1px solid var(--line); color: var(--dim); font-size: .95rem;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .engine.big { width: 180px; height: 180px; top: -50px; right: -20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav nav a:not([href="index.html"]) { display: none; }
  .gallery, .steps { grid-template-columns: minmax(0, 1fr); }
  .lightbox { padding: 64px 8px 84px; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-frame img { max-height: calc(100vh - 200px); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { letter-spacing: .15em; }
}
@media (prefers-reduced-motion: reduce) {
  .engine i, .engine b, .lightbox { animation: none; }
  html { scroll-behavior: auto; }
}
