:root {
  color-scheme: dark;
  --bg: #070a10;
  --bg2: #0c111c;
  --pane: rgba(16, 22, 34, 0.78);
  --pane2: rgba(22, 30, 46, 0.92);
  --line: rgba(140, 170, 210, 0.14);
  --fg: #eef3fb;
  --mut: #93a0b5;
  --dim: #6d7b91;
  --cyan: #3ee0c6;
  --blue: #4aa3ff;
  --win: #78c6ff;
  --and: #3ddc84;
  --warn: #e8b86d;
  --bad: #ff6b7a;
  --ok: #4ade9b;
  --r: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --safe: env(safe-area-inset-bottom, 0px);
  --font: "Segoe UI Variable", "Segoe UI", "Roboto", "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font);
  -webkit-tap-highlight-color: transparent;
}
body { min-height: 100dvh; }
a { color: var(--blue); text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; background: #000; padding: 8px; z-index: 9; }

.bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(62, 224, 198, 0.16), transparent 55%),
    radial-gradient(800px 480px at 110% 0%, rgba(74, 163, 255, 0.18), transparent 50%),
    radial-gradient(700px 500px at 50% 120%, rgba(61, 220, 132, 0.08), transparent),
    linear-gradient(180deg, #070a10, #0a1018 40%, #070a10);
}
.grid3d {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 170, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 170, 220, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(64deg) scale(1.35) translateY(-6%);
  transform-origin: 50% 0;
  opacity: 0.28;
  animation: gridshift 36s linear infinite;
}
@keyframes gridshift {
  to { background-position: 0 48px, 48px 0; }
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; max-width: 1120px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; letter-spacing: 0.04em;
}
.logo {
  width: 36px; height: 36px; border-radius: 10px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 22px rgba(62,224,198,0.18);
}
.word {
  font-weight: 800; letter-spacing: 0.22em; font-size: 14px;
}
.links { display: flex; gap: 16px; }
.links a { color: var(--mut); }
.links a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 650; color: #041018; background: linear-gradient(180deg, #7af0d6, var(--cyan));
  box-shadow: 0 8px 22px rgba(62, 224, 198, 0.22);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.blue { background: linear-gradient(180deg, #7ec0ff, var(--blue)); color: #041018; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hero {
  max-width: 1120px; margin: 0 auto; padding: 18px 18px 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
}
.kicker {
  display: inline-flex; gap: 8px; align-items: center; color: var(--cyan); font-size: 13px; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase;
}
h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.12; margin: 10px 0 12px; letter-spacing: -0.03em; }
.lead { color: var(--mut); font-size: 1.08rem; max-width: 38rem; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.hint { color: var(--dim); font-size: 0.92rem; }

.stage {
  position: relative; height: 420px; perspective: 900px;
}
.phone3d {
  position: absolute; inset: 20px auto auto 18%;
  width: 220px; height: 430px;
  transform: rotateX(8deg) rotateY(-22deg) rotateZ(6deg);
  transform-style: preserve-3d;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  50% { transform: rotateX(10deg) rotateY(-18deg) rotateZ(4deg) translateY(-10px); }
}
.phone {
  height: 100%; border-radius: 28px; padding: 10px;
  background: linear-gradient(160deg, #1b2433, #0b1018);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow), 18px 28px 0 rgba(0,0,0,0.25);
}
.phone .notch {
  width: 78px; height: 10px; margin: 4px auto 10px; border-radius: 8px; background: #05070c;
}
.screen {
  height: calc(100% - 22px); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #101826, #0a1220);
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.srow { display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; }
.live { color: var(--and); font-weight: 700; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tile {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 8px; font-size: 12px; transform: translateZ(18px);
}
.tile b { display: block; font-size: 13px; }
.winbar {
  position: absolute; right: 6%; top: 54px; width: min(280px, 70%);
  background: var(--pane2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); backdrop-filter: blur(18px); padding: 10px 12px 12px;
  transform: rotateX(6deg) rotateY(18deg);
}
.winbar .dots { display: flex; gap: 6px; margin-bottom: 8px; }
.winbar .dots i, .dots i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
}
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.chartwrap { height: 92px; }
canvas.chart { width: 100%; height: 92px; display: block; }

.section { max-width: 1120px; margin: 0 auto; padding: 8px 18px 56px; }
.section h2 { font-size: 1.35rem; margin: 0 0 8px; }
.muted { color: var(--mut); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px;
}
.card, .glass {
  background: var(--pane); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.n {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(74,163,255,0.16); color: var(--win); font-weight: 700; font-size: 13px; margin-bottom: 10px;
}
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.tool {
  min-height: 140px; transform-style: preserve-3d; transition: transform 0.25s ease;
}
.tool:hover { transform: translateY(-4px) rotateX(6deg); }
.tool h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px; background: rgba(62,224,198,0.12); color: var(--cyan);
}
.tag.paid { background: rgba(232,184,109,0.14); color: var(--warn); }

.guide {
  border-left: 3px solid var(--cyan);
  padding: 10px 12px; margin: 0 0 16px;
  background: rgba(62,224,198,0.06); border-radius: 0 12px 12px 0;
  color: var(--mut); font-size: 0.95rem;
}
.guide strong { color: var(--fg); }

footer {
  border-top: 1px solid var(--line); padding: 22px 18px 32px; color: var(--dim); font-size: 0.88rem;
  max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
footer a { color: var(--dim); }

/* account */
.split {
  min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr;
}
.brand-pane {
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(180deg, rgba(12,18,30,0.2), rgba(7,10,16,0.6)),
    radial-gradient(500px 300px at 20% 20%, rgba(62,224,198,0.2), transparent);
}
.brand-pane h1 { max-width: 16ch; }
.form-pane {
  display: grid; place-items: center; padding: 24px 16px 40px;
}
.win {
  width: min(420px, 100%);
  background: var(--pane2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.titlebar b { flex: 1; font-size: 13px; font-weight: 650; color: var(--mut); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; gap: 6px; }
.tab {
  min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--mut); cursor: pointer;
}
.tab.on { background: rgba(74,163,255,0.16); color: var(--fg); }
.form { padding: 8px 16px 18px; display: grid; gap: 10px; }
label { font-size: 13px; color: var(--mut); display: grid; gap: 6px; }
input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0a1018; color: var(--fg); outline: none;
}
input:focus { border-color: rgba(74,163,255,0.7); box-shadow: 0 0 0 3px rgba(74,163,255,0.15); }
.err { color: var(--bad); font-size: 13px; min-height: 1.2em; }
.help { color: var(--dim); font-size: 12px; }

/* workspace */
.desk { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.desk .win { width: auto; flex: 1; display: flex; flex-direction: column; border-radius: 0; border: 0; }
.desk .titlebar { padding: 8px 14px; }
.who { font-size: 12px; color: var(--cyan); }
.shell { flex: 1; display: grid; grid-template-columns: 88px 1fr; min-height: 0; }
.rail {
  border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(8,12,20,0.55);
}
.rail button, .bnav button {
  appearance: none; border: 0; background: transparent; color: var(--mut); cursor: pointer;
  border-radius: 12px; padding: 10px 6px; display: grid; gap: 4px; place-items: center;
  font-size: 11px; font-weight: 650;
}
.rail button.on, .bnav button.on { color: var(--fg); background: rgba(74,163,255,0.14); }
.rail svg, .bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.stage-main {
  overflow: auto; padding: 18px 18px calc(88px + var(--safe));
  -webkit-overflow-scrolling: touch;
}
.view { display: none; max-width: 920px; }
.view.on { display: block; }
.view h1 { font-size: 1.55rem; margin: 0 0 8px; }
.kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0;
}
.kpi .card { padding: 14px; }
.kpi b { font-size: 1.4rem; display: block; }
.iso {
  height: 220px; position: relative; overflow: hidden;
}
.pick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pick button {
  text-align: left; min-height: 108px; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--fg);
}
.pick button[aria-pressed="true"] {
  border-color: rgba(62,224,198,0.7);
  box-shadow: inset 0 0 0 1px rgba(62,224,198,0.4);
  background: rgba(62,224,198,0.08);
}
.tokenbox {
  font-family: ui-monospace, Consolas, monospace; word-break: break-all;
  background: #070b12; padding: 12px; border-radius: 10px; border: 1px dashed var(--line);
}
.list { display: grid; gap: 8px; }
.row {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px;
}
.bnav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  padding: 6px 8px calc(8px + var(--safe));
  background: rgba(10,14,22,0.92); border-top: 1px solid var(--line);
  backdrop-filter: blur(16px); grid-template-columns: repeat(3, 1fr);
}
.fab {
  position: fixed; right: 16px; bottom: calc(72px + var(--safe));
  width: 56px; height: 56px; border-radius: 18px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #7af0d6, var(--cyan)); color: #041018; font-size: 28px;
  box-shadow: 0 12px 28px rgba(62,224,198,0.3); display: none;
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--dim); font-weight: 650; }

.ol { padding-left: 18px; color: var(--mut); }
.ol li { margin: 8px 0; }

@media (max-width: 900px) {
  .hero, .split, .shell, .steps, .tools, .kpi, .pick { grid-template-columns: 1fr; }
  .links { display: none; }
  .stage { height: 280px; margin: 10px 0 0; }
  .phone3d { left: 12%; transform: rotateX(8deg) rotateY(-16deg) scale(0.72); }
  .winbar { right: 4%; top: 18px; }
  .rail { display: none; }
  .bnav { display: grid; }
  .fab { display: grid; place-items: center; }
  .brand-pane { padding: 28px 18px 8px; }
  h1 { font-size: 1.75rem; }
  .desk .stage-main { padding-bottom: calc(96px + var(--safe)); }
}
@media (prefers-reduced-motion: reduce) {
  .grid3d, .phone3d { animation: none; }
}

.center-auth {
  min-height: 100dvh; display: grid; place-items: center; padding: 18px;
}
.center-auth .win { width: min(440px, 100%); }
.tab .tiny { display: block; font-size: 10px; font-weight: 650; color: var(--cyan); letter-spacing: 0.06em; }
.field { display: grid; gap: 6px; }
.field-top { display: flex; justify-content: space-between; gap: 8px; align-items: end; }
.ref {
  font-size: 11px; color: var(--cyan); background: rgba(62,224,198,0.08);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; max-width: 46%;
}
.pw {
  display: grid; grid-template-columns: 1fr 44px; gap: 6px; align-items: center;
}
.eye {
  min-height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: #0a1018; color: var(--mut); cursor: pointer;
}
.seats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px;
}
.seat {
  min-height: 150px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--pane); padding: 14px; text-align: left; color: var(--fg); cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
}
.seat:hover { border-color: rgba(74,163,255,0.5); }
.seat.lock, .seat:disabled { cursor: not-allowed; opacity: 0.85; }
.seat .big { font-size: 1.05rem; margin: 8px 0; }
.lock-ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(232,184,109,0.16); color: var(--warn);
  display: grid; place-items: center; font-size: 14px;
}
.room { max-width: 980px; }
.viewport {
  aspect-ratio: 16/10; border-radius: 16px; border: 1px solid var(--line);
  background:
    radial-gradient(500px 200px at 50% 20%, rgba(74,163,255,0.16), transparent),
    #070b12;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.viewport.mirror {
  background:
    radial-gradient(500px 200px at 50% 80%, rgba(61,220,132,0.14), transparent),
    #070b12;
}
.viewport p { color: var(--mut); text-align: center; padding: 12px; }
.cam-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px;
}
.thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px;
}
.thumb {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); position: relative;
  overflow: hidden; cursor: pointer; background: #121820;
}
.thumb .blur {
  position: absolute; inset: 0; filter: blur(14px) saturate(0.6);
  background: linear-gradient(135deg, #245, #412, #234); transform: scale(1.2);
}
.thumb.photo .blur { background: linear-gradient(135deg, #2a4a5c, #1a2a22, #3a3050); }
.thumb.video .blur { background: linear-gradient(135deg, #3a2030, #1a3048, #243); }
.thumb .mid {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(4,8,14,0.35); color: #fff; font-size: 22px;
}
.thumb.open .blur { filter: blur(0); transform: none; }
.thumb.open .mid { display: none; }
.paybox .addr {
  font-family: ui-monospace, Consolas, monospace; word-break: break-all;
  background: #070b12; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
}
.qrbox { display: grid; place-items: center; padding: 8px; background: #fff; border-radius: 12px; margin: 10px 0; }
.qrbox svg { width: 180px; height: 180px; }
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 20;
  display: grid; place-items: center; padding: 16px;
}
.lightbox .inner {
  width: min(640px, 100%); background: var(--pane2); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px;
}
.nolife, .nodl { user-select: none; -webkit-user-select: none; }
video.nodl { width: 100%; border-radius: 10px; }
.pick .lock-ico { margin-bottom: 8px; }
[hidden] { display: none !important; }
.land-main {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 88px 16px 48px; text-align: center;
}
.mark-lg {
  width: 76px; height: 76px; border-radius: 22px;
  box-shadow: 0 12px 40px rgba(62,224,198,0.22);
}
.land-main h1 {
  font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: 0.2em; margin: 16px 0 6px;
}
.tagline { color: var(--mut); margin: 0 0 22px; font-size: 1.05rem; }
.land-main .win { text-align: left; width: min(420px, 100%); }
.land-bar { position: absolute; left: 0; right: 0; top: 0; }
.eye svg, .lock-ico svg { width: 18px; height: 18px; display: block; margin: auto; }
.lock-ico { width: 32px; height: 32px; }
.eye { display: grid; place-items: center; }
.stat { color: var(--mut); font-size: 14px; margin: 4px 0 12px; }
@media (max-width: 900px) {
  .seats { grid-template-columns: 1fr 1fr; }
  .ref { max-width: 100%; }
  .field-top { flex-direction: column; align-items: stretch; }
}
