/* ===== Variables ===== */
:root {
  --grass: #5a9e2f;
  --grass-light: #7cbd3a;
  --grass-dark: #3b6b1e;
  --dirt: #8b6914;
  --stone: #7d7d7d;
  --stone-dark: #4a4a4a;
  --diamond: #4aedd9;
  --gold: #fccc00;
  --wood: #a0682a;
  --sky: #78a7ff;
  --sky-dark: #1a2744;
  --bg: #0f1419;
  --bg-alt: #161d27;
  --bg-card: #1c2530;
  --text: #e8edf2;
  --text-muted: #8b9cb3;
  --border: #2a3544;
  --accent: var(--grass-light);
  --accent-glow: rgba(124, 189, 58, 0.25);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'Noto Sans SC', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Pixel Background ===== */
.pixel-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--sky-dark) 0%, var(--bg) 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 32px,
      rgba(255,255,255,0.015) 32px,
      rgba(255,255,255,0.015) 33px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 32px,
      rgba(255,255,255,0.015) 32px,
      rgba(255,255,255,0.015) 33px
    );
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo-block {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--grass-light), var(--grass-dark));
  border: 2px solid rgba(255,255,255,0.2);
  image-rendering: pixelated;
}

.logo-block.small { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grass-light);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--grass-light), var(--diamond));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--grass);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover { background: var(--grass-light); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--grass);
  color: var(--grass-light);
}

/* World Preview */
.world-preview {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 24px;
}

.block {
  border-radius: 4px;
  border: 2px solid rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}

.block.grass { background: linear-gradient(180deg, var(--grass-light) 40%, var(--dirt) 40%); animation-delay: 0s; }
.block.dirt { background: var(--dirt); animation-delay: 0.3s; }
.block.stone { background: var(--stone); animation-delay: 0.6s; }
.block.diamond { background: var(--diamond); box-shadow: 0 0 20px rgba(74,237,217,0.4); animation-delay: 0.9s; }
.block.wood { background: var(--wood); animation-delay: 1.2s; }
.block.gold { background: var(--gold); animation-delay: 1.5s; }

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

.player-silhouette {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 80px;
  background: linear-gradient(180deg, #3a7a1f 30%, #2a5a15 30%, #2a5a15 60%, #1a3a0d 60%);
  border: 2px solid rgba(0,0,0,0.4);
  border-radius: 2px;
}

/* ===== Search ===== */
.search-section {
  margin-bottom: 40px;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

#searchInput {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#searchInput:focus {
  border-color: var(--grass);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--grass);
  color: var(--grass-light);
  background: rgba(124, 189, 58, 0.1);
}

/* ===== Sections ===== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p, .card li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Tabs ===== */
.mode-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-list {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover { color: var(--text); }

.tab.active {
  background: var(--grass-dark);
  border-color: var(--grass);
  color: #fff;
}

.tab-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active { display: block; }

.tab-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--grass-light);
}

.tab-panel p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--grass-light);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 24px;
}

