:root {
  --ink: #e9eef7;
  --muted: #9aa6b6;
  --paper: #070a0f;
  --panel: #101722;
  --panel-2: #151f2d;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #f7931a;
  --orange-soft: #ffc36a;
  --cyan: #58d7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: clamp(16px, 4vw, 56px);
  right: clamp(16px, 4vw, 56px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  max-height: 86px;
  padding: 12px 14px 12px 22px;
  color: #fff;
  background: rgba(11, 16, 24, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand::before {
  content: "B";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #150d02;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  border-radius: 7px;
  box-shadow: 0 0 24px rgba(247, 147, 26, 0.36);
  font-size: 1rem;
  font-weight: 900;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sponsor-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 1 auto;
  max-height: 36px;
  color: rgba(233, 238, 247, 0.7);
  font-size: 0.86rem;
  font-weight: 800;
  overflow: hidden;
}

.sponsor-socials span {
  white-space: nowrap;
}

.sponsor-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  max-height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.sponsor-socials svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  fill: currentColor;
}

.sponsor-socials a:hover {
  transform: translateY(-1px);
  background: rgba(247, 147, 26, 0.16);
  border-color: rgba(247, 147, 26, 0.5);
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button.solid {
  color: #150d02;
  background: var(--orange);
  box-shadow: 0 0 0 rgba(247, 147, 26, 0), 0 12px 30px rgba(247, 147, 26, 0.28);
  animation: buttonGlow 2.6s ease-in-out infinite;
}

.button.solid:hover {
  background: var(--orange-soft);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.light {
  color: #071019;
  background: #fff;
}

.button.large {
  min-height: 54px;
  padding: 0 24px;
}

.button.full {
  width: 100%;
}

.notice {
  position: fixed;
  top: 104px;
  right: 24px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice.success {
  background: #146c45;
}

.notice.error {
  background: #9d332b;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 100vh;
  padding: 132px clamp(20px, 5vw, 70px) 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 22%, rgba(88, 215, 255, 0.16), transparent 34%),
    radial-gradient(circle at 14% 72%, rgba(247, 147, 26, 0.16), transparent 32%),
    linear-gradient(135deg, #080b11 0%, #0d1420 48%, #090c12 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero-content,
.hero-video {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(560px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  max-width: 100%;
  font-size: clamp(3rem, 5vw, 4.8rem);
  color: #fff;
  text-shadow: 0 0 22px rgba(247, 147, 26, 0.22), 0 0 48px rgba(88, 215, 255, 0.12);
  white-space: nowrap;
  animation: titleGlow 3.6s ease-in-out infinite;
}

.btc-title-icon {
  display: inline-block;
  width: clamp(38px, 5vw, 58px);
  height: clamp(38px, 5vw, 58px);
  flex: 0 0 auto;
  box-shadow: 0 0 28px rgba(247, 147, 26, 0.38);
  transform: rotate(-8deg);
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(247, 147, 26, 0.18), 0 0 44px rgba(88, 215, 255, 0.1);
  }

  50% {
    text-shadow: 0 0 30px rgba(247, 147, 26, 0.42), 0 0 64px rgba(88, 215, 255, 0.2);
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(247, 147, 26, 0), 0 12px 30px rgba(247, 147, 26, 0.28);
  }

  50% {
    box-shadow: 0 0 22px rgba(247, 147, 26, 0.38), 0 12px 34px rgba(247, 147, 26, 0.34);
  }
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(233, 238, 247, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.compat-line {
  margin: 12px 0 0;
  color: rgba(233, 238, 247, 0.58);
  font-size: 0.92rem;
  font-weight: 700;
}

.community-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 7px 0 0;
  color: rgba(233, 238, 247, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.community-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #35d06f;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(53, 208, 111, 0.72);
}

.community-line a {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.community-line svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.compat-line.compact {
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.download-action {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.hero-video {
  min-height: 420px;
  min-width: 0;
  background: transparent;
  overflow: hidden;
}

.hero-video img {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 400px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.section {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 70px);
}

.mining-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
  background: #0b111a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.copy-block h2,
.download-band h2,
.text-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.copy-block p,
.metric-grid p,
.text-hero p {
  color: var(--muted);
  font-size: 1.06rem;
}

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

.metric-grid article {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.metric-grid span {
  color: var(--orange-soft);
  font-weight: 900;
}

.download-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(52px, 7vw, 86px) clamp(20px, 5vw, 70px);
  color: #fff;
  background: #101722;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 70px);
  color: var(--muted);
  background: #070a0f;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: rgba(233, 238, 247, 0.78);
  font-weight: 800;
}

.auth-modal {
  width: min(460px, calc(100vw - 30px));
  padding: 0;
  color: #121417;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-modal {
  width: min(560px, calc(100vw - 30px));
}

.auth-modal::backdrop {
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 32px;
  background: #fff;
}

.modal-card h2 {
  font-size: 2rem;
}

.modal-card label {
  display: grid;
  gap: 7px;
  color: #66717f;
  font-weight: 800;
}

.modal-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #121417;
  background: #fff;
  border: 1px solid #cfd7cf;
  border-radius: 6px;
}

.modal-card input:focus {
  outline: 3px solid rgba(247, 147, 26, 0.24);
  border-color: var(--orange);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  color: #121417;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.65rem;
}

.modal-switch,
.download-meta,
.download-modal-copy {
  margin: 0;
  color: #66717f;
}

.download-meta {
  text-align: center;
  font-size: 0.92rem;
}

.download-preview {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  background: #f8f4e9;
  border: 1px solid #dde2dc;
  border-radius: 8px;
}

.download-missing {
  padding: 16px 18px;
  color: #66717f;
  background: #f8f4e9;
  border: 1px solid #dde2dc;
  border-radius: 8px;
}

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

.content-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0 100px;
}

.text-hero {
  max-width: 820px;
}

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

.about-grid article {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.about-grid span {
  color: var(--orange-soft);
  font-weight: 900;
}

.about-grid h2 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.about-grid p {
  color: var(--muted);
}

code {
  padding: 2px 5px;
  background: #f0ece1;
  border-radius: 4px;
}

@media (max-width: 920px) {
  .hero,
  .mining-panel,
  .metric-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-video img {
    height: 420px;
  }
}

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

  .sponsor-socials {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions,
  .hero-actions,
  .download-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-top: 188px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-video,
  .hero-video img {
    min-height: 300px;
  }

  .hero-video img {
    height: 320px;
  }

  .notice {
    left: 16px;
    right: 16px;
  }
}
