/* Сторінка /platform/ — темна, у токенах дизайн-системи Proboot (тема .dark з apps/web/src/index.css):
   чорне тло, металевий градієнт логотипа для акцентних слів, сталевий функціональний акцент для точок
   і смуг, кнопки з радіусом 4px. Не залежить від стилів головного лендингу. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-Variable-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-Variable-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-Variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PlexMono-Regular-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PlexMono-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #030303;
  --surface: #0c0c0c;
  --surface-2: #181818;
  --line: #262626;
  --line-soft: #161616;
  --text: #f2f2f2;
  --dim: #8a8a8a;
  --accent: rgb(107 143 181);
  --accent-rgb: 107 143 181;
  --metal: linear-gradient(135deg, #ffffff 0%, #9a9a9a 45%, #e8e8e8 100%);
  --btn-bg: #e6e6e6;
  --btn-fg: #181818;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
}

.wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-wide {
  max-width: 1360px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

/* ── Типографіка ─────────────────────────────────────────────────── */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 7.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 15px;
  letter-spacing: 0.01em;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 0.08em;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.label i,
.top-nav i {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgb(var(--accent-rgb) / 0.9);
}

.label-c {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--dim);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* ── Кнопки ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--btn-bg);
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.btn-light {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-light:hover {
  background: var(--btn-fg);
  color: var(--btn-bg);
}

.btn-line {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-line:hover {
  border-color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.meta {
  margin: 18px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Шапка ───────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgb(3 3 3 / 0.82);
  backdrop-filter: blur(10px);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.top-nav {
  display: none;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-left: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  text-decoration: none;
}

.top-nav a:first-child {
  border-left: 0;
  background: var(--surface-2);
  color: var(--text);
}

.top-nav a:hover {
  color: var(--text);
}

.top .btn {
  margin-left: auto;
}

@media (min-width: 860px) {
  .top-nav {
    display: flex;
  }
  .top .btn {
    margin-left: 0;
  }
}

/* ── Перший екран ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: radial-gradient(ellipse 60% 70% at 72% 100%, rgb(var(--accent-rgb) / 0.16), transparent 70%);
  pointer-events: none;
}

.matrix {
  position: absolute;
  top: 0;
  right: -6%;
  width: 72%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.hero-frag {
  position: relative;
  justify-self: end;
  padding-top: 56px;
  width: min(100%, 430px);
}

@media (min-width: 980px) {
  .hero-in {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
  .hero-frag {
    margin-bottom: -20px;
  }
}

@media (max-width: 979px) {
  .matrix {
    width: 120%;
    right: -40%;
    opacity: 0.45;
  }
}

.wire {
  display: block;
  margin: 0 auto;
  width: 1px;
  border-left: 1px dashed rgb(var(--accent-rgb) / 0.6);
}

.wire-down {
  height: 64px;
  position: relative;
}

.wire-down::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ── Тікер ───────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker span {
  padding: 12px 22px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: '•';
  margin-left: 44px;
  color: var(--accent);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ── Проблема ────────────────────────────────────────────────────── */
.problem {
  padding: clamp(72px, 10vw, 140px) 0;
}

.problem-text {
  max-width: 420px;
}

.problem-text p:not(.label) {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
  font-size: 16px;
}

.solutions {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .solutions {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 72px;
    padding-top: 40px;
  }
  .solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16%;
    right: 16%;
    border-top: 1px dashed rgb(var(--accent-rgb) / 0.5);
  }
  .sol::before {
    content: '';
    position: absolute;
    top: -41px;
    left: 50%;
    height: 40px;
    border-left: 1px dashed rgb(var(--accent-rgb) / 0.5);
  }
  .sol:nth-child(2) {
    margin-top: 56px;
  }
  .sol:nth-child(2)::before {
    top: -97px;
    height: 96px;
  }
}

.sol {
  position: relative;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.sol .label {
  margin-bottom: 26px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--text);
}

.sol p:not(.label) {
  margin: 8px 0 22px;
  color: var(--dim);
  font-size: 14px;
}

span.bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

span.bar span {
  display: block;
  height: 100%;
  background: var(--metal);
}

.bar-55 {
  width: 55%;
}
.bar-70 {
  width: 70%;
}
.bar-85 {
  width: 85%;
}

/* ── Можливості ──────────────────────────────────────────────────── */
.feat {
  display: grid;
  gap: 40px;
  padding: clamp(64px, 8vw, 110px) 0;
  border-top: 1px solid var(--line-soft);
  align-items: center;
}

.feat-copy > p:not(.label) {
  max-width: 420px;
  margin: 24px 0 28px;
  color: var(--dim);
}

.feat-frag {
  position: relative;
  padding-top: 56px;
}

.feat-frag::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, rgb(var(--accent-rgb) / 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

@media (min-width: 900px) {
  .feat {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .feat-rev .feat-copy {
    order: 2;
  }
}

/* ── Фрагменти інтерфейсу ────────────────────────────────────────── */
.frag {
  position: relative;
}

.pb-app.pb-frag {
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
  background: transparent;
}

.fcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.9);
}

.fcard-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.fcard-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.fcard-head .pb-mono {
  margin-left: auto;
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fcard-body {
  padding: 16px;
}

.fcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.frag .pb-size-edit {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.frag .pb-size-cell {
  padding: 8px 4px;
}

.frag-mini-sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.frag-mini-sizes .pb-sz {
  width: auto;
  height: 42px;
}

.frag-mini-sizes .pb-sz b {
  font-size: 14px;
}

.frag-float {
  position: absolute;
  z-index: 2;
}

.frag-badge {
  right: 16px;
  top: -62px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.9);
}

.frag-badge::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  height: 14px;
  border-left: 1px dashed rgb(var(--accent-rgb) / 0.6);
}

.frag-badge b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.frag-badge small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.frag .pb-steps {
  margin-bottom: 16px;
}

.frag .pb-step {
  font-size: 11px;
}

.frag .pb-step-line {
  margin: 0 6px;
  min-width: 8px;
}

.frag-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.frag-kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 12px;
  margin-top: 14px;
  font-size: 13px;
}

.frag-kv dt {
  color: var(--dim);
}

.frag-kv dd {
  margin: 0;
}

.frag-inline {
  margin: 20px 0;
}

/* ── Цифри ───────────────────────────────────────────────────────── */
.stats {
  padding: 0 0 clamp(72px, 9vw, 120px);
}

.stats-in {
  display: grid;
  gap: 0;
}

.stat {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 120px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  margin-top: -1px;
  background: var(--surface);
}

.stat .label {
  position: absolute;
  top: 14px;
  left: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.stat::before {
  content: '';
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 12px;
  height: 34px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px);
}

.stat::after {
  content: '';
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.stat b {
  margin-left: auto;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

@media (min-width: 760px) {
  .stats-in {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    margin-top: 0;
    margin-left: -1px;
  }
}

/* ── Живе демо ───────────────────────────────────────────────────── */
.demo-sec {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
}

.demo-sec::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: radial-gradient(ellipse 55% 60% at 50% 100%, rgb(var(--accent-rgb) / 0.14), transparent 70%);
  pointer-events: none;
}

.demo-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
  text-align: center;
}

.demo-head > p:not(.label) {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--dim);
}

.demo {
  position: relative;
  z-index: 1;
}

.demo-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(var(--accent-rgb) / 0.08);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.demo-url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 12px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-full {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--dim);
  cursor: pointer;
}

