/* ==========================================================================
   BUKER · landing — cyberpunk dark UI
   Zero web fonts, zero frameworks, zero external requests.
   Breakpoints: 1080 / 860 / 560 px. Mobile-first-safe (desktop-first here).
   ========================================================================== */

:root {
  --bg: #05070c;
  --bg2: #080d17;
  --panel: #0a1120;
  --panel2: #0d1626;
  --line: rgba(60, 225, 255, .14);
  --line-s: rgba(60, 225, 255, .28);
  --text: #dbe7f5;
  --dim: #8aa0bd;
  --dim2: #61748f;
  --cy: #35e1ff;
  --mg: #ff2f87;
  --lm: #a8ff3e;
  --am: #ffb454;
  --tg: #2ea6e6;
  --r: 14px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg) }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(15px, .55vw + 13.6px, 17px)/1.62 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.08 }
p { margin: 0 }
a { color: inherit; text-decoration: none }
b { color: #fff; font-weight: 600 }
ul, ol, dl, dd, dt { margin: 0; padding: 0; list-style: none }

.wrap { width: min(1220px, 100% - 2 * clamp(18px, 4vw, 44px)); margin-inline: auto }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: .02em }
.grad {
  background: linear-gradient(96deg, var(--cy), #7ef 42%, var(--mg));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99; padding: 10px 16px;
  background: var(--cy); color: #001018; font-family: var(--mono);
}
.skip:focus { left: 12px; top: 12px }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 6px }

/* ── topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 7, 12, .74);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); min-height: 62px }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--mono); letter-spacing: .06em; color: #fff }
.brand b { color: var(--cy); font-weight: 400 }
.brand svg { width: 26px; height: 26px; flex: none }
.brand__o { fill: none; stroke: var(--cy); stroke-width: 1.6 }
.brand__i { fill: var(--mg) }
.topnav { display: flex; gap: clamp(10px, 1.8vw, 26px); margin-left: auto; font: 500 13.5px/1 var(--sans); color: var(--dim) }
.topnav a { padding: 6px 2px; position: relative; transition: color .18s }
.topnav a:hover { color: #fff }
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--cy); transition: right .22s ease;
}
.topnav a:hover::after { right: 0 }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-g: var(--cy);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid var(--line-s); border-radius: 12px;
  background: rgba(12, 20, 34, .8); color: #fff; cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .16s cubic-bezier(.2, .9, .3, 1.4), box-shadow .22s, border-color .22s, background .22s;
}
.btn:hover { transform: translateY(-2px) }
.btn:active { transform: translateY(0) scale(.99) }
.btn svg { width: 20px; height: 20px; flex: none }
.btn--sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px }
.btn--ghost { color: var(--cy); border-color: var(--line); background: rgba(53, 225, 255, .05) }
.btn--ghost:hover { border-color: var(--cy); box-shadow: 0 0 0 3px rgba(53, 225, 255, .09) }

/* dominant Telegram CTA */
.btn--tg {
  border: 0; color: #041018;
  background: linear-gradient(135deg, #67e8ff, var(--tg) 46%, #1b7fc0);
  box-shadow: 0 10px 34px -10px rgba(46, 180, 255, .62), inset 0 1px 0 rgba(255, 255, 255, .55);
  font-weight: 800;
}
.btn--tg svg { fill: #041018 }
.btn--tg b { color: #041018 }
.btn--tg::after {
  content: ""; position: absolute; inset: -2px; border-radius: 14px; z-index: -1;
  background: linear-gradient(120deg, var(--cy), var(--mg)); opacity: .0; transition: opacity .25s; filter: blur(14px);
}
.btn--tg:hover::after { opacity: .55 }
.btn--tg:hover { box-shadow: 0 16px 44px -12px rgba(46, 200, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .6) }
.btn--tg em { font-style: normal; font-weight: 800; transition: transform .2s }
.btn--tg:hover em { transform: translateX(4px) }
.btn--xl { padding: 18px 30px; font-size: clamp(16px, 1.6vw, 19px); border-radius: 14px }
.btn--mega {
  padding: clamp(22px, 3.2vw, 30px) clamp(28px, 5vw, 58px);
  font-size: clamp(19px, 3vw, 27px); border-radius: 18px;
  animation: pulse 3.4s ease-in-out infinite;
}
.btn--mega svg { width: 1.2em; height: 1.2em }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 40px -12px rgba(46, 190, 255, .6), 0 0 0 0 rgba(53, 225, 255, .42) }
  55% { box-shadow: 0 16px 46px -12px rgba(46, 190, 255, .75), 0 0 0 16px rgba(53, 225, 255, 0) }
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(34px, 6vw, 74px) 0 clamp(48px, 7vw, 96px); overflow: clip }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 80% at 78% 6%, rgba(255, 47, 135, .13), transparent 62%),
  radial-gradient(100% 70% at 8% 0%, rgba(53, 225, 255, .16), transparent 60%),
  linear-gradient(180deg, var(--bg2), var(--bg) 72%); }
