/* ===== PIXTEL Landing Page ===== */

@font-face {
  font-family: 'VCR OSD Mono';
  src: url('../TemplateData/vcr_osd_mono.ttf') format('truetype');
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #fff;
  background: #000;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.pixel-font {
  font-family: 'VCR OSD Mono', monospace;
  letter-spacing: 0.04em;
}

/* --- Pixel Grid Background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 230, 146, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 230, 146, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(61, 230, 146, 0.15);
}

.navbar-logo {
  height: 36px;
  width: auto;
  image-rendering: pixelated;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar-links a {
  font-family: 'VCR OSD Mono', monospace;
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
  text-transform: uppercase;
}

.navbar-links a:hover {
  color: #3DE692;
}

.social-icon {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-icon:hover {
  opacity: 1;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  gap: 32px;
}

.hero-banner {
  max-width: 600px;
  width: 100%;
  image-rendering: pixelated;
  animation: fadeInUp 0.8s ease-out;
}

.hero-tagline {
  font-size: 18px;
  color: #aaa;
  max-width: 480px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  font-family: 'VCR OSD Mono', monospace;
  font-size: 20px;
  color: #000;
  background: #3DE692;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 0 20px rgba(61, 230, 146, 0.3);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(61, 230, 146, 0.5);
}

.hero-cta:active {
  transform: translateY(0);
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 48px;
  color: #3DE692;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #111114;
  border: 1px solid #222;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.25s, transform 0.2s;
}

.feature-card:hover {
  border-color: #3DE692;
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ===== CHARACTERS ===== */
.characters {
  padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.characters-title {
  font-size: 28px;
  color: #3DE692;
  margin-bottom: 48px;
}

.characters-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.char-sprite {
  width: 90px;
  image-rendering: pixelated;
  animation: charFloat 3s ease-in-out infinite;
  transition: transform 0.2s;
}

.char-sprite:hover {
  transform: scale(1.15);
}

.char-sprite:nth-child(1) { animation-delay: 0s; }
.char-sprite:nth-child(2) { animation-delay: 0.4s; }
.char-sprite:nth-child(3) { animation-delay: 0.8s; }
.char-sprite:nth-child(4) { animation-delay: 1.2s; }
.char-sprite:nth-child(5) { animation-delay: 1.6s; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 24px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-section .cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  font-family: 'VCR OSD Mono', monospace;
  font-size: 16px;
  color: #000;
  background: #3DE692;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 0 16px rgba(61, 230, 146, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(61, 230, 146, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  font-family: 'VCR OSD Mono', monospace;
  font-size: 16px;
  color: #3DE692;
  background: transparent;
  border: 2px solid #3DE692;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-outline:hover {
  background: rgba(61, 230, 146, 0.1);
  transform: translateY(-2px);
}

.social-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #333;
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}

.social-row a:hover {
  border-color: #3DE692;
  background: rgba(61, 230, 146, 0.08);
}

.social-row svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid #181818;
  color: #555;
  font-size: 13px;
}

.footer a {
  color: #3DE692;
}

/* ===== SEPARATOR ===== */
.separator {
  width: 60px;
  height: 2px;
  background: #3DE692;
  margin: 0 auto;
  opacity: 0.4;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Glow pulse for hero CTA */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(61, 230, 146, 0.3); }
  50% { box-shadow: 0 0 40px rgba(61, 230, 146, 0.55); }
}

.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.3s both, glowPulse 2.5s ease-in-out 1.5s infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .navbar-logo {
    height: 28px;
  }

  .navbar-links {
    gap: 16px;
  }

  .navbar-links a {
    font-size: 12px;
  }

  .hero {
    padding: 100px 16px 40px;
    gap: 24px;
  }

  .hero-banner {
    max-width: 340px;
  }

  .hero-tagline {
    font-size: 15px;
  }

  .hero-cta {
    font-size: 16px;
    padding: 14px 36px;
  }

  .features {
    padding: 48px 16px;
  }

  .features-title,
  .characters-title {
    font-size: 22px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .char-sprite {
    width: 70px;
  }

  .characters-row {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .navbar-links a:not(.social-link) {
    display: none;
  }

  .hero-banner {
    max-width: 280px;
  }

  .hero-cta {
    font-size: 14px;
    padding: 12px 28px;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 28px;
    font-size: 14px;
  }

  .char-sprite {
    width: 56px;
  }
}
