/* ═══════════════════════════════════════════════════════
   xzoster — Life Architect Crew
   CSS Design System · Dark / Cinematic / Editorial
═══════════════════════════════════════════════════════ */

/* ─── Fonts ─────────────────────────────────────────── */
/* Bebas Neue: display/hero
   DM Sans:    body / UI
   DM Mono:    code / terminal */

/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);

  --teal: #2effa8;
  --teal-dim: rgba(46, 255, 168, 0.12);
  --teal-mid: rgba(46, 255, 168, 0.35);
  --amber: #ffb830;
  --amber-dim: rgba(255, 184, 48, 0.12);
  --red: #ff4545;

  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #444444;
  --text-teal: #2effa8;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;

  --nav-h: 64px;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

textarea,
input {
  font-family: inherit;
}

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 2px;
}

/* ═══════════════════════════ NAV */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--teal);
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--teal);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid var(--text-primary);
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-nav:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* ═══════════════════════════ BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--teal);
  color: #000;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--teal);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ═══════════════════════════ TYPOGRAPHY ATOMS */
.label-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ═══════════════════════════ HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 80px) 60px 80px;
  overflow: hidden;
}

/* Halftone + teal gradient background — matches reference image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.teal-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 40%, rgba(46, 255, 168, 0.22) 0%, rgba(46, 255, 168, 0.08) 40%, transparent 70%);
  pointer-events: none;
}

.halftone-mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(46, 255, 168, 0.55) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

.figure-silhouette {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 440px;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0.92) 40%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 420px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ═══════════════════════════ SYSTEM STRIP */
.system-strip {
  background: var(--teal);
  overflow: hidden;
  padding: 14px 0;
}

.strip-inner {
  display: flex;
  gap: 32px;
  animation: stripScroll 20s linear infinite;
  white-space: nowrap;
}

.strip-inner span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #000;
  flex-shrink: 0;
}

.strip-inner .dot {
  opacity: 0.4;
}

