/* =============================================
   CoinToss – Homepage / Download Landing Page
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

/* ── Page wrapper ── */
.home-container {
  width: 100%;
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Logo / Title ── */
.home-logo {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #f9ca24, #f0932b, #eb4d4b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.home-tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  font-weight: 400;
}

/* ── Clickable banner image ── */
.download-image-wrapper {
  position: relative;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: #000;
  /* Portrait: fill the viewport height, width follows naturally */
  width: 100vw;
  max-width: 500px;
  height: 100svh;
  max-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-image-wrapper:hover {
  opacity: 0.93;
}

.download-image-wrapper:active {
  opacity: 0.8;
}

/* The actual banner image */
.download-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}

/* Fallback graphic if image is unavailable */
.banner-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px 24px;
}

.banner-coin {
  font-size: 96px;
  line-height: 1;
  margin-bottom: 16px;
  animation: coinSpin 3s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(249, 202, 36, 0.7));
}

@keyframes coinSpin {

  0%,
  100% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }
}

.banner-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, #f9ca24, #f0932b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.banner-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

/* Hover overlay */
.download-image-wrapper .hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  pointer-events: none;
}

.download-image-wrapper:hover .hover-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.hover-overlay-text {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #f9ca24, #f0932b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid rgba(249, 202, 36, 0.6);
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.4);
}

.download-image-wrapper:hover .hover-overlay-text {
  opacity: 1;
  transform: scale(1);
}

/* ── Tap-to-download hint label ── */
.download-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.download-hint::before,
.download-hint::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Pulsing download indicator ── */
.pulse-ring {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f9ca24;
  margin-left: 6px;
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(249, 202, 36, 0.4);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(249, 202, 36, 0);
  }
}

/* ── Footer ── */
.home-footer {
  position: fixed;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #26de81, #20bf6b);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(38, 222, 129, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  z-index: 9999;
  white-space: nowrap;
}

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

/* ── Responsive ── */
@media (max-width: 480px) {
  .banner-coin {
    font-size: 72px;
  }

  .banner-title {
    font-size: 22px;
  }
}