/* ============================================================
   frameless.studio — landing v2 «terminal brutalism»
   Идея: не «стеклянный SaaS», а терминал разработчика:
   плоские цвета, моно-типографика, жёсткая сетка, ноль скруглений.
   ============================================================ */
/* Тема по умолчанию — авто: JS ниже ставит html[data-theme] из prefers-color-scheme,
   а :root (без data-theme) — тёмный fallback без мигания. */
:root {
  --bg: #050505;
  --ink: #e8e8e3;
  --dim: #6f6f68;
  --faint: #3a3a36;
  --line: #1e1e1c;
  --panel: #0a0a09;
  --panel-2: #070706;
  --overlay: rgba(5, 5, 5, 0.92);
  --lime: #c8f542;
  --lime-dim: rgba(200, 245, 66, .14);
  --lime-ink: #0c0c00;
  --red: #ff5f56;
  --warn: #fbbf24;
  --ok: #7ef29a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

/* ---------- светлая тема ---------- */
html[data-theme="light"] {
  --bg: #f4f4ef;
  --ink: #161613;
  --dim: #63635b;
  --faint: #c6c6bd;
  --line: #dcdcd4;
  --panel: #ffffff;
  --panel-2: #fafaf6;
  --overlay: rgba(244, 244, 239, 0.92);
  --lime: #5f7f00;
  --lime-dim: rgba(95, 127, 0, 0.09);
  --lime-ink: #ffffff;
  --red: #d64541;
  --warn: #b07d0a;
  --ok: #1d8a4b;
}
html[data-theme="light"] ::selection { background: var(--ink); color: var(--bg); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea,
[contenteditable] {
  user-select: text;
  -webkit-user-select: text;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

.mono {
  font-family: var(--mono);
}

.accent {
  color: var(--lime);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 820px;
}

/* ---------- фон: сетка + зерно ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  opacity: .55;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
/* зернистое лаймовое свечение из центра */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 50% 34%, rgba(200, 245, 66, 0.1), transparent 70%),
    radial-gradient(ellipse 30% 22% at 50% 34%, rgba(200, 245, 66, 0.07), transparent 75%);
}
.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.96 0 0 0 0 0.26 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: .05;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -8%);
  }
  20% {
    transform: translate(-13%, 3%);
  }
  30% {
    transform: translate(7%, -25%);
  }
  40% {
    transform: translate(-5%, 25%);
  }
  50% {
    transform: translate(-13%, 10%);
  }
  60% {
    transform: translate(13%, 0);
  }
  70% {
    transform: translate(0, 10%);
  }
  80% {
    transform: translate(3%, 30%);
  }
  90% {
    transform: translate(-8%, 8%);
  }
}

.nav,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- reveal-анимации при скролле ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- бегущая строка ---------- */
.ticker {
  margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 13px 0; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-track span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); }
.ticker-track i { color: var(--lime); font-size: 9px; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- сканлайн в мокапе ---------- */
.mock { overflow: hidden; }
.mock-scanline {
  position: absolute; inset: 0; pointer-events: none;
  contain: strict;
  will-change: transform;
  background: linear-gradient(180deg, transparent 0%, rgba(200,245,66,.06) 48%, rgba(200,245,66,.12) 50%, rgba(200,245,66,.06) 52%, transparent 100%);
  background-size: 100% 220%;
  animation: scan 6s linear infinite;
}
@keyframes scan { from { transform: translateY(-55%); } to { transform: translateY(55%); } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

/* логотип вместо зелёного квадрата: белый для тёмной темы, чёрный — для светлой */
.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
}

.brand-mark img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), filter .25s;
  filter: drop-shadow(0 0 6px rgba(200, 245, 66, .35));
}

.brand-mark .logo-light { display: none; }
html[data-theme="light"] .brand-mark .logo-dark { display: none; }
html[data-theme="light"] .brand-mark .logo-light { display: block; filter: none; }

.brand:hover .brand-mark img {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(200, 245, 66, .65));
}
html[data-theme="light"] .brand:hover .brand-mark img { filter: none; }

.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand .brand-text { font-size: 16px; }

.brand-text {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
}

.brand-text i {
  color: var(--dim);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 12.5px;
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--lime);
}

.nav.scrolled {
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}

/* прогресс прокрутки под навигацией */
.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--lime);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 0 8px var(--lime);
}

.nav-gh {
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  font-family: var(--mono);
  transition: border-color .15s, background-color .15s;
}

.nav-gh:hover {
  border-color: var(--lime);
  background: var(--lime-dim);
}

