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

:root {
  --bg: #0a0a0a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #ff0055; /* Neon Pink/Red for the Clown theme */
  --accent-glow: rgba(255, 0, 85, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-neon: 0 0 15px var(--accent-glow), 0 0 30px rgba(255, 0, 85, 0.2);
  --font-heading: 'Abril Fatface', cursive;
  --font-body: 'Lato', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff3377;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 0, 85, 0.05) 0%, transparent 70%);
}

/* Background Animated Gradient */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0a0a0a, #1a0505, #0a0a0a, #051a1a);
  background-size: 400% 400%;
  animation: gradientBG 15s linear infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 60px 0;
  position: relative;
  transition: padding 0.5s ease;
}

/* Offset Grid Logic */
.clown-offset-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .clown-offset-row {
    grid-template-columns: 1fr 1fr;
  }
  .clown-offset-row:nth-child(even) {
    transform: translateX(60px);
  }
  .clown-offset-row:nth-child(odd) {
    transform: translateX(-60px);
  }
  section:nth-of-type(n+4) {
    padding: 90px 0;
  }
  section:nth-of-type(n+6) {
    padding: 110px 0;
  }
}

/* Section Divider */
.clown-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.clown-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
}

.clown-nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn-neon {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--accent);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neon);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-neon:hover {
  transform: scale(1.05);
  background: var(--accent);
  color: white;
  animation: neonPulse 1.5s infinite;
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 15px var(--accent-glow); }
  50% { box-shadow: 0 0 30px var(--accent-glow), 0 0 50px rgba(255, 0, 85, 0.3); }
  100% { box-shadow: 0 0 15px var(--accent-glow); }
}

/* Hero Section */
.hero-stats {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-stats-grid {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent);
}

.stat-item p {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Features Section */
.feature-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .feature-row {
    flex-direction: row;
    align-items: center;
  }
  .feature-row.reverse {
    flex-direction: row-reverse;
  }
}

.feature-content {
  flex: 1;
}

.feature-visual {
  flex: 1;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Screenshot Gallery Stacked */
.stacked-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.gallery-item {
  width: 100%;
  max-width: 90vw;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
}

.gallery-caption {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

/* Stats Counter Bar */
.stats-bar {
  background: var(--accent);
  color: white;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.counter-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  display: block;
}

/* Reviews */
.reviews-summary {
  text-align: center;
  margin-bottom: 4rem;
}

.rating-badge {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.rating-badge h2 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.reviews-grid {
  columns: 3 300px;
  column-gap: 1.5rem;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  padding: 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.stars {
  color: #ffcc00;
  margin-bottom: 1rem;
}

/* Download CTA */
.download-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(255, 0, 85, 0.1) 100%);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* Footer */
.clown-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  bottom: -50px;
  right: -50px;
  font-family: var(--font-heading);
  font-size: 20vw;
  opacity: 0.03;
  pointer-events: none;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
}

/* Mobile Nav Dropdown */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .nav-links.active {
    right: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-stats-grid {
    flex-direction: column;
    gap: 1rem;
  }
}

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

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

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
