/* ============================================================
   ZeeSpec — Global Styles
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --bg:          #080c18;
  --surface:     rgba(255,255,255,0.03);
  --surface-2:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.09);
  --text:        #e8eaf0;
  --muted:       #7a8099;
  --accent:      #6366f1;

  --what:  #3B82F6;
  --where: #10B981;
  --when:  #F59E0B;
  --who:   #F97316;
  --why:   #EF4444;
  --how:   #8B5CF6;

  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }
::selection { background: rgba(99,102,241,0.35); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 99px; }

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(99,102,241,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(139,92,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 55% 50%, rgba(16,185,129,0.08) 0%, transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
  animation: float-orb 12s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: rgba(99,102,241,0.12); top: -100px; left: -100px; animation-duration: 14s; }
.orb-2 { width: 400px; height: 400px; background: rgba(139,92,246,0.1); bottom: 0; right: -80px; animation-delay: -5s; animation-duration: 10s; }
.orb-3 { width: 300px; height: 300px; background: rgba(16,185,129,0.08); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -8s; }

@keyframes float-orb {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.1); }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative; z-index: 1;
}
section { position: relative; z-index: 1; }
.section-gap { padding: 100px 0; }
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 20px;
}
.section-sub {
  font-size: 1.1rem; color: var(--muted);
  max-width: 560px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(8,12,24,0.7);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.875rem; color: var(--muted);
  transition: color var(--transition); font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 20px; border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  font-size: 0.875rem; font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 80px;
}
.hero-content { max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.1);
  font-size: 0.8rem; font-weight: 600; color: rgba(160,163,255,0.9);
  margin-bottom: 28px; letter-spacing: 0.5px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 24px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 50%, #10b981 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted); line-height: 1.7;
  max-width: 560px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 600; font-size: 1rem;
  border: none; transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 30px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(99,102,241,0.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  background: transparent;
  color: var(--text); font-weight: 600; font-size: 1rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.08); }

.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item { }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.5px; }

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
#problem { background: rgba(255,255,255,0.01); }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 56px;
}
.problem-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.problem-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.875rem;
}
.problem-card-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.card-bad .problem-card-header  { background: rgba(239,68,68,0.08); }
.card-good .problem-card-header { background: rgba(16,185,129,0.08); }
.card-bad .dot  { background: #EF4444; }
.card-good .dot { background: #10B981; }
.problem-card-body { padding: 24px; }
.story-quote {
  font-style: italic; font-size: 1rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid rgba(239,68,68,0.5);
}
.story-issue {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--muted);
  margin-bottom: 12px; line-height: 1.5;
}
.story-issue .icon { color: #EF4444; flex-shrink: 0; margin-top: 2px; }
.spec-line {
  display: flex; flex-direction: column; gap: 12px;
}
.spec-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.875rem; line-height: 1.5;
  transition: background var(--transition);
}
.spec-item:hover { background: rgba(255,255,255,0.09); }
.spec-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.tag-what  { background: rgba(59,130,246,0.2);  color: var(--what); }
.tag-who   { background: rgba(249,115,22,0.2);  color: var(--who);  }
.tag-why   { background: rgba(239,68,68,0.2);   color: var(--why);  }
.tag-how   { background: rgba(139,92,246,0.2);  color: var(--how);  }

.insight-box {
  margin-top: 48px; padding: 28px 32px;
  border-radius: var(--radius); border: 1px solid rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.07);
  display: flex; align-items: flex-start; gap: 20px;
}
.insight-icon { font-size: 2rem; flex-shrink: 0; }
.insight-text { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.insight-text strong { color: var(--text); }

/* ============================================================
   DIMENSION EXPLORER
   ============================================================ */
#dimensions .dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.dim-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 24px;
  background: var(--surface);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.dim-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.dim-card[data-dim="what"]::before  { background: radial-gradient(ellipse at 0 0, rgba(59,130,246,0.15), transparent 70%); }
.dim-card[data-dim="where"]::before { background: radial-gradient(ellipse at 0 0, rgba(16,185,129,0.15), transparent 70%); }
.dim-card[data-dim="when"]::before  { background: radial-gradient(ellipse at 0 0, rgba(245,158,11,0.15), transparent 70%); }
.dim-card[data-dim="who"]::before   { background: radial-gradient(ellipse at 0 0, rgba(249,115,22,0.15), transparent 70%); }
.dim-card[data-dim="why"]::before   { background: radial-gradient(ellipse at 0 0, rgba(239,68,68,0.15), transparent 70%); }
.dim-card[data-dim="how"]::before   { background: radial-gradient(ellipse at 0 0, rgba(139,92,246,0.15), transparent 70%); }
.dim-card:hover::before, .dim-card.active::before { opacity: 1; }

