/* Стартовый экран QNT1N XR (D-197): по QNT1N-XR-Vector-Kit Антона (20.11) и листу 20 пакета v6.
   Слой поверх редактора: вход в VR/AR — отсюда (нажатие в браузере очков даёт право открыть сеанс).
   D-198 (Антон 20.11): одна продающая страница — попробовать 3 дня, потом подписка; проекты — в меню очков. */
@font-face { font-family: "Inter"; src: url(../fonts/inter-400.ttf); font-weight: 400; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-500.ttf); font-weight: 500; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-600.ttf); font-weight: 600; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-700.ttf); font-weight: 700; }
#start {
  --s-bg: #0b1014; --s-card: #10171c; --s-card2: #131c22; --s-tab: #19232a; --s-line: #26333a; --s-line2: #36444d;
  --s-text: #f0f5f5; --s-muted: #a5b3ba; --s-dim: #74848c; --s-acc: #60ddf4; --s-acc-h: #88e6f9; --s-acc-ink: #0d2027; --s-acc-d: #267e92;
  --s-ok: #6fd8a8; --s-warn: #f2c66d;
  position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  background: var(--s-bg); color: var(--s-text); font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
}
#start[hidden] { display: none; }
#start *, #start *::before, #start *::after { box-sizing: border-box; }
#start button, #start a.st-btn { font: inherit; letter-spacing: inherit; }
#start :focus-visible { outline: 2px solid var(--s-acc); outline-offset: 2px; }
.st-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 48px; }

/* шапка */
.st-top { position: sticky; top: 0; z-index: 2; background: rgba(11, 16, 20, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--s-line2); }
.st-top .st-wrap { display: flex; align-items: center; gap: 24px; height: 88px; }
.st-logo { display: flex; align-items: center; gap: 10px; color: var(--s-text); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; flex: none; }
.st-logo svg { width: 26px; height: 26px; flex: none; }
.st-logo b { font-weight: 700; font-size: 24px; letter-spacing: -0.05em; }
.st-logo i { font-style: normal; font-weight: 600; font-size: 20px; letter-spacing: -0.05em; color: var(--s-acc); margin-left: -6px; }
.st-nav { display: flex; gap: 6px; margin: 0 auto; }
.st-nav button { height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: var(--s-muted); font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.st-nav button:hover { color: var(--s-text); background: var(--s-tab); }
.st-nav button[aria-current="page"] { color: var(--s-acc); background: var(--s-tab); font-weight: 600; }
#start .st-menu { display: none; }

/* кнопки */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 7px; border: 1px solid var(--s-line2);
  background: var(--s-tab); color: var(--s-text); font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.st-btn:hover { border-color: var(--s-acc-d); background: #1d2a31; }
.st-btn svg { width: 22px; height: 22px; flex: none; }
.st-btn.main { background: var(--s-acc); border-color: var(--s-acc); color: var(--s-acc-ink); }
.st-btn.main:hover { background: var(--s-acc-h); border-color: var(--s-acc-h); }
.st-btn.ghost { background: transparent; }
.st-btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.st-btn:disabled { opacity: .45; cursor: not-allowed; }
.st-btn.big { min-height: 64px; padding: 0 26px; font-size: 19px; border-radius: 9px; }
.st-btn.big svg { width: 26px; height: 26px; }

/* страница */
.st-main { flex: 1; padding: 56px 0 0; }
.st-h1 { margin: 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; }
.st-h1 em { display: block; font-style: normal; color: var(--s-acc); }
.st-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--s-muted); font-size: 15px; }
.st-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--s-acc); flex: none; }
.st-h2 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; max-width: 760px; }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.st-sec { padding-top: 104px; scroll-margin-top: 72px; }
.st-sec > .st-h2 { margin-bottom: 40px; }
.st-top .st-head-cta { margin-left: 0; }

