/* ============================================
   PICALLO DEFENDER — Marketing Site
   Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  /* Colors */
  --bg-deep:       #050510;
  --bg-mid:        #0a0a2e;
  --bg-card:       rgba(15, 15, 50, 0.7);
  --bg-card-hover: rgba(25, 25, 70, 0.85);
  --neon-cyan:     #00f0ff;
  --neon-magenta:  #ff2d75;
  --neon-green:    #39ff14;
  --neon-yellow:   #ffe600;
  --text-primary:  #f0f0f0;
  --text-muted:    #8888aa;
  --text-dim:      #555577;
  --border-glow:   rgba(0, 240, 255, 0.15);

  /* Typography */
  --font-arcade:   'Press Start 2P', monospace;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-med:  0.4s ease;
  --transition-slow: 0.8s ease;
  --max-width: 1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* --- CRT Scanline Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- Starfield Canvas --- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Global Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  transition: var(--transition-fast);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  font-family: var(--font-arcade);
  font-size: 0.7rem;
  color: var(--neon-cyan);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transition: var(--transition-fast);
}

.nav-logo:hover {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.3);
}

.nav-badge {
  display: flex;
  align-items: center;
}

.nav-badge img {
  height: 40px;
  width: auto;
}

/* --- Sections --- */
section {
  position: relative;
  z-index: 1;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-magenta);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
  animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 117, 0.2); }
  50%      { box-shadow: 0 0 20px 5px rgba(255, 45, 117, 0.1); }
}

.hero h1 {
  font-family: var(--font-arcade);
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.4),
    0 0 30px rgba(0, 240, 255, 0.2),
    0 0 60px rgba(0, 240, 255, 0.1);
}

.hero h1 .highlight {
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.6),
    0 0 30px rgba(0, 240, 255, 0.4),
    0 0 60px rgba(0, 240, 255, 0.2),
    0 0 100px rgba(0, 240, 255, 0.1);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-block;
  transition: var(--transition-fast);
}

.app-store-badge:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.hero-platforms {
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-cyan);
  transform: rotate(45deg);
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* --- Feature Section --- */
.features {
  padding: var(--space-3xl) var(--space-md);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 46, 0.3) 50%, transparent 100%);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  font-family: var(--font-arcade);
  font-size: 0.6rem;
  color: var(--neon-magenta);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-family: var(--font-arcade);
  font-size: clamp(1rem, 3vw, 1.6rem);
  line-height: 1.6;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: var(--transition-med);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.feature-card h3 {
  font-family: var(--font-arcade);
  font-size: 0.6rem;
  color: var(--neon-cyan);
  margin-bottom: var(--space-sm);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Gameplay Section --- */
.gameplay {
  padding: var(--space-3xl) var(--space-md);
}

.gameplay-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gameplay-visual {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 540px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-glow);
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.1),
    inset 0 0 60px rgba(0, 240, 255, 0.05);
  background: var(--bg-mid);
}

.gameplay-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gameplay-text h2 {
  font-family: var(--font-arcade);
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.gameplay-text h2 .accent {
  color: var(--neon-magenta);
  text-shadow: 0 0 15px rgba(255, 45, 117, 0.4);
}

.gameplay-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.gameplay-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-arcade);
  font-size: 1.2rem;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* --- Review Section --- */
.review {
  padding: var(--space-3xl) var(--space-md);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 46, 0.3) 50%, transparent 100%);
}

.review-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: rgba(0, 240, 255, 0.1);
  line-height: 1;
}

.review-stars {
  color: var(--neon-yellow);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.3);
}

.review-title {
  font-family: var(--font-arcade);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.review-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.review-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-family: var(--font-arcade);
  font-size: 0.55rem;
  color: var(--neon-green);
}

/* --- CTA Section --- */
.cta {
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-arcade);
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
  text-shadow:
    0 0 10px rgba(255, 45, 117, 0.4),
    0 0 30px rgba(255, 45, 117, 0.2);
}

.cta h2 .highlight {
  color: var(--neon-magenta);
}

.cta p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.cta .app-store-badge img {
  height: 60px;
}

.cta-price {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cta-price strong {
  color: var(--neon-green);
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-glow);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

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

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.footer-apple-credit {
  font-size: 0.65rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.7;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .gameplay-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .gameplay-visual {
    max-height: 400px;
    max-width: 260px;
  }

  .gameplay-stats {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .nav-logo {
    font-size: 0.55rem;
  }

  .nav-badge img {
    height: 32px;
  }

  .app-store-badge img {
    height: 44px;
  }

  .cta .app-store-badge img {
    height: 50px;
  }

  .hero-cta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: var(--space-md);
  }

  .review-card {
    padding: var(--space-md);
  }

  .gameplay-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
