﻿:root {
  --bg-0: #06080d;
  --bg-1: #0a1018;
  --panel: rgba(15, 23, 35, 0.84);
  --panel-2: rgba(19, 30, 45, 0.84);
  --text: #e9f0f8;
  --muted: #9aacc2;
  --line: rgba(113, 143, 177, 0.28);
  --cyan: #14e5ff;
  --cyan-soft: rgba(20, 229, 255, 0.2);
  --red: #ff4d3f;
  --red-soft: rgba(255, 77, 63, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(850px 450px at 3% -5%, var(--red-soft), transparent 65%),
    radial-gradient(900px 500px at 100% 0%, var(--cyan-soft), transparent 68%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.01em;
}

.bg-grid,
.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  opacity: 0.2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.75), transparent 88%);
}

.bg-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.18;
}

.section,
.panel,
.topbar,
footer {
  position: relative;
  z-index: 1;
}

.section {
  width: min(980px, calc(100% - 1.4rem));
  margin: 0 auto;
}

.topbar {
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.045em;
}

.brand-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.61rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.top-actions {
  display: flex;
  gap: 0.46rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-btn,
.btn {
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 0.56rem 0.84rem;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  transition: 180ms ease;
}

.lang-btn {
  cursor: pointer;
  color: #d9e7f8;
  background: rgba(17, 27, 40, 0.82);
  border-color: rgba(124, 166, 209, 0.4);
}

.lang-btn:hover {
  border-color: rgba(20, 229, 255, 0.7);
  color: #f5fcff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.btn-primary {
  color: #031018;
  background: linear-gradient(115deg, #15dbff, #8af6ff);
  box-shadow: 0 6px 22px rgba(20, 229, 255, 0.26);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-github {
  color: #e9f2ff;
  background: rgba(19, 30, 45, 0.82);
  border-color: rgba(124, 166, 209, 0.44);
}

.btn-github:hover {
  border-color: rgba(255, 77, 63, 0.6);
  box-shadow: 0 6px 18px rgba(255, 77, 63, 0.2);
}

main {
  margin-top: 0.65rem;
  padding-bottom: 0.9rem;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border-radius: 0.96rem;
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.panel + .panel {
  margin-top: 0.74rem;
}

.hero {
  padding-top: 1.05rem;
}

.eyebrow {
  margin: 0;
  color: #9ac3e7;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
}

h1 {
  margin-top: 0.52rem;
  font-size: clamp(2rem, 6.3vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(20, 229, 255, 0.2), 0 0 25px rgba(255, 77, 63, 0.16);
}

.lead {
  margin: 0.55rem 0 0;
  max-width: 780px;
  color: #c8d7e8;
  line-height: 1.35;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
}

.hero-metrics {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(124, 166, 209, 0.45);
  padding: 0.22rem 0.65rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.69rem;
  color: #c8f8ff;
  background: rgba(8, 15, 22, 0.58);
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.72rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.66rem;
}

.cards {
  display: grid;
  gap: 0.56rem;
}

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

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

.card {
  border: 1px solid rgba(124, 166, 209, 0.32);
  border-radius: 0.78rem;
  background: rgba(9, 16, 25, 0.5);
  padding: 0.72rem;
}

.card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  color: #becedf;
  line-height: 1.32;
  font-size: 0.95rem;
}

.faq {
  display: grid;
  gap: 0.5rem;
}

.faq details {
  border: 1px solid rgba(124, 166, 209, 0.3);
  border-radius: 0.72rem;
  background: rgba(8, 14, 22, 0.52);
  padding: 0.58rem 0.65rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.02em;
  color: #d8e9fb;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '+ ';
  color: var(--cyan);
}

.faq details[open] summary::before {
  content: '- ';
  color: var(--red);
}

.faq p,
.faq li {
  color: #bccddd;
  margin: 0.45rem 0 0;
  line-height: 1.33;
  font-size: 0.95rem;
}

.faq ul {
  margin: 0.3rem 0 0 1rem;
  padding: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.55rem;
}

.wallets {
  display: grid;
  gap: 0.42rem;
}

.wallet {
  border: 1px solid rgba(124, 166, 209, 0.25);
  border-radius: 0.64rem;
  background: rgba(8, 14, 22, 0.54);
  padding: 0.5rem 0.55rem;
}

.wallet .label {
  display: inline-block;
  color: #9fedff;
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.12rem;
}

.wallet code {
  display: block;
  color: #e8f0fa;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.repo-card .btn.wide {
  margin-top: 0.65rem;
  width: 100%;
  justify-content: center;
  font-size: 0.84rem;
  word-break: break-word;
  background: #eaf1ff;
  color: #0d1624;
  border-color: rgba(255, 255, 255, 0.85);
}

.repo-card .btn.wide svg {
  fill: #0d1624;
}

.repo-card .btn.wide:hover {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(20, 229, 255, 0.25);
}

.footer {
  margin: 0.72rem auto 1rem;
  border-top: 1px solid rgba(124, 166, 209, 0.3);
  padding-top: 0.7rem;
}

.footer p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: #aebdd0;
}

.footer a {
  color: #9ff3ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .muted {
  margin-top: 0.28rem;
  color: #7f8fa5;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .cards-2,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .btn,
  .lang-btn {
    flex: 1;
    justify-content: center;
  }

  .brand-main {
    font-size: 0.98rem;
  }
}