/* первый экран */
.st-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; scroll-margin-top: 100px; }
.st-hero p.lead { margin: 22px 0 32px; font-size: 20px; line-height: 1.45; color: #d7e1e4; max-width: 500px; }
.st-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.st-trial { margin: 16px 0 0; color: var(--s-muted); font-size: 15px; }
.st-trial b { color: var(--s-text); font-weight: 600; }
.st-trial.over { color: var(--s-warn); }
.st-own { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding: 14px 16px; max-width: 560px; background: var(--s-card); border: 1px solid var(--s-line2); border-radius: 9px; }
.st-own span { flex: 1 1 160px; min-width: 0; }
.st-own small { display: block; color: var(--s-ok); font-size: 13px; font-weight: 600; }
.st-own b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-state { position: relative; margin: 22px 0 0; padding-left: 18px; color: var(--s-muted); font-size: 14px; max-width: 520px; }
.st-state::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--s-dim); }
.st-state.ok::before { background: var(--s-ok); box-shadow: 0 0 10px rgba(111, 216, 168, .5); }
.st-state.warn::before { background: var(--s-warn); }
.st-state b { color: var(--s-text); font-weight: 600; }
.st-art { position: relative; margin: 0; padding: 18px 10px 48px; overflow: hidden; background: var(--s-card); border: 1px solid var(--s-line2); border-radius: 10px; }
.st-art img { display: block; width: 100%; height: auto; }
.st-art figcaption { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; justify-content: space-between; font-size: 13px; color: var(--s-muted); }
.st-art figcaption b { color: var(--s-text); font-weight: 600; font-size: 15px; }

/* настоящий кадр демо-сцены */
.st-art.st-shot { padding: 0; background: #000; }
.st-art.st-shot figcaption { left: 0; right: 0; bottom: 0; padding: 30px 20px 14px; background: linear-gradient(0deg, rgba(5, 8, 10, .92), rgba(5, 8, 10, 0)); }

/* возможности */
.st-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--s-line2); border: 1px solid var(--s-line2); border-radius: 10px; overflow: hidden; }
.st-feat li { padding: 30px 28px 32px; background: var(--s-card); }
.st-feat svg { width: 30px; height: 30px; color: var(--s-acc); }
.st-feat h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.st-feat h3 em, .st-badge { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--s-acc); border: 1px solid var(--s-acc-d); border-radius: 99px; padding: 2px 9px; }
.st-feat p { margin: 0; color: var(--s-muted); font-size: 15px; line-height: 1.5; }

/* как запустить */
.st-quest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.st-quest .st-art { padding: 52px 30px 34px; }
.st-quest .st-art small { position: absolute; left: 20px; top: 16px; color: var(--s-muted); font-size: 13px; }
.st-steps { list-style: none; margin: 0; padding: 0; }
.st-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 20px 0 24px; border-top: 1px solid var(--s-line2); }
.st-steps li::before { content: attr(data-n); color: var(--s-acc); font: 600 13px/28px "IBM Plex Mono", ui-monospace, monospace; }
.st-steps h3 { margin: 0; font-size: 20px; font-weight: 650; }
.st-steps p { grid-column: 2; margin: 2px 0 0; color: var(--s-muted); font-size: 15px; }
.st-steps .st-btn, .st-steps code { grid-column: 2; justify-self: start; margin-top: 14px; }
.st-steps code { font: 600 17px ui-monospace, monospace; color: var(--s-text); background: var(--s-tab); border: 1px solid var(--s-line2); border-radius: 6px; padding: 8px 12px; }

