/* ==========================================
   VibeCode4Noobs - 8-Bit Multi-Theme Edition
   ========================================== */

:root {
  /* Primary Colors */
  --primary: #C15F3C;
  --primary-light: #da7756;
  --primary-dark: #a34a2a;
  --accent: #6a9bcc;
  --accent-light: #a3c4e0;
  --accent-dark: #4a7ba8;
  --green: #788c5d;
  --green-light: #a3b589;
  --yellow: #eab308;
  --yellow-light: #fde68a;
  --pink: #c97070;
  --pink-light: #e0a3a3;
  --danger: #cc4444;

  /* Neutrals */
  --bg: #faf9f5;
  --bg-alt: #F4F3EE;
  --text: #141413;
  --text-muted: #8a8780;
  --white: #ffffff;
  --border: #e8e6dc;

  /* Shadows */
  --shadow-sm: 3px 3px 0 rgba(20, 20, 19, 0.12);
  --shadow-md: 4px 4px 0 rgba(20, 20, 19, 0.18);
  --shadow-lg: 6px 6px 0 rgba(20, 20, 19, 0.22);

  /* Borders */
  --border-width: 2px;
  --border-style: solid;
  --border-accent-width: 4px;

  /* Button Shadows */
  --btn-shadow: 4px 4px 0 var(--text);
  --btn-shadow-hover: 2px 2px 0 var(--text);
  --btn-shadow-active: 0 0 0 var(--text);

  /* Spacing & Shape */
  --container: 800px;
  --radius: 4px;
  --radius-sm: 3px;

  /* Fonts */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Theme-specific compound values */
  --nav-bg: rgba(250, 249, 245, 0.9);
  --hero-gradient: linear-gradient(135deg, #faf9f5 0%, #f5ebe0 25%, #fde68a33 50%, #e8e6dc 75%, #d4e4f1 100%);
  --code-bg: #1a1a19;
  --code-border: #333333;
  --code-text: #e2e8f0;
  --code-bad-bg: #2a0a0a;
  --code-bad-border: #cc4444;
  --code-bad-header: #fca5a5;
  --tip-bg: linear-gradient(135deg, #fffbeb, var(--white));
  --warning-bg: linear-gradient(135deg, #fef2f2, var(--white));
  --celebrate-bg: linear-gradient(135deg, #fdf5f0, #faf9f5);
  --chat-claude-bg: linear-gradient(135deg, #fdf5f0, #f5ebe0);
  --stage-easy-bg: linear-gradient(135deg, #f5f7f0, #eef2e8);
  --stage-level-bg: linear-gradient(135deg, #fdf5f0, #f9ede5);
  --stage-easy-divider-bg: linear-gradient(135deg, #f5f7f0, #eef2e8);
  --stage-level-divider-bg: linear-gradient(135deg, #fdf5f0, #f9ede5);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-width) var(--border-style) var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--primary);
  letter-spacing: 0px;
}

.nav-logo:hover {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-link.active {
  color: var(--primary);
  background: var(--bg-alt);
}

/* ==========================================
   Language Selector
   ========================================== */
.lang-selector {
  position: relative;
  margin-left: 8px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: transparent;
  border: var(--border-width) var(--border-style) var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-toggle:hover {
  color: var(--primary);
  background: var(--bg-alt);
  border-color: var(--primary);
}

.lang-icon {
  font-size: 1rem;
  line-height: 1;
}

.lang-current {
  letter-spacing: 0.5px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--white);
  border: var(--border-width) var(--border-style) var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 110;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.lang-option.active {
  background: var(--bg-alt);
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================
   Hero
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}

/* Pixel decoration dots */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.06;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0px;
  line-height: 1.4;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-emoji {
  -webkit-text-fill-color: initial;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.15s;
  cursor: pointer;
  border: var(--border-width) var(--border-style) var(--text);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translate(2px, 2px);
  box-shadow: var(--btn-shadow-hover);
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: var(--btn-shadow-active);
}

/* ==========================================
   Steps
   ========================================== */
.step {
  padding: 80px 0;
}

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

.step-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: var(--border-width) var(--border-style) rgba(20, 20, 19, 0.15);
}

/* Colorful step numbers */
#step-1 .step-number { background: var(--primary); }
#step-2 .step-number { background: var(--accent); }
#step-3 .step-number { background: var(--green); }
#step-4 .step-number { background: var(--pink); }
#step-5 .step-number { background: var(--danger); }
#step-6 .step-number { background: var(--primary-light); }
#step-7 .step-number { background: var(--accent-dark); }
#step-8 .step-number { background: var(--yellow); color: var(--text); }
#step-9 .step-number { background: var(--green); }

.step-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0px;
  line-height: 1.5;
}

.step-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
}

/* ==========================================
   Cards
   ========================================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: var(--border-width) var(--border-style) var(--border);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul, .card ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

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

.card li:last-child {
  margin-bottom: 0;
}

.card-tip {
  border-left: var(--border-accent-width) var(--border-style) var(--yellow);
  background: var(--tip-bg);
}

.card-warning {
  border-left: var(--border-accent-width) var(--border-style) var(--danger);
  background: var(--warning-bg);
}

.card-celebrate {
  border: calc(var(--border-width) + 1px) var(--border-style) var(--primary);
  background: var(--celebrate-bg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.card-celebrate h3 {
  font-size: 1.5rem;
}

/* ==========================================
   Code Blocks
   ========================================== */
.code-block {
  background: var(--code-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  border: var(--border-width) var(--border-style) var(--code-border);
  box-shadow: var(--shadow-sm);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translate(1px, 1px);
}

.copy-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.code-block pre {
  padding: 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: var(--code-text);
  background: none;
  padding: 0;
  line-height: 1.6;
  border: none;
}

.code-block-large pre {
  max-height: 400px;
  overflow-y: auto;
}

.code-block-bad {
  background: var(--code-bad-bg);
  border: var(--border-width) var(--border-style) var(--code-bad-border);
}

.code-block-bad .code-header {
  color: var(--code-bad-header);
}

/* ==========================================
   Method Toggle (Desktop vs Terminal)
   ========================================== */
.method-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-width) var(--border-style) var(--primary);
  box-shadow: var(--shadow-sm);
}

.method-btn {
  flex: 1;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  color: var(--primary);
}

.method-btn:hover {
  background: var(--bg-alt);
}

.method-btn.active {
  background: var(--primary);
  color: var(--white);
}

.method-content {
  display: none;
}

.method-content.active {
  display: block;
}

.card-method {
  position: relative;
}

.method-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: var(--border-width) var(--border-style);
}

.method-badge-easy {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.method-badge-power {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ==========================================
   Expandable Sections
   ========================================== */
.expandable {
  border: var(--border-width) var(--border-style) var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.expandable-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.expandable-toggle:hover {
  background: var(--bg-alt);
}

.expand-icon {
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--primary);
}

.expandable.open .expand-icon {
  transform: rotate(90deg);
}

.expand-hint {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.expandable-content {
  display: none;
  padding: 0 16px 16px;
  background: var(--white);
}

.expandable.open .expandable-content {
  display: block;
}

/* ==========================================
   Pipeline Diagram
   ========================================== */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: var(--border-width) var(--border-style) var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

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

.pipeline-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================
   Chat Example
   ========================================== */
.chat-example {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  padding: 16px;
  border-radius: var(--radius);
  border: var(--border-width) var(--border-style);
}

.chat-user {
  background: var(--bg-alt);
  border-color: var(--border);
}

.chat-claude {
  background: var(--chat-claude-bg);
  border-color: var(--primary-light);
}

.chat-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.chat-user .chat-label {
  color: var(--accent-dark);
}

.chat-claude .chat-label {
  color: var(--primary);
}

.chat-msg p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ==========================================
   Progress Tracker
   ========================================== */
.progress-tracker {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}

.progress-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--white);
  border: var(--border-width) var(--border-style) var(--text);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--btn-shadow-hover);
  transition: all 0.15s;
}

.progress-toggle:hover {
  background: var(--primary-dark);
  transform: translate(1px, 1px);
  box-shadow: var(--btn-shadow-active);
}

.progress-icon {
  font-size: 1rem;
}

.progress-panel {
  display: none;
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: var(--border-width) var(--border-style) var(--border);
  padding: 20px;
}

.progress-panel.open {
  display: block;
}

.progress-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary);
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}

.progress-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.progress-item.done {
  color: var(--text-muted);
  text-decoration: line-through;
}

.progress-bar-container {
  margin-top: 14px;
  height: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-width) var(--border-style) var(--border);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 0;
  transition: width 0.4s ease;
}

/* ==========================================
   Infographic
   ========================================== */
.infographic-section {
  padding: 48px 0 0;
  background: var(--white);
}

.infographic-img {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: var(--border-width) var(--border-style) var(--border);
  box-shadow: var(--shadow-md);
}

/* ==========================================
   Stage Selector
   ========================================== */
.stage-selector {
  padding: 48px 0;
  background: var(--white);
}

.stage-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stage-card {
  display: block;
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: calc(var(--border-width) + 1px) var(--border-style) var(--border);
  transition: all 0.15s;
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.stage-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.stage-card-easy {
  border-color: var(--green);
  background: var(--stage-easy-bg);
}

.stage-card-easy:hover {
  border-color: var(--green);
}

.stage-card-level {
  border-color: var(--primary-light);
  background: var(--stage-level-bg);
}

.stage-card-level:hover {
  border-color: var(--primary);
}

.stage-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: var(--border-width) var(--border-style);
}

.stage-card-easy .stage-badge {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.stage-card-level .stage-badge {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

.stage-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stage-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.stage-steps {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================
   Stage Dividers
   ========================================== */
.stage-divider {
  padding: 40px 0;
  text-align: center;
  background: var(--stage-easy-divider-bg);
  border-top: var(--border-accent-width) var(--border-style) var(--green);
  border-bottom: var(--border-accent-width) var(--border-style) var(--green);
}

.stage-divider-level {
  background: var(--stage-level-divider-bg);
  border-top-color: var(--primary);
  border-bottom-color: var(--primary);
}

.stage-divider-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.6;
}

.stage-divider-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================
   Progress Stage Labels
   ========================================== */
.progress-stage-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-top: 10px;
  margin-bottom: 4px;
}

.progress-stage-label:first-of-type {
  margin-top: 0;
}

/* ==========================================
   Theme Indicator
   ========================================== */
.theme-indicator {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  padding: 48px 0;
  text-align: center;
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  border-top: var(--border-accent-width) var(--border-style) var(--primary);
}

.footer-text {
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .step {
    padding: 48px 0;
  }

  .step-header {
    margin-bottom: 24px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 0.8rem;
    border-radius: var(--radius);
  }

  .step-title {
    font-size: 0.75rem;
  }

  .card {
    padding: 20px;
  }

  .pipeline {
    flex-direction: column;
    gap: 4px;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }

  .expand-hint {
    display: none;
  }

  .progress-panel {
    width: 260px;
    right: -8px;
  }

  .stage-cards {
    grid-template-columns: 1fr;
  }

  .stage-divider {
    padding: 28px 0;
  }

  .stage-divider-title {
    font-size: 0.75rem;
  }
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */

/* Base hidden state — applied by JS before elements enter view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.reveal-left {
  transform: translateX(-24px);
}

.reveal.reveal-right {
  transform: translateX(24px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for child groups */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.37s; }

.reveal-group.visible > * {
  opacity: 1;
  transform: none;
}

/* Hero entrance */
.hero-content > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content.hero-ready > *:nth-child(1) { transition-delay: 0.1s; }
.hero-content.hero-ready > *:nth-child(2) { transition-delay: 0.25s; }
.hero-content.hero-ready > *:nth-child(3) { transition-delay: 0.4s; }
.hero-content.hero-ready > *:nth-child(4) { transition-delay: 0.55s; }

.hero-content.hero-ready > * {
  opacity: 1;
  transform: none;
}

/* Reduced motion: skip all animations */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > *, .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================
   Hero Layout Modes
   ========================================== */

/* --- TERMINAL mode (Cyberpunk) --- */
.hero-mode-terminal .hero-content {
  text-align: left;
  max-width: 700px;
  width: 100%;
}

.hero-terminal-prompt {
  font-family: 'Space Grotesk', 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.hero-terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

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

.hero-mode-terminal .hero-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  text-align: left;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-mode-terminal .hero-tagline,
.hero-mode-terminal .hero-sub {
  text-align: left;
  max-width: none;
  margin-left: 0;
}

.hero-mode-terminal .btn {
  display: inline-block;
}

/* --- SPLIT mode (Forest) --- */
.hero-mode-split .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 0 48px;
  text-align: left;
  align-items: center;
  max-width: 900px;
  width: 100%;
}

.hero-mode-split .hero-title {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  text-align: left;
  margin-bottom: 12px;
}

.hero-mode-split .hero-tagline {
  grid-column: 1;
  grid-row: 2;
  text-align: left;
  margin-bottom: 8px;
}

.hero-mode-split .hero-sub {
  grid-column: 1;
  grid-row: 3;
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-bottom: 24px;
}

.hero-mode-split .btn {
  grid-column: 1;
  grid-row: 4;
  align-self: start;
}

.hero-split-visual {
  grid-column: 2;
  grid-row: 1 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-split-number {
  font-family: var(--font-pixel);
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.12;
  user-select: none;
  letter-spacing: -0.04em;
}

@media (max-width: 640px) {
  .hero-mode-split .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-mode-split .hero-title,
  .hero-mode-split .hero-tagline,
  .hero-mode-split .hero-sub { text-align: center; }
  .hero-split-visual { display: none; }
  .hero-mode-split .btn { align-self: center; justify-self: center; }
}

/* --- MINIMAL mode (Ocean) --- */
.hero-mode-minimal .hero-content {
  position: relative;
}

.hero-minimal-bg-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(14rem, 35vw, 28rem);
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.06em;
}

.hero-mode-minimal .hero-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  margin-bottom: 20px;
}

.hero-mode-minimal .hero-tagline {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- EDITORIAL mode (Sunset) --- */
.hero-mode-editorial .hero-content {
  text-align: left;
  border-left: 8px solid var(--primary);
  padding-left: 40px;
  max-width: 680px;
  width: 100%;
}

.hero-editorial-label {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}

.hero-mode-editorial .hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  text-align: left;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  font-family: var(--font-pixel);
}

.hero-mode-editorial .hero-tagline,
.hero-mode-editorial .hero-sub {
  text-align: left;
  max-width: none;
  margin-left: 0;
}

.hero-mode-editorial .btn {
  display: inline-block;
}

/* --- BADGES mode (Lavender) --- */
.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  letter-spacing: 0.01em;
}

.hero-mode-badges .hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}
