/* ============================================================
   WANTO Download Page — Dark Tech Style
   ============================================================ */

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'Helvetica Neue', Arial, sans-serif;
  background: #171E2D;
  color: #ffffff;
  overflow-x: hidden;
}

/* ── Container ── */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  padding: 0 28px;
  padding-top: env(safe-area-inset-top, 16px);
  max-width: 430px;
  margin: 0 auto;
}

/* ── Background glow ── */
.page::before {
  content: '';
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Top Row ── */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 10;
  margin-bottom: 16px;
  margin-top: auto;
}

/* ── Language Switcher ── */
.lang-switcher {
  position: relative;
  z-index: 100;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: rgba(20, 25, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 140px;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(0, 212, 170, 0.15);
}

.lang-option.active {
  color: #00D4AA;
}

/* ── Top Badge ── */
.top-badge {
  z-index: 1;
}

.badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 20px;
  background: rgba(0, 212, 170, 0.06);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00D4AA;
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
}

.badge-text {
  font-size: 13px;
  letter-spacing: 2px;
  color: #00D4AA;
  text-transform: uppercase;
}

/* ── Title ── */
.title-section {
  text-align: left;
  z-index: 1;
  margin-bottom: 8px;
  width: 100%;
}

.title-main {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  font-style: italic;
}

/* First line "WANTO" stays white, second line teal */
.title-line1 {
  display: block;
  background: linear-gradient(180deg, #ffffff 20%, rgba(255,255,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line2 {
  display: block;
}

.title-line2 .teal {
  background: linear-gradient(135deg, #00D4AA 0%, #00E6B8 50%, #00C9A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line2 .white {
  background: linear-gradient(180deg, #ffffff 20%, rgba(255,255,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* ── Hero Image ── */
.hero-image {
  width: 82%;
  z-index: 2;
  margin: 0 auto;
  padding: 15% 0;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 20px rgba(0, 212, 170, 0.35))
    drop-shadow(0 0 60px rgba(0, 212, 170, 0.2))
    drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
  animation: glowPulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  will-change: filter;
}

@keyframes glowPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 20px rgba(0, 212, 170, 0.3))
      drop-shadow(0 0 50px rgba(0, 212, 170, 0.15))
      drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
  }
  50% {
    filter:
      drop-shadow(0 0 35px rgba(0, 212, 170, 0.55))
      drop-shadow(0 0 90px rgba(0, 212, 170, 0.3))
      drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
  }
}

/* ── Particles ── */
.hero-image::before,
.hero-image::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: #00D4AA;
  pointer-events: none;
  z-index: -1;
}

.hero-image::before {
  width: 3px;
  height: 3px;
  top: 10%;
  right: 5%;
  box-shadow:
    0 0 4px rgba(0, 212, 170, 0.8),
    30px 40px 0 1px rgba(0, 212, 170, 0.5),
    -20px 80px 0 0.5px rgba(0, 212, 170, 0.4),
    60px -10px 0 1px rgba(0, 212, 170, 0.3),
    -40px -20px 0 0.5px rgba(0, 212, 170, 0.6);
  animation: particleFloat1 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-image::after {
  width: 2px;
  height: 2px;
  bottom: 15%;
  left: 8%;
  box-shadow:
    0 0 3px rgba(0, 212, 170, 0.7),
    -25px -30px 0 1px rgba(0, 212, 170, 0.4),
    40px -50px 0 0.5px rgba(0, 212, 170, 0.5),
    -10px 30px 0 1px rgba(0, 212, 170, 0.3),
    50px 20px 0 0.5px rgba(0, 212, 170, 0.45);
  animation: particleFloat2 7s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes particleFloat1 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-8px) scale(1.2); opacity: 1; }
}

@keyframes particleFloat2 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(6px) scale(1.1); opacity: 1; }
}

/* ── Download Buttons ── */
.download-section {
  width: 100%;
  margin-top: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-row {
  display: flex;
  gap: 10px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  flex: 1;
}

.download-btn svg {
  flex-shrink: 0;
}

/* Vertical layout for bottom two buttons */
.btn-vertical {
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  font-size: 13px;
}

.btn-apple {
  background: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
  color: #171E2D;
}

.btn-apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
}

.btn-android {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-android:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ── Footer ── */
.footer {
  margin-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  z-index: 1;
  width: 100%;
}

.footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .title-main {
    font-size: 44px;
  }
}

@media (max-height: 700px) {
  .hero-image {
    width: 65%;
  }

  .title-main {
    font-size: 28px;
  }

  .download-section {
    margin-top: 10px;
  }

  .top-badge {
    margin-bottom: 8px;
  }
}

@media (max-width: 360px) {
  .title-main {
    font-size: 28px;
  }

  .download-btn {
    padding: 12px 14px;
    font-size: 13px;
  }
}
