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

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --surface: #16162a;
  --surface-hover: #1e1e38;
  --border: #2a2a42;
  --border-hover: #3a3a56;
  --text: #e4e4ef;
  --text-muted: #8888a4;
  --primary: #6c63ff;
  --primary-light: #8b83ff;
  --primary-glow: rgba(108, 99, 255, 0.25);
  --accent: #00d4aa;
  --accent-light: #33e0be;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --gradient: linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(0,212,170,0.05) 100%);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
strong { color: var(--text); font-weight: 600; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-logo:hover { color: var(--text); }
.nav-icon { font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-gh { display: flex; align-items: center; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 180%;
  height: 220%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(108, 99, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 40%);
  animation: heroFloat 25s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -3%) scale(1.02); }
  66% { transform: translate(-2%, 2%) scale(0.98); }
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  background: rgba(0, 212, 170, 0.08);
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  position: relative;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }

.card-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ===== Operating Model ===== */
.model-grid {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.model-role {
  flex: 1;
  min-width: 300px;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}

.role-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}
.role-header.human { border-bottom-color: var(--accent); }
.role-header.ai { border-bottom-color: var(--primary); }
.role-emoji { font-size: 2rem; }
.role-header h3 { font-size: 1.15rem; font-weight: 700; }

.model-role ul { list-style: none; }
.model-role li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.model-role li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 600;
}

.model-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 80px;
}
.divider-line { width: 2px; flex: 1; background: linear-gradient(to bottom, transparent, var(--border), transparent); min-height: 30px; }
.divider-icon { font-size: 1.5rem; margin: 0.5rem 0; }
.divider-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

/* ===== Manifesto ===== */
.section-manifesto {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  padding: 7rem 0;
}

.manifesto-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.value {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.value::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: var(--gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.value:hover::after { opacity: 0.15; }
.value:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
}

.value-main {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.value-over {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}
.value-secondary {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}

.manifesto-note {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 4rem;
  opacity: 0.7;
}

.principles h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.principle {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.principle:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.principle-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  min-width: 28px;
  padding-top: 3px;
  opacity: 0.8;
}
.principle p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== Sprint Cycle ===== */
.cycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  justify-content: center;
}

.cycle-step {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cycle-step .step-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cycle-step .step-content code {
  margin-top: auto;
}
.cycle-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.step-content h3 { font-size: 1.05rem; margin-bottom: 0.6rem; font-weight: 700; }
.step-content p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.step-content code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xs);
  color: var(--accent);
  border: 1px solid var(--border);
  display: inline-block;
}

.cycle-arrow {
  display: none;
}
  opacity: 0.4;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}
.feature:hover { border-color: var(--border-hover); }
.feature h3 { font-size: 1.15rem; margin-bottom: 1.25rem; font-weight: 700; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tag:hover { border-color: var(--primary); color: var(--text); }
.tag-ceremony { border-color: rgba(108, 99, 255, 0.4); color: var(--primary-light); background: rgba(108, 99, 255, 0.08); }
.tag-new { border-style: dashed; color: var(--accent); border-color: rgba(0, 212, 170, 0.4); background: rgba(0, 212, 170, 0.05); }

.feature-list { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-item {
  padding: 0.5rem 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.feature-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Getting Started ===== */
.steps-vertical { max-width: 700px; margin: 0 auto; }

.step-v {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}
.step-v:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 4.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

.step-v-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.step-v-content { flex: 1; }
.step-v-content h3 { font-size: 1.15rem; margin-bottom: 0.75rem; font-weight: 700; }
.step-v-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.step-v-content code { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }

.step-v-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-top: 0.5rem;
}
.step-v-content pre code {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ===== Variants ===== */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.variant-card {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.variant-card .card-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.variant-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.variant-card .variant-tagline {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.variant-card > p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.25rem; max-width: 320px; }

.variant-guided { border-top: 2px solid var(--accent); }
.variant-autonomous { border-top: 2px solid var(--primary); }

.variant-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.variant-best {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.variant-card .btn { align-self: center; }

.variant-active {
  border-color: rgba(108, 99, 255, 0.3);
  background: linear-gradient(180deg, rgba(108,99,255,0.05) 0%, var(--surface) 100%);
}

/* ===== Two Modes ===== */
.modes-grid {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.mode-card {
  flex: 1;
  max-width: 350px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mode-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.mode-guided { border-top: 2px solid var(--accent); }
.mode-autonomous { border-top: 2px solid var(--primary); }
.mode-icon { font-size: 2rem; flex-shrink: 0; }
.mode-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; }
.mode-content p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.mode-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .modes-grid { flex-direction: column; align-items: center; }
  .mode-card { max-width: 100%; }
  .mode-arrow { transform: rotate(90deg); }
}

/* Scroll animation for modes */
.mode-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.3s;
}
.mode-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Problem / Why ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.problem {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  border-top: 2px solid transparent;
}
.problem:hover {
  border-color: var(--border-hover);
  border-top-color: #e54545;
  transform: translateY(-4px);
}

.problem-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.problem h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; }
.problem p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

.solution-banner {
  text-align: center;
  padding: 2.5rem;
  background: var(--gradient-subtle);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.solution-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}
.solution-banner h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.solution-banner p { color: var(--text-muted); font-size: 1rem; max-width: 650px; margin: 0 auto; line-height: 1.7; }

@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* Scroll animation for problems */
.problem, .solution-banner, .comparison-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.3s, background 0.3s;
}
.problem.visible, .solution-banner.visible, .comparison-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Comparison Table ===== */
.comparison-section {
  margin-top: 3rem;
}
.comparison-section h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table thead th {
  background: var(--surface);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}
.comparison-table thead th:first-child {
  width: 140px;
}
.comparison-table tbody td {
  color: var(--text-muted);
  line-height: 1.5;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.row-label {
  font-weight: 600;
  color: var(--text) !important;
  white-space: nowrap;
}

.col-highlight {
  background: rgba(108, 99, 255, 0.04) !important;
  color: var(--text) !important;
}
.comparison-table thead .col-highlight {
  background: rgba(108, 99, 255, 0.12) !important;
  color: var(--primary-light) !important;
}

.comparison-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0.8;
}

/* ===== Copilot CLI ===== */
.copilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.copilot-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: all 0.3s;
}
.copilot-feature:hover { border-color: var(--border-hover); background: var(--surface-hover); }

.copilot-file {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.copilot-file code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
.copilot-builtin {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
}

.copilot-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.copilot-desc code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--accent-light);
  border: 1px solid var(--border);
}

