/* ============================================================
   Pixigraphia — Vanilla CSS (no Tailwind)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand purple */
  --brand-50:  #f0e7ff;
  --brand-100: #d9c7ff;
  --brand-200: #b794f6;
  --brand-300: #9f6eee;
  --brand-400: #8b4fe6;
  --brand-500: #7c3aed;
  --brand-600: #6d28d9;
  --brand-700: #5b21b6;
  --brand-800: #4c1d95;
  --brand-900: #3b0f7a;

  /* Accent cyan */
  --accent-400: #22d3ee;
  --accent-500: #06b6d4;
  --accent-600: #0891b2;

  /* Surface dark */
  --surface-900: #0a0a1a;
  --surface-800: #111128;
  --surface-700: #1a1a3e;
  --surface-600: #252550;
  --surface-500: #2e2e60;

  /* Text */
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;

  /* Misc */
  --green-400: #4ade80;
  --green-500: #22c55e;
  --red-400:   #f87171;
  --red-500:   #ef4444;
  --white-5:   rgba(255,255,255,0.05);
  --white-10:  rgba(255,255,255,0.10);
  --white-20:  rgba(255,255,255,0.20);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--surface-900);
  color: #e2e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
code { font-family: 'Courier New', monospace; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-800); }
::-webkit-scrollbar-thumb { background: #3b3b6e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5b5b9e; }

/* ════════════════════════════════
   ANIMATIONS / KEYFRAMES
   ════════════════════════════════ */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}
