/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg:           #0F0F11;
  --surface:      #16141E;
  --surface-2:    #1C192A;
  --accent:       #8B5CF6;
  --accent-hover: #7C4FE8;
  --accent-dim:   rgba(139,92,246,0.12);
  --accent-border:rgba(139,92,246,0.22);
  --accent-border-hover: rgba(139,92,246,0.45);
  --text-1:       #EDE9FE;
  --text-2:       #A89EC0;
  --text-3:       #6B6082;
  --text-4:       #3D3650;
  --border:       rgba(139,92,246,0.13);
  --border-mid:   rgba(139,92,246,0.22);

  --font: system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-badge: 20px;
  --container: 1100px;
  --nav-h: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15,15,17,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
}
.nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 0.5px solid var(--accent-border);
  border-radius: var(--radius-btn);
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  border-color: var(--accent-border-hover);
  background: var(--accent-dim);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-3);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(15,15,17,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 12px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ===== SECTION ===== */
section {
  padding: 72px 0;
}

/* ===== DIVIDER ===== */
.divider {
  height: 0.5px;
  background: var(--border);
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-badge);
  padding: 5px 14px;
  margin-bottom: 28px;
  background: var(--accent-dim);
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-1);
  max-width: 640px;
  margin: 0 auto 20px;
}
.hero-body {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-1);
  border: 0.5px solid rgba(237,233,254,0.25);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(237,233,254,0.05); }

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 48px; }
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.section-header p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 520px;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 0.5px solid var(--accent-border);
  border-radius: var(--radius-card);
  transition: all 0.2s ease;
}
.card:hover {
  background: var(--surface-2);
  border-color: var(--accent-border-hover);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius-badge);
  padding: 3px 10px;
  white-space: nowrap;
}

/* ===== GAME CARD ===== */
.game-card-link {
  display: block;
  text-decoration: none;
}
.game-card {
  display: flex;
  gap: 24px;
  padding: 28px;
}
.game-card-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25) 0%, rgba(139,92,246,0.08) 100%);
  border: 0.5px solid var(--accent-border);
}
.game-card-body { flex: 1; min-width: 0; }
.game-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.game-card-genre {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.game-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 560px;
}
.planet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.chip {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-badge);
  padding: 3px 10px;
  border-width: 0.5px;
  border-style: solid;
}
.chip-verdantia  { color: #6EE7B7; border-color: rgba(110,231,183,0.28); background: rgba(110,231,183,0.07); }
.chip-pyron      { color: #FCA5A5; border-color: rgba(252,165,165,0.28); background: rgba(252,165,165,0.07); }
.chip-aetheris   { color: #A5B4FC; border-color: rgba(165,180,252,0.28); background: rgba(165,180,252,0.07); }
.chip-cryon      { color: #BAE6FD; border-color: rgba(186,230,253,0.28); background: rgba(186,230,253,0.07); }
.chip-ferrum9    { color: #FCD34D; border-color: rgba(252,211,77,0.28);  background: rgba(252,211,77,0.07);  }
.game-card-link-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.15s;
}
.game-card-link:hover .game-card-link-text { color: var(--accent-hover); }

/* ===== BADGE VARIANTS ===== */
.badge-dev    { color: #FCD34D; border: 0.5px solid rgba(252,211,77,0.28);  background: rgba(252,211,77,0.07);  }
.badge-ios    { color: #A5B4FC; border: 0.5px solid rgba(165,180,252,0.28); background: rgba(165,180,252,0.07); }
.badge-free   { color: #6EE7B7; border: 0.5px solid rgba(110,231,183,0.28); background: rgba(110,231,183,0.07); }

/* ===== ABOUT GRID ===== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card-pad { padding: 28px; }
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}
.card-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ===== CONTACT CARD ===== */
.contact-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.65;
}
.contact-email {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.contact-email:hover { color: var(--accent-hover); }

/* ===== FOOTER ===== */
footer {
  border-top: 0.5px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
footer p {
  font-size: 12px;
  color: var(--text-4);
}

/* ===== GAME DETAIL PAGE ===== */

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 12px;
  color: var(--text-3);
}
.breadcrumb a {
  color: var(--text-3);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-4); margin: 0 6px; }
.breadcrumb-current { color: var(--text-2); }

/* Game hero */
.game-hero { padding: 48px 0 72px; }
.game-hero-banner {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(139,92,246,0.05) 50%, rgba(15,15,17,0) 100%);
  border: 0.5px solid var(--accent-border);
  margin-bottom: 40px;
}
.game-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.game-hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 12px;
}
.game-hero-tagline {
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.game-hero-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.game-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Worlds grid */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.world-card {
  border-radius: var(--radius-card);
  border-width: 0.5px;
  border-style: solid;
  padding: 24px;
  transition: all 0.2s ease;
}
.world-card:hover { filter: brightness(1.06); }
.world-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.world-type {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.7;
}
.world-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.world-hazard {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-badge);
  padding: 3px 9px;
  border-width: 0.5px;
  border-style: solid;
  display: inline-block;
}

/* Gameplay grid */
.gameplay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* CTA section */
.cta-section { text-align: center; }
.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.platform-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.platform-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-badge);
  padding: 4px 12px;
  background: var(--surface);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 30px; }
  .game-hero h1 { font-size: 30px; }
  .game-hero-tagline { font-size: 16px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .game-card { flex-direction: column; }
  .game-card-icon { width: 56px; height: 56px; }

  .two-col-grid { grid-template-columns: 1fr; }
  .gameplay-grid { grid-template-columns: 1fr; }
  .worlds-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .game-hero-banner { height: 140px; }
}

@media (max-width: 480px) {
  .worlds-grid { grid-template-columns: 1fr; }
  .game-hero-actions { flex-direction: column; }
  .game-hero-actions .btn-primary,
  .game-hero-actions .btn-ghost { width: 100%; justify-content: center; }
}