.hero__bg::before {
  content: ""; position: absolute; inset: -220px -10% -10%;
  background-image:
    repeating-linear-gradient(0deg, rgba(60, 225, 255, .07) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(60, 225, 255, .05) 0 1px, transparent 1px 56px);
  transform: perspective(700px) rotateX(58deg) scale(1.5);
  transform-origin: 50% 0;
  mask-image: linear-gradient(#000, transparent 62%);
  -webkit-mask-image: linear-gradient(#000, transparent 62%);
  animation: drift 26s linear infinite;
}
@keyframes drift { to { transform: perspective(700px) rotateX(58deg) scale(1.5) translateY(56px) } }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(24px, 3.4vw, 52px); align-items: start }

.eyebrow { display: flex; align-items: center; gap: 9px; font: 500 12.5px/1.4 var(--mono); color: var(--dim); letter-spacing: .04em; text-transform: lowercase }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lm); box-shadow: 0 0 12px var(--lm); animation: blink 2.2s ease-in-out infinite; flex: none }
@keyframes blink { 50% { opacity: .25 } }

.hero h1 { font-size: clamp(31px, 5.4vw, 60px); font-weight: 800; margin-top: 16px }
.hero h1 .mono { font-size: .92em; color: var(--cy) }
.lede { margin-top: clamp(16px, 2vw, 22px); color: var(--dim); font-size: clamp(15px, 1.25vw, 17.5px); max-width: 56ch }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: clamp(22px, 3vw, 32px); align-items: center }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(26px, 4vw, 40px); max-width: 620px }
.facts div { border-left: 1px solid var(--line-s); padding-left: 12px }
.facts dt { font: 800 clamp(20px, 2.4vw, 27px)/1 var(--mono); color: var(--cy) }
.facts dd { margin-top: 7px; font: 400 12.4px/1.42 var(--sans); color: var(--dim2) }

