/* Hero variations */

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--rr-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%,
    transparent 0%,
    color-mix(in srgb, var(--rr-bg) 80%, transparent) 60%,
    var(--rr-bg) 100%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rr-mono);
  font-size: 13px;
  color: var(--rr-text-2);
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--rr-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--rr-bg-2) 70%, transparent);
  backdrop-filter: blur(8px);
}
.hero-kicker-bracket { color: var(--rr-cyan); }

.hero-h1 {
  font-family: var(--rr-mono);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.92;
  margin: 0 0 28px;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--rr-text);
}
.hero-h1-line {
  display: block;
}
.hero-h1-line:nth-child(3) {
  background: var(--rr-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-family: var(--rr-mono);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rr-text-2);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-sub .rr-grad-text { font-weight: 700; }

.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  font-family: var(--rr-mono);
  font-size: 12px;
  color: var(--rr-text-3);
}

/* ── V1 — Terminal ─────────────────────────────────────────────────── */
.hero-v1-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px;
  align-items: center;
}
.hero-v1-copy { position: relative; }
.hero-v1-terminal {
  background: var(--rr-code-bg);
  border: 1px solid var(--rr-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px color-mix(in srgb, var(--rr-cyan) 12%, transparent),
    0 0 80px -10px color-mix(in srgb, var(--rr-blue) 30%, transparent);
  height: 520px;
  display: flex; flex-direction: column;
}
.term-chrome {
  display: flex; align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #1A1B26, #14141C);
  border-bottom: 1px solid var(--rr-line);
}
.term-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: block;
}
.term-title {
  margin-left: 12px;
  font-family: var(--rr-mono);
  font-size: 12px;
  color: var(--rr-text-3);
  flex: 1;
  text-align: center;
}
.term-pid {
  font-family: var(--rr-mono);
  font-size: 11px;
  color: var(--rr-text-dim);
}
.term-body {
  padding: 16px 18px;
  flex: 1;
  overflow: auto;
  font-family: var(--rr-mono);
  font-size: 12.5px;
  line-height: 1.55;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  font-size: 10px;
  background: color-mix(in srgb, var(--rr-cyan) 18%, transparent);
  color: var(--rr-cyan-bright);
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.term-prompt {
  font-family: var(--rr-mono);
  font-size: 12.5px;
  margin-top: 4px;
}

/* ── V2 — Xcode ────────────────────────────────────────────────────── */
.hero-v2-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 48px;
  align-items: center;
}
.hero-v2-editor {
  background: var(--rr-code-bg);
  border: 1px solid var(--rr-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 80px -10px color-mix(in srgb, var(--rr-blue) 28%, transparent);
  height: 520px;
  display: flex; flex-direction: column;
}
.ed-tabs {
  display: flex;
  background: #14141C;
  border-bottom: 1px solid var(--rr-line);
  align-items: stretch;
}
.ed-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--rr-line-soft);
  color: var(--rr-text-3);
  font-family: var(--rr-mono);
  font-size: 12px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.ed-tab:hover { color: var(--rr-text-2); }
.ed-tab.is-active {
  color: var(--rr-text);
  background: var(--rr-code-bg);
  border-bottom: 1px solid var(--rr-cyan);
}
.ed-tab-icon { filter: grayscale(0.3); }
.ed-spacer { flex: 1; }
.ed-build {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px;
  font-family: var(--rr-mono);
  font-size: 11px;
  color: var(--rr-text-3);
}
.ed-body {
  flex: 1;
  overflow: auto;
  padding: 16px 0;
  font-family: var(--rr-mono);
  font-size: 12.5px;
  line-height: 1.7;
}
.ed-pane { padding: 0 4px; }
.ed-line {
  display: flex;
  align-items: baseline;
  padding: 0 16px 0 0;
}
.ed-line:hover { background: rgba(255,255,255,0.02); }
.ed-lineno {
  display: inline-block;
  width: 36px;
  text-align: right;
  margin-right: 16px;
  color: var(--rr-text-dim);
  font-size: 11px;
  flex-shrink: 0;
}
.ed-code {
  color: var(--rr-text);
  flex: 1;
}
.ed-status {
  display: flex;
  gap: 10px;
  padding: 6px 16px;
  background: #14141C;
  border-top: 1px solid var(--rr-line);
  font-family: var(--rr-mono);
  font-size: 11px;
  color: var(--rr-text-3);
}

.hero-stats {
  display: flex; gap: 40px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px dashed var(--rr-line);
}
.hero-stat-n {
  font-family: var(--rr-mono);
  font-size: 32px;
  font-weight: 700;
  background: var(--rr-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hero-stat-l {
  font-family: var(--rr-mono);
  font-size: 11px;
  color: var(--rr-text-3);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

/* ── V3 — Diagram ──────────────────────────────────────────────────── */
.hero-v3-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px;
  align-items: center;
}
.hero-v3-diagram {
  position: relative;
  height: 520px;
  display: grid; place-items: center;
}
.agent-topo {
  width: 100%;
  height: 100%;
  max-width: 480px;
}
.hero-ticker {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px;
  background: var(--rr-bg-2);
  border: 1px solid var(--rr-line);
  border-radius: 10px;
  font-size: 13px;
}
.hero-ticker-row {
  display: flex; align-items: center; gap: 10px;
}

@media (max-width: 980px) {
  .hero-v1-grid, .hero-v2-grid, .hero-v3-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }
  .hero-v1-terminal, .hero-v2-editor, .hero-v3-diagram {
    height: 420px;
  }
}
