/* ═══════════════════════════════════════════════════════
   ModForge — Minecraft-Themed Design System
   Pixelated fonts, block textures, creeper greens, bedrock darks
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Minecraft palette */
  --mc-green: #5db85d;
  --mc-green-dark: #3a8a3a;
  --mc-green-light: #7dda7d;
  --mc-dirt: #8b6914;
  --mc-dirt-dark: #6b4f0e;
  --mc-stone: #7f7f7f;
  --mc-stone-dark: #5a5a5a;
  --mc-bedrock: #1a1a1a;
  --mc-obsidian: #0d0d14;
  --mc-coal: #2a2a2a;
  --mc-diamond: #4aedd9;
  --mc-gold: #fcdb05;
  --mc-redstone: #d93a3a;
  --mc-lapis: #3456c7;
  --mc-emerald: #17d94f;
  --mc-sky: #78a7ff;
  --mc-enderman: #cc00fa;

  /* UI tokens */
  --bg: #0c0c0c;
  --bg-surface: #1a1a1a;
  --bg-card: #222222;
  --bg-card-hover: #2a2a2a;
  --bg-input: #141414;
  --text: #f0f0f0;
  --text-muted: #b0b0b0;
  --text-dim: #787878;
  --border: #333333;
  --border-light: #444444;
  --radius: 4px; /* Minecraft = blocky, small radius */
  --radius-lg: 6px;

  /* Fonts — pixel for headings/accents, Nunito Sans for readable body */
  --font-pixel: 'Press Start 2P', 'Silkscreen', monospace;
  --font-display: 'Silkscreen', 'Press Start 2P', monospace;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 0 rgba(0,0,0,0.5);
  --shadow-md: 0 4px 0 rgba(0,0,0,0.5);
  --shadow-lg: 0 6px 0 rgba(0,0,0,0.4), 0 12px 40px rgba(0,0,0,0.3);
  --shadow-glow-green: 0 0 20px rgba(93,184,93,0.3);
  --shadow-glow-diamond: 0 0 20px rgba(74,237,217,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 18px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--mc-stone-dark);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--mc-stone); }

/* ── Section management ── */
.mc-section { display: none; }
.mc-section.active { display: block; }

/* ── Floating Particles ── */
.mc-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mc-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  opacity: 0.15;
  animation: particleFall linear infinite;
  image-rendering: pixelated;
}
@keyframes particleFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ── Navigation ── */
.mc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--mc-green-dark);
  padding: 0 1.5rem;
}
.mc-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.mc-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}
.mc-logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px rgba(93,184,93,0.5));
}
.mc-logo-text {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--mc-green);
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 var(--mc-green-dark);
}
.mc-nav-links {
  display: flex;
  gap: 1.5rem;
}
.mc-nav-links a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.mc-nav-links a:hover { color: var(--mc-green-light); }
.mc-nav-actions { display: flex; gap: 0.5rem; }
.mc-nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mc-user-tier, .mc-user-tier-sm {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--mc-green-dark);
  color: var(--mc-green-light);
  letter-spacing: 1px;
}
.mc-user-name {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}

/* ── Buttons ── */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.mc-btn:active { transform: translateY(2px); box-shadow: none; }
.mc-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.mc-btn-icon { font-size: 1.2em; }
.mc-btn-sm { padding: 0.3rem 0.75rem; font-size: 0.95rem; }
.mc-btn-lg { padding: 0.75rem 2rem; font-size: 1.25rem; }
.mc-btn-block { width: 100%; }

.mc-btn-primary {
  background: linear-gradient(180deg, var(--mc-green) 0%, var(--mc-green-dark) 100%);
  color: #fff;
  border: 2px solid var(--mc-green-dark);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.mc-btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--mc-green-light) 0%, var(--mc-green) 100%);
  box-shadow: var(--shadow-glow-green);
}
.mc-btn-secondary {
  background: linear-gradient(180deg, var(--mc-diamond) 0%, #38b5a5 100%);
  color: #000;
  border: 2px solid #38b5a5;
}
.mc-btn-secondary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow-diamond);
}
.mc-btn-outline {
  background: transparent;
  color: var(--mc-green);
  border: 2px solid var(--mc-green-dark);
}
.mc-btn-outline:hover:not(:disabled) {
  background: rgba(93,184,93,0.1);
  border-color: var(--mc-green);
}
.mc-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  box-shadow: none;
}
.mc-btn-ghost:hover { color: var(--mc-green-light); }

