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

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

:root {
  --bg: #07070f;
  --bg2: #0d0d1a;
  --bg3: #12122a;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent3: #c084fc;
  --cyan: #06b6d4;
  --green: #10b981;
  --gold: #d97706;
  --gold2: #f59e0b;
  --gold3: #fbbf24;
  --text: #e2e8f0;
  --muted: #64748b;
  --border: rgba(124,58,237,0.25);
  --border-gold: rgba(245,158,11,0.35);
  --glow: 0 0 20px rgba(124,58,237,0.4);
  --glow2: 0 0 40px rgba(124,58,237,0.2);
  --glow-gold: 0 0 24px rgba(245,158,11,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── CANVAS BG ─────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(168,85,247,0.7);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent2);
  transition: width 0.3s;
  border-radius: 2px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent3);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent2) !important;
  box-shadow: var(--glow);
}

.nav-cta::after { display: none !important; }

/* ─── MAIN WRAPPER ───────────────────────────── */
main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  color: var(--accent3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeDown 0.6s ease both;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.6s 0.1s ease both;
}

.hero h1 .accent { color: var(--accent2); text-shadow: 0 0 20px rgba(168,85,247,0.6); }

.hero p {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeDown 0.6s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeDown 0.6s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 4px 32px rgba(168,85,247,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent2);
  color: var(--accent3);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s 1s ease both;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ─── SECTION BASE ───────────────────────────── */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent3);
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ─── FEATURES GRID ──────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(168,85,247,0.4);
  box-shadow: var(--glow2);
  transform: translateY(-4px);
}

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

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── STATS BAR ──────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 4rem 0;
}

.stat-item {
  background: var(--bg2);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  color: var(--accent2);
  text-shadow: 0 0 12px rgba(168,85,247,0.5);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── ABOUT PAGE ─────────────────────────────── */
.about-hero {
  padding: 8rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-hero { grid-template-columns: 1fr; gap: 2rem; }
}

.about-avatar-wrap {
  display: flex;
  justify-content: center;
}

.about-avatar {
  width: 220px; height: 220px;
  border-radius: 16px;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  box-shadow: var(--glow);
}

.about-avatar::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent2));
  z-index: -1;
  opacity: 0.5;
}

.about-content h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
  color: var(--accent2);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 16px rgba(168,85,247,0.5);
}

.about-content .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: var(--accent3);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-year {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--accent3);
  padding-top: 0.3rem;
}

.timeline-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ─── DOWNLOAD PAGE ──────────────────────────── */
.download-hero {
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.download-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.download-card.featured {
  border-color: rgba(168,85,247,0.5);
  box-shadow: var(--glow2);
}

.download-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.5);
  box-shadow: var(--glow);
}

.download-card-icon {
  font-size: 2.5rem;
}

.download-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.download-card .version-tag {
  display: inline-block;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--cyan);
  font-family: monospace;
  letter-spacing: 0.05em;
}

.download-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-list li {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: '▸';
  color: var(--accent3);
  font-size: 0.7rem;
}

.btn-download {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.25s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.btn-download:hover {
  background: var(--accent2);
  box-shadow: 0 4px 24px rgba(168,85,247,0.45);
  transform: translateY(-2px);
}

.btn-download.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-download.ghost:hover {
  border-color: var(--accent2);
  color: var(--accent3);
}

.notice {
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 1.25rem 1.5rem;
  background: rgba(124,58,237,0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.notice strong { color: var(--accent3); }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

footer a { color: var(--accent3); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  section { padding: 4rem 1.25rem; }
}

/* ─── GOLD / PREMIUM BUTTON ──────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold2), var(--gold3));
  box-shadow: 0 4px 28px rgba(245,158,11,0.5);
  transform: translateY(-2px);
}

.btn-download.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  border: none;
  font-weight: 700;
}

.btn-download.gold:hover {
  background: linear-gradient(135deg, var(--gold2), var(--gold3));
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

/* ─── PREMIUM DOWNLOAD CARD ──────────────────── */
.download-card.premium {
  border-color: var(--border-gold);
  background: linear-gradient(160deg, #1a1400 0%, var(--bg2) 60%);
}

.download-card.premium::before {
  content: 'PREMIUM';
  position: absolute;
  top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-size: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.download-card.premium:hover {
  border-color: rgba(245,158,11,0.5);
  box-shadow: var(--glow-gold);
  transform: translateY(-4px);
}

.download-card.premium h2 { color: var(--gold3); }

.version-tag.premium-tag {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.3);
  color: var(--gold3);
}

/* ─── MODULE TAGS ────────────────────────────── */
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.mod-tag {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.73rem;
  color: var(--accent3);
  letter-spacing: 0.02em;
}

/* ─── GUI CARDS ──────────────────────────────── */
.gui-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
}

.gui-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.gui-card:hover {
  border-color: rgba(168,85,247,0.4);
  box-shadow: var(--glow2);
}

.gui-key {
  flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--accent3);
  min-width: 52px;
  text-align: center;
  white-space: nowrap;
}

.gui-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.gui-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

kbd {
  background: var(--bg3);
  border: 1px solid rgba(124,58,237,0.3);
  border-bottom: 2px solid var(--accent);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--accent3);
}

/* ─── CTA STRIP ──────────────────────────────── */
.cta-strip {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(168,85,247,0.06));
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 5rem 2rem;
  text-align: center;
}