/* ── simulator ──────────────────────────────────────────────────────────── */
.sim { position: relative }
.sim__chrome {
  border: 1px solid var(--line-s); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(120, 235, 255, .08);
}
.sim__bar {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px;
  border-bottom: 1px solid var(--line); background: rgba(6, 10, 18, .8);
  font: 400 11.5px/1 var(--mono); color: var(--dim2); letter-spacing: .05em;
}
.sim__led { width: 8px; height: 8px; border-radius: 50%; background: var(--mg); box-shadow: 0 0 10px var(--mg) }
.sim__mode { margin-left: auto; color: var(--am) }
.sim__stage { position: relative; aspect-ratio: 4 / 5; background: #04060b }
.sim__stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  touch-action: pan-y;      /* до старта игра не мешает прокрутке страницы */
  cursor: crosshair; outline-offset: -3px;
}
.sim__stage canvas.playing { touch-action: none }
.sim__overlay {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 12px; text-align: center;
  padding: 20px; background: rgba(4, 6, 11, .82); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 47, 135, .3); border-radius: 4px;
}
.sim__overlay[hidden] { display: none }
.sim__verdict { color: var(--mg); font-size: clamp(14px, 2.4vw, 19px); letter-spacing: .1em; text-shadow: 0 0 18px rgba(255, 47, 135, .6) }
.sim__sub { color: var(--dim); font-size: 13.5px; max-width: 34ch; margin-inline: auto }
.sim__sub b { color: var(--cy) }
.sim__ovbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px }
.sim__hud { display: flex; align-items: center; gap: clamp(10px, 2vw, 18px); padding: 11px 13px; border-top: 1px solid var(--line); background: rgba(6, 10, 18, .7); flex-wrap: wrap }
.hud { display: flex; align-items: center; gap: 8px; min-height: 22px }
.hud__k { font-size: 10.5px; color: var(--dim2); text-transform: uppercase; letter-spacing: .1em }
.hud__v { font-size: 13px; color: var(--cy); min-width: 62px }
.hud__bar { width: 74px; height: 5px; border-radius: 3px; background: rgba(120, 200, 255, .13); overflow: hidden; display: block }
.hud__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--cy), var(--lm)); box-shadow: 0 0 10px rgba(53, 225, 255, .8); transition: width .18s linear }
.hud__pips { display: flex; gap: 4px }
.hud__pips i { width: 10px; height: 10px; border: 1px solid var(--line-s); border-radius: 2px; background: rgba(53, 225, 255, .12); display: block; transition: background .2s, box-shadow .2s }
.hud__pips i.on { background: var(--cy); box-shadow: 0 0 10px rgba(53, 225, 255, .75) }
.btn--play { margin-left: auto; color: #041018; border: 0; background: linear-gradient(135deg, var(--lm), #35d9a0); font-weight: 800; text-transform: lowercase }
.btn--play .mono { font-size: 11px }
.sim__hint { margin-top: 11px; font-size: 11.5px; line-height: 1.7; color: var(--dim2) }
.sim__hint b { color: var(--cy); font-weight: 400 }
.kbd {
  display: inline-block; min-width: 17px; padding: 1px 4px; margin-right: 2px; text-align: center;
  border: 1px solid var(--line-s); border-bottom-width: 2px; border-radius: 4px;
  background: rgba(120, 200, 255, .06); color: var(--text); font-family: var(--mono); font-size: 10.5px;
}

/* ── bands & cards ──────────────────────────────────────────────────────── */
.band { padding: clamp(46px, 8vw, 96px) 0; position: relative; scroll-margin-top: 70px }
.band--alt { background: linear-gradient(180deg, rgba(13, 22, 38, .55), rgba(8, 13, 23, .2)); border-block: 1px solid var(--line) }
.sec__h { font-size: clamp(23px, 3.4vw, 38px); font-weight: 800 }
.sec__n { display: inline-block; color: var(--mg); font-size: .52em; vertical-align: .55em; margin-right: 10px; letter-spacing: .12em }
.sec__p { color: var(--dim); max-width: 78ch; margin-top: 14px; font-size: clamp(14.5px, 1.1vw, 16.5px) }
.grid { display: grid; gap: clamp(12px, 1.5vw, 18px) }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(26px, 3.4vw, 40px) }
.card {
  position: relative; padding: clamp(18px, 1.7vw, 24px); border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(13, 22, 38, .8), rgba(8, 13, 23, .5));
  overflow: hidden; transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cy), transparent); opacity: .25; transition: opacity .22s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(60, 225, 255, .34); box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .95) }
.card:hover::before { opacity: .9 }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 9px }
.card p { color: var(--dim); font-size: 14px; line-height: 1.6 }
.card p .mono, .node p .mono, .steps .mono { color: var(--cy); font-size: .95em }