/* ── Hero ── */
.mc-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
/* Hero split layout — text left, warrior image right */
.mc-hero-split {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.mc-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.mc-hero-warrior {
  max-width: 420px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(252,180,40,0.35)) drop-shadow(0 8px 30px rgba(0,0,0,0.5));
  animation: heroFloat 4s ease-in-out infinite;
  image-rendering: auto;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@media (max-width: 900px) {
  .mc-hero-split { grid-template-columns: 1fr; text-align: center; }
  .mc-hero-image { order: -1; }
  .mc-hero-warrior { max-width: 280px; }
  .mc-hero-actions { justify-content: center; }
  .mc-hero-stats { justify-content: center; }
}
.mc-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(93,184,93,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(74,237,217,0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--mc-obsidian) 100%);
}
.mc-grass-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--mc-green-dark) 0px,
    var(--mc-green-dark) 8px,
    var(--mc-green) 8px,
    var(--mc-green) 16px
  );
  image-rendering: pixelated;
}
.mc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: left;
}
.mc-hero-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--mc-diamond);
  border: 1px solid rgba(74,237,217,0.3);
  padding: 6px 16px;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(74,237,217,0.05);
}
.mc-hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  line-height: 1.8;
  color: #fff;
  text-shadow: 3px 3px 0 var(--mc-green-dark), 6px 6px 0 rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}
.mc-highlight {
  color: var(--mc-green);
  position: relative;
}
.mc-hero-sub {
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 2rem;
  line-height: 1.8;
}
.mc-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.mc-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.mc-hero-stat { text-align: center; }
.mc-hero-stat-num {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.mc-hero-stat-label {
  font-size: 0.95rem;
  color: var(--text-dim);
}
.mc-hero-stat-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* ── Floating Blocks ── */
.mc-floating-blocks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.mc-block {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  left: var(--x);
  top: var(--y);
  animation: blockFloat 6s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0.25;
  image-rendering: pixelated;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.3), inset 3px 3px 0 rgba(255,255,255,0.1);
}
@keyframes blockFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.mc-block-grass {
  background: linear-gradient(180deg, var(--mc-green) 0%, var(--mc-green) 30%, var(--mc-dirt) 30%, var(--mc-dirt) 100%);
}
.mc-block-dirt { background: var(--mc-dirt); }
.mc-block-stone {
  background: linear-gradient(135deg, #9a9a9a 25%, #7a7a7a 50%, #8a8a8a 75%);
}
.mc-block-diamond {
  background: linear-gradient(135deg, var(--mc-diamond) 0%, #38b5a5 100%);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.3), inset 3px 3px 0 rgba(255,255,255,0.2), 0 0 15px rgba(74,237,217,0.3);
}
.mc-block-gold {
  background: linear-gradient(135deg, var(--mc-gold) 0%, #c4a800 100%);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.3), inset 3px 3px 0 rgba(255,255,255,0.2), 0 0 15px rgba(252,219,5,0.2);
}

/* ── Showcase Strip ── */
.mc-showcase {
  background: var(--bg-surface);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
  padding: 1.5rem 2rem;
  overflow: hidden;
}
.mc-showcase-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.mc-showcase-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-muted);
}
.mc-showcase-icon { font-size: 1.4rem; }

/* ── Installation Guide ── */
.mc-install-guide {
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.mc-install-guide > h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--mc-green-light);
  text-align: center;
  margin-bottom: 1.5rem;
}
.mc-install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.mc-install-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.mc-install-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mc-diamond);
  margin-bottom: 0.75rem;
}
.mc-install-card ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.mc-install-card li {
  counter-increment: step;
  padding: 0.3rem 0 0.3rem 2rem;
  position: relative;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.mc-install-card li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 22px;
  height: 22px;
  background: var(--mc-green-dark);
  color: var(--mc-green-light);
  border-radius: 3px;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Custom Mods Banner ── */
.mc-banner {
  max-width: 1000px;
  margin: -2rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
.mc-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 60px rgba(74,237,217,0.08);
  image-rendering: auto;
}

/* ── How It Works Image ── */
.mc-how-image {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.mc-how-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border);
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

/* ── Battle CTA ── */
.mc-battle-cta {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.mc-battle-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  overflow: hidden;
  position: relative;
}
.mc-battle-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mc-gold) 0%, var(--mc-redstone) 50%, var(--mc-gold) 100%);
}
.mc-battle-cta-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.mc-battle-cta-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .mc-battle-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }
  .mc-battle-cta-text .mc-section-title { text-align: center !important; }
}

