:root {
  --main-color: #dbab6d;
  --bg-color: #0a0a0a;
  --text-color: #e8e8e8;
  --panel-color: #141414;
}

* {margin:0; padding:0; box-sizing:border-box;}
body {
  font-family: "Noto Sans", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header */
header {
  position: fixed; top:0; left:0; width:100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 50px;
  z-index:1000;
  transition: all 0.3s;
}
header.scrolled {background: rgba(0,0,0,0.9);}
.logo {font-size:24px; font-weight:700; color: var(--main-color);}
.nav-links a {
  color:#ccc; text-decoration:none;
  margin:0 18px; font-size:15px;
  transition:color 0.2s ease;
}
.nav-links a:hover {color:var(--main-color);}

/* Hamburger menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* Banner */
.banner {
  min-height:100vh;
  padding-top: 80px; /* Offset for fixed header */
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.95)),
    url('../images/banner-bg.png') center/cover no-repeat;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding: 0 16px;
}
.banner h1 {
  font-size:50px; color: var(--main-color);
  text-shadow: 0 0 25px rgba(219,171,109,0.6);
  margin-bottom:20px;
  letter-spacing: 0.3px;
}
.banner p {
  font-size:20px; color:#ccc; margin-bottom:50px;
}
.banner .app-shot {
  width: auto;
  max-width: 60vw;
  max-height: 40vh;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.download-btns a {
  display:inline-block;
  padding:15px 38px;
  margin:10px;
  font-size:17px;
  font-weight:700;
  color:#111;
  background: var(--main-color);
  border-radius:40px;
  text-decoration:none;
  transition:transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 25px rgba(219,171,109,0.4);
}
.download-btns a:hover {
  transform: translateY(-1px) scale(1.03);
  background: #f2c889;
  box-shadow: 0 0 35px rgba(219,171,109,0.7);
}

/* Sections */
.section {
  padding:120px 20px;
  text-align:center;
}
.section h2 {
  color: var(--main-color);
  font-size:36px;
  margin-bottom:30px;
}
.section p {
  color:#bcbcbc;
  max-width:900px;
  margin:0 auto 50px;
  line-height:1.8;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.feature-item {
  background: var(--panel-color);
  border-radius: 14px;
  padding: 40px 25px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 15px rgba(219,171,109,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-item::before {
  content:"";
  position:absolute;
  top:-50%; left:-50%;
  width:200%; height:200%;
  background: linear-gradient(120deg, rgba(219,171,109,0.05) 0%, rgba(219,171,109,0.25) 50%, transparent 100%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-item:hover::before {opacity: 1;}
.feature-item h3 {
  color: var(--main-color);
  margin-bottom: 12px;
  font-size: 20px;
  position: relative;
  z-index: 1;
}
.feature-item p {
  color: #bcbcbc;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(219,171,109,0.35);
}

/* Games */
.games {
  display:flex; flex-wrap:wrap; justify-content:center; gap:25px;
}
.game-card {
  width:300px;
  background: var(--panel-color);
  border-radius:15px;
  overflow:hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.game-card img {
  width:100%; height:180px; object-fit:cover;
  transition: transform 0.25s ease;
  display:block;
}
.game-card:hover img {transform: scale(1.06);}
.game-card h4 {
  color: var(--main-color);
  padding:15px;
  font-size:18px;
}

/* Security */
.security {
  display:flex; flex-wrap:wrap; justify-content:center; gap:30px;
  max-width:900px; margin:0 auto;
}
.security-item {
  background: var(--panel-color);
  padding:30px;
  border-radius:12px;
  flex:1 1 260px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.security-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(219,171,109,0.25);
}
.security-item h4 {color: var(--main-color); margin-bottom:10px;}

/* Download section */
.download-section {
  background: linear-gradient(180deg, #111, #0b0b0b);
  padding:120px 20px;
}
.download-section h2 {
  color: var(--main-color);
  font-size:32px;
  margin-bottom:30px;
}
.download-btns-bottom {
  display:flex; justify-content:center; flex-wrap:wrap;
  gap:25px; margin-top:30px;
}
.download-btns-bottom a {
  display:inline-block;
  padding:18px 50px;
  font-size:18px;
  font-weight:700;
  color:#111;
  background: var(--main-color);
  border-radius:50px;
  text-decoration:none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 25px rgba(219,171,109,0.4);
}
.download-btns-bottom a:hover {
  transform: translateY(-1px) scale(1.04);
  background: #f2c889;
  box-shadow: 0 0 35px rgba(219,171,109,0.7);
}

/* Footer */
footer {
  background:#0f0f0f;
  color:#aaa;
  padding:50px 20px;
  text-align:center;
  font-size:14px;
}
footer .wechat {color: var(--main-color); font-weight:700;}

/* Responsive */
@media (max-width:1200px){
  .features-grid {grid-template-columns: repeat(2, 1fr);}
}
@media (max-width:768px){
  header {
    padding:10px 20px;
    flex-direction: row; /* Keep logo and hamburger on same line */
    justify-content: space-between;
  }
  .logo { font-size: 22px; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    margin: 20px 0;
    font-size: 22px;
  }

  .hamburger {
    display: block;
  }
  
  .banner { padding-top: 60px; } /* Adjust padding for smaller header */
  .banner h1 {font-size:36px;}
  .banner p {font-size:16px;}
  .download-btns a {
    width: 90%;
    font-size: 16px;
    padding: 14px 20px;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }
  .download-btns-bottom a {
    width: 90%;
    font-size: 16px;
    padding: 14px 20px;
    text-align: center;
  }
  .features-grid {grid-template-columns: 1fr;}
  .banner .app-shot { max-width: 72%; max-height: 45vh; }
}