:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #10151c;
  --panel-2: #151b24;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f7fb;
  --muted: #95a3b5;
  --soft: #c8d2df;
  --up: #39d98a;
  --down: #ff5f6d;
  --accent: #69d2ff;
  --gold: #f6c85f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(105, 210, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(57, 217, 138, 0.08), transparent 24rem),
    linear-gradient(180deg, #080b10 0%, var(--bg) 42%, #05070a 100%);
  color: var(--text);
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-size: 13px;
}

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

.lang {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.lang button {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  min-width: 42px;
}

.lang button.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 74px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.hero-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 0 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  color: var(--accent);
  border: 1px solid rgba(105, 210, 255, 0.24);
  background: rgba(105, 210, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 680;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 5px rgba(57, 217, 138, 0.12);
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 880px;
}

.hero-copy {
  color: var(--soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  max-width: 690px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 680;
  font-size: 14px;
}

.button.primary {
  border-color: rgba(105, 210, 255, 0.4);
  background: linear-gradient(135deg, rgba(105, 210, 255, 0.24), rgba(57, 217, 138, 0.16));
}

.button.telegram {
  border-color: rgba(105, 210, 255, 0.32);
  color: var(--accent);
}

.button.telegram:hover {
  background: rgba(105, 210, 255, 0.1);
}

.hero-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.up {
  color: var(--up);
  background: rgba(57, 217, 138, 0.1);
  border: 1px solid rgba(57, 217, 138, 0.28);
}

.badge.down {
  color: var(--down);
  background: rgba(255, 95, 109, 0.1);
  border: 1px solid rgba(255, 95, 109, 0.3);
}

.section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 690px;
}

.product-compact {
  display: grid;
  gap: 14px;
}

.product-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.product-summary > div {
  min-width: 0;
  padding: 18px;
  background: rgba(16, 21, 28, 0.78);
}

.product-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.meta-label {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 28, 0.48);
  overflow: hidden;
}

.product-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
}

.product-details summary:hover {
  color: var(--text);
}

.product-details .value-grid {
  padding: 0 14px 14px;
}

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

.value-card,
.leaderboard,
.event-card,
.state-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 21, 28, 0.72);
}

.value-card {
  padding: 22px;
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

.resource-inline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.resource-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

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

.resource-preview-text {
  aspect-ratio: auto;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.resource-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

.resource-list code {
  color: var(--text);
  font-size: 12px;
}

.live-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.leaderboard {
  overflow: hidden;
}

.leader-row {
  display: grid;
  grid-template-columns: 52px 1fr 90px 90px 94px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
}

.leader-row:first-child {
  border-top: 0;
}

.leader-head {
  min-height: 42px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.symbol {
  font-weight: 790;
}

.subline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.metric {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--soft);
}

.metric.positive {
  color: var(--up);
}

.metric.negative {
  color: var(--down);
}

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

.event-card {
  overflow: hidden;
  min-height: 356px;
  display: grid;
  grid-template-rows: auto 210px auto;
}

.event-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.event-title {
  font-size: 16px;
  font-weight: 800;
}

.event-chart {
  position: relative;
  width: 100%;
  min-height: 210px;
}

.event-divider {
  position: absolute;
  top: 8px;
  bottom: 24px;
  width: 0;
  border-left: 1px dashed rgba(105, 210, 255, 0.72);
  pointer-events: none;
  z-index: 2;
}

.event-divider::before {
  content: attr(data-label);
  position: absolute;
  top: 0;
  padding: 3px 6px;
  border: 1px solid rgba(105, 210, 255, 0.34);
  border-radius: 6px;
  background: rgba(7, 9, 13, 0.88);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.event-divider.source {
  border-left-color: rgba(255, 255, 255, 0.45);
}

.event-divider.source::before {
  right: 7px;
  left: auto;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--soft);
}

.event-divider.detected {
  border-left-color: rgba(105, 210, 255, 0.92);
}

.event-divider.detected::before {
  left: 7px;
}

.event-divider[data-compact="true"]::before {
  display: none;
}

.event-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.event-metric {
  padding: 12px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.event-metric:first-child {
  border-left: 0;
}

.label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 5px;
}

.value {
  font-size: 14px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.state-card {
  padding: 22px;
  color: var(--soft);
  line-height: 1.55;
}

.state-card strong {
  color: var(--text);
}

.state-card.small {
  margin-top: 12px;
  font-size: 14px;
}

.disclaimer-inline {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.footer {
  padding: 34px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .nav-links a {
    display: none;
  }

  .hero-grid,
  .product-summary,
  .value-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .live-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .nav-inner {
    height: 64px;
  }

  .brand-sub {
    display: none;
  }

  .hero-logo {
    width: min(100%, 300px);
  }

  .leader-row {
    grid-template-columns: 34px 1fr 72px;
    gap: 10px;
    padding: 12px;
  }

  .leader-row > :nth-child(4),
  .leader-row > :nth-child(5) {
    display: none;
  }

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

  .event-metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .event-metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}