/* переключатель темы */
.nav-theme { cursor: pointer; gap: 8px; color: var(--dim); }
.tico { color: var(--lime); flex: none; }
.tico-auto, .tico-dark, .tico-light { display: none; }
.mode-auto .tico-auto { display: block; }
.mode-dark .tico-dark { display: block; }
.mode-light .tico-light { display: block; }
.theme-lbl { font-size: 11.5px; letter-spacing: .08em; }
.nav-theme:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav-links a:not(.nav-gh) {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 150px 0 30px;
}

.hero-tag {
  color: var(--dim);
  font-size: 12.5px;
  margin-bottom: 26px;
}

.hero-tag::before {
  content: "» ";
  color: var(--lime);
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(54px, 9vw, 118px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  text-transform: lowercase;
}

.hero-title .line {
  display: block;
}

.line-accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.cursor {
  color: var(--lime);
  -webkit-text-stroke: 0;
  font-weight: 400;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-sub {
  margin-top: 30px;
  max-width: 560px;
  color: var(--dim);
  font-size: 17.5px;
}

.hero-sub b {
  color: var(--ink);
  font-weight: 550;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* на мобилке кнопки одинаковой ширины: скачать — первая */
@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions > * {
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
  }
  .hero-actions .btn-text {
    align-items: center;
  }
}

.hero-meta {
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--ink);
}

.meta-dim {
  color: var(--faint);
}

/* ---------- кнопки ---------- */
.btn-primary {
  display: inline-flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--lime);
  transition: box-shadow .2s, transform .1s, background .15s;
  cursor: pointer;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.btn-ico {
  flex: none;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.btn-primary:hover .btn-ico {
  transform: translateY(2px);
}

/* блик, пробегающий по кнопке при наведении */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform .7s ease;
}

.btn-primary .btn-label {
  font-weight: 750;
  font-size: 15.5px;
  letter-spacing: .01em;
}

.btn-primary .btn-info {
  font-size: 11.5px;
  opacity: .72;
}

.btn-primary:hover {
  box-shadow: 0 0 34px rgba(200, 245, 66, .4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary.big {
  padding: 18px 30px;
  min-width: 260px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 14px 22px;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  font-family: var(--mono);
}

.btn-ghost:hover {
  color: var(--lime);
  border-color: rgba(200, 245, 66, .45);
}

/* ---------- мокап ---------- */
.mock-wrap {
  position: relative;
  margin-top: 80px;
}

.mock-glow {
  position: absolute;
  inset: auto -10% -25% -10%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(200, 245, 66, .13), transparent 75%);
  filter: blur(30px);
  pointer-events: none;
}

.mock {
  position: relative;
  border: 1px solid var(--faint);
  background: var(--panel);
  box-shadow: 14px 14px 0 0 rgba(200, 245, 66, .09);
}

.mock-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.mb-title {
  font-size: 12px;
  color: var(--dim);
}

.mb-btns {
  display: flex;
  gap: 14px;
  color: var(--faint);
  font-size: 12px;
}

.mb-btns i:last-child {
  color: var(--red);
}

.mock-omnibox {
  margin: 14px 16px 0;
  padding: 9px 14px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
  background: var(--panel);
}

.mb-lock {
  color: var(--lime);
}

.mock-body {
  padding: 42px 40px 46px;
}

.mock-hero {
  font-size: clamp(15px, 2.2vw, 21px);
  color: var(--dim);
}

.mock-prompt {
  color: var(--lime);
}

.mock-type {
  color: var(--ink);
}

.tcur {
  color: var(--lime);
  animation: blink 1s steps(1) infinite;
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.tile {
  height: 82px;
  border: 1px solid var(--line);
  position: relative;
  will-change: transform;
  backface-visibility: hidden;
  transition: border-color .25s ease, background-color .25s ease;
}

.tile .t-ico {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--dim);
  transition: color .2s, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.tile:hover .t-ico {
  transform: scale(1.12);
}

.tile .t-lbl {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 11px;
  color: var(--dim);
}

.tile:hover {
  border-color: var(--lime);
  background: var(--lime-dim);
}

.tile:hover .t-ico {
  color: var(--lime);
}

.mock-lines {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.mock-lines span {
  height: 9px;
  width: var(--w, 60%);
  background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 12px);
}

.mock-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim);
}

.mock-statusbar span:first-child {
  color: var(--ok);
}

.mock-statusbar span:last-child {
  color: var(--lime);
}

/* ---------- секции ---------- */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 54px;
}