/* ── Section Titles ── */
.mc-section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  margin-bottom: 0.75rem;
}
.mc-section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.35rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* ── Features ── */
.mc-features {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.mc-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.mc-feature-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.mc-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mc-green) 0%, var(--mc-diamond) 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.mc-feature-card:hover {
  border-color: var(--mc-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mc-feature-card:hover::before { opacity: 1; }
.mc-feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.mc-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--mc-green-light);
  margin-bottom: 0.5rem;
}
.mc-feature-card p {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ── How It Works ── */
.mc-how-it-works {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.mc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.mc-step {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}
.mc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, var(--mc-green) 0%, var(--mc-green-dark) 100%);
  border: 2px solid var(--mc-green-dark);
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.mc-step-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--mc-green-light);
  margin-bottom: 0.5rem;
}
.mc-step-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
}
.mc-step-arrow {
  font-size: 1.5rem;
  color: var(--mc-green-dark);
}
@media (max-width: 768px) {
  .mc-step-arrow { transform: rotate(90deg); }
}

/* ── Pricing ── */
.mc-pricing {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.mc-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.mc-price-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.mc-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.mc-price-featured {
  border-color: var(--mc-green);
  box-shadow: var(--shadow-glow-green);
  transform: scale(1.03);
}
.mc-price-featured:hover { transform: scale(1.03) translateY(-4px); }
.mc-price-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  background: var(--mc-green);
  color: #000;
  padding: 4px 16px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.mc-price-tier {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--mc-green-light);
  margin-bottom: 0.75rem;
}
.mc-price-amount {
  margin-bottom: 1.5rem;
}
.mc-price-currency {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--text-muted);
  vertical-align: super;
}
.mc-price-num {
  font-family: var(--font-pixel);
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.mc-price-period {
  font-size: 1rem;
  color: var(--text-muted);
}
.mc-price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.mc-price-features li {
  padding: 0.4rem 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mc-check::before {
  content: '\2714';
  color: var(--mc-green);
  font-size: 0.9rem;
}
.mc-cross::before {
  content: '\2718';
  color: var(--text-dim);
  font-size: 0.9rem;
}
.mc-cross { color: var(--text-dim); }
.mc-price-joke {
  color: var(--text-dim);
  font-size: 1rem;
  font-style: italic;
  padding: 0.75rem 0;
  line-height: 1.5;
  border-top: 1px dashed var(--border);
  margin-top: 0.5rem;
}
.mc-price-savings {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--mc-gold);
  background: rgba(252,219,5,0.1);
  border: 1px solid rgba(252,219,5,0.3);
  border-radius: 3px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* ── Examples ── */
.mc-examples {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.mc-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.mc-example-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.mc-example-card:hover {
  border-color: var(--mc-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mc-example-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.mc-example-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mc-green-light);
  margin-bottom: 0.4rem;
}
.mc-example-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── FAQ ── */
.mc-faq {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.mc-faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mc-faq-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mc-faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.3rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.mc-faq-q:hover { color: var(--mc-green-light); }
.mc-faq-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
  color: var(--text-dim);
}
.mc-faq-item.open .mc-faq-arrow { transform: rotate(180deg); }
.mc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mc-faq-item.open .mc-faq-a {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.mc-faq-a p {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ── Footer ── */
.mc-footer {
  background: var(--bg-surface);
  border-top: 3px solid var(--mc-green-dark);
  padding: 3rem 2rem 1.5rem;
  margin-top: 2rem;
}
.mc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.mc-footer-brand p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.mc-footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mc-green-light);
  margin-bottom: 0.75rem;
}
.mc-footer-links a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.mc-footer-links a:hover { color: var(--mc-green-light); }
.mc-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.mc-footer-bottom p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 768px) {
  .mc-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ── Auth ── */
.mc-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  background:
    radial-gradient(ellipse at center, rgba(93,184,93,0.06) 0%, transparent 60%),
    var(--bg);
}
.mc-auth-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.mc-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.mc-auth-header .mc-logo-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.mc-auth-header h2 {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}
.mc-auth-header p { color: var(--text-muted); }

.mc-field {
  margin-bottom: 1.25rem;
}
.mc-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--mc-green-light);
  margin-bottom: 0.4rem;
}
.mc-field input {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: border-color 0.2s;
  outline: none;
}
.mc-field input:focus {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 3px rgba(93,184,93,0.15);
}
.mc-field input::placeholder { color: var(--text-dim); }