/* тарифы */
.st-seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--s-line2); border-radius: 7px; flex: none; }
.st-seg button { min-height: 38px; padding: 0 22px; border: 0; border-radius: 5px; background: transparent; color: var(--s-muted); font-weight: 600; cursor: pointer; }
.st-seg button[aria-pressed="true"] { background: var(--s-acc); color: var(--s-acc-ink); }
.st-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-plan { display: flex; flex-direction: column; padding: 28px 30px 30px; background: var(--s-card); border: 1px solid var(--s-line2); border-radius: 10px; }
.st-plan.pro { border-color: var(--s-acc-d); background: linear-gradient(180deg, rgba(96, 221, 244, .07), rgba(96, 221, 244, 0) 46%), var(--s-card); }
.st-plan h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.st-price { display: flex; align-items: baseline; gap: 14px; }
.st-price b { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; }
.st-price span { color: var(--s-muted); }
.st-plan > p { margin: 6px 0 18px; color: var(--s-muted); font-size: 15px; }
.st-plan ul { list-style: none; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid var(--s-line2); flex: 1; }
.st-plan li { display: flex; gap: 10px; padding: 5px 0; font-size: 15px; }
.st-plan li::before { content: ""; width: 12px; height: 7px; margin-top: 6px; flex: none; border: solid var(--s-acc); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.st-plan li.no { color: var(--s-dim); }
.st-plan li.no::before { width: 12px; height: 0; margin-top: 11px; border-width: 0 0 2px; border-color: var(--s-dim); transform: none; }
.st-plan .st-btn { align-self: flex-start; }
.st-note { margin: 18px 0 0; color: var(--s-muted); font-size: 14px; }

/* подвал */
.st-foot { margin-top: 104px; border-top: 1px solid var(--s-line2); }
.st-foot .st-wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; font-size: 13px; color: var(--s-muted); }
.st-foot b { color: var(--s-text); font-weight: 700; letter-spacing: -0.03em; }
.st-foot a { color: var(--s-muted); text-decoration: none; }
.st-foot a:first-of-type { margin-left: auto; }
.st-foot a:hover { color: var(--s-acc); }

/* телефон и узкое окно браузера очков */
@media (max-width: 1020px) {
  .st-nav { display: none; }
  #start .st-menu { display: inline-flex; }
  .st-top .st-head-cta { margin-left: auto; }
  .st-top .st-wrap { height: 68px; gap: 12px; }
  #start.st-open .st-nav { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; padding: 8px 20px 16px; background: var(--s-bg); border-bottom: 1px solid var(--s-line2); }
  #start.st-open .st-nav button { justify-content: flex-start; text-align: left; height: 50px; font-size: 18px; border-top: 1px solid var(--s-line); border-radius: 0; }
  .st-hero, .st-quest { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .st-feat { grid-template-columns: 1fr 1fr; }
  .st-plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .st-wrap { padding: 0 16px; }
  .st-main { padding-top: 28px; }
  .st-sec { padding-top: 72px; }
  .st-hero p.lead { font-size: 17px; margin: 16px 0 22px; }
  .st-cta .st-btn { flex: 1 1 100%; }
  .st-btn.big { min-height: 58px; font-size: 18px; }
  .st-feat { grid-template-columns: minmax(0, 1fr); }
  .st-feat li { padding: 24px 20px; }
  .st-head { flex-direction: column; align-items: flex-start; }
  .st-top .st-head-cta { padding: 0 14px; }
  #start .st-menu { padding: 0; width: 44px; font-size: 0; gap: 0; }
  .st-logo b { font-size: 21px; }
  .st-logo i { font-size: 17px; }
  .st-top .st-wrap { gap: 8px; }
  .st-foot { margin-top: 72px; }
}

#start [hidden] { display: none !important; }

/* живая сцена: карточка чуть поворачивается за курсором, блик идёт за ним */
.st-art.live { perspective: 1100px; }
.st-art.live img { transform: rotateX(var(--st-rx, 0deg)) rotateY(var(--st-ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.st-art.live::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--st-glow, 0); transition: opacity .4s;
  background: radial-gradient(420px circle at var(--st-gx, 50%) var(--st-gy, 40%), rgba(96, 221, 244, .10), transparent 60%); }
@media (prefers-reduced-motion: reduce) { .st-art.live img { transform: none; transition: none; } .st-art.live::before { display: none; } #start { scroll-behavior: auto; } }
#start { scroll-behavior: smooth; }

/* подсказки редактора не всплывают поверх главной */
body:has(#start:not([hidden])) #toast { display: none; }