.sec-num {
  font-size: 13px;
  color: var(--lime);
  border: 1px solid rgba(200, 245, 66, .35);
  padding: 4px 10px;
}

h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: lowercase;
  line-height: 1;
}

/* ---------- features: строки-таблица ---------- */
.feat-list {
  border-top: 1px solid var(--line);
}

.feat {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 30px 18px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
  position: relative;
}

.feat:hover {
  background: rgba(200, 245, 66, .045);
}

.feat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--lime);
  transform: scaleY(0);
  transition: transform .2s;
  transform-origin: top;
}

.feat:hover::before {
  transform: scaleY(1);
}

/* иконка фичи в рамке + маленький номер в углу */
.feat-ico {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--dim);
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}

.feat-ico svg {
  width: 22px;
  height: 22px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.feat:hover .feat-ico {
  color: var(--lime);
  border-color: var(--lime);
  background: var(--lime-dim);
  box-shadow: 4px 4px 0 0 var(--lime-dim);
}

.feat:hover .feat-ico svg {
  transform: scale(1.1);
}

.feat-idx {
  position: absolute;
  top: -8px;
  right: -10px;
  padding: 0 4px;
  background: var(--bg);
  line-height: 1.3;
  color: var(--faint);
  font-size: 10.5px;
  transition: color .18s;
}

.feat:hover .feat-idx {
  color: var(--lime);
}

.feat-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: -.01em;
}

.feat-body p {
  color: var(--dim);
  font-size: 14.5px;
  max-width: 640px;
}

.feat-tag {
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 3px 9px;
  transition: color .18s, border-color .18s;
}

.feat:hover .feat-tag {
  color: var(--lime);
  border-color: rgba(200, 245, 66, .4);
}

@media (max-width: 640px) {
  .feat {
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding: 26px 12px;
  }

  .feat-tag {
    display: none;
  }
}

/* ---------- скриншоты: журнальная сетка ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

.shot {
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .2s;
}

.shot:hover {
  border-color: rgba(200, 245, 66, .4);
}

.shot-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  display: flex;
}

.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot.empty .shot-img {
  align-items: center;
  justify-content: center;
}

.shot-empty {
  text-align: center;
  color: var(--faint);
  padding: 20px;
}

.shot-empty span {
  display: block;
  color: var(--dim);
  font-size: 12.5px;
  margin-bottom: 8px;
}

.shot-empty em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--faint);
}

.shot-cap {
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}

/* ---------- установка ---------- */
.install-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}

.step {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--line);
}

.step:first-child {
  padding-top: 0;
}

.step-marker {
  color: var(--lime);
  font-size: 14px;
  padding-top: 2px;
}

.step h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin-bottom: 5px;
}

.step p {
  color: var(--dim);
  font-size: 14px;
}

.step code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--lime);
  background: var(--lime-dim);
  padding: 1px 7px;
}

.install-side {
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--panel);
  position: sticky;
  top: 90px;
}

.side-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.9;
}

.side-os {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------- tech ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.kv {
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-row span {
  color: var(--dim);
}

.kv-row b {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}

.status {
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.st-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
}

.status.checking .st-dot {
  background: var(--warn);
  animation: pulse 1s ease-in-out infinite;
}

.status.ok .st-dot {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(126, 242, 154, .7);
}

.status.warn .st-dot {
  background: var(--warn);
  box-shadow: 0 0 10px rgba(251, 191, 36, .6);
}

.status.error .st-dot {
  background: var(--red);
}

@keyframes pulse {
  50% {
    opacity: .3;
  }
}

.status.ok {
  color: var(--ok);
}

.status.warn {
  color: var(--warn);
}

.status.error {
  color: var(--red);
}

.tech-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-actions .btn-ghost {
  padding: 10px 15px;
  font-size: 12.5px;
}

.whats-new {
  margin-top: 26px;
  border-left: 2px solid var(--lime);
  padding: 4px 0 4px 18px;
}

.wn-head {
  font-size: 12.5px;
  color: var(--lime);
  margin-bottom: 10px;
}

.whats-new pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  color: #b9b9b0;
  line-height: 1.8;
  max-height: 230px;
  overflow: auto;
}

.term {
  border: 1px solid var(--faint);
  background: var(--panel-2);
  position: sticky;
  top: 90px;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}

.tdot {
  width: 9px;
  height: 9px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(200, 245, 66, .6);
}

.term pre {
  padding: 20px 22px;
  font-size: 12px;
  line-height: 1.8;
  color: #a8a8a0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 440px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}

/* ---------- faq ---------- */
.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 14.5px;
  color: var(--ink);
  transition: color .15s;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa-mark {
  color: var(--faint);
  font-size: 17px;
  transition: color .15s, transform .2s;
}

.qa:hover summary {
  color: var(--lime);
}

.qa[open] .qa-mark {
  color: var(--lime);
  transform: rotate(45deg);
}

.qa p {
  padding: 0 6px 22px;
  color: var(--dim);
  font-size: 14px;
  max-width: 680px;
}

.qa code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--lime);
}

