/* css/landing.css */

html, body.landing-body {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: 100vh;
  background: #030107;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.space-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 760px;
}

.section {
  padding: 100px 0;
  position: relative;
}
.section-dark {
  background: rgba(10, 5, 24, 0.4);
  border-top: 1px solid rgba(248, 216, 120, 0.08);
  border-bottom: 1px solid rgba(248, 216, 120, 0.08);
}
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  opacity: 0.4;
  animation: pulse-down 2s ease-in-out infinite;
}
@keyframes pulse-down {
  0%, 100% { opacity: 0.2; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.6; transform: translateX(-50%) translateY(8px); }
}

.hero-inner {
  text-align: center;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 11px;
  letter-spacing: 0.7em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 24px;
  animation: fade-down 1s ease-out 0.2s backwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.08em;
  margin: 0 0 32px;
  animation: title-reveal 1.5s ease-out 0.5s backwards;
}
.hero-title-1 {
  display: block;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(248, 216, 120, 0.4);
}
.hero-title-2 {
  display: block;
  color: var(--text-bright);
  margin-top: 4px;
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.9;
  letter-spacing: 0.1em;
  margin-bottom: 48px;
  animation: fade-down 1s ease-out 1s backwards;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  animation: fade-down 1s ease-out 1.4s backwards;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(248, 216, 120, 0.15) 0%, rgba(248, 216, 120, 0.05) 100%);
  border: 1px solid var(--gold);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease-out;
  box-shadow: 0 0 40px rgba(248, 216, 120, 0.15);
}
.btn-play:hover {
  background: linear-gradient(135deg, rgba(248, 216, 120, 0.25) 0%, rgba(248, 216, 120, 0.1) 100%);
  box-shadow: 0 0 60px rgba(248, 216, 120, 0.3);
  transform: translateY(-2px);
}
.btn-play-large {
  padding: 20px 48px;
}
.btn-play-icon {
  font-size: 20px;
  color: var(--gold);
}
.btn-play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.btn-play-main {
  font-size: 16px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.btn-play-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2px;
}

