:root {
  --bg: #04070d;
  --bg-soft: rgba(7, 13, 24, 0.78);
  --panel: rgba(10, 19, 30, 0.75);
  --border: rgba(80, 255, 173, 0.16);
  --text: #ecfff4;
  --muted: #98b9a5;
  --primary: #54ffb3;
  --primary-dark: #0c1f18;
  --shadow: 0 18px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { word-break: break-all; }

.site-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2, 5, 10, 0.72), rgba(2, 6, 10, 0.92)),
    url('assets/cyber-bg.png') center/cover no-repeat;
  filter: saturate(1.1);
  z-index: -2;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0,
    rgba(255,255,255,0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

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

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

.brand,
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topbar nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar nav a:hover,
.topbar nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--primary);
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 28px;
}

.eyebrow,
.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0;
  max-width: 12ch;
}

.subcopy {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
#copyBtn:hover,
#copyBtn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(84, 255, 179, 0.18);
  border-color: rgba(84, 255, 179, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(84, 255, 179, 0.95), rgba(109, 255, 197, 0.78));
  color: #021109;
}

.btn-secondary,
#copyBtn {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.contract-box,
.glass-card,
.stat-card,
.buy-panel,
.link-card,
.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.contract-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
}

.label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contract-row code {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--primary);
  font-size: 0.95rem;
}

#copyBtn {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.copy-message {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(4,7,13,0.65), transparent);
}

.section {
  padding: 72px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.two-col p,
.buy-panel ol {
  color: var(--muted);
  line-height: 1.8;
}

.info-grid,
.stats-grid,
.links-grid {
  display: grid;
  gap: 18px;
}

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

.glass-card,
.stat-card,
.link-card,
.buy-panel {
  border-radius: 20px;
  padding: 22px;
}

.glass-card h3,
.stat-card h3,
.link-card strong,
.buy-panel h2 {
  margin-top: 0;
}

.glass-card p,
.stat-card p,
.link-card span {
  color: var(--muted);
  margin-bottom: 0;
}

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

.stat-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 18px;
  color: #07150e;
  font-weight: 800;
  background: var(--primary);
}

.buy-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.buy-panel ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.image-panel {
  padding: 0;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

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

.link-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(84, 255, 179, 0.35);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-note {
  text-align: right;
}

@media (max-width: 980px) {
  .hero,
  .two-col,
  .buy-section,
  .stats-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

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

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container,
  .topbar {
    width: min(100% - 20px, 1160px);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contract-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  #copyBtn {
    width: 100%;
  }
}
