:root {
  --bg: #05070d;
  --surface: #0a101d;
  --surface-2: #0e1728;
  --card: #101a2d;
  --card-2: #0d1424;
  --line: rgba(157, 184, 255, 0.16);
  --line-strong: rgba(87, 157, 255, 0.38);
  --text: #f6f8ff;
  --muted: #9aa8c5;
  --soft: #d8e3ff;
  --blue: #1677ff;
  --cyan: #19d3ff;
  --green: #28d28e;
  --amber: #f6c05a;
  --danger: #ff6b84;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1160px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(13, 31, 59, 0.68) 0, rgba(5, 7, 13, 0) 420px),
    linear-gradient(125deg, rgba(16, 119, 255, 0.16), transparent 42%),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(25, 211, 255, 0.92);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--text);
  color: #05070d;
  font-weight: 800;
}

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

.app-shell {
  min-height: 100dvh;
  overflow: clip;
  padding-bottom: 88px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max));
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 9, 18, 0.82);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand img {
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  min-width: 0;
}

.brand strong,
.brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.desktop-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

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

.topbar-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
}

.topbar-action {
  flex: 0 0 auto;
  background: rgba(22, 119, 255, 0.14);
  border-color: rgba(25, 211, 255, 0.22);
  color: var(--soft);
}

.topbar-action svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-action svg,
.contact-icon.telegram svg {
  fill: currentColor;
  stroke: none;
}

.section-band,
.section,
.metrics-strip,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 28px;
  min-height: calc(100svh - 92px);
  padding: 56px 0 28px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(40, 210, 142, 0.72);
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3.35rem, 4.6rem, 5.6rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 2.7rem, 3.1rem);
  line-height: 1;
}

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

p {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  max-width: 60ch;
  margin-bottom: 24px;
  color: var(--soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #031020;
  box-shadow: 0 18px 44px rgba(22, 119, 255, 0.32);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  color: rgba(246, 248, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  position: relative;
  margin: 0;
  border: 1px solid rgba(87, 157, 255, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: #07101f;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.metrics-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
  padding-bottom: 56px;
}

.metric-card,
.process-card,
.promo-card,
.progress-panel,
.level-card,
.leader-row,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
    rgba(12, 19, 33, 0.84);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
}

.metric-card {
  min-height: 112px;
  padding: 18px;
}

.metric-card span,
.metric-card small,
.leader-row small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 1.55rem;
}

.section {
  padding: 64px 0;
  scroll-margin-top: 110px;
}

.section-grid {
  display: grid;
  gap: 24px;
}

.section-heading {
  max-width: 720px;
}

.section-heading p {
  margin-bottom: 0;
}

.section-heading.narrow {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: left;
}

.row-heading {
  display: grid;
  gap: 18px;
  max-width: none;
  margin-bottom: 24px;
}

.story-copy {
  display: grid;
  gap: 14px;
}

.story-copy p {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(25, 211, 255, 0.35);
}

.process-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid,
.promo-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}

.process-card,
.promo-card,
.contact-card {
  padding: 20px;
}

.step-number {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 420px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.segment {
  min-height: 40px;
  padding: 8px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.segment.is-active {
  color: #031020;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.promo-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.promo-card[hidden] {
  display: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.tag,
.availability,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 900;
}

.tag.exchange {
  color: #dff3ff;
  background: rgba(22, 119, 255, 0.18);
}

.tag.banking {
  color: #e7fff4;
  background: rgba(40, 210, 142, 0.16);
}

.availability,
.badge {
  color: var(--amber);
  background: rgba(246, 192, 90, 0.13);
}

.promo-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  color: var(--soft);
  list-style: none;
}

.promo-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.promo-card li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--cyan);
  font-weight: 900;
}

.level-layout {
  display: grid;
  gap: 14px;
}

.progress-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.progress-ring {
  --progress: 68;
  display: grid;
  place-items: center;
  align-content: center;
  width: 170px;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b1323 0 57%, transparent 58%),
    conic-gradient(var(--cyan) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.progress-ring strong {
  font-size: 2rem;
}

.progress-ring span {
  color: var(--muted);
  font-size: 0.83rem;
}

.progress-stats {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.progress-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.progress-stats strong {
  color: var(--text);
}

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

.level-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  padding: 18px;
}

.level-card span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(25, 211, 255, 0.1);
  font-weight: 900;
}

.level-card h3,
.level-card p {
  margin: 0;
}

.level-card.is-current {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.22), rgba(25, 211, 255, 0.05)),
    var(--card);
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.leader-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
}

.leader-row.top {
  border-color: rgba(246, 192, 90, 0.38);
}

.leader-row.muted {
  opacity: 0.76;
}

.rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.points {
  color: var(--cyan);
  font-weight: 900;
  white-space: nowrap;
}

.profile-section {
  padding-bottom: 34px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  color: var(--text);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon.telegram {
  background: rgba(22, 119, 255, 0.18);
}

.contact-icon.whatsapp {
  background: rgba(40, 210, 142, 0.16);
}

.whatsapp-copy.is-ready {
  color: var(--soft);
}

.site-footer {
  display: grid;
  gap: 10px;
  padding: 26px 0 112px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 9, 18, 0.9);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 56px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.bottom-nav a.is-active {
  color: #061021;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 14px 16px;
  border: 1px solid rgba(25, 211, 255, 0.34);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(6, 12, 24, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 700px) {
  .app-shell {
    padding-bottom: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 34px;
    min-height: calc(100svh - 76px);
    padding-top: 42px;
  }

  .metrics-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .process-grid,
  .promo-grid,
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .row-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .level-layout {
    grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  }

  .bottom-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 34px;
  }
}

@media (min-width: 930px) {
  .desktop-nav {
    display: flex;
  }

  .brand strong {
    font-size: 1rem;
  }
}

@media (max-width: 440px) {
  .topbar {
    width: min(100% - 20px, var(--max));
    margin-top: 10px;
  }

  .topbar-action {
    width: 44px;
    padding: 0;
  }

  .topbar-action svg {
    width: 20px;
    height: 20px;
  }

  .topbar-action {
    font-size: 0;
  }

  .section-band,
  .section,
  .metrics-strip,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .leader-row {
    grid-template-columns: 38px 1fr;
  }

  .points {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