@keyframes particle-float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes pixel-draw {
  0%   { opacity: 0; transform: scale(0); }
  50%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(124,58,237,0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ── Reusable animation classes ── */
.animate-fade-in-up   { animation: fade-in-up 0.6s ease-out forwards; opacity: 0; }
.float-animation      { animation: float 3s ease-in-out infinite; }
.pulse-dot            { animation: pulse-dot 2s ease-in-out infinite; }
.animate-bounce       { animation: bounce 1s ease-in-out infinite; }
.btn-download-pulse   { animation: btn-pulse 2s ease-in-out infinite; }
.shimmer { background: linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent); background-size:200% 100%; animation:shimmer 3s infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ════════════════════════════════
   LAYOUT UTILITIES
   ════════════════════════════════ */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.container-md {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container-md { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-md { padding-inline: 2rem; } }

.container-sm {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container-sm { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-sm { padding-inline: 2rem; } }

/* ── Flex helpers ── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1       { flex: 1; }
.shrink-0     { flex-shrink: 0; }
.inline-flex  { display: inline-flex; }
.gap-1        { gap: 0.25rem; }
.gap-2        { gap: 0.5rem; }
.gap-2-5      { gap: 0.625rem; }
.gap-3        { gap: 0.75rem; }
.gap-4        { gap: 1rem; }
.gap-6        { gap: 1.5rem; }
.gap-8        { gap: 2rem; }
.gap-12       { gap: 3rem; }

/* ── Grid ── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* ════════════════════════════════
   BACKGROUND PATTERNS & EFFECTS
   ════════════════════════════════ */
.pixel-grid-bg {
  background-image:
    linear-gradient(rgba(124,58,237,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.03) 1px, transparent 1px);
  background-size: 16px 16px;
}
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
}
.gradient-border {
  background: linear-gradient(135deg,var(--brand-500),var(--accent-500),var(--brand-500),var(--accent-500));
  background-size: 300% 300%;
  animation: gradient-shift 4s ease infinite;
}
.glow-purple { box-shadow: 0 0 20px rgba(124,58,237,.3), 0 0 60px rgba(124,58,237,.1); }
.glow-cyan   { box-shadow: 0 0 20px rgba(6,182,212,.3),  0 0 60px rgba(6,182,212,.1); }
.text-glow   { text-shadow: 0 0 20px rgba(124,58,237,.5), 0 0 40px rgba(124,58,237,.2); }

/* ════════════════════════════════
   NAVBAR
   ════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(10,10,26,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.navbar-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px)  { .navbar-inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .navbar-inner { padding-inline: 2rem; height: 5rem; } }

/* Logo */
.logo-link { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon-wrap {
  position: relative;
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  ring: 1px solid rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color 0.2s;
}
.logo-link:hover .logo-icon-wrap { border-color: rgba(124,58,237,.5); }
.logo-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.logo-glow {
  position: absolute; inset: -4px;
  border-radius: 0.75rem;
  background: rgba(124,58,237,.2);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s;
}
.logo-link:hover .logo-glow { opacity: 1; }
.logo-text { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; }
.logo-text .white { color: #fff; }
.logo-text .purple { color: var(--brand-400); }

/* Desktop nav links */
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--slate-300);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }

.nav-divider { width: 1px; height: 1.5rem; background: rgba(255,255,255,.1); margin-inline: 0.5rem; }

.btn-download-nav {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: var(--brand-600);
  border-radius: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-download-nav:hover {
  background: var(--brand-500);
  box-shadow: 0 8px 20px rgba(124,58,237,.25);
}

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--slate-400);
  transition: color 0.2s;
}
.mobile-toggle:hover { color: #fff; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(17,17,40,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu-inner { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--slate-300);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.btn-download-mobile {
  display: block;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  color: #fff;
  background: var(--brand-600);
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-download-mobile:hover { background: var(--brand-500); }

/* ════════════════════════════════
   PAGE WRAPPER
   ════════════════════════════════ */
.page-wrap { min-height: 100vh; background: var(--surface-900); }

/* ════════════════════════════════
   HERO SECTION
   ════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,26,.6), rgba(10,10,26,.8), var(--surface-900));
}
.particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(139,79,230,.3);
}
.hero-content {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
  padding: 6rem 1rem 5rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 640px)  { .hero-content { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hero-content { padding-inline: 2rem; grid-template-columns: 1fr 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  color: var(--brand-300);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-title .white { color: #fff; }
.hero-title .gradient-text {
  background: linear-gradient(90deg, var(--brand-400), var(--accent-400), var(--brand-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--slate-400);
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .hero-desc { font-size: 1.25rem; } }

.hero-buttons { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  border-radius: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(124,58,237,.25);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-500), var(--brand-400)); box-shadow: 0 12px 28px rgba(124,58,237,.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-300);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); color: #fff; }

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  flex-wrap: wrap;
}
.hero-platforms span { display: flex; align-items: center; gap: 0.5rem; }

/* Hero canvas side */
.hero-visual { display: none; justify-content: center; }
@media (min-width: 1024px) { .hero-visual { display: flex; } }
.hero-visual-inner { position: relative; }
.hero-canvas-glow {
  position: absolute; inset: -1rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(6,182,212,.2));
  filter: blur(48px);
}
#pixelCanvas { width: 400px; height: 400px; border-radius: 1rem; opacity: .6; image-rendering: pixelated; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  color: var(--slate-500);
}
.scroll-indicator span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-mouse {
  width: 1.25rem; height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0.25rem;
}
.scroll-dot { width: 4px; height: 8px; border-radius: 9999px; background: var(--brand-400); }

/* ════════════════════════════════
   STATS BAR
   ════════════════════════════════ */
.stats-bar {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(17,17,40,.3);
}
.stats-grid {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2rem;
}
@media (min-width: 640px)  { .stats-grid { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .stats-grid { padding-inline: 2rem; grid-template-columns: repeat(4,1fr); } }

.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
@media (min-width: 1024px) { .stat-number { font-size: 3rem; } }
.stat-suffix { color: var(--brand-400); }
.stat-label  { font-size: 0.875rem; color: var(--slate-400); }

/* ════════════════════════════════
   SECTION COMMON
   ════════════════════════════════ */
.section { position: relative; padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section.bg-alt { background: rgba(17,17,40,.2); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--slate-400);
  max-width: 40rem;
  margin-inline: auto;
}

/* ════════════════════════════════
   FEATURE CARDS
   ════════════════════════════════ */
.features-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3,1fr); } }

.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(17,17,40,.5);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(124,58,237,.15), 0 0 0 1px rgba(124,58,237,.2);
  border-color: rgba(124,58,237,.2);
}
.feature-card.ultimate {
  background: linear-gradient(135deg, rgba(59,15,122,.4), var(--surface-800));
  border-color: rgba(124,58,237,.3);
}
.feature-card-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-300);
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 9999px;
}
.feature-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.05);
  color: var(--brand-400);
}
.feature-icon.ultimate { background: rgba(124,58,237,.2); color: var(--brand-300); }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; }

/* ════════════════════════════════
   SHOWCASE CARDS
   ════════════════════════════════ */
.showcase-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .showcase-grid { grid-template-columns: repeat(2,1fr); } }

.screenshot-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(17,17,40,.5);
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}
.screenshot-card:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(124,58,237,.2);
}
.screenshot-card-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.screenshot-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.screenshot-card:hover .screenshot-card-img img { transform: scale(1.05); }
.screenshot-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface-900), transparent, transparent);
}
.screenshot-card-body { padding: 1.5rem; }
.screenshot-card-body h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.screenshot-card-body p  { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; }

