:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-strong: #0c1017;
  --bg-card: rgba(16, 20, 31, 0.7);
  --bg-glass: rgba(14, 18, 27, 0.65);
  --stroke: rgba(120, 140, 170, 0.25);
  /* Color semantics */
  --accent: #f6c46c;
  /* Truth / receipt / permission */
  --accent-2: #56d2c1;
  /* Network / alive */
  --accent-3: #6bb3ff;
  /* Human (blue) */
  --accent-red: #ff8080;
  /* Agent (red) */
  --text: #f5f3ee;
  --muted: rgba(245, 243, 238, 0.68);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Unbounded", "Space Grotesk", sans-serif;
  --font-text: "Space Grotesk", sans-serif;
  --font-mono: "Spline Sans Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-text);
  background: radial-gradient(circle at top left, #101826 0%, #07090d 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

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

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 48px 120px;
  display: flex;
  flex-direction: column;
  gap: 200px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px,
      transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.7), transparent 70%);
  opacity: 0.5;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: pulse 10s ease-in-out infinite;
}

.glow-1 {
  top: -120px;
  left: 10%;
  background: rgba(246, 196, 108, 0.45);
}

.glow-2 {
  top: 40%;
  right: 8%;
  background: rgba(86, 210, 193, 0.38);
  animation-delay: -3s;
}

.glow-3 {
  bottom: -160px;
  left: 40%;
  background: rgba(107, 179, 255, 0.45);
  animation-delay: -6s;
}

.orb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
  animation: float 14s ease-in-out infinite, orb-breathe 4s ease-in-out infinite;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

.orb::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.4s ease;
}

.orb.is-pulsing {
  border-color: rgba(86, 210, 193, 0.5);
  box-shadow: 0 0 40px rgba(86, 210, 193, 0.3), inset 0 0 20px rgba(86, 210, 193, 0.1);
}

.orb-1 {
  top: 20%;
  left: 12%;
}

.orb-2 {
  top: 65%;
  right: 18%;
  animation-delay: -4s;
}

.orb-3 {
  bottom: 10%;
  left: 62%;
  animation-delay: -7s;
}

.orb-connector {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 210, 193, 0.2), transparent);
  transform-origin: left center;
  opacity: 0.4;
  animation: connector-pulse 3s ease-in-out infinite;
}

.orb-connector-1 {
  top: calc(20% + 60px);
  left: calc(12% + 120px);
  width: 200px;
  transform: rotate(25deg);
}

.orb-connector-2 {
  top: calc(65% + 60px);
  right: calc(18% + 120px);
  width: 180px;
  transform: rotate(-15deg);
}

.site-header {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
}

.domain {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1px;
}

.lang-option {
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 4px 2px;
}

.lang-option:hover {
  color: var(--text);
}

.lang-option.active {
  color: var(--text);
  font-weight: 600;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #f2a559);
  color: #1b140a;
  box-shadow: 0 12px 30px rgba(246, 196, 108, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(246, 196, 108, 0.45);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  min-height: 80vh;
  padding-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy {
  padding-right: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 40px;
}

.headline-line {
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
}

.headline-line.accent {
  color: var(--accent);
  font-size: 0.7em;
  margin-top: 12px;
  letter-spacing: 0;
  white-space: normal;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.hero-point {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-point.highlight {
  color: var(--text);
  border-left-color: var(--accent-2);
  font-weight: 500;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 540px;
  margin-top: 0;
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-meta {
  margin-top: 56px;
  display: grid;
  gap: 14px;
  max-width: 400px;
}

.meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
}

.meta-value {
  color: var(--text);
  font-weight: 500;
}

.hero-visual {
  display: grid;
  gap: 28px;
  position: sticky;
  top: 140px;
}

.glass-card {
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  box-shadow: var(--shadow);
}

.commit-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(246, 196, 108, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-2);
  text-transform: uppercase;
}

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

@keyframes live-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.receipt-count {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  transition: color 0.3s ease, transform 0.2s ease;
}

.receipt-count.is-updating {
  color: var(--accent);
  transform: scale(1.15);
}

.commit-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 243, 238, 0.8);
}

.commit-line {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 20, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Human lines - blue theme */
.commit-line.human-line {
  background: rgba(107, 179, 255, 0.06);
  border-left-color: var(--accent-3);
  border-color: rgba(107, 179, 255, 0.15);
  border-left-color: var(--accent-3);
}

/* Agent lines - red theme */
.commit-line.agent-line {
  background: rgba(255, 100, 100, 0.06);
  border-left-color: var(--accent-red);
  border-color: rgba(255, 100, 100, 0.15);
  border-left-color: var(--accent-red);
}

/* Actor name - prominent */
.actor-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  min-width: 50px;
}

.human-line .actor-name {
  color: var(--accent-3);
}

.agent-line .actor-name {
  color: var(--accent-red);
}

/* Action text */
.action-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Timestamp */
.receipt-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  min-width: 30px;
  text-align: right;
}