.dim-card:hover  { transform: translateY(-4px); }
.dim-card.active { transform: translateY(-4px); }
.dim-card[data-dim="what"].active  { border-color: var(--what);  box-shadow: 0 0 30px rgba(59,130,246,0.2); }
.dim-card[data-dim="where"].active { border-color: var(--where); box-shadow: 0 0 30px rgba(16,185,129,0.2); }
.dim-card[data-dim="when"].active  { border-color: var(--when);  box-shadow: 0 0 30px rgba(245,158,11,0.2); }
.dim-card[data-dim="who"].active   { border-color: var(--who);   box-shadow: 0 0 30px rgba(249,115,22,0.2); }
.dim-card[data-dim="why"].active   { border-color: var(--why);   box-shadow: 0 0 30px rgba(239,68,68,0.2); }
.dim-card[data-dim="how"].active   { border-color: var(--how);   box-shadow: 0 0 30px rgba(139,92,246,0.2); }

.dim-emoji { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.dim-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 4px;
}
.dim-card[data-dim="what"]  .dim-name { color: var(--what);  }
.dim-card[data-dim="where"] .dim-name { color: var(--where); }
.dim-card[data-dim="when"]  .dim-name { color: var(--when);  }
.dim-card[data-dim="who"]   .dim-name { color: var(--who);   }
.dim-card[data-dim="why"]   .dim-name { color: var(--why);   }
.dim-card[data-dim="how"]   .dim-name { color: var(--how);   }

.dim-subtitle { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }
.dim-progress-bar {
  height: 4px; border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden; margin-bottom: 8px;
}
.dim-progress-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.5s ease;
  width: 0%;
}
.dim-card[data-dim="what"]  .dim-progress-fill { background: var(--what);  }
.dim-card[data-dim="where"] .dim-progress-fill { background: var(--where); }
.dim-card[data-dim="when"]  .dim-progress-fill { background: var(--when);  }
.dim-card[data-dim="who"]   .dim-progress-fill { background: var(--who);   }
.dim-card[data-dim="why"]   .dim-progress-fill { background: var(--why);   }
.dim-card[data-dim="how"]   .dim-progress-fill { background: var(--how);   }

.dim-progress-label { font-size: 0.75rem; color: var(--muted); }
.dim-chevron {
  position: absolute; top: 24px; right: 24px;
  font-size: 0.8rem; color: var(--muted);
  transition: transform var(--transition);
}
.dim-card.active .dim-chevron { transform: rotate(180deg); }

/* Question Drawer */
.questions-drawer {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.questions-drawer.open { max-height: 1000px; }
.drawer-inner { padding: 32px; }
.drawer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 600; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.questions-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.question-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}
.question-item:hover { background: rgba(255,255,255,0.07); }
.question-item.checked { }
.q-checkbox {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); margin-top: 1px;
}
.question-item.checked .q-checkbox {
  border-color: transparent;
}
.q-checkbox svg { display: none; }
.question-item.checked .q-checkbox svg { display: block; }
.q-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; color: var(--muted);
  margin-bottom: 2px;
}
.q-text { font-size: 0.875rem; line-height: 1.4; }
.question-item.checked .q-text { text-decoration: line-through; color: var(--muted); }

/* Overall Progress Ring */
.progress-ring-wrap {
  display: flex; justify-content: center; margin-top: 48px;
}
.progress-ring-container {
  display: flex; align-items: center; gap: 32px;
  padding: 28px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.ring-svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.ring-fill { fill: none; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 283; stroke-dashoffset: 283;
  stroke: url(#ringGradient);
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4,0,0.2,1);
}
.ring-text { text-anchor: middle; dominant-baseline: middle; }
.ring-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; fill: var(--text); }
.ring-denom { font-family: 'Inter', sans-serif; font-size: 0.7rem; fill: var(--muted); }
.ring-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.ring-info p  { font-size: 0.875rem; color: var(--muted); max-width: 240px; line-height: 1.5; }

/* ============================================================
   SPEC BUILDER
   ============================================================ */
#builder { }
.builder-layout {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 24px; margin-top: 56px;
  min-height: 600px;
}
.builder-tabs {
  display: flex; flex-direction: column; gap: 8px;
}
.builder-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
  text-align: left;
}
.builder-tab:hover { border-color: rgba(255,255,255,0.15); color: var(--text); }
.builder-tab.active { color: var(--text); }
.builder-tab[data-tab="what"].active  { border-color: var(--what);  background: rgba(59,130,246,0.1);  }
.builder-tab[data-tab="where"].active { border-color: var(--where); background: rgba(16,185,129,0.1);  }
.builder-tab[data-tab="when"].active  { border-color: var(--when);  background: rgba(245,158,11,0.1);  }
.builder-tab[data-tab="who"].active   { border-color: var(--who);   background: rgba(249,115,22,0.1);  }
.builder-tab[data-tab="why"].active   { border-color: var(--why);   background: rgba(239,68,68,0.1);   }
.builder-tab[data-tab="how"].active   { border-color: var(--how);   background: rgba(139,92,246,0.1);  }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.builder-tab[data-tab="what"]  .tab-dot { background: var(--what);  }
.builder-tab[data-tab="where"] .tab-dot { background: var(--where); }
.builder-tab[data-tab="when"]  .tab-dot { background: var(--when);  }
.builder-tab[data-tab="who"]   .tab-dot { background: var(--who);   }
.builder-tab[data-tab="why"]   .tab-dot { background: var(--why);   }
.builder-tab[data-tab="how"]   .tab-dot { background: var(--how);   }
.tab-label { flex: 1; }
.tab-count { font-size: 0.7rem; color: var(--muted); font-family: 'Space Mono', monospace; }