/* ════════════════════════════════
   TECH CARDS
   ════════════════════════════════ */
.tech-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .tech-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(4,1fr); } }

.tech-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(17,17,40,.3);
  border: 1px solid rgba(255,255,255,.05);
  transition: border-color 0.3s;
}
.tech-card:hover { border-color: rgba(124,58,237,.2); }
.tech-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(124,58,237,.1);
  color: var(--brand-400);
  margin-bottom: 1rem;
}
.tech-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.tech-card p  { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; }

.tech-stats { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .tech-stats { grid-template-columns: repeat(3,1fr); } }
.tech-stat-item {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(17,17,40,.3);
  border: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.tech-stat-item .val { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.tech-stat-item .lbl { font-size: 0.875rem; color: var(--slate-400); }

/* ════════════════════════════════
   MINECRAFT SECTION
   ════════════════════════════════ */
.mc-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .mc-grid { grid-template-columns: 1fr 1fr; } }

.mc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  color: var(--green-400);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.mc-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.mc-desc { font-size: 1.125rem; color: var(--slate-400); line-height: 1.7; margin-bottom: 2rem; }
.mc-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.mc-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--slate-300); }
.mc-list li svg { color: var(--green-400); margin-top: 0.125rem; flex-shrink: 0; }
.mc-list li span { font-size: 0.875rem; }

.btn-green {
  display: inline-flex;
  align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: #fff;
  background: #16a34a;
  border-radius: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(34,197,94,.2);
}
.btn-green:hover { background: #22c55e; }

/* Creeper pixel grid */
.mc-pixel-wrap { position: relative; }
.mc-pixel-glow {
  position: absolute; inset: -1rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(34,197,94,.1), rgba(124,58,237,.1));
  filter: blur(48px);
}
.mc-pixel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16,1fr);
  gap: 0.125rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(17,17,40,.5);
  border: 1px solid rgba(255,255,255,.05);
}
.mc-pixel { aspect-ratio: 1; border-radius: 2px; }

/* ════════════════════════════════
   EDITIONS / COMPARISON
   ════════════════════════════════ */
.editions-grid { display: grid; gap: 2rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .editions-grid { grid-template-columns: 1fr 1fr; } }

.edition-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(17,17,40,.5);
  transition: border-color 0.2s;
}
.edition-card:hover { border-color: rgba(255,255,255,.2); }
.edition-card.ultimate-card {
  background: linear-gradient(135deg, rgba(59,15,122,.5), var(--surface-800));
  border-color: rgba(124,58,237,.3);
}
.edition-card.ultimate-card:hover { border-color: rgba(124,58,237,.5); }
.edition-pro-badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-300);
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 9999px;
}
.edition-card h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.edition-card .subtitle { color: var(--slate-400); margin-bottom: 1.5rem; font-size: 0.9rem; }
.edition-price { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 0.25rem; }
.edition-price-sub { font-size: 0.875rem; color: var(--slate-500); margin-bottom: 2rem; }
.btn-edition-std {
  display: block; width: 100%; text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.btn-edition-std:hover { background: rgba(255,255,255,.15); }
.btn-edition-ult {
  display: block; width: 100%; text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: #fff;
  background: var(--brand-600);
  border-radius: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(124,58,237,.2);
}
.btn-edition-ult:hover { background: var(--brand-500); }
.edition-features { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.edition-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--slate-300); }
.check-green { color: var(--green-400); flex-shrink: 0; }
.check-purple { color: var(--brand-400); flex-shrink: 0; }

