@import url("/tokenzt-static/styles.css?v=20260629-1");

.brand img {
  border-radius: 8px;
}

.topbar-actions button {
  color: var(--muted);
}

.topbar-actions button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.hero-copy,
.signal-panel,
.model-card,
.model-marquee {
  min-width: 0;
  max-width: 100%;
}

.signal-panel {
  overflow: hidden;
}

.metric-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-strong);
}

.metric-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent),
    radial-gradient(circle at 92% 18%, rgba(50, 211, 155, 0.16), transparent 11rem);
  transform: translateX(-70%);
  animation: metric-shimmer 9s ease-in-out infinite;
}

.metric-hero.secondary::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent),
    radial-gradient(circle at 92% 18%, rgba(255, 209, 102, 0.14), transparent 10rem);
}

.metric-hero.online::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent),
    radial-gradient(circle at 92% 18%, rgba(50, 211, 155, 0.14), transparent 10rem);
}

.metric-hero-users::before {
  animation-delay: 3s;
}

.metric-hero-online::before {
  animation-delay: 6s;
}

.metric-hero.changing {
  animation: metric-change 1.25s ease-out;
}

.metric-hero small,
.metric-hero span {
  position: relative;
  z-index: 1;
  display: block;
}

.metric-number {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #f4fff9;
  font-size: clamp(54px, 8.4vw, 86px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 24px rgba(50, 211, 155, 0.22),
    0 16px 44px rgba(0, 0, 0, 0.32);
  animation: number-glow 2.6s ease-in-out infinite;
}

.metric-hero.changing .metric-number {
  animation:
    number-pop 0.92s ease-out,
    number-glow 2.6s ease-in-out infinite;
}

.metric-number.user,
.metric-number.online {
  font-size: clamp(38px, 4.5vw, 54px);
  text-shadow:
    0 0 24px rgba(255, 209, 102, 0.18),
    0 16px 44px rgba(0, 0, 0, 0.3);
}

.metric-number.online {
  text-shadow:
    0 0 24px rgba(50, 211, 155, 0.2),
    0 16px 44px rgba(0, 0, 0, 0.3);
}

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

.model-highlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.model-highlight-grid span {
  border: 1px solid rgba(50, 211, 155, 0.48);
  border-radius: 999px;
  padding: 5px 8px;
  color: #dffdf3;
  background: rgba(50, 211, 155, 0.1);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.model-highlight-grid span:nth-child(1),
.model-highlight-grid span:nth-child(2),
.model-highlight-grid span:nth-child(3) {
  border-color: rgba(255, 209, 102, 0.62);
  color: #fff2bb;
  background: rgba(255, 209, 102, 0.12);
}

.model-highlight-grid span:nth-child(5),
.model-highlight-grid span:nth-child(6),
.model-highlight-grid span:nth-child(7) {
  border-color: rgba(129, 167, 255, 0.56);
  color: #eef3ff;
  background: rgba(129, 167, 255, 0.1);
}

.model-marquee {
  overflow: hidden;
  margin-top: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.model-track {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: model-marquee 24s linear infinite;
}

.model-card:hover .model-track {
  animation-play-state: paused;
}

.model-track span {
  border: 1px solid rgba(129, 167, 255, 0.32);
  border-radius: 999px;
  padding: 5px 8px;
  color: #dbe4ff;
  background: rgba(129, 167, 255, 0.09);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.download-page .home-page {
  display: block;
}

.desktop-download-shell {
  min-height: 100vh;
}

.desktop-page {
  flex: 1;
  padding: 38px 0 76px;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: end;
}

.download-hero h1 {
  font-size: clamp(42px, 8vw, 78px);
}

.version-card,
.download-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.version-card {
  padding: 22px;
}

.version-card span,
.version-card small {
  color: var(--muted);
}

.version-card strong {
  display: block;
  margin: 8px 0;
  color: var(--accent);
  font-size: 34px;
  text-shadow: 0 0 24px rgba(50, 211, 155, 0.22);
}

.download-grid,
.install-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.download-card,
.guide-card {
  padding: 22px;
}

.download-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.download-card h2,
.guide-card h2 {
  margin: 0;
  font-size: 26px;
}

.download-card p,
.guide-card p {
  color: var(--muted);
  line-height: 1.7;
}

.platform-pill {
  border: 1px solid rgba(50, 211, 155, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.button.full {
  width: 100%;
  justify-content: space-between;
  margin: 16px 0;
}

.download-count {
  margin-left: 12px;
  color: rgba(6, 19, 17, 0.72);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  color: #d7e9e4;
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
}

.guide-warning {
  color: var(--warn) !important;
}

@media (max-width: 800px) {
  .download-hero,
  .download-grid,
  .install-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .user-metrics,
  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .metric-number {
    font-size: clamp(46px, 15vw, 66px);
  }

  .metric-number.user,
  .metric-number.online {
    font-size: clamp(40px, 13vw, 58px);
  }
}

@keyframes metric-change {
  0% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 rgba(50, 211, 155, 0), inset 0 0 rgba(255, 255, 255, 0);
  }

  34% {
    border-color: rgba(50, 211, 155, 0.38);
    box-shadow:
      0 0 42px rgba(50, 211, 155, 0.2),
      inset 0 0 28px rgba(255, 255, 255, 0.06);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 rgba(50, 211, 155, 0), inset 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes number-pop {
  0% {
    filter: brightness(0.95);
    transform: translateY(7px) scale(0.985);
  }

  42% {
    filter: brightness(1.18);
    transform: translateY(-2px) scale(1.012);
  }

  100% {
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes metric-shimmer {
  0%,
  20%,
  100% {
    opacity: 0;
    transform: translateX(-70%);
  }

  4%,
  12% {
    opacity: 0.85;
  }

  12% {
    transform: translateX(64%);
  }

  16% {
    opacity: 0;
    transform: translateX(72%);
  }
}

@keyframes number-glow {
  0%,
  100% {
    opacity: 0.94;
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.12);
  }
}

@keyframes model-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.tutorial-shell {
  min-height: 100vh;
}

.tutorial-main {
  flex: 1;
  padding: 38px 0 76px;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.tutorial-sidebar {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.tutorial-sidebar strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
}

.tutorial-nav {
  display: grid;
  gap: 8px;
}

.tutorial-nav a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.tutorial-nav a:hover,
.tutorial-nav a:focus {
  color: var(--text);
}

.tutorial-content {
  min-width: 0;
}

.tutorial-hero {
  margin-bottom: 24px;
}

.tutorial-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 8vw, 78px);
  color: var(--text);
  line-height: 0.95;
}

.tutorial-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.badge-row span {
  border: 1px solid rgba(50, 211, 155, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.tutorial-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 28px;
}

.tutorial-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 26px;
}

.tutorial-section p,
.tutorial-section li {
  color: var(--muted);
  line-height: 1.75;
}

.tutorial-section a {
  color: var(--accent);
}

.tutorial-section p code,
.tutorial-section li code {
  display: inline;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.2);
  color: #d7e9e4;
  font-size: 0.92em;
}

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

.tutorial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.tutorial-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
}

.tutorial-card p {
  margin: 0;
}

.tutorial-code {
  display: block;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: #d7e9e4;
  font-size: 14px;
  line-height: 1.65;
}

.tutorial-code code {
  display: inline;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: inherit;
}

.tutorial-note {
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(50, 211, 155, 0.1);
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 800px) {
  .tutorial-layout,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-sidebar {
    position: static;
  }
}