/* ---------- лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: var(--overlay);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 40px;
  opacity: 0; transition: opacity .25s;
}
.lightbox.show { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { max-width: min(1200px, 92vw); text-align: center; }
.lb-stage img {
  max-width: 100%; max-height: 80vh; display: block; margin: 0 auto;
  border: 1px solid var(--faint); box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.lb-cap { margin-top: 14px; font-size: 12px; color: var(--dim); }
.lb-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: 1px solid var(--line); color: var(--dim);
  padding: 8px 16px; cursor: pointer; font-size: 12.5px; transition: color .15s, border-color .15s;
}
.lb-close:hover { color: var(--lime); border-color: var(--lime); }
.lb-nav {
  background: none; border: 1px solid var(--line); color: var(--dim);
  width: 52px; height: 52px; font-size: 20px; cursor: pointer; flex: none;
  transition: color .15s, border-color .15s;
}
.lb-nav:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 46px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
}

.footer-links a {
  color: var(--dim);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-links span {
  color: var(--faint);
}

.footer-meta {
  color: var(--faint);
  font-size: 11.5px;
}

.footer-copy {
  color: var(--faint);
  font-size: 11.5px;
}

/* ============================================================
   polish
   ============================================================ */

/* доступность: видимый фокус для клавиатуры */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 3px;
}

/* скроллбар страницы в стиле терминала */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--faint) var(--bg);
}

/* цифры фич: при hover фон под номером совпадает с подсветкой строки */
.feat:hover .feat-idx { color: var(--lime); }

/* hero: лёгкое заполнение контурной строки при наведении */
.line-accent {
  background: linear-gradient(90deg, var(--lime), var(--lime)) no-repeat 0 100% / 0 100%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size .9s cubic-bezier(.16, 1, .3, 1);
}
.hero-title:hover .line-accent { background-size: 100% 100%; }

/* мокап: на узких экранах плитки 2×2 */
@media (max-width: 640px) {
  .mock-tiles { grid-template-columns: repeat(2, 1fr); }
  .mock-body { padding: 30px 20px 34px; }
  .mock-statusbar span:nth-child(2) { display: none; }
  .hero { padding-top: 120px; }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    font-size: 12px;
  }
  .hero-meta .meta-dim { flex: none; }
  /* на мобилке у скачивания две строки — сдвигаем иконку к центру второй */
  .hero-actions .btn-primary .btn-ico {
    align-self: center;
  }
  .section { padding: 90px 0; }
  .btn-primary.big { min-width: 0; width: 100%; }
}

/* скриншоты — подсказка, что можно открыть */
.shot:not(.empty) .shot-img { cursor: zoom-in; }
.shot-img img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.shot:hover .shot-img img { transform: scale(1.03); }

/* ---------- светлая тема: убрать захардкоженные «тёмные» цвета ---------- */
html[data-theme="light"] .bg-glow {
  background: radial-gradient(ellipse 55% 42% at 50% 34%, rgba(95, 127, 0, .07), transparent 70%);
}
html[data-theme="light"] .bg-glow::after { display: none; }
html[data-theme="light"] .bg-grid { opacity: .8; }
html[data-theme="light"] .mock { box-shadow: 14px 14px 0 0 rgba(95, 127, 0, .1); }
html[data-theme="light"] .mock-scanline { opacity: .5; }
html[data-theme="light"] .btn-primary:hover { box-shadow: 0 10px 28px -8px rgba(95, 127, 0, .55); }
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .shot:hover,
html[data-theme="light"] .feat:hover .feat-tag { border-color: rgba(95, 127, 0, .5); }
html[data-theme="light"] .sec-num { border-color: rgba(95, 127, 0, .4); }
html[data-theme="light"] .feat:hover { background: rgba(95, 127, 0, .04); }
html[data-theme="light"] .whats-new pre,
html[data-theme="light"] .term pre { color: var(--dim); }
html[data-theme="light"] .nav.scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35); }
html[data-theme="light"] .lb-stage img { box-shadow: 0 30px 90px rgba(0, 0, 0, .2); }

/* ---------- меньше движения — по системной настройке ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