/* ── Desktop download button ────────────────────────────────────
   Secondary CTA that appears between "Play in browser" and
   "Learn more ↓". Muted slate/silver palette so it reads as an
   alternative rather than competing with the gold primary CTA.
   Same general shape as .btn-play so the hero stays balanced. */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(94, 215, 255, 0.08) 0%, rgba(94, 215, 255, 0.03) 100%);
  border: 1px solid rgba(94, 215, 255, 0.28);
  border-radius: 6px;
  color: #bfe7ff;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-download:hover {
  background: linear-gradient(135deg, rgba(94, 215, 255, 0.16) 0%, rgba(94, 215, 255, 0.06) 100%);
  border-color: rgba(94, 215, 255, 0.55);
  box-shadow: 0 0 40px rgba(94, 215, 255, 0.2);
  transform: translateY(-1px);
}
.btn-download-icon {
  font-size: 18px;
  color: #6ed7ff;
  line-height: 1;
}
.btn-download-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.btn-download-main {
  font-size: 13px;
  color: #cfeaff;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-download-sub {
  font-size: 10.5px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.btn-download[hidden] {
  display: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.btn-secondary:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  animation: fade-down 1s ease-out 1.8s backwards;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat b {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.stat span {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ─── Responsiveness polish ─────────────────────────────────── */
@media (max-width: 960px) {
  .container { padding: 0 22px; }
  .section { padding: 78px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-cta { gap: 14px; margin-bottom: 46px; }
  .hero-stats { gap: 28px; }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 28px; margin-bottom: 14px; }
  .hero { padding: 72px 16px; }
  .btn-play { padding: 14px 18px; gap: 12px; width: 100%; justify-content: center; }
  .btn-play-text { text-align: center; }
  .btn-download { padding: 12px 18px; gap: 10px; width: 100%; justify-content: center; }
  .btn-download-text { text-align: center; }
  .btn-secondary { width: 100%; justify-content: center; }
  .hero-tagline { font-size: 14px; }
  .stat b { font-size: 34px; }
}

.about-text .lead {
  font-size: 19px;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}
.about-text p {
  margin-bottom: 18px;
  color: var(--text);
}
.about-text strong {
  color: var(--gold);
  font-weight: 500;
}
.about-text em {
  color: var(--cyan);
  font-style: italic;
}

.screenshot-frame {
  background: var(--bg-void);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 0 60px rgba(248, 216, 120, 0.15);
}
.fake-screen {
  background: rgba(248, 216, 120, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 20px;
}
.fake-screen-line {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.fake-screen-gold {
  color: var(--gold);
}
.fake-screen-speaker {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.fake-screen-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.fake-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fake-choice {
  font-size: 13px;
  color: var(--gold);
  padding: 8px 12px;
  border-left: 2px solid var(--gold);
  background: rgba(248, 216, 120, 0.04);
  border-radius: 2px;
  transition: all 0.2s;
}
.fake-choice:hover {
  background: rgba(248, 216, 120, 0.1);
  padding-left: 16px;
}

/* ─── FEATURES ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature {
  background: rgba(248, 216, 120, 0.04);
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: 28px 24px;
  transition: all 0.3s;
}
.feature:hover {
  background: rgba(248, 216, 120, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.feature-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.feature p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

/* ─── GALLERY ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.gallery-item {
  background: rgba(10, 5, 24, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.gallery-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
  z-index: 0;
}
.gallery-1::before {
  background: radial-gradient(circle at 20% 30%, rgba(255, 68, 102, 0.3), transparent 60%);
}
.gallery-2::before {
  background: radial-gradient(circle at 70% 30%, rgba(248, 216, 120, 0.25), transparent 60%);
}
.gallery-3::before {
  background: radial-gradient(circle at 40% 40%, rgba(94, 215, 255, 0.2), transparent 60%);
}
.gallery-4::before {
  background: radial-gradient(circle at 60% 30%, rgba(176, 133, 255, 0.25), transparent 60%);
}
.gallery-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.gallery-caption {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ─── STORY TEASER ───────────────────────────────────────── */
.story-teaser {
  background: rgba(248, 216, 120, 0.03);
  border-left: 2px solid var(--gold);
  padding: 36px 40px;
  margin: 40px 0;
  border-radius: 0 6px 6px 0;
}
.story-teaser p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}
.teaser-lead {
  font-size: 20px !important;
  color: var(--text-bright) !important;
  font-weight: 500;
}
.teaser-gold {
  color: var(--gold) !important;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  margin-top: 12px;
}

.cta-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ─── WIKI PREVIEW ───────────────────────────────────────── */
.wiki-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.wiki-card {
  display: block;
  text-decoration: none;
  background: rgba(248, 216, 120, 0.04);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 20px 22px;
  transition: all 0.25s;
}
.wiki-card:hover {
  background: rgba(248, 216, 120, 0.1);
  border-left-width: 5px;
  padding-left: 24px;
}
.wiki-card-cat {
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.wiki-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.wiki-card-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
}
.wiki-cta {
  text-align: center;
  margin-top: 32px;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq {
  margin-top: 40px;
}
.faq-item {
  background: rgba(248, 216, 120, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.25s;
}
.faq-item[open] {
  background: rgba(248, 216, 120, 0.06);
  border-color: var(--border-gold);
}
.faq-item summary {
  padding: 16px 24px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.25s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #020108;
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.footer-sub {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-top: 4px;
}
.footer-heading {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--gold);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  font-style: italic;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes title-reveal {
  from { opacity: 0; letter-spacing: 0.3em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0.08em; filter: blur(0); }
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .section-title { font-size: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .wiki-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
  .stat b { font-size: 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 20px; }
  .section-title { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .wiki-preview-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-tagline { font-size: 14px; }
  .story-teaser { padding: 24px 20px; }
  .story-teaser p { font-size: 14px; }
  .teaser-lead { font-size: 16px !important; }
  .hero-stats { gap: 20px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 9px; }
}
