/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* ===== CSS Variables ===== */
:root {
  --primary: #6C63FF;
  --secondary: #F72585;
  --accent: #4ECDC4;
  --bg-dark: #0d0d1a;
  --bg-card: #13132a;
  --bg-card2: #1a1a35;
  --text-primary: #f0f0ff;
  --text-muted: #8b8bb0;
  --border: rgba(108,99,255,0.15);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(108,99,255,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: white; text-decoration: none;
  padding: 8px 20px; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  transition: all .2s;
}
.nav-cta:hover { background: #5a52e0; transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 60px;
  max-width: 1200px; margin: 0 auto;
  gap: 60px; position: relative;
}
.hero-bg-blur {
  position: fixed; top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-container { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.3);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.12; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 500px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; text-decoration: none;
  padding: 14px 28px; border-radius: 12px; font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(108,99,255,0.35);
  transition: all .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(108,99,255,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-primary); text-decoration: none;
  padding: 14px 28px; border-radius: 12px; font-size: 1rem; font-weight: 600;
  transition: all .25s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== Hero Visual ===== */
.hero-visual { flex: 0 0 auto; position: relative; z-index: 1; }
.device-mockup {
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  width: 340px;
  box-shadow: var(--shadow);
}
.device-screen {
  border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 16px;
}
.device-screen img { width: 100%; height: 200px; object-fit: cover; display: block; }
.screen-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.game-ui { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.game-score,.game-level {
  font-size: 0.7rem; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.5); padding: 3px 8px; border-radius: 5px;
  letter-spacing: 1px;
}
.device-controls { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.d-pad { position: relative; width: 72px; height: 72px; }
.d-btn {
  position: absolute; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 4px;
  width: 22px; height: 22px;
  transition: background .15s;
}
.d-btn:hover { background: rgba(108,99,255,0.3); }
.d-up    { top: 0;    left: 50%; transform: translateX(-50%); }
.d-down  { bottom: 0; left: 50%; transform: translateX(-50%); }
.d-left  { left: 0;   top: 50%;  transform: translateY(-50%); }
.d-right { right: 0;  top: 50%;  transform: translateY(-50%); }
.d-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 20px; height: 20px; background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.action-btns { display: flex; gap: 10px; }
.a-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.btn-a { background: rgba(247,37,133,0.25); color: #F72585; border: 1.5px solid #F72585; }
.btn-b { background: rgba(108,99,255,0.25); color: var(--primary); border: 1.5px solid var(--primary); }
.a-btn:hover { transform: scale(1.1); }

/* Floating cards */
.floating-card {
  position: absolute;
  background: rgba(19,19,42,0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: float 3s ease-in-out infinite;
}
.card-1 { top: 20px; right: -60px; animation-delay: 0s; }
.card-2 { bottom: 80px; right: -70px; animation-delay: 1s; }
.card-3 { bottom: 20px; left: -60px; animation-delay: 2s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Section Commons ===== */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(108,99,255,0.12); color: var(--primary);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ===== Features ===== */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}
.feature-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-highlight {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(247,37,133,0.05));
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.feature-tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.feature-tag-list span {
  background: rgba(108,99,255,0.15); color: var(--primary);
  padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
}

/* ===== Platforms ===== */
.platforms { padding: 100px 0; background: rgba(255,255,255,0.01); }
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.platform-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 16px;
  transition: all .25s; cursor: default;
}
.platform-item:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-3px);
}
.platform-icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: white;
  letter-spacing: 0.5px;
}
.platform-item span { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* ===== Screenshots ===== */
.screenshots { padding: 100px 0; }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.screenshot-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all .3s;
}
.screenshot-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.screenshot-item.large { grid-column: span 2; grid-row: span 2; }
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; display: block; }
.screenshot-item.large img { min-height: 380px; }
.screenshot-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  padding: 20px 16px 14px;
  font-size: 0.82rem; font-weight: 600; color: white;
}

/* ===== Reviews ===== */
.reviews { padding: 100px 0; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s;
}
.review-card:hover {
  border-color: rgba(108,99,255,0.35);
  transform: translateY(-3px);
}
.review-stars { color: #f9c74f; font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-name { font-size: 0.9rem; font-weight: 700; }
.review-platform { font-size: 0.78rem; color: var(--text-muted); }

/* ===== Download ===== */
.download {
  padding: 100px 0; position: relative; overflow: hidden;
}
.download-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(247,37,133,0.1) 100%);
  z-index: 0;
}
.download .section-container { position: relative; z-index: 1; }
.download-content { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.download-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%;
}
.download-card {
  background: rgba(13,13,26,0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: all .3s;
}
.download-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(108,99,255,0.2);
}
.dl-icon { color: var(--primary); }
.dl-info { text-align: center; }
.dl-store { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.dl-platform { font-size: 0.78rem; color: var(--text-muted); }
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: white; text-decoration: none;
  padding: 10px 22px; border-radius: 9px; font-size: 0.875rem; font-weight: 700;
  width: 100%; justify-content: center;
  transition: all .2s;
}
.dl-btn:hover { background: #5a52e0; }
.version-info {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 20px; border-radius: 100px;
}

/* ===== Footer ===== */
.footer { background: rgba(0,0,0,0.4); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 60px;
}
.footer-brand { max-width: 240px; }
.footer-brand svg { margin-bottom: 8px; }
.footer-brand span { display: block; font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { flex-direction: column; padding-top: 90px; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .device-mockup { width: 300px; }
  .floating-card { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(5, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .download-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-container { flex-direction: column; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: 1fr; }
  .screenshot-item.large { grid-column: auto; grid-row: auto; }
  .reviews-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-links { gap: 32px; }
}
