:root {
  color-scheme: dark;
  --page-bg: #000000;
  --bg-dark: #0a0a18;
  --bg-glow: #101025;
  --text-primary: #ffffff;
  --text-secondary: #d9c6b2;
  --text-muted: #9a96a6;
  --btn-border: rgba(255, 255, 255, 0.68);
  --btn-shadow: rgba(0, 0, 0, 0.4);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --cyan: #4ce8ff;
  --mint: #65f6a8;
  --gold: #f7931a;
  --blue: #1e3a8a;
  --blue-light: #3b82f6;
  --grid-line: rgba(59, 130, 246, 0.2);
}

* {
  box-sizing: border-box;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(59, 130, 246, 0.3), transparent 50%),
    radial-gradient(ellipse 100% 70% at 90% 100%, rgba(30, 58, 138, 0.2), transparent 50%),
    radial-gradient(ellipse 80% 50% at 10% 70%, rgba(59, 130, 246, 0.15), transparent 40%),
    linear-gradient(180deg, #000000 0%, #0a0a18 30%, #101025 50%, #0a0a18 70%, #000000 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: auto;
}

/* 蓝色网格背景 */
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

body::after {
  display: none;
}

body {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

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

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

.page-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100svh;
  padding: 3rem 1.45rem 1.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  overflow: hidden;
}

.hero__logo {
  width: min(29vw, 250px);
  min-width: 198px;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 6px 0 rgba(78, 36, 14, 0.58))
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  transition: transform 0.3s var(--transition-smooth);
}

.hero__logo:hover {
  transform: scale(1.05);
}

.hero__rig {
  position: relative;
  top: -24px;
  width: min(80vw, 336px);
  aspect-ratio: 1.22;
  margin-left: 0;
  margin-bottom: 1.05rem;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero__rig::before {
  content: '';
  position: absolute;
  right: 12%;
  bottom: 6%;
  left: 12%;
  height: 28%;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  filter: blur(26px);
  pointer-events: none;
}

.rig__base,
.rig__machine,
.rig__effect {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.rig__base {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: auto;
  filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.34));
}

.rig__machine {
  top: 9%;
  left: 50%;
  width: 46%;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 24px 28px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(59, 130, 246, 0.2));
}

.rig__effect {
  top: 56%;
  left: 0;
  width: 35%;
  height: auto;
  padding-top: 0;
  padding-bottom: 0;
  object-fit: contain;
}

.bitcoin-counter {
  position: relative;
  margin-top: -1rem;
  width: 100%;
  max-width: 300px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.08));
  border: 1.5px solid rgba(255, 193, 7, 0.4);
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.25), 0 0 30px rgba(255, 193, 7, 0.15);
}

.bitcoin-counter__label {
  color: var(--text-secondary);
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  font-weight: 600;
}

.bitcoin-counter__value {
  color: #ffc107;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(255, 193, 7, 0.4);
  font-family: 'Courier New', Courier, monospace;
}

.hero__headline {
  margin: 0 0 1.05rem;
  width: 323px;
  max-width: 21ch;
  color: var(--text-primary);
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 25px;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero__headline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
  opacity: 0.6;
}

.store-list {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  margin-bottom: auto;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.store-btn {
  width: 100%;
  min-height: 4rem;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid var(--btn-border);
  border-radius: 0.9rem;
  background: #000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 34px rgba(0, 0, 0, 0.16),
    0 4px 14px var(--btn-shadow);
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 25px 40px rgba(0, 0, 0, 0.25),
    0 6px 18px var(--btn-shadow);
  border-color: rgba(255, 255, 255, 0.85);
}

.store-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 15px 25px rgba(0, 0, 0, 0.12),
    0 3px 10px var(--btn-shadow);
}

.store-btn__icon {
  flex: 0 0 auto;
  object-fit: contain;
}

.store-btn__icon--google {
  width: 2rem;
}

