@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-variable-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --bg: #0a1329;
    --bg2: #0e1c3d;
    --ink: #eaf0ff;
    --muted: #9db0d8;
    --ember: #ff7a2f;
    --glow: #ffc15e;
    --blue: #5b8cff;
    --line: rgb(255 255 255 / .12);
    --card: rgb(255 255 255 / .05);
    --font: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Fixed sky on its own compositor layer instead of background-attachment:
   fixed, which forces a full repaint on every scroll. */
body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; will-change: transform;
    background:
        radial-gradient(70% 50% at 85% 0%, rgb(60 100 220 / .28), transparent 70%),
        radial-gradient(60% 50% at 0% 100%, rgb(255 122 47 / .10), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input { cursor: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); display: block; margin-bottom: 18px; }

canvas#bg, canvas#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
canvas#bg { z-index: 0; }
canvas#fx { z-index: 90; }

/* ---------- Loader ---------- */
#loader {
    position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 22px; transition: opacity .7s ease, visibility .7s;
    font-family: var(--mono); font-size: 14px; color: var(--muted);
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .bar { width: 220px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--glow)); }
#loader .flame { width: 46px; height: 62px; animation: flick .5s ease-in-out infinite alternate; }

/* ---------- Cursor / progress / dots ---------- */
.cur, .ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 120; display: none; border-radius: 50%; }
body.has-cursor .cur, body.has-cursor .ring { display: block; }
.cur { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--glow); box-shadow: 0 0 14px 4px rgb(255 160 60 / .7); }
.ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgb(255 193 94 / .55); transition: width .25s ease, height .25s ease, margin .25s ease, background .25s ease; }
.ring.hot { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgb(255 122 47 / .12); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--ember), var(--glow)); box-shadow: 0 0 12px var(--ember); }

.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 14px; }
.dots a { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; position: relative; transition: background .25s, transform .25s; }
.dots a.on { background: var(--ember); transform: scale(1.5); box-shadow: 0 0 12px var(--ember); }
.dots a::after { content: attr(data-label); position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .2s; white-space: nowrap; pointer-events: none; }
.dots a:hover::after { opacity: 1; }

