/* === Chicken Evolution: Idle Game - Premium Styles === */

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090b;
  --panel-bg: #111114;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #fbbf24; /* Golden Chicken Yellow */
  --accent-alt: #f59e0b;
  --accent-glow: rgba(251, 191, 36, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 350px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

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

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* === LAYOUT: SIDEBAR + CONTENT === */
.master-wrapper {
  display: flex;
  min-height: 100vh;
}

.sticky-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--panel-bg);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  z-index: 100;
  overflow-y: auto;
}

.main-content {
  flex: 1;
  width: calc(100% - var(--sidebar-width));
}

/* === NAVIGATION === */
.split-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--glass-border);
}

.nav-top-bar {
  height: 32px;
  background: rgba(251, 191, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
  font-size: 12px;
  gap: 2rem;
}

.nav-main-bar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

/* === PREMIUM UI BLOCKS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

section {
  padding: 5rem 0;
  position: relative;
  overflow: clip;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  position: relative;
}

/* Gradient Border Glow Effect */
.gradient-border-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(var(--grad-angle, 0deg), var(--accent), transparent, var(--accent-alt), transparent);
  animation: rotateGrad 4s linear infinite;
}

@keyframes rotateGrad {
  0% { --grad-angle: 0deg; }
  100% { --grad-angle: 360deg; }
}

@property --grad-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn-pill {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px var(--accent-glow);
  background: var(--accent-alt);
}

/* === SECTION DIVIDERS: SLANT === */
.slant-divider-top {
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  margin-top: -5rem;
}

.slant-divider-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: -5rem;
}

/* === HERO SECTION === */
.egg-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
}

.hero-app-icon {
  width: 160px;
  height: 160px;
  border-radius: 40px;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 50px var(--accent-glow);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  max-width: 900px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2rem;
  max-width: 600px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.rating-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-badge i { color: var(--accent); }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* === DEMO SECTION === */
.arena-showcase {
  background: #0f172a;
}

.device-frame {
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  padding: 12px;
  background: #1e293b;
  border-radius: 40px;
  border: 4px solid #334155;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7);
}

.device-frame img {
  border-radius: 30px;
  width: 100%;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 2rem;
  cursor: pointer;
  animation: pulsePlay 2s infinite;
}

@keyframes pulsePlay {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
  70% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 20px rgba(251, 191, 36, 0); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* === FEATURES: HORIZONTAL SCROLL === */
.evolution-hub {
  padding-right: 0;
}

.feature-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 0 4rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.feature-scroll-container::-webkit-scrollbar { display: none; }

.feature-card {
  min-width: 320px;
  scroll-snap-align: start;
  flex: 0 0 320px;
}

.feature-card .glass-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* === SCREENSHOT GALLERY: FULL-BLEED SLIDER === */
.evolution-gallery {
  padding-bottom: 8rem;
}

.slider-viewport {
  position: relative;
  max-width: 340px;
  height: 550px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

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

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 10;
}

.slider-btn {
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* === REVIEWS: SOCIAL TICKER === */
.review-strip {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.ticker-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticker 40s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mini-excerpt {
  background: var(--panel-bg);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.aggregated-stats {
  margin-top: 3rem;
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 1000px;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

/* === FAQ SECTION === */
.evolution-qa {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(255,255,255,0.02);
}

.faq-content p {
  padding: 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-trigger {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-item.active .faq-content {
  max-height: 500px;
}

/* === DOWNLOAD CTA: FULL VIEWPORT === */
.final-takeoff {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #09090b 0%, #1e1b4b 100%);
  text-align: center;
}

.final-takeoff h2 {
  font-size: clamp(2rem, 10vw, 5rem);
  margin-bottom: 2rem;
  color: var(--accent);
}

/* === FOOTER: LOGO WATERMARK === */
.logo-watermark-footer {
  position: relative;
  padding: 6rem 0 3rem;
  background: #050507;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20vw;
  font-family: 'Unbounded';
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
}

.footer-brand i { font-size: 24px; color: var(--accent); }

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.newsletter-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-box input {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
}

/* === SIDEBAR SPECIFICS === */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.sidebar-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.sidebar-menu {
  list-style: none;
  flex: 1;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-link i { font-size: 20px; }

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  :root { --sidebar-width: 280px; }
  .footer-content { gap: 2rem; }
}

@media (max-width: 900px) {
  .master-wrapper { flex-direction: column; }
  .sticky-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
  }
  .main-content { width: 100%; }
  .split-nav { left: 0; }
  .sidebar-menu { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .nav-top-bar { display: none; }
  .nav-main-bar { padding: 0 1rem; }
  .nav-links { display: none; } /* Hamburger handled in JS */
  .footer-content { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .device-frame { max-width: 280px; }
  .feature-card { min-width: 280px; flex: 0 0 280px; }
}

/* Scroll Snap Alignment for features */
.feature-scroll-container > * {
  scroll-snap-align: center;
}

/* Active Nav State */
.sidebar-link.active i { color: var(--accent); }
