@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800;900&display=swap');

:root {
  --bg: #efecec;
  --topbar: #211;
  --surface: #f8f9fa;
  --border: #333;
  --text-light: #ddd;
  --text-muted: #333;
  --primary: #f16363; /* Red crest */
  --secondary: #ffdd66; /* Yellow beak */
  --accent: #ad7575; /* Indigo border */
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--accent);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #d04d4d;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* HERO SECTION */
.hero {
  padding: 80px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.1;
  color: var(--accent);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* GOOGLE PLAY BUTTON */
.btn-google-play {
  display: inline-flex;
  align-items: center;
  background: #000000;
  border: 1.5px solid #000000;
  border-radius: 8px;
  padding: 8px 18px;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.btn-google-play:hover {
  opacity: 0.85;
}

.btn-google-play svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.play-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-btn-text .subtext {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #c1c1c1;
}

.play-btn-text .maintext {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* SECONDARY BUTTON */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* HERO PHONE MOCKUP */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: #111;
  border: 12px solid #222;
  border-radius: 36px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 24px;
  background: #222;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FEATURES SECTION */
.features-section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 20px;
  color: var(--accent);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.feature-screenshot {
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 200px;
  background: #000;
}

.feature-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MINIGAMES SHOWCASE */
.showcase-section {
  background: var(--surface);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.games-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.game-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-info {
  flex-grow: 1;
}

.game-card h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-difficulty {
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.game-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.game-play-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.game-play-btn:hover {
  background: #e04a4a;
}

/* INTERACTIVE MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  padding: 24px;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  height: 80vh;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  flex-grow: 1;
  background: #000;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* LEGAL LAYOUT & CONTENT */
.legal-container {
  max-width: 760px;
  margin: 60px auto 100px;
  padding: 0 24px;
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.legal-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-content h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--accent);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 6px;
}

/* ABOUT PAGE LAYOUT */
.about-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #000;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* FOOTER */
.footer {
  background: var(--topbar);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
}

.footer-logo img {
  height: 32px;
}

.footer-info p {
  font-size: 14px;
  color: var(--text-light);
  max-width: 280px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav h4 {
  font-size: 15px;
  color: var(--accent);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-light);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-light);
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}