/* ---------- Top bar ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 22px 0; transition: background .3s; }
.top.solid { background: rgb(10 19 41 / .9); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.top .logo { height: 44px; filter: brightness(0) invert(1); display: block; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; transition: background .2s; }
.top nav a:hover { background: rgb(255 255 255 / .08); }
.btn {
    display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 700; font-size: 16px;
    padding: 15px 28px; border-radius: 999px; border: 0; text-decoration: none; background: var(--ember); color: #1a0d03;
    transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 0 0 0 rgb(255 122 47 / .0);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgb(255 122 47 / .45); }
.top nav a.btn { background: var(--ember); padding: 10px 22px; }
.top nav a.btn:hover { background: var(--glow); }

/* ---------- Stage (hero + wust -> ordnung) ---------- */
.stage { height: 520vh; position: relative; z-index: 2; }
.stage-in { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.hero-copy h1 { font-size: clamp(52px, 11vw, 176px); max-width: 1300px; }
.hero-copy h1 .ch { display: inline-block; transition: color .25s ease, text-shadow .25s ease; }
.hero-copy h1 .w { display: inline-block; white-space: nowrap; }
.hero-copy h1 .ch.lit { color: var(--glow); text-shadow: 0 0 30px rgb(255 140 50 / .6); }
.hero-copy .sub { margin-top: 28px; font-size: clamp(17px, 2vw, 22px); color: var(--muted); max-width: 640px; }
.hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hint i { width: 1.5px; height: 46px; background: linear-gradient(var(--ember), transparent); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.beat { position: absolute; left: max(28px, calc((100vw - var(--page)) / 2 + 28px)); top: 50%; width: min(410px, calc(100vw - 56px)); transform: translateY(-50%); opacity: 0; pointer-events: none; }
.beat h2 { font-size: clamp(34px, 4.3vw, 60px); margin-bottom: 20px; }
.beat h2 em { font-style: normal; color: var(--glow); }
.beat p { color: var(--muted); margin: 0; font-size: 19px; }
/* Set by JS when the text column and the archive don't fit side by side */
.stage.stacked .beat { top: 12%; transform: none; }
.stage.stacked .beat p { font-size: 16px; }
.stage.stacked .beat h2 { margin-bottom: 12px; }
.stage.stacked .counter { bottom: 28px; }
.counter { position: absolute; left: max(28px, calc((100vw - var(--page)) / 2 + 28px)); bottom: 54px; font-family: var(--mono); opacity: 0; }
.counter b { display: block; font-family: var(--font); font-size: clamp(44px, 6vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.counter span { color: var(--muted); font-size: 14px; }

/* ---------- Generic sections ---------- */
section.s { padding: 150px 0; position: relative; z-index: 2; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(38px, 5vw, 70px); margin-bottom: 24px; }
.split h2 em { font-style: normal; color: var(--glow); }
.split p { color: var(--muted); margin: 0 0 1em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--card); }

/* network */
.netbox { position: relative; height: min(66vh, 560px); border: 1px solid var(--line); border-radius: 28px; background: rgb(255 255 255 / .03); overflow: hidden; }
.netbox canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.netbox .tip { position: absolute; left: 18px; bottom: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); pointer-events: none; }

/* shop */
.shop-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
.controls { display: grid; gap: 20px; margin-top: 30px; }
.controls label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.swatches, .toggles { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; outline: 0; box-shadow: 0 0 0 2px var(--bg2) inset; transition: transform .2s; }
.sw:hover { transform: scale(1.12); }
.sw.on { border-color: #fff; }
.tg { font-family: var(--font); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: background .2s, color .2s; }
.tg.on { background: #fff; color: #0a1329; }

.phone { width: 340px; margin: 0 auto; border-radius: 44px; padding: 12px; background: #0b1020; border: 1px solid rgb(255 255 255 / .18); box-shadow: 0 40px 100px rgb(0 0 0 / .5), 0 0 80px rgb(91 140 255 / .18); transform: rotate(2.5deg); transition: transform .5s ease; }
.phone:hover { transform: rotate(0deg) scale(1.02); }
.mockshop { --accent: #ff7a2f; --rad: 18px; background: #fbf9f4; color: #17231f; border-radius: 34px; overflow: hidden; position: relative; padding-bottom: 20px; }
.mockshop .bar { text-align: center; font-size: 11px; font-weight: 700; padding: 8px; background: var(--accent); color: #fff; transition: background .3s; }
.mockshop .pic { margin: 14px; height: 210px; border-radius: var(--rad); background: linear-gradient(160deg, #f3ead7, #e6d6b8); position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; transition: border-radius .3s; }
.candle { width: 56px; height: 104px; background: linear-gradient(90deg, #f6efe0, #fff, #e8dcc2); border-radius: 8px 8px 4px 4px; position: relative; margin-bottom: 26px; box-shadow: 0 14px 20px rgb(120 90 40 / .25); }
.candle::before { content: ""; position: absolute; top: -8px; left: 50%; width: 3px; height: 12px; background: #3a2a1a; transform: translateX(-50%); border-radius: 2px; }
.candle .fl { position: absolute; top: -52px; left: 50%; width: 26px; height: 46px; margin-left: -13px; background: radial-gradient(60% 70% at 50% 70%, #fff6c8 0%, #ffc15e 45%, var(--accent) 100%); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; animation: flick .45s ease-in-out infinite alternate; filter: blur(.3px); box-shadow: 0 0 30px 10px rgb(255 160 60 / .45); transform-origin: 50% 100%; }
@keyframes flick { 0% { transform: scale(1, 1) rotate(-2deg); } 100% { transform: scale(.92, 1.08) rotate(2deg); } }
.mockshop .meta { padding: 0 18px; }
.mockshop .nm { font-weight: 800; font-size: 18px; }
.mockshop .pr { font-weight: 800; font-size: 20px; margin: 4px 0 2px; }
.mockshop .pr small { font-weight: 500; font-size: 11px; color: #6b7570; }
.mockshop .st { font-size: 12px; color: #2f7a55; display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.mockshop .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f9e6a; }
.mockshop .add { width: 100%; border: 0; padding: 15px; font-family: var(--font); font-weight: 800; font-size: 15px; background: var(--accent); color: #fff; border-radius: var(--rad); cursor: pointer; transition: background .3s, border-radius .3s, transform .15s; }
.mockshop .add:active { transform: scale(.97); }
.mockshop .dockbar { display: none; position: absolute; left: 14px; right: 14px; bottom: 12px; background: #17231f; color: #fff; border-radius: calc(var(--rad) + 6px); padding: 10px 18px; justify-content: space-between; font-size: 11px; font-weight: 700; }
.mockshop.dock { padding-bottom: 82px; }
.mockshop.dock .dockbar { display: flex; }
.dockbar span { position: relative; }
.dockbar b { position: absolute; top: -8px; right: -14px; background: var(--accent); border-radius: 999px; font-size: 10px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ki chat */
.chat { background: rgb(255 255 255 / .04); border: 1px solid var(--line); border-radius: 28px; padding: 26px; }
.chat .log { min-height: 250px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.msg { max-width: 88%; padding: 14px 18px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.msg.q { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.a { align-self: flex-start; background: rgb(255 255 255 / .08); border-bottom-left-radius: 6px; }
.msg.a .src { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--glow); }
.msg.a.typing::after { content: "▍"; color: var(--ember); animation: blink .8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.suggest button { font-family: var(--font); font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: transparent; border: 1px dashed rgb(255 255 255 / .3); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.suggest button:hover { background: rgb(255 255 255 / .08); border-color: var(--glow); }
.ask { display: flex; gap: 10px; }
.ask input { flex: 1; font-family: var(--font); font-size: 16px; padding: 14px 20px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid var(--line); color: #fff; outline: 0; }
.ask input:focus { border-color: var(--glow); }
.ask button { border: 0; width: 52px; border-radius: 50%; background: var(--ember); color: #1a0d03; font-size: 20px; font-weight: 800; cursor: pointer; }
.demo-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 12px 4px 0; }

/* references: horizontal scroll */
.hscroll { position: relative; z-index: 2; }
.hs-in { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 24px; }
.hs-head { margin-bottom: 18px; }
.hs-head .eyebrow { margin-bottom: 10px; }
.hs-head h2 { font-size: clamp(36px, 5vw, 66px); }
.hs-track { display: flex; gap: 28px; padding: 14px max(28px, calc((100vw - var(--page)) / 2 + 28px)) 30px; will-change: transform; }
.rcard { flex: 0 0 min(480px, 82vw); text-decoration: none; background: rgb(255 255 255 / .05); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; transform-style: preserve-3d; transition: border-color .25s, background .25s; will-change: transform; }
.rcard:hover { border-color: rgb(255 193 94 / .6); background: rgb(255 255 255 / .08); }
.rcard .lg { height: clamp(120px, 21vh, 190px); display: flex; align-items: center; justify-content: center; background: #f6f8fc; padding: 30px; transform: translateZ(0); }
.rcard .lg img { max-width: 78%; max-height: 130px; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.rcard:hover .lg img { transform: scale(1.1) translateZ(40px); }
.rcard .lg h3 { color: #0a1329; font-size: 26px; text-align: center; }
.rcard .tx { padding: 24px 26px 28px; }
.rcard h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.rcard p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.rcard .go { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--glow); }
.hs-line { margin: 0 max(28px, calc((100vw - var(--page)) / 2 + 28px)); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hs-line i { display: block; height: 100%; width: 0; background: var(--ember); }
.hscroll.native { height: auto !important; }
.hscroll.native .hs-in { position: static; height: auto; padding: 100px 0; }
.hscroll.native .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; }
.hscroll.native .rcard { scroll-snap-align: start; }
.hscroll.native .hs-line { display: none; }

/* contact */
.contact { text-align: center; padding: 170px 0 150px; position: relative; z-index: 2; overflow: hidden; }
.contact h2 { font-size: clamp(46px, 9vw, 150px); }
.contact h2 em { font-style: normal; background: linear-gradient(90deg, var(--ember), var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact p { color: var(--muted); max-width: 560px; margin: 28px auto 44px; }
.big-flame { position: absolute; left: 50%; bottom: -40px; width: min(560px, 90vw); transform: translateX(-50%); opacity: .3; pointer-events: none; z-index: -1; }
.big-flame path { transform-origin: 50% 100%; animation: flick 1.1s ease-in-out infinite alternate; }
.big-flame path:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.big-flame path:nth-child(3) { animation-duration: .6s; animation-delay: -.5s; }
.magnet { position: relative; display: inline-flex; font-size: 20px; padding: 22px 46px; }

footer.f { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 38px 0 44px; background: rgb(10 19 41 / .92); }
footer.f .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
footer.f nav { display: flex; gap: 24px; }
footer.f nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer.f nav a:hover { color: var(--glow); }

.editbar {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 160;
    display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 999px;
    background: #fff; color: #0a1329; font-size: 13px; font-weight: 700; box-shadow: 0 12px 32px rgb(0 0 0 / .35);
}
.editbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf6a; margin-right: 4px; }
.editbar a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #eef2fa; }
.editbar a:hover { background: var(--ember); color: #1a0d03; }
.toast { position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 30px); background: #fff; color: #0a1329; padding: 14px 24px; border-radius: 999px; font-weight: 700; z-index: 150; opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
    .split, .shop-grid { grid-template-columns: 1fr; gap: 40px; }
    .top nav a:not(.btn) { display: none; }
    .dots { display: none; }
    section.s { padding: 100px 0; }
    .beat { top: 12%; transform: none; }
    .beat p { font-size: 16px; }
    .beat h2 { margin-bottom: 12px; }
    .counter { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hint i, .candle .fl, .big-flame path, #loader .flame { animation: none; }
}
