:root {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  color-scheme: dark;
  --bg: #040305;
  --bg-alt: #0c0912;
  --accent: #f7931a;
  --accent-soft: rgba(247, 147, 26, 0.15);
  --text: #f5f1e8;
  --muted: #bdb7aa;
}

* {
  box-sizing: border-box;
}

img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.bitcoin-body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  position: relative;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vh, 8rem) clamp(1rem, 4vw, 2.5rem) 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: auto;
}

.btc-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.terminal {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  background: rgba(0, 18, 8, 0.85);
  color: #a9ffb5;
  width: 100%;
  max-width: min(520px, 90vw);
  border: 1px solid rgba(123, 255, 202, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border-radius: 0.6rem;
  overflow: hidden;
}

.terminal__top {
  background: rgba(1, 10, 6, 0.85);
  border-bottom: 1px solid rgba(123, 255, 202, 0.2);
  padding: 0.5rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6effc2;
}

.terminal__body {
  padding: 1.1rem 1rem;
}

.line {
  margin: 0;
  font-size: 0.85rem;
  color: #cdebd4;
}

.terminal__body .line + .line {
  margin-top: 0.35rem;
}

.prompt {
  color: #67ff7a;
  margin-right: 0.4rem;
}

.address-panel {
  width: 100%;
  max-width: min(520px, 90vw);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.line-list {
  list-style: none;
  padding: 0 0 0 1.2rem;
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #cdebd4;
}

.line-list li {
  margin-bottom: 0.25rem;
}

.line-list code {
  color: #67ff7a;
}

.address-panel__card {
  width: 100%;
  border: 1px solid rgba(123, 255, 202, 0.35);
  background: rgba(0, 18, 8, 0.8);
  color: #cdebd4;
  padding: 0.9rem 1rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier,
    monospace;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  border-radius: 0.6rem;
  position: relative;
  overflow: hidden;
}

.address-panel__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(123, 255, 202, 0.1);
  pointer-events: none;
}

.address-panel__card p {
  margin: 0 0 0.35rem;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: #cdebd4;
}

.address-panel__card strong {
  font-size: 0.85rem;
  word-break: break-all;
  color: #cdebd4;
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .bitcoin-body {
    padding: 5rem 1rem 1.5rem;
    justify-content: flex-start;
  }

  .terminal {
    max-width: 100%;
  }
}

.hero {
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--text);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-primary,
.cta-secondary {
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary {
  background: var(--accent);
  color: #1b1206;
  box-shadow: 0 10px 25px rgba(247, 147, 26, 0.4);
}

.cta-secondary {
  border: 1px solid rgba(247, 147, 26, 0.4);
  color: var(--text);
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-2px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.stat-card {
  background: var(--bg-alt);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 1rem;
  padding: 1.4rem;
}

.stat-card h3 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 0 clamp(1.5rem, 5vw, 4rem) 3rem;
}

.section h2 {
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent-soft);
}

.timeline-item {
  margin-bottom: 1.5rem;
}

.timeline-item strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.resource-card {
  background: var(--bg-alt);
  border-radius: 0.8rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 2rem;
  }

  .stat-card h3 {
    font-size: 1.6rem;
  }
}
.address-panel__card strong.animate-balance {
  display: inline-block;
  animation: balanceRoll 0.7s ease-in-out;
}

@keyframes balanceRoll {
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  60% {
    transform: rotateX(20deg);
    opacity: 1;
  }
  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}
