/* ==========================================================================
   Cheetah Game Studios (Cheetah Ltd) — Cosmic Ultraviolet & Solar Cheetah Theme
   Interactive Game Launcher & Multi-Genre Arcade Portal Design System
   ========================================================================== */

:root {
  --bg: #100821;
  --bg-deep: #0a0516;
  --surface: #1a0f33;
  --surface-2: #241645;
  --surface-3: #2f1d59;
  --border: rgba(255, 255, 255, 0.09);
  --border-solar: rgba(255, 183, 3, 0.36);
  --border-orchid: rgba(247, 37, 133, 0.38);
  --text: #faf7ff;
  --text-soft: #c7bce0;
  --text-dim: #8a7ca8;
  --solar: #ffb703;
  --solar-bright: #ffd166;
  --magenta: #f72585;
  --violet: #9d4edd;
  --cyan: #4cc9f0;
  --grad-cheetah: linear-gradient(135deg, #ffd166 0%, #ffb703 48%, #fb8500 100%);
  --grad-hyper: linear-gradient(135deg, #f72585 0%, #9d4edd 55%, #4cc9f0 100%);
  --radius-2xl: 26px;
  --radius-xl: 20px;
  --radius-lg: 15px;
  --radius: 11px;
  --shadow: 0 28px 68px -20px rgba(4, 1, 12, 0.85);
  --shadow-solar: 0 14px 38px -8px rgba(255, 183, 3, 0.42);
  --maxw: 1240px;
  --font-display: "Kanit", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Nebula ultraviolet & savanna solar backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55vw 45vw at 12% -5%, rgba(157, 78, 221, 0.24), transparent 62%),
    radial-gradient(50vw 42vw at 88% 12%, rgba(255, 183, 3, 0.14), transparent 60%),
    radial-gradient(48vw 48vw at 55% 105%, rgba(247, 37, 133, 0.16), transparent 65%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography Utilities & Badges
   ========================================================================== */
.solar-text {
  background: var(--grad-cheetah);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hyper-text {
  background: var(--grad-hyper);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spark-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(255, 183, 3, 0.13);
  border: 1px solid var(--border-solar);
  color: var(--solar-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-solar {
  background: var(--grad-cheetah);
  color: #160a00;
  box-shadow: var(--shadow-solar);
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px -8px rgba(255, 183, 3, 0.6);
}

.btn-plum {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-plum:hover {
  background: var(--surface-3);
  border-color: var(--solar);
  color: var(--solar-bright);
  transform: translateY(-2px);
}

/* ==========================================================================
   Portal Topbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(16, 8, 33, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-crest {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  border: 1.5px solid var(--border-solar);
  box-shadow: 0 8px 24px -6px rgba(255, 183, 3, 0.4);
  flex-shrink: 0;
}

.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.brand-name strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.38rem;
  letter-spacing: 0.02em;
}

.brand-name span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--solar);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-soft);
  transition: color 0.18s;
}

.nav-links a:hover {
  color: var(--solar-bright);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

/* ==========================================================================
   Interactive 5-Game Launcher Hero Stage
   ========================================================================== */
.launcher-hero {
  padding: 46px 0 64px;
}

.hero-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-intro h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  font-style: italic;
  max-width: 720px;
  margin-top: 14px;
}

.hero-intro p {
  color: var(--text-soft);
  max-width: 420px;
  font-size: 1.02rem;
}

/* Epic Storefront 2-Column Launcher */
.launcher-deck {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  align-items: stretch;
}

.launcher-stage {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-solar);
  background: var(--bg-deep);
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.stage-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(26px) brightness(0.45) saturate(1.3);
  z-index: 0;
}

.stage-art-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 28px 168px;
}

.stage-art-wrap img {
  max-height: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.stage-art-wrap img.secondary-shot[hidden] {
  display: none !important;
}

.stage-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 5, 22, 0) 0%, rgba(10, 5, 22, 0.92) 38%, rgba(10, 5, 22, 0.98) 100%);
  padding: 56px 34px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.stage-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
}

.stage-meta img.stage-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 2px solid var(--solar);
  flex-shrink: 0;
}

.stage-genre {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--solar-bright);
}

.stage-meta h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  margin: 3px 0 6px;
}

.stage-meta p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* Right Selector Rail */
.launcher-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  position: relative;
  overflow: hidden;
  flex: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rail-tab:hover {
  background: var(--surface-2);
  border-color: rgba(255, 183, 3, 0.3);
}

.rail-tab.active {
  background: var(--surface-3);
  border-color: var(--solar);
  box-shadow: 0 10px 28px -10px rgba(255, 183, 3, 0.4);
}

.rail-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-cheetah);
}

.rail-tab img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.rail-tab strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}

.rail-tab span {
  font-size: 0.76rem;
  color: var(--solar-bright);
  font-weight: 600;
}