.mc-auth-error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(217,58,58,0.1);
  border: 1px solid var(--mc-redstone);
  border-radius: var(--radius);
  color: var(--mc-redstone);
  font-size: 0.95rem;
  text-align: center;
}
.mc-auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.mc-auth-footer a {
  color: var(--mc-green);
  text-decoration: none;
}
.mc-auth-footer a:hover { text-decoration: underline; }

/* ── Generator App ── */
.mc-app-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}
.mc-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.mc-app-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mc-app-header-left h2 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.mc-app-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.mc-session-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* App screens */
.mc-app-screen { display: none; }
.mc-app-screen.active { display: block; }

/* Generator card */
.mc-gen-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.mc-gen-card-header {
  margin-bottom: 1.5rem;
}
.mc-gen-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--mc-green-light);
  margin-bottom: 0.3rem;
}
.mc-gen-card-header p {
  color: var(--text-muted);
}
.mc-gen-examples {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.mc-gen-example-label {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.mc-tag {
  background: rgba(93,184,93,0.1);
  border: 1px solid var(--mc-green-dark);
  border-radius: 3px;
  color: var(--mc-green-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.mc-tag:hover {
  background: rgba(93,184,93,0.2);
  border-color: var(--mc-green);
}

.mc-gen-input { margin-bottom: 1rem; }
.mc-gen-input textarea, .mc-result-edit textarea {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.6;
}
.mc-gen-input textarea:focus, .mc-result-edit textarea:focus {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 3px rgba(93,184,93,0.1);
}
.mc-gen-input textarea::placeholder, .mc-result-edit textarea::placeholder {
  color: var(--text-dim);
}
.mc-gen-input-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  margin-bottom: 0.75rem;
}
.mc-char-count {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.mc-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.mc-gen-limits {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.mc-gen-limit {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.mc-gen-limit span {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--mc-green);
  margin-right: 4px;
}

/* Loading */
.mc-loading-card {
  max-width: 500px;
  margin: 4rem auto;
  text-align: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.mc-crafting-anim {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.mc-crafting-block {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  animation: craftBounce 1.2s ease-in-out infinite;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3), inset 2px 2px 0 rgba(255,255,255,0.1);
}
.mc-crafting-block:nth-child(2) { animation-delay: 0.2s; }
.mc-crafting-block:nth-child(3) { animation-delay: 0.4s; }
@keyframes craftBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.1); }
}
.mc-loading-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--mc-green-light);
  margin-bottom: 0.5rem;
}
.mc-loading-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.mc-progress-bar {
  height: 8px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.mc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mc-green-dark), var(--mc-green), var(--mc-green-light));
  width: 0%;
  animation: progressPulse 25s ease-out forwards;
}
@keyframes progressPulse {
  0% { width: 0%; }
  20% { width: 35%; }
  50% { width: 60%; }
  80% { width: 85%; }
  100% { width: 95%; }
}