/* Active state */
.commit-line.is-active {
  transform: translateX(4px);
}

.commit-line.human-line.is-active {
  background: rgba(107, 179, 255, 0.12);
  box-shadow: 0 0 20px rgba(107, 179, 255, 0.15);
}

.commit-line.agent-line.is-active {
  background: rgba(255, 100, 100, 0.12);
  box-shadow: 0 0 20px rgba(255, 100, 100, 0.15);
}

.commit-legend {
  display: flex;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.legend-item.human-legend {
  color: var(--accent-3);
}

.legend-item.agent-legend {
  color: var(--accent-red);
}

.commit-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
}

/* Participants card - replaces node grid */
.participants-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.participants-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.participants-grid {
  display: flex;
  gap: 12px;
}

.participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(16, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.participant.human-participant {
  border-color: rgba(107, 179, 255, 0.2);
}

.participant.human-participant:hover {
  border-color: rgba(107, 179, 255, 0.4);
  box-shadow: 0 0 15px rgba(107, 179, 255, 0.1);
}

.participant.agent-participant {
  border-color: rgba(255, 100, 100, 0.2);
}

.participant.agent-participant:hover {
  border-color: rgba(255, 100, 100, 0.4);
  box-shadow: 0 0 15px rgba(255, 100, 100, 0.1);
}

/* Participant hover enhancement - show activity */
.participant {
  cursor: pointer;
  position: relative;
}

.participant::after {
  content: attr(data-activity);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.participant:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.participant.human-participant::after {
  background: rgba(107, 179, 255, 0.2);
  color: var(--accent-3);
  border: 1px solid rgba(107, 179, 255, 0.3);
}

.participant.agent-participant::after {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Participant badge pulse on hover */
.participant:hover .participant-badge {
  transform: scale(1.1);
}

.participant:hover .participant-badge.human {
  box-shadow: 0 0 16px rgba(107, 179, 255, 0.5);
}

.participant:hover .participant-badge.agent {
  box-shadow: 0 0 16px rgba(255, 100, 100, 0.5);
}

.participant-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.participant-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.participant-badge.human {
  background: rgba(107, 179, 255, 0.2);
  color: var(--accent-3);
  border: 1.5px solid rgba(107, 179, 255, 0.4);
}

.participant-badge.agent {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-red);
  border: 1.5px solid rgba(255, 100, 100, 0.4);
}

.participant-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.human-participant .participant-name {
  color: var(--accent-3);
}

.agent-participant .participant-name {
  color: var(--accent-red);
}

.participant-status {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.participant-status.online {
  background: rgba(107, 179, 255, 0.15);
  color: var(--accent-3);
}

.participant-status.active {
  background: rgba(255, 100, 100, 0.15);
  color: var(--accent-red);
}

.participants-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.participants-equation {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ============================================
   GATE SHOWCASE (Real App Screenshot)
   ============================================ */
.gate-showcase {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
}

.gate-showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.gate-showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gate-showcase-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

/* Gate as Hero - Landing View */
.gate-hero {
  min-height: 100vh;
  padding-top: 60px;
  display: flex;
  align-items: flex-start;
  padding-bottom: 40px;
}

.gate-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gate-hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.gate-step-item.complete {
  border-color: rgba(86, 210, 193, 0.4);
  background: rgba(86, 210, 193, 0.08);
}

.gate-step-item.complete .gate-step-name {
  color: var(--accent-2);
}

.gate-step-item.complete .gate-step-num {
  color: var(--accent-2);
}

.gate-showcase-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  margin: 0;
}

.gate-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.gate-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(16, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.gate-step-item.active {
  border-color: rgba(107, 179, 255, 0.4);
  background: rgba(107, 179, 255, 0.08);
}

.gate-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  padding-top: 2px;
}

.gate-step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gate-step-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.gate-step-item.active .gate-step-name {
  color: var(--accent-3);
}

.gate-step-desc {
  font-size: 13px;
  color: var(--muted);
}

/* App Screenshot Frame */
.gate-showcase-visual {
  display: flex;
  justify-content: center;
}

.app-screenshot-frame {
  position: relative;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(147, 112, 219, 0.2),
    0 0 120px rgba(107, 179, 255, 0.1);
  border: 1px solid rgba(147, 112, 219, 0.3);
  animation: screenshot-glow 4s ease-in-out infinite;
}

@keyframes screenshot-glow {

  0%,
  100% {
    box-shadow:
      0 32px 100px rgba(0, 0, 0, 0.6),
      0 0 60px rgba(147, 112, 219, 0.2),
      0 0 120px rgba(107, 179, 255, 0.1);
  }

  50% {
    box-shadow:
      0 32px 100px rgba(0, 0, 0, 0.6),
      0 0 80px rgba(147, 112, 219, 0.3),
      0 0 140px rgba(107, 179, 255, 0.15);
  }
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgba(107, 179, 255, 0.1), rgba(147, 112, 219, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1px;
}

.app-screenshot-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(7, 9, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  backdrop-filter: blur(8px);
}

.app-screenshot-label .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: live-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-2);
}

/* Hidden nav anchors */
.nav-anchor {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .gate-showcase-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .gate-showcase-copy {
    align-items: center;
  }

  .gate-showcase-desc {
    max-width: 500px;
  }

  .gate-showcase,
  .gate-hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .app-screenshot-frame {
    max-width: 320px;
  }

  .gate-steps-list {
    max-width: 400px;
  }

  .gate-hero-cta {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .gate-hero-title {
    font-size: 2rem;
  }

  .app-screenshot-frame {
    max-width: 280px;
  }

  .gate-step-item {
    padding: 12px 16px;
  }
}

/* ============================================
   LADDER SECTIONS (Full-page step sections)
   ============================================ */
.ladder-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.ladder-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.ladder-section-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ladder-section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
}

.ladder-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
}

.ladder-section-lead {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

.ladder-section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

.ladder-section-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 16px;
  background: rgba(246, 196, 108, 0.08);
  border: 1px solid rgba(246, 196, 108, 0.2);
  border-radius: var(--radius-sm);
  max-width: fit-content;
}

.action-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.action-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Visual cards for each ladder step */
.visual-card {
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ============================================
   CRYSTAL GATE CARDS (matching app design)
   ============================================ */
.gate-card {
  background: rgba(20, 25, 35, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Active state - purple glow */
.gate-card.gate-active {
  border-color: rgba(147, 112, 219, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(147, 112, 219, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Territory state - purple gradient glow */
.gate-card.gate-territory {
  border-color: rgba(147, 112, 219, 0.5);
  background: linear-gradient(135deg, rgba(20, 25, 35, 0.75), rgba(60, 40, 100, 0.3));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(147, 112, 219, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Agent state - red/coral accent */
.gate-card.gate-agent {
  border-color: rgba(255, 100, 100, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 100, 100, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gate header */
.gate-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Gate icon badges */
.gate-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gate-icon svg {
  width: 24px;
  height: 24px;
}

.gate-icon.network-icon {
  background: rgba(86, 210, 193, 0.2);
  color: var(--accent-2);
  border: 1px solid rgba(86, 210, 193, 0.3);
}

.gate-icon.you-icon {
  background: rgba(107, 179, 255, 0.2);
  color: var(--accent-3);
  border: 1px solid rgba(107, 179, 255, 0.3);
}

.gate-icon.space-icon {
  background: rgba(147, 112, 219, 0.2);
  color: #9370db;
  border: 1px solid rgba(147, 112, 219, 0.3);
}

.gate-icon.agent-icon {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Gate card: You state (preparing) */
.gate-card.gate-you {
  border-color: rgba(107, 179, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(107, 179, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gate card: Space state (locked/waiting) */
.gate-card.gate-space {
  border-color: rgba(147, 112, 219, 0.3);
}

.gate-card.gate-locked {
  opacity: 0.7;
}

.gate-card.gate-locked .gate-icon {
  opacity: 0.5;
}

/* Gate switch button */
.gate-switch {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(86, 210, 193, 0.1);
  border: 1px solid rgba(86, 210, 193, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-switch:hover {
  background: rgba(86, 210, 193, 0.2);
}

/* Gate lock icon */
.gate-lock {
  color: rgba(255, 255, 255, 0.4);
}

/* Gate status text (preparing) */
.gate-status-text {
  font-size: 13px;
  color: var(--muted);
}

.gate-status-text.preparing {
  color: var(--accent-3);
}

/* Gate loading bar */
.gate-loading {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 12px 0;
}

.gate-loading-bar {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), rgba(107, 179, 255, 0.5));
  border-radius: 2px;
  animation: loading-pulse 2s ease-in-out infinite;
}

@keyframes loading-pulse {

  0%,
  100% {
    width: 30%;
    opacity: 0.7;
  }

  50% {
    width: 70%;
    opacity: 1;
  }
}

/* Waiting status dot */
.status-dot.waiting {
  background: rgba(255, 255, 255, 0.3);
}

/* Gate titles */
.gate-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gate-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.gate-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}

/* Gate checkmark */
.gate-check {
  width: 28px;
  height: 28px;
  color: var(--accent-2);
}

.gate-check svg {
  width: 100%;
  height: 100%;
}

.gate-check.agent-check {
  color: var(--accent-red);
}

/* Gate status row */
.gate-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16, 20, 31, 0.6);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.connected,
.status-dot.ready {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.status-dot.active {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.status-dot.agent-active {
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.status-dot.connecting {
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Gate details toggle */
.gate-details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s ease;
}

.gate-details-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Gate Enter button */
.gate-enter-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #9370db, #7b68ee);
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gate-enter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(147, 112, 219, 0.4);
}

/* Territory list */
.gate-territory-list {
  margin-top: 12px;
  padding: 12px;
  background: rgba(16, 20, 31, 0.4);
  border-radius: var(--radius-sm);
}

.territory-list-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.territory-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(16, 20, 31, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--text);
}

.territory-list-item.selected {
  border-color: rgba(147, 112, 219, 0.4);
  background: rgba(147, 112, 219, 0.1);
}

.territory-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.territory-list-item.selected .territory-radio {
  border-color: #9370db;
}

.territory-list-item.selected .territory-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9370db;
}

.visual-caption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Community visual - connection states */
.connection-states {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(16, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.connection-state.active {
  opacity: 1;
  border-color: rgba(86, 210, 193, 0.5);
  background: rgba(86, 210, 193, 0.08);
}

.state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.connection-state.connecting .state-dot {
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.connection-state.connected .state-dot {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.connection-state.error .state-dot {
  background: var(--accent-red);
}

.state-label {
  font-size: 14px;
  font-weight: 500;
}

/* Territory visual - picker */
.territory-picker {
  display: flex;
  gap: 12px;
}

.territory-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  background: rgba(16, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: pointer;
}

.territory-option.selected {
  opacity: 1;
  border-color: var(--accent-3);
  background: rgba(107, 179, 255, 0.1);
}

.territory-icon {
  font-size: 24px;
}

.territory-name {
  font-size: 13px;
  font-weight: 500;
}

/* Identity visual */
.identity-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(16, 20, 31, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(107, 179, 255, 0.3);
}

.identity-card-inner.assistant-card {
  border-color: rgba(255, 100, 100, 0.3);
}

.identity-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.identity-avatar svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.identity-avatar.human {
  background: rgba(107, 179, 255, 0.2);
  color: var(--accent-3);
  border: 1.5px solid rgba(107, 179, 255, 0.4);
}

.identity-avatar.agent {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-red);
  border: 1.5px solid rgba(255, 100, 100, 0.4);
}

.identity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.identity-name {
  font-size: 18px;
  font-weight: 600;
}

.identity-role {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.identity-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.identity-status.online {
  background: rgba(107, 179, 255, 0.15);
  color: var(--accent-3);
}

.identity-status.active {
  background: rgba(255, 100, 100, 0.15);
  color: var(--accent-red);
}

/* Permission visual */
.permission-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(16, 20, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.permission-item.granted {
  border-color: rgba(86, 210, 193, 0.3);
}

.permission-item.denied {
  border-color: rgba(255, 100, 100, 0.3);
  opacity: 0.6;
}

.permission-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.permission-item.granted .permission-icon {
  background: rgba(86, 210, 193, 0.2);
  color: var(--accent-2);
}

.permission-item.denied .permission-icon {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-red);
}

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

/* Mini receipt stream visual */
.mini-receipt-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-receipt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 20, 31, 0.6);
  border-left: 3px solid transparent;
}

.mini-receipt.human-receipt {
  border-left-color: var(--accent-3);
  background: rgba(107, 179, 255, 0.05);
}

.mini-receipt.agent-receipt {
  border-left-color: var(--accent-red);
  background: rgba(255, 100, 100, 0.05);
}

.mini-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.mini-badge.human {
  background: rgba(107, 179, 255, 0.2);
  color: var(--accent-3);
}

.mini-badge.agent {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-red);
}

.mini-action {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
}

.mini-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
}

/* Responsive ladder sections */
@media (max-width: 1100px) {
  .ladder-section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ladder-section {
    min-height: auto;
    padding: 60px 0;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.pillar-grid,
.flow-grid,
.actor-grid,
.roadmap-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 48px;
}

.pillar,
.flow-card,
.actor-card,
.roadmap-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.pillar h3,
.flow-card h3,
.actor-card h3,
.roadmap-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* Actor card icons */
.actor-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.actor-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.actor-icon.human {
  background: rgba(107, 179, 255, 0.15);
  color: var(--accent-3);
  border: 1px solid rgba(107, 179, 255, 0.3);
  box-shadow: 0 0 20px rgba(107, 179, 255, 0.15);
}

.actor-icon.agent {
  background: rgba(255, 100, 100, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 100, 100, 0.3);
  box-shadow: 0 0 20px rgba(255, 100, 100, 0.15);
}

.actor-icon.permission {
  background: rgba(246, 196, 108, 0.15);
  color: var(--accent);
  border: 1px solid rgba(246, 196, 108, 0.3);
  box-shadow: 0 0 20px rgba(246, 196, 108, 0.15);
}

/* Actor card accent borders */
.actor-card.actor-human {
  border-color: rgba(107, 179, 255, 0.2);
}

.actor-card.actor-agent {
  border-color: rgba(255, 100, 100, 0.2);
}

.pillar p,
.flow-card p,
.actor-card p,
.roadmap-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   EARLY CTA (between ladder and studio)
   ============================================ */
.early-cta {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.early-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 64px;
  background: linear-gradient(135deg, rgba(107, 179, 255, 0.08), rgba(246, 196, 108, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
}

.early-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0;
}

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

@media (max-width: 640px) {
  .early-cta-inner {
    padding: 32px 24px;
  }
}

.studio {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.studio-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.studio-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid rgba(86, 210, 193, 0.45);
  padding-left: 12px;
}

.studio-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
}

.studio-value {
  font-size: 15px;
}

.studio-frame {
  background: rgba(12, 16, 23, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.studio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(16, 20, 31, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.studio-bar .title {
  margin-left: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.studio-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
}

.pane {
  background: rgba(16, 20, 31, 0.8);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pane-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.repo-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.repo-item.indent {
  padding-left: 16px;
}

.repo-icon {
  color: var(--accent-2);
  font-size: 10px;
  width: 12px;
  opacity: 0.7;
}

.message {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 10px;
  max-width: 85%;
  line-height: 1.3;
}

.message-in {
  background: rgba(86, 210, 193, 0.15);
  color: rgba(245, 243, 238, 0.85);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-out {
  background: rgba(107, 179, 255, 0.15);
  color: rgba(245, 243, 238, 0.85);
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message.typing {
  display: flex;
  gap: 3px;
  padding: 8px 12px;
}

.message.typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(107, 179, 255, 0.5);
  animation: typing-dot 1.4s ease-in-out infinite;
}

.message.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.message.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.pane-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
}

.flow-card .step {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.engine {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.engine-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 1px;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pipe {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(107, 179, 255, 0.15);
  border: 1px solid rgba(107, 179, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
}

.engine-note {
  margin-top: 16px;
  color: var(--muted);
}

.roadmap-card ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  padding-left: 16px;
}

.join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.join-card {
  background: linear-gradient(120deg, rgba(246, 196, 108, 0.2), rgba(107, 179, 255, 0.2));
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow);
}

.join-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* App Download Card */
.app-download-card {
  background: rgba(16, 20, 31, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 400px;
  width: 100%;
}

.app-download-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(86, 210, 193, 0.2), rgba(107, 179, 255, 0.2));
  border: 1px solid rgba(86, 210, 193, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
}

.app-icon svg {
  width: 28px;
  height: 28px;
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.app-tagline {
  font-size: 13px;
  color: var(--muted);
}

.app-platforms {
  display: flex;
  gap: 12px;
}

.platform-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.platform-btn.ios-btn {
  background: linear-gradient(135deg, #007AFF, #5856D6);
  color: white;
  border: none;
}

.platform-btn.ios-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.platform-btn.android-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-btn.android-btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.app-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
}

.footer-note {
  font-size: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes orb-breathe {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

@keyframes connector-pulse {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes live-dot {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes typing-dot {

  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding-top: 20px;
    max-width: 600px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-visual {
    position: static;
  }

  .headline-line {
    white-space: normal;
  }

  .studio {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .engine {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    border-radius: var(--radius-md);
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    flex-direction: column;
    gap: 12px;
  }

  main {
    padding-top: 220px;
    padding-left: 24px;
    padding-right: 24px;
    gap: 140px;
  }

  .studio-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    margin: 16px;
  }

  main {
    padding: 80px 20px 120px;
    gap: 120px;
  }

  .hero-meta {
    gap: 16px;
  }
}

/* ============================================
   STICKY LADDER NAV (Desktop)
   ============================================ */
.ladder-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ladder-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ladder-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(7, 9, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.ladder-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  position: relative;
}

.ladder-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.3s ease;
}

.ladder-step:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ladder-step.is-active {
  background: rgba(246, 196, 108, 0.08);
}

.ladder-step.is-active::before {
  height: 24px;
}

.ladder-step.is-active .ladder-num {
  color: var(--accent);
}

.ladder-step.is-active .ladder-title {
  color: var(--text);
}

.ladder-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.ladder-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

/* ============================================
   MOBILE LADDER STEPPER
   ============================================ */
.ladder-mobile {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ladder-mobile::-webkit-scrollbar {
  display: none;
}

.ladder-mobile.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ladder-mobile {
  display: none;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(7, 9, 13, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.ladder-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ladder-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.ladder-chip.is-active {
  color: #1b140a;
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   RECEIPT STREAM ENHANCEMENTS (Actor badges)
   ============================================ */
.commit-line {
  position: relative;
}

.actor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.actor-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.actor-badge.human {
  background: rgba(107, 179, 255, 0.2);
  color: var(--accent-3);
  border: 1.5px solid rgba(107, 179, 255, 0.5);
  box-shadow: 0 0 10px rgba(107, 179, 255, 0.25);
}

.actor-badge.agent {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-red);
  border: 1.5px solid rgba(255, 100, 100, 0.5);
  box-shadow: 0 0 10px rgba(255, 100, 100, 0.25);
}

/* Pulse effect when line is active */
.commit-line.is-active .actor-badge.human {
  box-shadow: 0 0 16px rgba(107, 179, 255, 0.6);
  transform: scale(1.15);
}

.commit-line.is-active .actor-badge.agent {
  box-shadow: 0 0 16px rgba(255, 100, 100, 0.6);
  transform: scale(1.15);
}

/* Receipt heartbeat pulse */
@keyframes receipt-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(246, 196, 108, 0);
  }

  50% {
    box-shadow: 0 0 12px 2px rgba(246, 196, 108, 0.15);
  }
}

.commit-card {
  animation: receipt-pulse 4s ease-in-out infinite;
}

/* ============================================
   LADDER STEP MICRO-VISUALS
   ============================================ */
.flow-card {
  position: relative;
  overflow: hidden;
}

.flow-card::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  opacity: 0.15;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Community - connection dots */
.flow-card:nth-child(1)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='12' cy='24' r='6' fill='%2356d2c1'/%3E%3Ccircle cx='36' cy='24' r='6' fill='%2356d2c1'/%3E%3Cline x1='18' y1='24' x2='30' y2='24' stroke='%2356d2c1' stroke-width='2'/%3E%3C/svg%3E");
}

/* Territory - grid */
.flow-card:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='4' y='4' width='16' height='16' rx='3' fill='none' stroke='%236bb3ff' stroke-width='2'/%3E%3Crect x='28' y='4' width='16' height='16' rx='3' fill='none' stroke='%236bb3ff' stroke-width='2'/%3E%3Crect x='4' y='28' width='16' height='16' rx='3' fill='none' stroke='%236bb3ff' stroke-width='2'/%3E%3Crect x='28' y='28' width='16' height='16' rx='3' fill='%236bb3ff' opacity='0.3'/%3E%3C/svg%3E");
}

/* Presence - user badge */
.flow-card:nth-child(3)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='16' r='10' fill='none' stroke='%236bb3ff' stroke-width='2'/%3E%3Cpath d='M8 42c0-8.8 7.2-16 16-16s16 7.2 16 16' fill='none' stroke='%236bb3ff' stroke-width='2'/%3E%3C/svg%3E");
}

/* Assistant - bot badge */
.flow-card:nth-child(4)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='12' width='32' height='28' rx='6' fill='none' stroke='%23ff8080' stroke-width='2'/%3E%3Ccircle cx='18' cy='26' r='4' fill='%23ff8080'/%3E%3Ccircle cx='30' cy='26' r='4' fill='%23ff8080'/%3E%3Crect x='20' y='4' width='8' height='8' rx='2' fill='%23ff8080'/%3E%3C/svg%3E");
}

/* Permission - lock */
.flow-card:nth-child(5)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='10' y='20' width='28' height='22' rx='4' fill='none' stroke='%23f6c46c' stroke-width='2'/%3E%3Cpath d='M16 20V14c0-4.4 3.6-8 8-8s8 3.6 8 8v6' fill='none' stroke='%23f6c46c' stroke-width='2'/%3E%3Ccircle cx='24' cy='31' r='3' fill='%23f6c46c'/%3E%3C/svg%3E");
}

/* Receipt - checkmark/receipt */
.flow-card:nth-child(6)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 6h32v36l-6-4-5 4-5-4-5 4-5-4-6 4V6z' fill='none' stroke='%23f6c46c' stroke-width='2'/%3E%3Cpath d='M16 18l6 6 10-10' fill='none' stroke='%23f6c46c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Hide ladder nav on smaller screens, show mobile stepper */
@media (max-width: 1100px) {
  .ladder-nav {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .ladder-mobile {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}