.demo-full:hover {
  background: var(--surface-2);
  color: var(--text);
}

.demo-full svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-viewport {
  position: relative;
  overflow: hidden;
}

.demo-viewport > .pb-app {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

.demo-tip {
  display: none;
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  .demo-tip {
    display: block;
  }
}

.demo.is-full {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgb(0 0 0 / 0.8);
}

.demo.is-full .demo-tip {
  display: none;
}

body.has-full {
  overflow: hidden;
}

/* ── Режими ──────────────────────────────────────────────────────── */
.modes {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line-soft);
}

.modes-head {
  margin-bottom: 48px;
}

.mode-grid {
  display: grid;
  gap: 20px;
  align-items: end;
}

@media (min-width: 900px) {
  .mode-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 28px;
  }
}

.mode {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.mode-hi {
  border-color: rgb(var(--accent-rgb) / 0.45);
  box-shadow: 0 30px 70px -40px rgb(var(--accent-rgb) / 0.55);
}

.mode-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mode-top h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

.mode-top .label {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  white-space: nowrap;
}

.mode > p {
  max-width: 460px;
  margin: 14px 0 auto;
  color: var(--dim);
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}

.tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Заклик і підвал ─────────────────────────────────────────────── */
.cta {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.cta h2 {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
}

.cta p:not(.label) {
  max-width: 520px;
  margin: 26px auto 34px;
  color: var(--dim);
}

.foot {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ticker-track {
    animation: none;
  }
}

/* ── Вузькі екрани ───────────────────────────────────────────────── */
.feat,
.hero-in {
  grid-template-columns: minmax(0, 1fr);
}

.feat > *,
.hero-in > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .feat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 980px) {
  .hero-in {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

@media (max-width: 560px) {
  .frag .pb-step:not(.is-current) {
    gap: 0;
    font-size: 0;
  }
  .frag .pb-stepper {
    gap: 2px;
  }
  .frag .pb-stepper button {
    width: 18px;
    height: 18px;
  }
  .frag .pb-stepper b {
    min-width: 12px;
    font-size: 14px;
  }
  .frag .pb-size-edit {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .frag .pb-size-cell {
    padding: 6px 2px;
  }
  .fcard-body {
    padding: 12px;
  }
  .fcard-head .pb-mono {
    display: none;
  }
}
