/* =====================
   RESET + BASE
===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #02070c, #2003fc, #02070c);
  color: #e6faff;
  overflow-x: hidden;
}

/* =====================
   TOP MENU
===================== */
.top-menu {
  position: fixed;
  top: 0;
  width: 100%;
  height: 56px;
  background: rgba(5,15,20,0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
}

.menu-title {
  color: #00ffe0;
  font-weight: 700;
  font-size: 16px;
}

.menu-icon {
  font-size: 26px;
  background: none;
  border: none;
  color: #00ffe0;
  cursor: pointer;
}

/* =====================
   MENU OVERLAY
===================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.menu-overlay.active {
  display: flex;
}

.menu-box {
  background: #0d1a22;
  width: 80%;
  max-width: 320px;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}

.close-menu {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

.menu-link {
  display: block;
  margin-top: 16px;
  padding: 12px;
  border-radius: 999px;
  background: #00ffe0;
  color: #001314;
  font-weight: 700;
  text-decoration: none;
}

/* =====================
   BACKGROUND – FIX IOS
===================== */
.bg-animation {
  position: fixed;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,255,224,0.18), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(0,180,255,0.15), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(0,255,224,0.1), transparent 50%);
  background-size: 140% 140%;
  background-position: 50% 50%;
  animation: bgMoveFast 8s ease-in-out infinite;
  transform: none !important;
}

@keyframes bgMoveFast {
  0% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 60% 40%;
  }
  100% {
    background-position: 50% 50%;
  }
}

/* =====================
   CONTENT
===================== */
.container {
  max-width: 640px;
  margin: 80px auto 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #00ffe0;
  font-size: 34px;
  margin-bottom: 6px;
}

.tagline {
  text-align: center;
  color: #9fdfff;
  margin-bottom: 30px;
}

/* =====================
   SECTIONS (CARD)
===================== */
.section {
  background: rgba(12,22,28,0.9);
  border-left: 4px solid #00ffe0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.section h2 {
  margin-top: 0;
  color: #00ffe0;
  font-size: 18px;
}

.section p,
.section li {
  font-size: 14px;
  color: #d6f4ff;
}

.section ul {
  padding-left: 18px;
}

/* =====================
   DISCORD BUTTON
===================== */
.discord-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* =====================
   STATS (CENTER + RED NEON)
===================== */
.stats-box {
  display: flex;
  justify-content: center;
}

.stats-row {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stat-item {
  text-align: left;
}

.stat-item h3 {
  margin: 0;
  font-size: 28px;
  color: #00ffe0;
}

.stat-item p {
  margin-top: 6px;
  font-size: 14px;
  color: #ff3b3b;
  font-weight: 500;
  text-shadow:
    0 0 4px rgba(255, 59, 59, 0.5),
    0 0 10px rgba(255, 59, 59, 0.25);
}

/* =====================
   SCROLL REVEAL
===================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   FOOTER
===================== */
footer {
  text-align: center;
  font-size: 12px;
  color: #7fbcd6;
  margin: 30px 0;
}

/* ===== HERO GIỚI THIỆU ===== */
.hero-based {
  margin: 90px auto 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Tiêu đề */
.hero-based-title {
  margin-bottom: 10px;
  font-size: clamp(26px, 6vw, 38px);
  color: #2fffd0;
}

/* Mô tả */
.hero-based-desc {
  margin-bottom: 18px;
  opacity: 0.85;
}

/* ===== NÚT TẢI XUỐNG – MÀU XANH NEON ===== */
.download-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 46px;

  background: linear-gradient(135deg, #7fffd4, #2fffd0);
  color: #00332b !important;   /* ÉP MÀU CHỮ */

  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;

  border-radius: 18px;
  box-shadow: 0 0 30px rgba(47,255,208,0.5);

  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 50;
}

/* hover / nhấn */
.download-btn:active {
  transform: scale(0.96);
}

/* nền KHÔNG được chặn click */
.bg-animation {
  pointer-events: none;
}

/* ===== POPUP CHÀO MỪNG ===== */
.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.popup-box{
  width:90%;
  max-width:380px;
  background:linear-gradient(145deg,#06131a,#02080c);
  border-radius:18px;
  padding:22px 18px 20px;
  position:relative;
  color:#eaffff;
  animation:popupIn .4s ease;
}

@keyframes popupIn{
  from{opacity:0;transform:scale(.9)}
  to{opacity:1;transform:scale(1)}
}

/* Viền neon 7 màu */
.neon-border::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:20px;
  background:linear-gradient(
    270deg,
    red,orange,yellow,green,cyan,blue,purple,red
  );
  background-size:400% 400%;
  animation:neonMove 6s linear infinite;
  z-index:-1;
}
@keyframes neonMove{
  from{background-position:0% 50%}
  to{background-position:400% 50%}
}

/* Nút X */
.popup-close{
  position:absolute;
  top:10px;
  right:12px;
  background:none;
  border:none;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

/* Tiêu đề */
.popup-title{
  text-align:center;
  margin:8px 0 14px;
  color:#2fffd0;
}

/* Nội dung */
.popup-content{
  font-size:14px;
  line-height:1.6;
}
.social-list{
  padding-left:16px;
}
.social-list li{
  margin-bottom:6px;
}
.social-list a{
  color:#2fffd0;
  text-decoration:none;
  font-weight:600;
}

/* Ảnh cuối bảng */
.popup-image-bottom{
  margin-top:14px;
  display:flex;
  justify-content:center;
}
.popup-image-bottom img{
  width:90px;
  height:90px;
  object-fit:cover;
  border-radius:14px;
  box-shadow:
    0 0 12px rgba(47,255,208,.6),
    0 0 24px rgba(47,255,208,.35);
}

/* Nút đóng */
.popup-btn{
  margin-top:16px;
  width:100%;
  padding:12px;
  border:none;
  border-radius:14px;
  background:#2fffd0;
  color:#00322c;
  font-weight:700;
  cursor:pointer;
}