/* Result layout */
.mc-result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .mc-result-layout { grid-template-columns: 1fr; }
}
.mc-result-info, .mc-result-edit {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.mc-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.mc-result-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}
.mc-badge {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mc-badge-success {
  background: var(--mc-green-dark);
  color: var(--mc-green-light);
}
.mc-result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.mc-result-stat {
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}
.mc-result-stat-val {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--mc-green);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}
.mc-result-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* File list */
.mc-file-list {
  margin-top: 1.25rem;
}
.mc-file-list h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.mc-file-list ul {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}
.mc-file-list li {
  font-family: monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  transition: color 0.15s;
}
.mc-file-list li:hover { color: var(--mc-green-light); }

/* Edit panel */
.mc-result-edit h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--mc-green-light);
  margin-bottom: 0.4rem;
}
.mc-edit-info {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.mc-edit-history { margin-bottom: 1rem; }
.mc-edit-entry {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}
.mc-edit-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--mc-diamond);
  letter-spacing: 1px;
}
.mc-edit-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.mc-edits-done {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
}

/* Error */
.mc-error-card {
  max-width: 480px;
  margin: 4rem auto;
  text-align: center;
  background: var(--bg-card);
  border: 2px solid var(--mc-redstone);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.mc-error-icon { font-size: 3rem; margin-bottom: 1rem; }
.mc-error-card h3 {
  font-family: var(--font-display);
  color: var(--mc-redstone);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.mc-error-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mc-nav-links { display: none; }
  .mc-hero { padding: 5rem 1.25rem 3rem; min-height: auto; }
  .mc-hero-title { font-size: 1.2rem; }
  .mc-hero-sub { font-size: 1.1rem; }
  .mc-features-grid { grid-template-columns: 1fr; }
  .mc-steps { flex-direction: column; }
  .mc-pricing-grid { grid-template-columns: 1fr; }
  .mc-price-featured { transform: none; }
  .mc-price-featured:hover { transform: translateY(-4px); }
}

/* ── Animations on scroll ── */
.mc-feature-card,
.mc-step,
.mc-price-card,
.mc-example-card {
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   BLOG
   ═══════════════════════════════════════ */
.blog-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  min-height: 80vh;
}
.blog-header {
  margin-bottom: 2.5rem;
}

/* Blog index grid */
.blog-grid {
  display: grid;
  gap: 1.5rem;
}
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}
.blog-card:hover {
  border-color: var(--mc-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.blog-card-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--mc-diamond);
  background: rgba(74,237,217,0.1);
  border: 1px solid rgba(74,237,217,0.25);
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.blog-card-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Article page */
.blog-article {
  animation: fadeUp 0.4s ease both;
}
.blog-article-header {
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2rem;
}
.blog-back {
  display: inline-block;
  color: var(--mc-green);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.blog-back:hover { color: var(--mc-green-light); }
.blog-article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: #fff;
  line-height: 1.4;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Article body */
.blog-article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--mc-green-light);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.blog-article-body p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.blog-article-body a {
  color: var(--mc-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article-body a:hover { color: var(--mc-green-light); }
.blog-article-body ul, .blog-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.blog-article-body li {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.blog-article-body li strong {
  color: var(--text);
}
.blog-article-body hr.blog-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 3rem 0;
}

/* Breakdown boxes */
.blog-breakdown {
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-left: 4px solid var(--mc-green-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.25rem;
}
.blog-breakdown h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mc-diamond);
  margin-bottom: 0.5rem;
}
.blog-breakdown ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.blog-breakdown li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

/* Blog CTA */
.blog-cta {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 2px solid var(--mc-green-dark);
  border-radius: var(--radius-lg);
}
