/* ============================================
   NEXUS AI — PHASE 0 FOUNDATION
   Dark Command-Center Aesthetic
   Volcanic Glass + Neon Accents
   ============================================ */

:root {
  --bg-base: #0D0D0D;
  --bg-surface: #141414;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --border: #2A2A2A;
  --border-bright: #3A3A3A;

  --orange: #FF6B2B;
  --orange-soft: #FFB088;
  --orange-dim: rgba(255, 107, 43, 0.15);
  --green: #39FF14;
  --green-dim: rgba(57, 255, 20, 0.12);
  --cyan: #00D4FF;
  --cyan-dim: rgba(0, 212, 255, 0.1);

  --text-primary: #F0EDE8;
  --text-secondary: #9A9590;
  --text-muted: #5A5550;
  --text-code: #39FF14;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 4px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ TEXTURE OVERLAYS ============ */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.5rem;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-bracket { color: var(--orange); }
.logo-text { color: var(--text-primary); margin: 0 2px; }
.logo-sub { color: var(--orange-soft); font-size: 0.75rem; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-right: auto;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.5; box-shadow: 0 0 3px var(--green); }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  padding: 8rem 2.5rem 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.terminal-prompt {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 1rem;
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.title-line-1 {
  display: block;
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.title-line-2 {
  display: block;
  font-size: clamp(4rem, 10vw, 9rem);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  -webkit-text-stroke: 1px rgba(255,107,43,0.3);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--orange-soft);
  margin-bottom: 0.25rem;
  font-style: italic;
}

.hero-tagline-en {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}

.stat-divider {
  font-family: var(--font-mono);
  color: var(--border-bright);
  font-size: 1.5rem;
}

/* HERO GOALS PANEL */
.hero-goals {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.goals-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.goals-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.goals-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.check {
  color: var(--green);
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

/* ============ SECTIONS ============ */
.section {
  padding: 6rem 2.5rem;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  border: 1px solid var(--orange);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-bright), transparent);
}

/* ============ TIMELINE ============ */
.timeline-section { background: var(--bg-base); }

.timeline-overview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.timeline-phase {
  flex: 1;
  min-width: 160px;
  text-align: center;
}

.phase-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.phase-fill {
  height: 100%;
  background: var(--orange);
  width: 0;
  transition: width 1.5s ease;
  border-radius: 2px;
}

.timeline-phase.active .phase-fill { width: 100%; }
.timeline-phase[data-phase="2"] .phase-fill { width: 0; transition-delay: 0.3s; }
.timeline-phase[data-phase="3"] .phase-fill { width: 0; transition-delay: 0.6s; }

.phase-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.phase-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.phase-days {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.timeline-connector {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============ MONTH BLOCKS ============ */
.month-block {
  margin-bottom: 5rem;
}

.month-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.month-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--bg-base);
  background: var(--orange);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.month-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.month-days {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ============ WEEK CARDS ============ */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.week-card.wide {
  grid-column: 1 / -1;
}

.week-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.week-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.week-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.week-label span {
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.week-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* ============ TASK GROUPS ============ */
.task-group {
  margin-bottom: 1.25rem;
}

.task-group-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.task-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.task-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ============ HIRING TIERS ============ */
.hiring-tiers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tier { padding: 1rem; border-radius: var(--radius); }
.tier-1 { background: rgba(255,107,43,0.06); border: 1px solid rgba(255,107,43,0.2); }
.tier-2 { background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.15); }
.tier-3 { background: var(--bg-surface); border: 1px solid var(--border); }

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.tier-1 .tier-label { color: var(--orange); }
.tier-2 .tier-label { color: var(--cyan); }
.tier-3 .tier-label { color: var(--text-muted); }

.hire-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.hire-item:last-child { border-bottom: none; }

.hire-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hire-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.hire-salary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange-soft);
  margin-top: 0.2rem;
}

.total-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: var(--green-dim);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 2px;
  display: inline-block;
}

/* ============ REPO STRUCTURE ============ */
.repo-structure {
  background: #0A0A0A;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.repo-header {
  font-size: 0.72rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-tree { display: flex; flex-direction: column; gap: 0.3rem; }

.repo-item {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.repo-item:hover { background: rgba(255,255,255,0.03); }

.repo-icon { font-size: 0.65rem; }

.repo-desc {
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-left: auto;
}

/* ============ ARCHITECTURE DECISIONS ============ */
.decisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.decision-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: border-color 0.2s;
}

.decision-item:hover { border-color: var(--orange); }

.decision-q {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.decision-options {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.decision-answer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 700;
}

.decision-reason {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ============ INFRASTRUCTURE GRID ============ */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.infra-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.infra-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.deliverable-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(57,255,20,0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: inline-block;
}

/* ============ DATA PIPELINE ============ */
.pipeline-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pipeline-stage {
  flex: 1;
  min-width: 120px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.pipeline-stage:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stage-name {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stage-detail {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
}

.datasets-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.datasets-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dataset-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.dataset-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* ============ MODEL ARCHITECTURE ============ */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.arch-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.arch-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.arch-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Language mix bars */
.lang-mix { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }

.lang-bar-wrap { display: flex; align-items: center; gap: 0.5rem; }

.lang-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  width: 60px;
  flex-shrink: 0;
}

.lang-bar {
  flex: 1;
  height: 14px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(0,0,0,0.7);
  font-weight: 700;
  transition: width 1.5s ease;
}

.lang-fill.urdu { background: var(--green); }
.lang-fill.code { background: var(--cyan); }

/* Model stack */
.model-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.stack-layer {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-align: center;
}

.stack-layer.highlight {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.stack-sublayers {
  width: 100%;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sublayer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--border);
  border-radius: 0 2px 2px 0;
}

.stack-arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Config cards */
.config-cards { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }

.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: border-color 0.2s;
}

.config-card.active { border-color: var(--orange); }

.config-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
}

.config-purpose {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.config-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.config-specs span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--orange-soft);
  background: var(--orange-dim);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

/* ============ TRAINING RUNS ============ */
.training-runs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.run-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.run-card.featured {
  border-color: var(--orange);
  background: var(--orange-dim);
}

.run-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.run-specs { display: flex; flex-direction: column; gap: 0.35rem; }

.run-spec {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.run-spec span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ============ API ENDPOINTS ============ */
.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: #0A0A0A;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.endpoint:last-child { border-bottom: none; }

.method {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  min-width: 40px;
  text-align: center;
}

.method.post { background: rgba(255,107,43,0.2); color: var(--orange); }
.method.get { background: rgba(57,255,20,0.15); color: var(--green); }

.path {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.endpoint-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ============ BUDGET ============ */
.budget-section { background: var(--bg-surface); }

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.budget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.3s;
}

.budget-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.budget-card:hover { border-color: var(--border-bright); }
.budget-card.buffer { border-color: rgba(57,255,20,0.2); }

.budget-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.budget-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 1rem;
  line-height: 1;
}

.budget-detail { margin-bottom: 1rem; }

.budget-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  gap: 1rem;
}

.budget-line span:last-child {
  font-family: var(--font-mono);
  color: var(--text-primary);
  white-space: nowrap;
}

.budget-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease;
}

.budget-card.visible .budget-fill { width: var(--target-width, 50%); }

.budget-total {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.budget-total.visible { opacity: 1; transform: translateY(0); }

.total-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.total-range {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.total-conservative {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 0.5rem;
}

.total-with-buffer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============ METRICS ============ */
.metrics-section { background: var(--bg-base); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.metric-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.metric-group.visible { opacity: 1; transform: translateY(0); }

.metric-group-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.metric-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.metric-item:last-child { border-bottom: none; }

.metric-target {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  min-width: 60px;
}

.metric-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ============ TRANSITION BLOCK ============ */
.transition-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.transition-block.visible { opacity: 1; transform: translateY(0); }

.transition-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}

.check-box {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.transition-cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.cta-highlight {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}

.cta-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============ DAILY RHYTHM ============ */
.rhythm-section { background: var(--bg-surface); }

.rhythm-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
  max-width: 600px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s, transform 0.6s;
}

.rhythm-timeline.visible { opacity: 1; transform: translateX(0); }

.rhythm-item {
  display: grid;
  grid-template-columns: 60px 20px 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
}

.rhythm-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  padding-top: 0.1rem;
}

.rhythm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-bright);
  border: 2px solid var(--bg-surface);
  margin-top: 0.2rem;
  position: relative;
  flex-shrink: 0;
}

.rhythm-dot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}

.rhythm-item:last-child .rhythm-dot::after { display: none; }

.rhythm-dot.accent {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.rhythm-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rhythm-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.weekly-meetings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.2s, transform 0.5s 0.2s;
}

.weekly-meetings.visible { opacity: 1; transform: translateY(0); }

.meeting-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.day-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-sep { color: var(--border-bright); }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange-soft);
  font-style: italic;
  margin-left: auto;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem;
  }

  .hero-goals { display: none; }

  .nav-links { display: none; }

  .title-line-1 { font-size: 3rem; }
  .title-line-2 { font-size: 3.5rem; }

  .training-runs { grid-template-columns: 1fr; }

  .pipeline-flow { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); align-self: center; }

  .footer-content { flex-direction: column; align-items: flex-start; }
  .footer-tagline { margin-left: 0; }
}

@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 3rem; }
  .nav { padding: 0.75rem 1.25rem; }
  .hero-stats { gap: 0.75rem; }
  .stat-value { font-size: 1.5rem; }
}