:root {
  color-scheme: dark;
  --bg: #07101a;
  --bg-soft: #0b1622;
  --panel: rgba(15, 29, 42, 0.82);
  --panel-strong: rgba(18, 34, 48, 0.96);
  --line: rgba(123, 245, 220, 0.22);
  --text: #edf7ff;
  --muted: #a8b5c5;
  --accent: #29aee8;
  --accent-2: #16d889;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: "Manrope", "IBM Plex Sans", "Segoe UI", sans-serif;
}

body[data-channel="vk"] {
  --accent: #5b8cff;
  --accent-2: #21d59b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(41, 174, 232, 0.18), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(22, 216, 137, 0.13), transparent 28%),
    linear-gradient(180deg, #07101a 0%, #0c141c 55%, #07101a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #041018;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar,
main,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 16, 26, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(34, 230, 190, 0.2);
}

.brand small {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.topnav a,
.topbar__cta,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.topnav a {
  padding: 0 14px;
  color: var(--muted);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topbar__cta {
  padding: 0 18px;
  color: #03120d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch a {
  min-width: 38px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch a.is-active {
  color: #041018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 76px 0 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 16px;
  color: #8ef6d5;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.lead,
.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.actions--compact {
  margin-bottom: 0;
}

.btn {
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--primary {
  color: #03120d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  color: #9fe9ff;
  background: rgba(41, 174, 232, 0.1);
  border-color: rgba(41, 174, 232, 0.3);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.mini-actions span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfe2f0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 800;
}

.channel-card,
.section,
.footer {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(8, 17, 27, 0.92));
  box-shadow: var(--shadow);
}

.channel-card {
  padding: 24px;
}

.chat-bubble {
  width: fit-content;
  max-width: 92%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px 18px 18px 4px;
  color: #dce9f5;
  background: rgba(255, 255, 255, 0.07);
  line-height: 1.45;
}

.chat-bubble--user {
  margin-left: auto;
  border-radius: 18px 18px 4px 18px;
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #b8fff0);
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.section {
  margin: 22px 0;
  padding: clamp(24px, 4vw, 42px);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.compact {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid rgba(123, 245, 220, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.card p,
.compact p,
.footer p,
.faq-list p,
.check-list {
  color: var(--muted);
  line-height: 1.55;
}

.screenshots-section {
  overflow: hidden;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.screenshot-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(123, 245, 220, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 24% 0%, rgba(41, 174, 232, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.screenshot-card__link {
  position: relative;
  display: block;
  color: inherit;
}

.screenshot-card__media {
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(14, 27, 41, 0.96), rgba(5, 13, 22, 0.98));
  transition: border-color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.screenshot-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.screenshot-card__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(123, 245, 220, 0.32);
  border-radius: 999px;
  background: rgba(5, 13, 22, 0.82);
  color: #dce9f5;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.screenshot-card__link:hover .screenshot-card__media,
.screenshot-card__link:focus-visible .screenshot-card__media {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.screenshot-card__link:hover .screenshot-card__hint,
.screenshot-card__link:focus-visible .screenshot-card__hint {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-card figcaption {
  margin-top: 12px;
  color: #dce9f5;
  font-weight: 900;
}

body.has-screenshot-lightbox {
  overflow: hidden;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.screenshot-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.screenshot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(0, 209, 255, 0.18), transparent 32%),
    rgba(1, 6, 12, 0.9);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.screenshot-lightbox__panel {
  position: relative;
  width: fit-content;
  max-width: min(620px, calc(100vw - 24px));
  max-height: 90vh;
  padding: 12px;
  border: 1px solid rgba(123, 245, 220, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(123, 245, 220, 0.16), transparent 34%),
    rgba(8, 15, 24, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.screenshot-lightbox__toolbar,
.screenshot-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.screenshot-lightbox__toolbar {
  justify-content: space-between;
  margin-bottom: 10px;
}

.screenshot-lightbox__caption {
  margin: 0;
  color: #e8f2fa;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-lightbox__original,
.screenshot-lightbox__close {
  border: 1px solid rgba(123, 245, 220, 0.32);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8f2fa;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.screenshot-lightbox__close {
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.22), rgba(0, 255, 133, 0.2));
}

.screenshot-lightbox__image-wrap {
  display: grid;
  place-items: center;
  max-height: min(760px, calc(90vh - 96px));
  overflow: hidden;
  border-radius: 18px;
}

.screenshot-lightbox__image {
  display: block;
  width: auto;
  max-width: min(440px, calc(100vw - 56px));
  max-height: min(760px, calc(90vh - 96px));
  border-radius: 18px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.22);
}

.screenshot-lightbox__hint {
  margin: 8px 0 0;
  color: #9aa9b8;
  font-size: 12px;
  text-align: center;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.ecosystem-bridge {
  overflow: hidden;
}

.ecosystem-bridge__intro {
  max-width: 820px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.ecosystem-card,
.ecosystem-strip {
  border: 1px solid rgba(123, 245, 220, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(41, 174, 232, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.ecosystem-card:hover,
.ecosystem-card:focus-visible,
.ecosystem-strip:hover,
.ecosystem-strip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(123, 245, 220, 0.42);
  background:
    radial-gradient(circle at 18% 0%, rgba(41, 174, 232, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.07);
}

.ecosystem-card {
  min-height: 228px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.ecosystem-card__logo {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(123, 245, 220, 0.24);
  border-radius: 18px;
  background: rgba(3, 18, 13, 0.46);
  box-shadow: 0 0 28px rgba(41, 174, 232, 0.16);
}

.ecosystem-card__logo--wide {
  width: 118px;
  height: 64px;
}

.ecosystem-card__logo img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.ecosystem-card h3 {
  margin-bottom: 0;
}

.ecosystem-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.ecosystem-card__cta {
  width: fit-content;
  margin-top: auto;
  color: #9fe9ff;
  font-weight: 900;
}

.ecosystem-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
}

.ecosystem-strip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.ecosystem-strip em {
  color: #9fe9ff;
  font-style: normal;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid rgba(123, 245, 220, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 28px;
  padding: 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
  max-width: 620px;
}

.footer a {
  color: #9fe9ff;
  font-weight: 800;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .topnav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .topbar__cta {
    margin-left: auto;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero,
  .section--split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  main,
  .footer {
    width: min(100% - 20px, 1120px);
  }

  .topbar {
    position: static;
    top: auto;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand small,
  .topnav {
    display: none;
  }

  .topbar__cta,
  .btn {
    width: 100%;
  }

  .lang-switch {
    width: auto;
    min-width: 132px;
    margin-left: auto;
  }

  .lang-switch a {
    flex: 1;
  }

  .hero {
    padding-top: 26px;
  }

  h1 {
    font-size: 44px;
  }

  .lead,
  .section-lead {
    font-size: 17px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card__hint {
    opacity: 1;
    transform: none;
  }

  .screenshot-lightbox {
    padding: 10px;
  }

  .screenshot-lightbox__panel {
    max-height: 94vh;
    padding: 12px;
    border-radius: 22px;
  }

  .screenshot-lightbox__toolbar,
  .screenshot-lightbox__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .screenshot-lightbox__caption {
    text-align: center;
  }

  .screenshot-lightbox__original,
  .screenshot-lightbox__close {
    text-align: center;
  }

  .screenshot-lightbox__image-wrap {
    max-height: calc(94vh - 190px);
  }

  .screenshot-lightbox__image {
    max-height: calc(94vh - 205px);
  }

  .card {
    min-height: unset;
  }

  .ecosystem-card {
    min-height: unset;
  }

  .ecosystem-strip {
    gap: 10px;
  }

  .ecosystem-card__logo--wide {
    width: 104px;
    height: 54px;
  }

  .footer {
    flex-direction: column;
  }

  .footer nav {
    justify-content: flex-start;
  }
}
