/* Custom Style for CS 1.6 Download Page - Pure Static CSS */
/* Clean White Theme with High-Contrast Typography */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;   /* WCAG AAA high contrast deep slate */
  --text-secondary: #334155; /* Dark gray for maximum legibility */
  --text-muted: #64748b;     /* Muted gray for meta info */
  
  --accent-amber: #d97706;   /* Classic CS Warm Amber */
  --accent-amber-hover: #b45309;
  --accent-amber-light: #fffbeb;
  --accent-amber-border: #fde68a;
  
  --border-color: #e2e8f0;
  --border-color-dark: #cbd5e1;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll Progress Bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--accent-amber);
  z-index: 1200;
  transition: width 0.1s ease-out;
  width: 0%;
}

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.section-alt {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--accent-amber);
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

/* Site Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--accent-amber);
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent-amber);
}

.nav-menu {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-amber);
  text-decoration: none;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  margin-left: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--border-color);
  border-color: var(--border-color-dark);
}

.lang-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 1100;
  max-height: 380px;
  overflow-y: auto;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero Section (`#download`) */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-highlight {
  color: var(--accent-amber);
}

.hero-desc {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-cta-box {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-amber);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.15rem 2.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-amber-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(217, 119, 6, 0.45);
  text-decoration: none;
}

.btn-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.6rem;
  stroke: currentColor;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 850px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border-color);
}

.spec-item:last-child {
  border-right: none;
}

.spec-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 0.25rem;
}

.spec-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* About Section (`#about`) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
  list-style: none;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.feature-item-sub {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* Trust Badges Bar */
.trust-bar {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.trust-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.trust-item {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Features Grid (`#features`) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  width: 52px;
  height: 52px;
  background: var(--accent-amber-light);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* System Requirements (`#system`) */
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.req-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.req-tag {
  width: 44px;
  height: 44px;
  background: var(--accent-amber-light);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber-hover);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.req-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.system-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.system-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--accent-amber);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.system-badge-main {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.system-badge-sub {
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Installation Guide (`#install`) */
.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.install-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border: 3px solid var(--accent-amber);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}

.step-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-amber-hover);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* How to Play (`#play`) */
.play-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  background: rgba(15, 23, 42, 0.2);
}

.gallery-caption {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.play-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.details-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.details-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.details-num {
  color: var(--accent-amber);
}

.controls-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.kbd {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-dark);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scenario-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.scenario-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.protip-card {
  margin-top: 3rem;
  background: var(--accent-amber-light);
  border: 1px solid var(--accent-amber-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.protip-heading {
  color: var(--accent-amber-hover);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.protip-text {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Section (`#faq`) */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card[open] {
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-md);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  width: 22px;
  height: 22px;
  color: var(--accent-amber);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-card[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Final CTA Section */
.cta-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.cta-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cta-subheading {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.btn-cta {
  font-size: 1.3rem;
  padding: 1.25rem 3.5rem;
  border-radius: var(--radius-lg);
}

.cta-info {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.footer-desc {
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1rem;
  max-width: 480px;
}

.footer-link-amber {
  color: var(--accent-amber);
  text-decoration: none;
}

.footer-link-amber:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  color: #64748b;
}

.footer-col-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-amber);
  text-decoration: underline;
}

.seo-cloud {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.7rem;
  color: #475569;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  
  .about-grid,
  .system-grid,
  .play-details-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .features-grid,
  .install-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .spec-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
  }
  
  .spec-item:nth-child(3),
  .spec-item:nth-child(4) {
    border-bottom: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .install-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .spec-item {
    border-bottom: 1px solid var(--border-color);
  }
  
  .spec-item:last-child {
    border-bottom: none;
  }
  
  .hero-section {
    padding-top: 7.5rem;
  }
}
