:root {
  --bg: #05070d;
  --line: rgba(143, 169, 255, 0.16);
  --line-strong: rgba(143, 169, 255, 0.28);
  --text: #f4f7ff;
  --muted: #9aa7c2;
  --accent: #5da8ff;
  --accent-strong: #7f6dff;
  --success: #52e2b1;
  --warning: #ffbf5f;
  --danger: #ff6f91;
  --shadow: 0 24px 80px rgba(2, 10, 24, 0.45);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(93, 168, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(127, 109, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #05070d 0%, #090d16 55%, #04060b 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 88%);
  opacity: 0.3;
  pointer-events: none;
}

.ambient,
.noise {
  position: fixed;
  inset: auto;
  pointer-events: none;
}

.ambient {
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(60px);
  z-index: 0;
}

.ambient--left {
  top: -8rem;
  left: -8rem;
  background: rgba(67, 133, 255, 0.24);
}

.ambient--right {
  top: 18rem;
  right: -10rem;
  background: rgba(129, 107, 255, 0.2);
}

.noise {
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.65) 0.7px, transparent 0.8px),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.5) 0.6px, transparent 0.7px);
  background-size: 18px 18px, 24px 24px;
}

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

button,
input {
  font: inherit;
}

code {
  font-family: "Space Grotesk", monospace;
  font-size: 0.95em;
}