.builder-panels { position: relative; }
.builder-panel {
  display: none; flex-direction: column; gap: 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 28px;
  height: 100%;
}
.builder-panel.active { display: flex; }
.panel-header { margin-bottom: 8px; }
.panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 600; margin-bottom: 4px;
}
.panel-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

.questions-form { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.78rem; color: var(--muted);
  font-family: 'Space Mono', monospace; letter-spacing: 0.5px;
}
.form-input {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.875rem;
  resize: vertical; min-height: 60px;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus { border-color: rgba(99,102,241,0.5); }
.form-input::placeholder { color: rgba(255,255,255,0.2); }

.builder-actions {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}
.btn-copy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border: none; transition: all var(--transition);
  box-shadow: 0 0 20px rgba(99,102,241,0.25);
}
.btn-copy:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(99,102,241,0.4); }
.btn-clear {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.btn-clear:hover { border-color: rgba(239,68,68,0.4); color: var(--why); }

.copy-toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 9999;
  padding: 14px 24px; border-radius: 10px;
  background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7; font-weight: 600; font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.copy-toast.show { transform: translateY(0); opacity: 1; }

/* Preview pane */
.spec-preview {
  margin-top: 48px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
}
.preview-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.preview-title { font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; animation: pulse-dot 2s infinite; }
.preview-body {
  padding: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem; line-height: 1.8;
  color: var(--muted); max-height: 400px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word;
}
.preview-body .pv-section { color: var(--text); font-weight: 700; }
.preview-body .pv-answer  { color: #a5b4fc; }
.preview-empty { color: rgba(255,255,255,0.15); font-style: italic; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#howitworks { background: rgba(255,255,255,0.01); }
.steps-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start; gap: 0; margin-top: 64px;
}
.step-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 32px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1rem; margin-bottom: 20px;
}
.step-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 600; margin-bottom: 10px;
}
.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.step-code {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem; padding: 10px 16px;
  background: rgba(0,0,0,0.3); border-radius: 8px;
  border: 1px solid var(--border); color: #a5b4fc;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; transition: border-color var(--transition);
}
.step-code:hover { border-color: rgba(99,102,241,0.4); }
.step-code .copy-icon { font-size: 0.9rem; color: var(--muted); }
.step-arrow {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px; color: var(--muted); font-size: 1.5rem;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
#manifesto .manifesto-inner {
  max-width: 800px; margin: 0 auto;
  text-align: center;
}
.manifesto-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600; line-height: 1.4;
  margin-bottom: 32px; color: var(--text);
}
.manifesto-quote .hl { color: var(--accent); }
.manifesto-rule {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin: 48px 0;
}
.rule-card {
  padding: 24px 20px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.875rem; line-height: 1.6;
}
.rule-card .rule-cond { color: var(--muted); margin-bottom: 8px; font-size: 0.78rem; }
.rule-card .rule-result { font-weight: 600; }
.rule-card:nth-child(1) .rule-result { color: var(--why); }
.rule-card:nth-child(2) .rule-result { color: var(--when); }
.rule-card:nth-child(3) .rule-result { color: var(--where); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-tagline { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ============================================================
   CONFETTI
   ============================================================ */
.confetti-piece {
  position: fixed; width: 10px; height: 10px;
  border-radius: 2px; z-index: 9999;
  pointer-events: none;
  animation: confetti-fall 3s ease-in forwards;
}
@keyframes confetti-fall {
  0%  { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100%{ transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  #dimensions .dim-grid { grid-template-columns: 1fr 1fr; }
  .questions-list { grid-template-columns: 1fr; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-tabs { flex-direction: row; flex-wrap: wrap; }
  .builder-panel { min-height: 400px; }
  .steps-row { grid-template-columns: 1fr; }
  .step-arrow { padding-top: 0; transform: rotate(90deg); margin: 0 auto; }
  .manifesto-rule { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; }
  #dimensions .dim-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .progress-ring-container { flex-direction: column; text-align: center; padding: 24px; }
}

/* Animations */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