/* ==========================================================================
   Studio Velocity Metrics Ribbon
   ========================================================================== */
.velocity-ribbon {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.ribbon-item .r-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
}

.ribbon-item .r-lbl {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ==========================================================================
   Section Headers & All 5 Games Catalog (#catalog)
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section.deep {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-heading {
  max-width: 680px;
  margin-bottom: 52px;
}

.sec-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  font-style: italic;
  margin: 14px 0 12px;
}

.sec-heading p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

.worlds-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.world-card {
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 34px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.world-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-solar);
}

.world-card:nth-child(even) .world-gallery {
  order: -1;
}

.world-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.world-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border-solar);
  flex-shrink: 0;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.7);
}

.world-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.w-cat {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--solar-bright);
}

.w-dl {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(247, 37, 133, 0.2);
  color: #ff85bc;
  border: 1px solid var(--border-orchid);
}

.world-head h3 {
  font-size: 1.65rem;
  font-weight: 800;
}

.world-desc {
  color: var(--text-soft);
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.world-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.world-bullets li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.world-bullets li::before {
  content: "⚡";
  font-size: 0.85rem;
}

/* Gallery Trio (Landscape Bento vs Portrait 3-Up) */
.world-gallery.landscape {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.world-gallery.landscape .w-shot {
  aspect-ratio: 16 / 9;
}

.world-gallery.landscape .w-shot:first-child {
  grid-column: span 2;
}

.world-gallery.portrait {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.world-gallery.portrait .w-shot {
  aspect-ratio: 9 / 16;
}

.w-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}

.w-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.world-card:hover .w-shot img {
  transform: scale(1.03);
}

/* ==========================================================================
   3 Creative Realms & Studio Philosophy (#dna)
   ========================================================================== */
.realms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.realm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.realm-card:hover {
  transform: translateY(-5px);
  border-color: var(--solar);
}

.realm-orb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid var(--border-solar);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.realm-card h4 {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.realm-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ==========================================================================
   Savanna Solar CTA (#contact) & Footer
   ========================================================================== */
.solar-banner {
  background:
    radial-gradient(65% 120% at 95% 50%, rgba(247, 37, 133, 0.26), transparent 65%),
    linear-gradient(135deg, #2b1854 0%, #190d34 100%);
  border: 1px solid var(--border-solar);
  border-radius: var(--radius-2xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.solar-banner h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  font-style: italic;
  margin: 12px 0 10px;
}

.solar-banner p {
  color: var(--text-soft);
  max-width: 540px;
}

.solar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 0.85fr 1fr;
  gap: 38px;
}

.footer-brand p {
  color: var(--text-soft);
  margin-top: 14px;
  font-size: 0.92rem;
  max-width: 310px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 16px;
}

.footer-col a, .footer-col span.addr {
  display: block;
  color: var(--text-soft);
  font-size: 0.91rem;
  margin-bottom: 10px;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--solar-bright);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Policy & Contact Subpages
   ========================================================================== */
.policy-hero {
  padding: 64px 0 32px;
  text-align: center;
}

.policy-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  font-style: italic;
  margin-top: 14px;
}

.policy-hero p {
  color: var(--text-soft);
  margin-top: 10px;
}

.policy-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border-solar);
  border-radius: var(--radius-2xl);
  padding: 46px 50px;
  box-shadow: var(--shadow);
}

.policy-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--solar-bright);
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: #ff85bc;
}

.policy-card h4 {
  font-size: 1rem;
  margin: 18px 0 8px;
}

.policy-card p {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.policy-card ul, .policy-card ol {
  margin: 0 0 16px 4px;
  padding-left: 22px;
  color: var(--text-soft);
}

.policy-card ul li, .policy-card ol li {
  margin-bottom: 9px;
}

.policy-card a {
  color: var(--solar-bright);
  word-break: break-word;
}

.policy-card a:hover {
  text-decoration: underline;
}

.policy-card blockquote {
  background: var(--surface-2);
  border-left: 3px solid var(--solar);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
}

#data-deletion {
  background: var(--surface-2);
  border: 1px solid var(--border-solar);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 24px 0;
}

/* ==========================================================================
   Reveal & Responsive
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .launcher-deck,
  .world-card {
    grid-template-columns: 1fr;
  }
  .world-card:nth-child(even) .world-gallery {
    order: 0;
  }
  .ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .realms-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-solar);
    padding: 24px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  .launcher-stage {
    min-height: 420px;
  }
  .stage-overlay {
    padding: 40px 20px 22px;
  }
  .world-card {
    padding: 22px;
  }
  .world-bullets,
  .ribbon-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .solar-banner {
    padding: 36px 24px;
  }
  .policy-card {
    padding: 28px 20px;
  }
  .nav-cta .btn-plum {
    display: none;
  }
}