@keyframes stripScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════ AGENTS SECTION */
.agents-section {
  padding: 120px 60px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 560px;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.agent-card {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.agent-card:hover::before {
  transform: scaleX(1);
}

.agent-card:hover {
  background: var(--bg-2);
}

.agent-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.agent-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.agent-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.agent-name {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.agent-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.agent-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  font-weight: 300;
}

.agent-output-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════ HOW IT WORKS */
.how-section {
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  border-bottom: 1px solid var(--border);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 32px;
  padding: 36px 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal);
  flex-shrink: 0;
  width: 32px;
  margin-top: 2px;
}

.step-body h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

.step-divider {
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════ CTA BAND */
.cta-band {
  position: relative;
  padding: 120px 60px;
  overflow: hidden;
  text-align: center;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(46, 255, 168, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════ FOOTER */
.site-footer {
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ═══════════════════════════ LAUNCH PAGE */
.launch-page {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.launch-left {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 80px 60px;
}

.launch-left-inner {
  width: 100%;
}

.launch-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.launch-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 56px;
  max-width: 380px;
}

.agent-pipeline-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.pipeline-agent:last-child {
  border-bottom: 1px solid var(--border);
}

.pa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.pipeline-arrow {
  padding: 4px 0 4px 20px;
  font-size: 16px;
  color: var(--text-muted);
}

/* Form panel */
.launch-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  overflow-y: auto;
}

.launch-form-wrap {
  width: 100%;
  max-width: 520px;
}

.form-step-label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  color: var(--teal);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.label-hint {
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: none;
  font-weight: 300;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.file-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.file-upload-label {
  font-size: 11px;
  color: var(--teal);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.file-upload-label:hover {
  opacity: 0.75;
}

.file-name-display {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.form-error {
  background: rgba(255, 69, 69, 0.1);
  border: 1px solid rgba(255, 69, 69, 0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #ff8080;
  margin-bottom: 20px;
}

.btn-launch {
  width: 100%;
  padding: 18px;
  background: var(--teal);
  color: #000;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-launch:hover {
  background: transparent;
  color: var(--teal);
}

.btn-launch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scope-selector {
  margin-top: 12px;
}

.scope-option {
  display: block;
  cursor: pointer;
  margin-bottom: 12px;
}

.scope-option input {
  display: none;
}

.scope-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-option:hover .scope-card {
  border-color: var(--teal-mid);
  background: var(--surface);
}

.scope-option input:checked+.scope-card {
  border-color: var(--teal);
  background: var(--teal-dim);
  box-shadow: 0 0 15px var(--teal-dim);
}

.scope-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.scope-option input:checked+.scope-card .scope-name {
  color: var(--teal);
}

.scope-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.scope-grid .scope-card {
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.scope-grid .scope-name {
  font-size: 11px;
  text-align: center;
}

/* ═══════════════════════════ RUN PAGE */
.run-page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

.run-topbar {
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.run-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.run-id-display {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.run-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 600px;
}

.run-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.run-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 1s ease;
  box-shadow: 0 0 12px var(--teal-mid);
}

.run-progress-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.run-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
}

/* Pipeline cards */
.run-pipeline {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 40px 32px;
  overflow-y: auto;
}

.run-pipeline .label-tag {
  margin-bottom: 32px;
}

.pipeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.pipeline-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.connector-line {
  width: 1px;
  height: 32px;
  background: var(--border);
  transition: background 0.5s ease;
}

.connector-line.active {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal-mid);
}

.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.pc-status-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.pc-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  line-height: 1.1;
}

.pc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  font-weight: 300;
}

.pc-output {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.pc-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  display: none;
  overflow: hidden;
}

.pc-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: pulseSlide 1.4s ease-in-out infinite;
}

@keyframes pulseSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Agent states */
.pipeline-card.state-running {
  border-color: var(--teal-mid);
  background: var(--bg-2);
  box-shadow: 0 0 20px var(--teal-dim);
}

.pipeline-card.state-running .pc-status-badge {
  border-color: var(--teal-mid);
  color: var(--teal);
  background: var(--teal-dim);
}

.pipeline-card.state-running .pc-pulse {
  display: block;
}

.pipeline-card.state-completed {
  border-color: rgba(46, 255, 168, 0.18);
}

.pipeline-card.state-completed .pc-status-badge {
  border-color: rgba(46, 255, 168, 0.3);
  color: var(--teal);
  background: var(--teal-dim);
}

/* Terminal */
.run-terminal {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-2);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  flex: 1;
}

.terminal-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--teal);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.terminal-line {
  display: grid;
  grid-template-columns: 60px auto 1fr;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  animation: fadeInLine 0.3s ease forwards;
}

@keyframes fadeInLine {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.terminal-line.system .tl-ts {
  color: var(--text-muted);
}

.terminal-line.system .tl-msg {
  color: var(--text-muted);
  font-weight: 300;
}

.tl-ts {
  color: var(--text-muted);
  font-size: 11px;
}

.tl-agent {
  color: var(--teal);
  font-size: 11px;
}

.tl-msg {
  color: var(--text-secondary);
  font-weight: 300;
}

.terminal-current {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.current-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}


/* Run complete overlay */
.run-complete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.rco-inner {
  text-align: center;
  max-width: 480px;
  padding: 60px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.rco-icon {
  font-size: 40px;
  color: var(--teal);
  margin-bottom: 24px;
  display: block;
}

.rco-inner h2 {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.rco-inner p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ═══════════════════════════ RESULTS PAGE */
.results-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 60px 48px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.results-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.results-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.results-meta code {
  color: var(--teal);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 3px;
}

.results-header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.results-grid {
  padding: 40px 60px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.result-card {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  animation: fadeInCard 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rc-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 300px;
  color: var(--text-secondary);
  font-size: 13px;
}

.rc-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--surface-2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.rc-teal {
  border-top: 2px solid var(--teal);
}

.rc-amber {
  border-top: 2px solid var(--amber);
}

.rc-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.rc-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.rc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.rc-icon {
  font-size: 20px;
  color: var(--teal);
  line-height: 1;
}

.rc-amber .rc-icon {
  color: var(--amber);
}

.rc-title-group {
  flex: 1;
}

.rc-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.rc-agent {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.rc-copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.rc-copy-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.rc-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

.rc-body p {
  margin: 0 0 12px;
}

.rc-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.rc-body h2,
.rc-body h3,
.rc-body h4,
.rc-body h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin: 20px 0 8px;
}

.rc-body h2 {
  font-size: 15px;
}

.rc-body ul {
  padding-left: 16px;
  margin: 0 0 12px;
}

.rc-body li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.rc-body li::before {
  content: '—';
  position: absolute;
  left: -8px;
  color: var(--text-muted);
}

.friction-zone {
  padding: 10px 16px;
  border-radius: var(--radius);
  margin: 8px 0;
  font-size: 13px;
  font-weight: 500;
}

.fz-critical {
  background: rgba(255, 69, 69, 0.08);
  border-left: 2px solid var(--red);
}

.fz-warn {
  background: rgba(255, 184, 48, 0.08);
  border-left: 2px solid var(--amber);
}

.fz-ok {
  background: var(--teal-dim);
  border-left: 2px solid var(--teal);
}

.results-footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════ DASHBOARD */
.dashboard-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  padding-bottom: 80px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 64px 60px 48px;
  border-bottom: 1px solid var(--border);
}

.dash-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.02em;
}

.dash-runs {
  padding: 40px 60px;
}

.dash-runs-header {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 120px 140px;
  gap: 16px;
  padding: 12px 0;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.dash-run-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 120px 140px;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: var(--transition);
}

.dash-run-row:hover {
  background: var(--bg-2);
}

.dr-id code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.dr-name {
  font-size: 14px;
}

.dr-focus {
  font-size: 13px;
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.pill-done {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid var(--teal-mid);
}

.pill-run {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 48, 0.3);
}

.pill-wait {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.dr-link {
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.06em;
  transition: var(--transition);
}

.dr-link:hover {
  opacity: 0.7;
}

.dash-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.dash-empty-inner {
  text-align: center;
  max-width: 400px;
}

.dash-empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.dash-empty-inner h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.dash-empty-inner p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* ═══════════════════════════ RESPONSIVE */
@media (max-width: 1024px) {
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .run-layout {
    grid-template-columns: 1fr;
  }

  .run-pipeline {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 340px;
    overflow-y: auto;
  }

  .how-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-h) + 60px) 24px 60px;
  }

  .agents-section,
  .how-section,
  .cta-band {
    padding: 80px 24px;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  .launch-page {
    grid-template-columns: 1fr;
  }

  .launch-left {
    display: none;
  }

  .launch-right {
    padding: 40px 24px;
  }

  .results-header {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .results-grid {
    padding: 24px;
  }

  .dashboard-header {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .dash-runs {
    padding: 24px;
  }

  .dash-runs-header {
    display: none;
  }

  .dash-run-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
  }

  .nav-links {
    display: none;
  }

  .site-footer {
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .run-topbar {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .run-pipeline {
    padding: 24px 20px;
  }
}