/* ===== Constitution Pillars ===== */
.constitution-pillars { max-width: 800px; margin: 0 auto; }

.pillar {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  transition: all 0.3s;
  align-items: flex-start;
}
.pillar:hover { border-color: var(--border-hover); background: var(--surface-hover); }

.pillar-rank {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.pillar-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.pillar-content p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ===== Escalation ===== */
.escalation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.escalation-level {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}
.escalation-level:hover { border-color: var(--border-hover); }

.level-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.level-must .level-header { border-bottom-color: #e54545; }
.level-should .level-header { border-bottom-color: #e5a545; }
.level-auto .level-header { border-bottom-color: var(--accent); }

.level-icon { font-size: 1.5rem; }
.level-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0.25rem 0; }
.level-desc { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

.escalation-level ul { list-style: none; }
.escalation-level li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.escalation-level li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: 700;
}
.level-must li::before { color: #e54545; }
.level-should li::before { color: #e5a545; }
.level-auto li::before { color: var(--accent); }

/* ===== Drift Control ===== */
.drift-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.drift-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.drift-card .card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.drift-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; font-weight: 700; }
.drift-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

@media (max-width: 768px) {
  .drift-layers { grid-template-columns: 1fr; }
}

/* ===== Definition of Done ===== */
.dod-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dod-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.dod-item:hover { border-color: var(--accent); background: var(--surface-hover); }

.dod-item.dod-highlight {
  border-color: rgba(108, 99, 255, 0.3);
  background: rgba(108, 99, 255, 0.05);
}

.dod-check {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  min-width: 24px;
  padding-top: 1px;
}
.dod-text { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.dod-text code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ===== Issue Flow ===== */
.flow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.flow-step {
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 130px;
  transition: all 0.3s;
}
.flow-step:hover { transform: translateY(-3px); }
.flow-backlog { border-left: 3px solid var(--text-muted); }
.flow-planned { border-left: 3px solid #0E8A16; }
.flow-progress { border-left: 3px solid #FBCA04; }
.flow-validation { border-left: 3px solid #1D76DB; }
.flow-done { border-left: 3px solid var(--accent); }

.flow-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.flow-desc { font-size: 0.8rem; color: var(--text-muted); }
.flow-desc code {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border);
}
.flow-connector { color: var(--text-muted); font-size: 1.2rem; opacity: 0.4; padding: 0 0.25rem; }

/* ICE */
.ice-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.ice-scale { display: flex; flex-direction: column; gap: 0.5rem; }
.ice-item {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.ice-high { background: rgba(182, 2, 5, 0.15); border-left: 3px solid #B60205; }
.ice-medium { background: rgba(249, 208, 196, 0.1); border-left: 3px solid #F9D0C4; }
.ice-low { background: rgba(197, 222, 245, 0.08); border-left: 3px solid #C5DEF5; }
.ice-score { font-weight: 700; margin-right: 0.75rem; color: var(--text); }

/* ===== Documentation ===== */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}
.doc-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.doc-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.doc-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; font-weight: 700; }
.doc-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.75rem; line-height: 1.6; }
.doc-card code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.doc-rule {
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== Responsive additions ===== */
@media (max-width: 768px) {
  .escalation-grid { grid-template-columns: 1fr; }
  .flow-connector { display: none; }
  .flow-visual { flex-direction: column; gap: 0.5rem; }
  .flow-step { width: 100%; }
}

/* ===== Additional scroll animations ===== */
.pillar, .escalation-level, .dod-item, .flow-step, .doc-card, .copilot-feature {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.3s, background 0.3s;
}
.pillar.visible, .escalation-level.visible, .dod-item.visible, .flow-step.visible, .doc-card.visible, .copilot-feature.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-links { margin-top: 1rem; }
.footer-links a { margin: 0 0.75rem; }
.footer-copy { margin-top: 1.5rem; font-size: 0.8rem; opacity: 0.6; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 7rem 0 4rem; }
  .hero-stats { gap: 2rem; }
  .stat-number { font-size: 2.2rem; }
  .cycle-arrow { display: none; }
  .cycle { grid-template-columns: 1fr; gap: 1rem; }
  .cycle-step { max-width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .variant-grid { grid-template-columns: 1fr; }
  .model-divider { flex-direction: row; width: 100%; }
  .divider-line { height: 2px; width: auto; min-height: auto; flex: 1; background: linear-gradient(to right, transparent, var(--border), transparent); }
  .divider-icon { margin: 0 0.75rem; }
  .values { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-gh) { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.8rem; }
}

/* ===== Scroll animations ===== */
.card, .cycle-step, .value, .principle, .step-v, .model-role, .feature {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.3s, background 0.3s;
}
.card.visible, .cycle-step.visible, .value.visible, .principle.visible, .step-v.visible, .model-role.visible, .feature.visible {
  opacity: 1;
  transform: translateY(0);
}