/* Comparison table */
.comparison-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(17,17,40,.3);
}
.comparison-table { width: 100%; text-align: left; border-collapse: collapse; }
.comparison-table thead tr { border-bottom: 1px solid rgba(255,255,255,.1); }
.comparison-table th { padding: 1rem 1.5rem; font-size: 0.875rem; font-weight: 600; color: #fff; }
.comparison-table th.center { text-align: center; width: 8rem; }
.comparison-table th .purple { color: var(--brand-400); }
.comparison-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.05); transition: background 0.2s; }
.comparison-table tbody tr:hover { background: rgba(124,58,237,.05); }
.comparison-table td { padding: 0.875rem 1.5rem; font-size: 0.875rem; color: var(--slate-300); }
.comparison-table td.center { text-align: center; }
.check-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
}
.check-circle.yes-green { background: rgba(74,222,128,.1); color: var(--green-400); }
.check-circle.yes-purple { background: rgba(124,58,237,.1); color: var(--brand-400); }
.check-circle.no        { background: rgba(255,255,255,.05); color: #475569; }

/* ════════════════════════════════
   CTA SECTION
   ════════════════════════════════ */
.cta-section { position: relative; padding: 6rem 0; }
@media (min-width: 1024px) { .cta-section { padding: 8rem 0; } }
.cta-box {
  position: relative;
  padding: 3rem;
  border-radius: 1.5rem;
  overflow: hidden;
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
}
@media (min-width: 640px) { .cta-box { padding: 4rem; } }
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
}
.cta-grid { position: absolute; inset: 0; opacity: .2; }
.cta-content { position: relative; }
.cta-box h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.cta-box p { font-size: 1.125rem; color: rgba(237,233,254,.8); max-width: 28rem; margin-inline: auto; margin-bottom: 2rem; }
.cta-buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }
.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; font-size: 1rem; font-weight: 600;
  color: #3b0f7a; background: #fff;
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.btn-cta-primary:hover { background: #ede9fe; }
.btn-cta-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; font-size: 1rem; font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 0.75rem;
  transition: all 0.2s;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,.1); }

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
footer {
  position: relative;
  background: var(--surface-900);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-gradient { height: 1px; background: linear-gradient(90deg, transparent, rgba(124,58,237,.5), transparent); }
.footer-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 4rem 1rem;
}
@media (min-width: 640px)  { .footer-inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .footer-inner { padding-inline: 2rem; } }

.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.footer-brand p { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; margin-top: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-text { font-size: 1.125rem; font-weight: 700; }
.footer-logo-text .white  { color: #fff; }
.footer-logo-text .purple { color: var(--brand-400); }

.footer-col h4 {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: var(--slate-400); transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-400); }

.footer-feedback p { font-size: 0.875rem; color: var(--slate-400); margin-bottom: 1rem; }
.footer-feedback-btns { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-feedback-bug {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem; font-weight: 500;
  color: var(--brand-400);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.btn-feedback-bug:hover { background: rgba(124,58,237,.1); }
.btn-feedback-feat {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent-400);
  border: 1px solid rgba(6,182,212,.3);
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.btn-feedback-feat:hover { background: rgba(6,182,212,.1); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 0.75rem; color: var(--slate-500); }

/* ════════════════════════════════
   DOWNLOAD PAGE
   ════════════════════════════════ */
.download-hero { position: relative; padding-top: 8rem; padding-bottom: 4rem; overflow: hidden; }
.download-hero-bg { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(59,15,122,.2), var(--surface-900)); }
.download-hero-content { position: relative; max-width: 64rem; margin-inline: auto; padding-inline: 1rem; text-align: center; }
@media (min-width: 640px) { .download-hero-content { padding-inline: 1.5rem; } }
.download-hero-content h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; color: #fff; margin-bottom: 1rem; }
.download-hero-content p  { font-size: 1.125rem; color: var(--slate-400); max-width: 40rem; margin-inline: auto; margin-bottom: 1rem; }
.detected-os { font-size: 0.875rem; color: var(--slate-500); }
.detected-os .os-name { color: var(--brand-400); font-weight: 500; }
.download-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
  color: var(--green-400); font-size: 0.75rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); }

/* Platform cards */
.platforms-section { position: relative; padding-bottom: 6rem; }
.platforms-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .platforms-grid { grid-template-columns: repeat(3,1fr); } }

.platform-card {
  position: relative; padding: 1.5rem; border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.05); background: rgba(17,17,40,.5);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(124,58,237,.15); border-color: rgba(124,58,237,.2); }
