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

/* ===== VARIABLES ===== */
:root {
  --bg-dark: #0a0a1a;
  --bg-card: #12122a;
  --bg-card2: #1a1a3a;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --orange: #f97316;
  --yellow: #fbbf24;
  --pink: #ec4899;
  --white: #f1f5f9;
  --gray: #94a3b8;
  --border: rgba(124, 58, 237, 0.3);
  --glow: 0 0 20px rgba(124, 58, 237, 0.4);
  --font-pixel: 'Press Start 2P', monospace;
  --font-main: 'Nunito', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--white);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.nav-logo-text span { color: var(--yellow); }

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

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(124, 58, 237, 0.2);
}

.nav-links a.active { color: var(--yellow); }

.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--pink)) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  box-shadow: var(--glow);
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MAIN CONTENT ===== */
main { padding-top: 70px; }

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.6;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

/* ===== PIXEL DIVIDER ===== */
.pixel-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange), var(--yellow));
  margin: 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--purple);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  box-shadow: var(--glow);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-purple { background: rgba(124,58,237,0.2); color: var(--purple-light); }
.badge-orange { background: rgba(249,115,22,0.2); color: var(--orange); }
.badge-yellow { background: rgba(251,191,36,0.2); color: var(--yellow); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--yellow);
  margin-bottom: 1.2rem;
  letter-spacing: 0.1em;
}

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

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--white); }

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

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}

.social-icon:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.8rem;
}

.footer-bottom span { color: var(--purple-light); }

/* ===== PIXEL STARS BG ===== */
.stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--white);
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ===== FIRE DIVIDER ===== */
.fire-divider {
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(249,115,22,0.15));
  position: relative;
  overflow: hidden;
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.4); }
  50% { box-shadow: 0 0 40px rgba(124,58,237,0.8); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
  .hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  section { padding: 3.5rem 1.25rem; }
}