.timeline-marker {
  position: absolute;
  left: 8px;
  top: 24px;
  width: 26px;
  height: 26px;
  background: var(--grass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

.timeline-content h3 {
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
}

/* ===== Guide Grid ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.guide-card:hover { box-shadow: var(--shadow); }

.guide-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124, 189, 58, 0.15);
  color: var(--grass-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.guide-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.guide-body p, .guide-body li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tip {
  margin-top: 12px;
  padding: 12px;
  background: rgba(124, 189, 58, 0.08);
  border-left: 3px solid var(--grass);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem !important;
}

.ore-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.ore-table th, .ore-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ore-table th {
  color: var(--grass-light);
  font-weight: 600;
}

.ore-table td { color: var(--text-muted); }

.monster-list, .enchant-list, .farm-list {
  list-style: none;
  padding: 0;
}

.monster-list li, .enchant-list li, .farm-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ===== Crafting Grid ===== */
.craft-category {
  font-size: 1.1rem;
  color: var(--grass-light);
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--grass);
}

.craft-category:first-of-type {
  margin-top: 0;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.craft-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.craft-item:hover { transform: scale(1.02); }

.craft-preview {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
}

.craft-slot {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.craft-slot.filled { background: var(--wood); }
.craft-slot.stone { background: var(--stone); }
.craft-slot.iron { background: #c8c8c8; }
.craft-slot.stick { background: #6b4226; }
.craft-slot.wool { background: #eee; }
.craft-slot.book { background: #8b4513; }
.craft-slot.obsidian { background: #1a0a2e; }
.craft-slot.coal { background: #2a2a2a; }
.craft-slot.diamond { background: var(--diamond); }
.craft-slot.gold { background: var(--gold); }
.craft-slot.string { background: #e8e8e8; }
.craft-slot.flint { background: #555; }
.craft-slot.pearl { background: #0a6e5c; }
.craft-slot.blaze { background: #ffcc00; }
.craft-slot.netherite { background: #4a3f35; }

.craft-preview.shapeless {
  grid-template-columns: repeat(3, 32px);
  align-items: center;
}

.craft-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.craft-item h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.craft-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Build Tips ===== */
.palette {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 2px solid rgba(0,0,0,0.3);
}

.swatch.oak { background: #b8945f; }
.swatch.stone { background: #7d7d7d; }
.swatch.brick { background: #966766; }
.swatch.dark-oak { background: #4a2910; }
.swatch.glass { background: rgba(200,230,255,0.3); border-color: #78a7ff; }

/* ===== Advanced ===== */
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advanced-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 3px solid var(--grass);
}

.advanced-card.nether { border-top-color: #c74400; }
.advanced-card.end { border-top-color: #b077bc; }
.advanced-card.redstone { border-top-color: #cc0000; }

.advanced-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.advanced-icon { font-size: 1.5rem; }

.advanced-card h3 { font-size: 1.1rem; }

.advanced-card ol, .advanced-card ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.advanced-card li { margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--grass-light);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.back-to-top {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-to-top:hover { color: var(--grass-light); }

/* ===== Search Results Overlay ===== */
.search-results {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-results[hidden] {
  display: none !important;
}

.search-results-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
}

.search-results-inner h3 {
  margin-bottom: 16px;
}

#searchResultsList {
  list-style: none;
  margin-bottom: 20px;
}

#searchResultsList li {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s;
}

#searchResultsList li:hover {
  background: rgba(124, 189, 58, 0.1);
  color: var(--text);
}

#searchResultsList li strong {
  color: var(--grass-light);
}

.search-highlight {
  outline: 2px solid var(--grass-light);
  outline-offset: 4px;
  transition: outline 0.3s;
}

.search-hidden {
  display: none !important;
}

/* ===== AI Module (Steve) ===== */
.ai-banner {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.9), rgba(28, 37, 48, 0.95));
  border-color: rgba(120, 167, 255, 0.3);
  margin-bottom: 8px;
}

.ai-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(120, 167, 255, 0.15);
  color: var(--sky);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ai-banner h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.ai-banner p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 720px;
}

.ai-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-version-card {
  margin-bottom: 32px;
}

.ai-version-card h4 {
  margin-bottom: 12px;
  color: var(--grass-light);
  font-size: 1.1rem;
}

.version-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.version-table {
  margin-bottom: 16px;
}

.version-table td strong,
.version-table th {
  white-space: nowrap;
}

.version-notes {
  margin-bottom: 12px;
}

.version-notes li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ai-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  margin-bottom: 24px;
}

.ai-setup-grid h4 {
  margin-bottom: 12px;
  color: var(--grass-light);
}

.step-list {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.step-list li {
  margin-bottom: 8px;
}

.step-list code, .guide-body code, .faq-item code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
}

kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  box-shadow: 0 2px 0 var(--border);
}

.code-block-wrap {
  margin-bottom: 32px;
}

.code-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.code-block {
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.code-block code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a8d4a0;
  white-space: pre;
}

.code-block.compact {
  padding: 14px;
  margin-bottom: 12px;
}

.ai-practice .feature-list li {
  font-size: 0.92rem;
}

.ai-flow {
  margin-bottom: 32px;
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.flow-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--grass);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flow-arrow {
  color: var(--grass-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.flow-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ===== Google Ads ===== */
.ad-container {
  margin: 24px auto 40px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  text-align: center;
}

.ad-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.6;
}

.ad-slot {
  min-height: 60px;
}

.ad-slot[hidden] {
  display: none;
}

.footer-note a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-note a:hover {
  color: var(--grass-light);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .advanced-grid { grid-template-columns: 1fr; }
  .ai-setup-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
  }

  .tab-list { flex-direction: column; }
  .craft-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