.platform-card.recommended { background: linear-gradient(135deg, rgba(59,15,122,.4), var(--surface-800)); border-color: rgba(124,58,237,.3); }
.platform-rec-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  padding: 0.125rem 0.5rem; font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-300); background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.3); border-radius: 9999px;
}
.platform-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; margin-bottom: 1rem;
  background: rgba(255,255,255,.05); color: var(--slate-300);
}
.platform-icon.rec { background: rgba(124,58,237,.2); color: var(--brand-300); }
.platform-card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.platform-card > p  { font-size: 0.875rem; color: var(--slate-400); margin-bottom: 1rem; }
.platform-filename {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  background: rgba(10,10,26,.5); border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 1.25rem;
}
.platform-filename svg { color: #475569; flex-shrink: 0; }
.platform-filename code { font-size: 0.75rem; color: var(--slate-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-dl-std {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1); border-radius: 0.75rem; transition: all 0.2s;
}
.btn-dl-std:hover { background: rgba(255,255,255,.15); }
.btn-dl-rec {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  color: #fff; background: var(--brand-600);
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(124,58,237,.2);
  transition: all 0.2s;
}
.btn-dl-rec:hover { background: var(--brand-500); }

/* System requirements */
.sysreq {
  margin-top: 3rem; padding: 1.5rem; border-radius: 1rem;
  background: rgba(17,17,40,.3); border: 1px solid rgba(255,255,255,.05);
}
.sysreq h3 {
  font-size: 1.125rem; font-weight: 600; color: #fff;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.sysreq h3 svg { color: var(--brand-400); }
.sysreq-grid { display: grid; gap: 1.5rem; font-size: 0.875rem; }
@media (min-width: 640px) { .sysreq-grid { grid-template-columns: repeat(3,1fr); } }
.sysreq h4 { font-weight: 500; color: #fff; margin-bottom: 0.5rem; }
.sysreq ul { display: flex; flex-direction: column; gap: 0.25rem; color: var(--slate-400); }

/* ════════════════════════════════
   VERSION TIMELINE
   ════════════════════════════════ */
.timeline { position: relative; }
.timeline-line {
  position: absolute;
  left: 19px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--brand-500), rgba(124,58,237,.3), transparent);
}
.timeline-entries { display: flex; flex-direction: column; gap: 2rem; }

.timeline-entry { position: relative; padding-left: 3rem; }
.timeline-dot {
  position: absolute; left: 0; top: 4px;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-800);
  border: 2px solid rgba(255,255,255,.1);
}
.timeline-dot.latest { background: rgba(124,58,237,.2); border-color: var(--brand-500); }
.timeline-dot-inner { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: rgba(255,255,255,.3); }
.timeline-dot-inner.latest { background: var(--brand-400); }

.timeline-card {
  padding: 1.5rem; border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(17,17,40,.3);
  transition: border-color 0.2s;
}
.timeline-card.latest {
  background: linear-gradient(135deg, rgba(59,15,122,.3), var(--surface-800));
  border-color: rgba(124,58,237,.2);
}
.timeline-card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.timeline-card-header h3 { font-size: 1.125rem; font-weight: 700; color: #fff; }
.timeline-card-header .date { font-size: 0.875rem; color: var(--slate-500); }
.version-tag {
  padding: 0.125rem 0.5rem; font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 9999px; border: 1px solid;
}
.version-tag.latest-tag { color: var(--green-400); background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); }
.version-tag.major-tag  { color: var(--brand-300); background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.3); }

.timeline-changes { display: flex; flex-direction: column; gap: 0.5rem; }
.timeline-change { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--slate-300); }
.timeline-change svg { color: rgba(139,79,230,.6); margin-top: 0.125rem; flex-shrink: 0; }

/* ════════════════════════════════
   FEEDBACK CARDS
   ════════════════════════════════ */
.feedback-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .feedback-grid { grid-template-columns: 1fr 1fr; } }

.feedback-card {
  padding: 2rem; border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(17,17,40,.5);
  transition: all 0.3s;
  display: block;
}
.feedback-card:hover { border-color: rgba(239,68,68,.3); }
.feedback-card.feat:hover { border-color: rgba(6,182,212,.3); }
.feedback-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  margin-bottom: 1rem; transition: background 0.2s;
}
.feedback-icon.bug  { background: rgba(239,68,68,.1); color: var(--red-400); }
.feedback-card:hover .feedback-icon.bug  { background: rgba(239,68,68,.2); }
.feedback-icon.feat { background: rgba(6,182,212,.1); color: var(--accent-400); }
.feedback-card.feat:hover .feedback-icon.feat { background: rgba(6,182,212,.2); }
.feedback-card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.feedback-card p  { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; margin-bottom: 1rem; }
.feedback-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.feedback-link.bug  { color: var(--red-400); }
.feedback-card:hover .feedback-link.bug  { color: #fca5a5; }
.feedback-link.feat { color: var(--accent-400); }
.feedback-card.feat:hover .feedback-link.feat { color: #67e8f9; }

/* ════════════════════════════════
   INTERSECTION OBSERVER (JS-powered)
   ════════════════════════════════ */
.reveal { opacity: 0; }
.reveal.in-view { animation: fade-in-up 0.6s ease-out forwards; }

/* ════════════════════════════════
   RESPONSIVE HELPERS
   ════════════════════════════════ */
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: block; } }
.hidden-desktop { display: block; }
@media (min-width: 768px) { .hidden-desktop { display: none; } }