.store-btn__icon--apple {
  width: 1.9rem;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.store-btn__eyebrow {
  color: var(--text-muted);
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 700;
  line-height: 1.08;
}

.store-btn__title {
  color: var(--text-primary);
  font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1;
}

.hero__footer {
  width: 100%;
  margin-top: 1.95rem;
  color: var(--text-secondary);
  text-align: center;
}

.hero__copyright {
  margin: 0 0 0.95rem;
  color: #f8e1d3;
  font-size: clamp(0.7rem, 2.9vw, 0.94rem);
  font-weight: 500;
  line-height: 1.22;
}

.hero__disclaimer {
  margin: 0 auto;
  max-width: 31ch;
  font-size: clamp(0.62rem, 2.15vw, 0.8rem);
  font-weight: 400;
  line-height: 1.35;
}

@media (max-width: 380px) {
  .hero {
    padding: 2.5rem 0.95rem 1.35rem;
  }

  .hero__logo {
    min-width: 188px;
  }

  .store-btn {
    min-height: 3.6rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.8rem;
  }

  .store-btn__icon--google,
  .store-btn__icon--apple {
    width: 1.8rem;
  }

  .hero__footer {
    margin-top: 1.7rem;
  }
}

@media (min-width: 768px) {
  .hero {
    width: min(100vw, 500px);
    padding: 4rem 2rem 2rem;
  }

  .hero__logo {
    width: min(30vw, 280px);
    min-width: 220px;
  }

  .hero__rig {
    width: min(85vw, 380px);
  }

  .bitcoin-counter {
    max-width: 300px;
    padding: 0.7rem 1.2rem;
  }

  .bitcoin-counter__label {
    font-size: clamp(0.8rem, 2.7vw, 0.9rem);
  }

  .bitcoin-counter__value {
    font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  }

  .hero__headline {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    max-width: 25ch;
  }

  .store-list {
    max-width: 300px;
    gap: 0.8rem;
  }

  .store-btn {
    min-height: 4.2rem;
    padding: 0.65rem 1.1rem;
  }

  .store-btn__icon--google {
    width: 2.1rem;
  }

  .store-btn__icon--apple {
    width: 2rem;
  }

  .store-btn__eyebrow {
    font-size: clamp(0.68rem, 2.2vw, 0.78rem);
  }

  .store-btn__title {
    font-size: clamp(1.15rem, 4.8vw, 1.7rem);
  }

  .hero__footer {
    margin-top: 2.2rem;
  }

  .hero__copyright {
    font-size: clamp(0.75rem, 3vw, 0.98rem);
  }

  .hero__disclaimer {
    font-size: clamp(0.65rem, 2.3vw, 0.85rem);
    max-width: 35ch;
  }
}

@media (min-width: 1024px) {
  .hero {
    width: min(100vw, 550px);
    padding: 5rem 2.5rem 2.5rem;
  }

  .hero__logo {
    width: min(32vw, 300px);
    min-width: 240px;
    margin-bottom: 1.2rem;
  }

  .hero__rig {
    width: min(88vw, 400px);
    margin-bottom: 1.5rem;
  }

  .bitcoin-counter {
    max-width: 320px;
    padding: 0.8rem 1.3rem;
    margin-bottom: 1rem;
  }

  .hero__headline {
    font-size: clamp(1.3rem, 5vw, 2rem);
    max-width: 28ch;
    margin-bottom: 1.5rem;
  }

  .store-list {
    max-width: 320px;
    gap: 0.9rem;
  }

  .store-btn {
    min-height: 4.5rem;
    padding: 0.7rem 1.2rem;
  }

  .store-btn__icon--google {
    width: 2.2rem;
  }

  .store-btn__icon--apple {
    width: 2.1rem;
  }

  .hero__footer {
    margin-top: 2.5rem;
  }
}

/* Toast notification styles */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 193, 7, 0.3);
  backdrop-filter: blur(10px);
}

.toast-message {
  color: #ffc107;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(255, 193, 7, 0.4);
  white-space: nowrap;
}
