/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0d0d0f;
  --bg-secondary: #141418;
  --bg-card: #1a1a20;
  --bg-card-hover: #22222a;
  --border: #2a2a32;
  --border-light: #3a3a44;
  --text-primary: #f0f0f5;
  --text-secondary: #9898a8;
  --text-muted: #686878;
  --accent-blue: #4f8cff;
  --accent-purple: #6c5ce7;
  --accent-gradient: linear-gradient(135deg, #4f8cff 0%, #6c5ce7 100%);
  --glow-blue: rgba(79, 140, 255, 0.15);
  --glow-purple: rgba(108, 92, 231, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 4px;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { width: 36px; height: 36px; }

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 8px 20px !important;
  background: var(--accent-gradient);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 500;
}
.nav-cta:hover { opacity: 0.9; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-blue);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--glow-blue), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, var(--glow-purple), transparent),
    var(--bg-primary);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.25);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-meta span { margin: 0 4px; }

/* Mock Window */
.hero-visual { perspective: 1000px; }

.mock-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px var(--glow-blue);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.mock-window:hover { transform: rotateY(0) rotateX(0); }

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mock-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-body {
  display: flex;
  height: 320px;
}

.mock-sidebar {
  width: 60px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}

.mock-game {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mock-game-inner {
  width: 80%;
  height: 70%;
  border: 2px solid rgba(79, 140, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(79,140,255,0.05) 0%, rgba(108,92,231,0.1) 100%);
  position: relative;
}

.fps-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(40, 200, 64, 0.2);
  border: 1px solid rgba(40, 200, 64, 0.4);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #28c840;
}

/* ===== Stats ===== */
.stats {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ===== Features ===== */
.features { padding: 100px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Games ===== */
.games {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.games-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.games-list li {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.games-list li:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: rgba(79, 140, 255, 0.08);
}

/* ===== Requirements ===== */
.requirements { padding: 100px 0; }

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.req-card {
  position: relative;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.req-card--highlight {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(79,140,255,0.05) 0%, var(--bg-card) 100%);
}

.req-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 14px;
  background: var(--accent-gradient);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.req-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.req-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.req-card li:last-child { border-bottom: none; }
.req-card strong { color: var(--text-primary); margin-right: 8px; }

/* ===== Install Steps ===== */
.install-steps {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps-list li {
  text-align: center;
  padding: 32px 24px;
}

.step-num {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.steps-list h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.steps-list p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== FAQ ===== */
.faq { padding: 100px 0; }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item dt {
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.faq-item dt::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-item dt:hover { color: var(--accent-blue); }
.faq-item.is-open dt::after { transform: rotate(45deg); }

.faq-item dd {
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}
.faq-item.is-open dd { display: block; }

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, var(--glow-purple), transparent),
    var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.cta-text p { color: var(--text-secondary); }

/* ===== Footer ===== */
.site-footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-nav h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-nav a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text-primary); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }
  .menu-toggle { display: flex; }

  .features-grid,
  .req-grid,
  .steps-list { grid-template-columns: 1fr; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
