/* =============================================
   Renovator Saga — Landing Page Styles
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #e8763a;
  --color-primary-dark: #c9581e;
  --color-accent: #ffd166;
  --color-bg: #fdf8f2;
  --color-dark: #1a1a2e;
  --color-text: #3d3535;
  --color-muted: #7a6f6f;
  --color-card: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --font: 'Nunito', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- LANGUAGE BAR ---- */
.lang-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lang-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  height: 44px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.lang-btn.active {
  color: var(--color-accent);
  background: rgba(255,209,102,0.12);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 60%, #3d2a5e 100%);
  color: #fff;
  padding: 80px 24px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  min-height: 90vh;
}

.hero-inner {
  max-width: 520px;
  flex: 1 1 320px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.game-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.game-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
}

.hero-desc strong { color: var(--color-accent); }

.cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-badge {
  height: 56px;
  display: block;
}

.btn-play {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-play:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.badge-free {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-visual {
  flex: 1 1 280px;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---- SECTION COMMONS ---- */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ---- FEATURES ---- */
.features { background: #fff; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---- SHOWCASE ---- */
.showcase { background: var(--color-bg); }

.screenshots-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-row::-webkit-scrollbar { height: 6px; }
.screenshots-row::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.screenshot-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  background: #e0dbd5;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.screenshot-item p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* ---- STORY ---- */
.story { background: linear-gradient(135deg, #fdf8f2, #fff0e0); }

.story-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.story-text {
  flex: 1 1 300px;
}

.story-text .section-title { text-align: left; }

.story-text p {
  color: var(--color-muted);
  margin-top: 16px;
  font-size: 1.02rem;
}

.story-text strong { color: var(--color-primary); }

.story-img-wrap {
  flex: 1 1 240px;
  max-width: 340px;
}

.story-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- MINI-GAMES ---- */
.minigames { background: #fff; }

.minigames-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
  margin: 48px auto 0;
}

.mini-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.mini-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.mini-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.mini-item p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- DOWNLOAD CTA ---- */
.download {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.download-inner h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #fff;
}

.download-inner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.btn-big .store-badge {
  height: 68px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.55);
  padding: 28px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 20px 48px;
    min-height: auto;
    text-align: center;
  }

  .logo-wrap { justify-content: center; }

  .cta-group { justify-content: center; }

  .hero-visual { max-width: 300px; }

  .game-title { font-size: 2rem; }

  .section-title { font-size: 1.6rem; }

  .story-inner { flex-direction: column; }

  .story-text .section-title { text-align: center; }

  .story-img-wrap { max-width: 100%; }

  .screenshots-row { gap: 14px; }

  .screenshot-item { flex: 0 0 180px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }

  .mini-item { flex-direction: column; gap: 12px; }

  .footer-inner { flex-direction: column; text-align: center; }
}
