: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));
}

.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(4, 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;
}

.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(91, 140, 255, 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(91, 140, 255, 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__mark {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(123, 245, 220, 0.24);
  border-radius: 999px;
  color: #041018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 13px;
  font-weight: 900;
}

.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;
  }

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

  .hero {
    padding-top: 44px;
  }

  .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);
  }

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

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

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 44px;
  }

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

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

  .card {
    min-height: unset;
  }

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

  .footer {
    flex-direction: column;
  }

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