/* transport matrix */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 18px); margin-top: clamp(26px, 3.4vw, 40px) }
.node {
  padding: clamp(16px, 1.6vw, 22px); border-radius: var(--r); border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 26, 44, .9), rgba(8, 13, 23, .62)),
    repeating-linear-gradient(135deg, rgba(53, 225, 255, .035) 0 6px, transparent 6px 12px);
  transition: border-color .22s, transform .22s;
}
.node:hover { border-color: rgba(60, 225, 255, .38); transform: translateY(-3px) }
.node__hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.badge {
  font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 5px; color: #041018; background: var(--cy);
}
.node:nth-child(2) .badge { background: var(--lm) }
.node:nth-child(3) .badge { background: var(--am) }
.node:nth-child(4) .badge { background: var(--mg); color: #180209 }
.node h3 { font-size: 15.5px; font-weight: 700 }
.node__proto { margin: 12px 0 10px; font-size: 11.5px; color: var(--am); letter-spacing: .02em; word-break: break-word }
.node p { font-size: 13.5px; color: var(--dim); line-height: 1.58 }
.spec {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 22px;
  margin-top: clamp(24px, 3vw, 34px); padding-top: clamp(20px, 2.6vw, 28px); border-top: 1px dashed var(--line-s);
  font-size: 12.5px; color: var(--dim); line-height: 1.7;
}
.spec li { position: relative; padding-left: 16px }
.spec li::before { content: "▚"; position: absolute; left: 0; color: var(--mg); font-size: 10px }
.spec b { color: var(--cy); font-weight: 400 }

/* connect + trust */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(22px, 3vw, 46px); align-items: start }
.steps { margin-top: clamp(22px, 3vw, 32px); display: grid; gap: 20px }
.steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: start }
.steps li > .mono { font-size: 26px; color: var(--dim2); line-height: 1; padding-top: 2px }
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px }
.steps p { color: var(--dim); font-size: 14.5px }
.inline { color: var(--cy); border-bottom: 1px solid rgba(53, 225, 255, .35) }
.inline:hover { color: #fff; border-color: #fff }
.trust { padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: var(--r); background: rgba(9, 15, 26, .72) }
.trust__t { font-size: 12px; color: var(--mg); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px }
.trust li { position: relative; padding-left: 22px; font-size: 14px; color: var(--dim); line-height: 1.58 }
.trust li + li { margin-top: 13px }
.trust li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border: 1px solid var(--lm); border-radius: 2px; transform: rotate(45deg) }
.trust b { color: #fff }

/* final CTA */
.band--cta {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(53, 225, 255, .14), transparent 60%),
    radial-gradient(70% 110% at 84% 100%, rgba(255, 47, 135, .16), transparent 62%),
    linear-gradient(180deg, #070b13, #05070c);
  border-top: 1px solid var(--line); overflow: clip;
}
.band--cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px);
}
.cta { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 0 }
.cta .eyebrow { justify-content: center }
.cta__h { font-size: clamp(26px, 5vw, 52px); font-weight: 800; margin-top: 16px }
.cta__p { color: var(--dim); margin-top: 14px; font-size: clamp(14.5px, 1.2vw, 17px) }
.cta .btn--mega { margin-top: clamp(26px, 3.4vw, 38px) }
.cta__fine { margin-top: 18px; font-size: 12px; color: var(--dim2); letter-spacing: .06em }

.foot { border-top: 1px solid var(--line); padding: 22px 0 26px }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 12px; color: var(--dim2) }

.noscript { margin: 0 clamp(18px, 4vw, 44px); padding: 12px 16px; border: 1px solid var(--am); border-radius: 10px; color: var(--am); font-size: 13px; background: rgba(255, 180, 84, .07) }
.noscript a { color: #fff }

/* sticky mobile CTA */
.mobilebar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(5, 7, 12, .9); backdrop-filter: blur(12px); border-top: 1px solid var(--line-s) }
.mobilebar .btn { width: 100% }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr }
  .sim { margin-top: 8px }
  .sim__stage { aspect-ratio: 16 / 11 }
  .grid--4, .stack { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .split { grid-template-columns: 1fr }
}
@media (max-width: 860px) {
  .topnav { display: none }
  .topbar__in { min-height: 58px; justify-content: space-between }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
  .facts dd { font-size: 11.4px }
  .cta-row .btn--xl { flex: 1 1 100% }
}
@media (max-width: 660px) {
  body { padding-bottom: 82px }
  .mobilebar { display: block }
  .sim__stage { aspect-ratio: 5 / 6 }
  .sim__hud { gap: 10px }
  .btn--play { margin-left: 0; width: 100%; justify-content: center }
  .hud--cipher { display: none }
}
@media (max-width: 560px) {
  .grid--4, .stack, .spec { grid-template-columns: 1fr }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { grid-column: span 2; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-s); padding-top: 10px }
  .steps li { grid-template-columns: 34px minmax(0, 1fr) }
  .steps li > .mono { font-size: 20px }
  .cta__h br { display: none }
  .hero h1 br { display: none }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important }
}
@media (prefers-contrast: more) {
  :root { --dim: #c3d2e6; --dim2: #a9bace; --line: rgba(90, 235, 255, .34) }
}