.hidden {
  display: none !important;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.glass {
  background: linear-gradient(180deg, rgba(15, 21, 35, 0.8), rgba(9, 12, 20, 0.74));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header,
.site-footer,
.feature-card,
.login-card,
.showcase,
.flow-section,
.dashboard__top,
.inactive-panel,
.dashboard-card {
  border-radius: var(--radius);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 12;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand__glow {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 0 0 6px rgba(93, 168, 255, 0.12),
    0 0 22px rgba(127, 109, 255, 0.65);
}

.nav-links {
  display: none;
  gap: 22px;
  color: var(--muted);
}

.nav-links a,
.button,
.feature-card,
.dashboard-card,
.flow-section,
.inactive-panel {
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  text-shadow: 0 0 14px rgba(93, 168, 255, 0.36);
}

.main {
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.dashboard__identity h2,
.login-card__head h2,
.showcase__header h3,
.feature-card h3,
.flow-step h3,
.dashboard-card h3,
.inactive-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.hero__lead,
.login-card__head p,
.muted-text,
.feature-card p,
.flow-step p,
.inactive-panel p,
.instruction-panel p,
.faq-list p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__actions {
  margin-top: 28px;
}

.login-card,
.showcase,
.flow-section,
.dashboard__top,
.inactive-panel,
.dashboard-card {
  padding: 24px;
}

.login-card__badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.login-card__badge {
  background: rgba(93, 168, 255, 0.1);
  border-color: rgba(93, 168, 255, 0.18);
  color: #cae2ff;
  font-size: 0.82rem;
}

.telegram-slot {
  display: flex;
  justify-content: flex-start;
  min-height: 56px;
  margin-top: 22px;
}

.login-fallback,
.dev-login {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.dev-login__title {
  margin: 0 0 12px;
  font-weight: 700;
}

.dev-login__buttons,
.dashboard__actions,
.inactive-panel__actions,
.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase__header,
.card-head,
.dashboard__top,
.dashboard__identity,
.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.showcase__header,
.card-head,
.dashboard__top {
  justify-content: space-between;
}

.showcase__label,
.metric-card span,
.stat-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.showcase__label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-grid,
.section-grid,
.flow-grid,
.dashboard,
.dashboard__grid,
.stat-list,
.faq-list {
  display: grid;
  gap: 16px;
}

.metric-card,
.flow-step,
.instruction-panel,
.faq-list details {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-card strong,
.stat-list strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: rgba(244, 247, 255, 0.58);
}

.connection-map {
  position: relative;
  height: 220px;
  margin-top: 26px;
  border-radius: 26px;
  border: 1px solid rgba(127, 109, 255, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(93, 168, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.connection-map__core,
.node {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 28px rgba(93, 168, 255, 0.55);
}

.connection-map__core {
  width: 44px;
  height: 44px;
  left: calc(50% - 22px);
  top: calc(50% - 22px);
  animation: pulse 2.8s ease-in-out infinite;
}

.node {
  width: 18px;
  height: 18px;
}

.node--one {
  top: 30px;
  left: 24%;
}

.node--two {
  bottom: 42px;
  left: 18%;
}

.node--three {
  top: 42px;
  right: 18%;
}

.beam {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(93, 168, 255, 0), rgba(93, 168, 255, 0.72), rgba(127, 109, 255, 0));
  transform-origin: left center;
}

.beam--one {
  width: 170px;
  left: 26%;
  top: 56px;
  transform: rotate(32deg);
}

.beam--two {
  width: 160px;
  left: 20%;
  bottom: 64px;
  transform: rotate(-18deg);
}

.beam--three {
  width: 170px;
  right: 20%;
  top: 70px;
  transform: rotate(150deg);
}

.feature-card:hover,
.dashboard-card:hover,
.flow-section:hover,
.inactive-panel:hover,
.button:hover {
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(93, 168, 255, 0.16), rgba(127, 109, 255, 0.16));
  border: 1px solid rgba(127, 109, 255, 0.24);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--text);
}

.section-heading h2 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.02;
}

.flow-step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  background: rgba(93, 168, 255, 0.12);
  color: #cde4ff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.dashboard__identity {
  align-items: center;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(93, 168, 255, 0.82), rgba(127, 109, 255, 0.82));
  box-shadow: 0 12px 40px rgba(74, 109, 255, 0.34);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.warning-banner {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff1d4;
  border: 1px solid rgba(255, 191, 95, 0.26);
  background: rgba(255, 191, 95, 0.1);
}

.copy-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.copy-box input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
}

.button--primary {
  color: #f5fbff;
  background: linear-gradient(135deg, rgba(77, 156, 255, 0.95), rgba(128, 105, 255, 0.95));
  box-shadow: 0 16px 40px rgba(70, 110, 255, 0.26);
}

.button--ghost,
.platform-chip {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.button--disabled,
.button[disabled] {
  color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
  box-shadow: none;
}

.status-pill--success {
  background: rgba(82, 226, 177, 0.1);
  border-color: rgba(82, 226, 177, 0.18);
  color: #c9ffe8;
}

.status-pill--warning {
  background: rgba(255, 191, 95, 0.12);
  border-color: rgba(255, 191, 95, 0.22);
  color: #fff0cc;
}

.status-pill--danger {
  background: rgba(255, 111, 145, 0.12);
  border-color: rgba(255, 111, 145, 0.22);
  color: #ffd7e1;
}

.status-pill--muted,
.status-pill--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.status-pill--ghost {
  color: var(--muted);
}

.text-link {
  color: #cfe4ff;
  text-decoration: underline;
  text-decoration-color: rgba(207, 228, 255, 0.28);
  text-underline-offset: 4px;
}

.qr-shell {
  display: grid;
  place-items: center;
  min-height: 240px;
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 20%, rgba(93, 168, 255, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.03);
}

.qr-shell img {
  width: min(220px, 100%);
  height: auto;
  padding: 14px;
  border-radius: 26px;
  background: #ffffff;
}

.platform-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
}

.platform-chip.is-active {
  color: var(--text);
  border-color: rgba(93, 168, 255, 0.28);
  background: rgba(93, 168, 255, 0.1);
}

.instruction-steps {
  margin: 14px 0 0;
  padding-left: 20px;
  line-height: 1.7;
}

.instruction-steps li + li {
  margin-top: 10px;
}

.faq-list details summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  margin-top: 8px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(93, 168, 255, 0.22);
  background: rgba(10, 16, 28, 0.92);
  color: var(--text);
  text-align: center;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (min-width: 720px) {
  .page-shell {
    width: min(var(--container), calc(100% - 48px));
    padding-top: 26px;
  }

  .nav-links {
    display: inline-flex;
  }

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

  .copy-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 28px;
  }

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

  .dashboard__grid > .dashboard-card:nth-child(1),
  .dashboard__grid > .dashboard-card:nth-child(2),
  .dashboard__grid > .dashboard-card:nth-child(3) {
    grid-column: span 4;
  }

  .dashboard-card--wide {
    grid-column: span 8;
  }

  .dashboard__grid > .dashboard-card:last-child {
    grid-column: span 4;
  }

  .feature-card,
  .flow-step,
  .dashboard-card,
  .inactive-panel,
  .login-card,
  .showcase,
  .flow-section {
    padding: 28px;
  }
}
