/* =============================================
   AGENTIC STUDIO — Marketing Site
   Linear-style · Pure black · Fraunces + Geist
   ============================================= */

::selection {
  background: rgba(132, 153, 239, 0.35);
  color: #fff;
}

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

:root {
  --bg:              #000000;
  --bg-1:            #0a0a0a;
  --bg-2:            #111111;
  --bg-3:            #181818;

  --border:          rgba(255, 255, 255, 0.08);
  --border-strong:   rgba(255, 255, 255, 0.14);

  --text:            #f5f5f5;
  --text-2:          #8A8F98;
  --text-3:          #8A8F98;

  /* App palette (kept for internal app mockup use) */
  --running:         #8499ef;
  --active:          #99b1ff;
  --indigo:          #7581ff;
  --pink:            #ff94d6;
  --red:             #fd8282;
  --yellow:          #fffa84;
  --teal:            #63c9e1;

  /* Site accent — white/neutral, no blue */
  --accent:          #ffffff;
  --accent-dim:      rgba(255,255,255,0.55);

  --font-display:    'Fraunces', Georgia, serif;
  --font-body:       'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;

  --max-w:           1180px;
  --section-py:      120px;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #222 #000;
  scrollbar-width: thin;
}

::selection {
  background: #626ddc;
  color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

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

body.agent-mode {
  overflow: hidden;
}

/* =============================================
   NAV
   ============================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255,255,255,0.07);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: #fff;
}

.nav-icon {
  width: 26px;
  height: 26px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-icon--mark {
  display: block;
}

.logo-text {
  display: flex;
  align-items: baseline;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1;
  user-select: none;
}

.logo-text-main {
  font-size: 22px;
}

.logo-text-studio {
  margin-left: 0.33em;
  display: inline-flex;
  align-items: baseline;
}

.logo-text-studio-initial {
  font-size: 26px;
  font-weight: 400;
}

.logo-text-studio-rest {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #8A8F98;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  letter-spacing: -0.005em;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: #e0e0e0;
}

.cta-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0,0,0,0.1);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  padding: 220px 32px 0;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  width: 100%;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center top,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  width: 100%;
  animation: fade-up 0.9s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-tag 2.5s infinite;
}

@keyframes pulse-tag {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}

.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.5vw, 60px);
  white-space: normal;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 24px;
  animation: fade-up 0.9s 0.1s ease both;
  text-align: center;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: #8A8F98;
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
  animation: fade-up 0.9s 0.18s ease both;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-3);
  max-width: 480px;
  margin: -20px auto 28px;
  text-align: center;
  animation: fade-up 0.9s 0.24s ease both;
}

.hero-social-proof {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-up 0.9s 0.26s ease both;
  margin-bottom: 80px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 7px;
  letter-spacing: -0.005em;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.btn-primary--lg {
  font-size: 14px;
  padding: 10px 20px;
}

.btn-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0,0,0,0.1);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* =============================================
   APP WINDOW MOCKUP
   ============================================= */

.app-window-wrap {
  position: relative;
  width: 100%;
  transform-origin: top center;
  will-change: transform, opacity;
}

/* Bottom fade — Linear style: window melts into the black bg */
.app-window-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 132px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,0.24) 54%,
    #000 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 12px 12px;
}

/* Ambient glow behind the window */
.app-window-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 160px;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.app-window {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-color: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 2px 4px rgba(0,0,0,0.4),
    0 12px 40px rgba(0,0,0,0.6),
    0 40px 100px rgba(0,0,0,0.5),
    0 80px 160px rgba(0,0,0,0.3);
}

/* macOS chrome */
.app-chrome {
  height: 28px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.chrome-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  flex: 1;
  text-align: center;
}

/* App body layout */
.app-body {
  display: flex;
  min-height: 560px;
}

/* ─── Sidebar ─── */

.app-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #131313;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
}

.sb-org {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.sb-org-avatar {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}

.sb-org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-site-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.sb-site-logo-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.sb-site-logo-text {
  display: flex;
  align-items: baseline;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #e0e0e0;
  line-height: 1;
  user-select: none;
}

.sb-site-logo-main {
  font-size: 12px;
}

.sb-site-logo-studio {
  margin-left: 0.33em;
  display: inline-flex;
  align-items: baseline;
}

.sb-site-logo-s {
  font-size: 14px;
  font-weight: 400;
}

.sb-site-logo-rest {
  font-size: 12px;
}

.sb-org-name {
  font-size: 12px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.sb-chevron {
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.sb-search-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
}

.sb-search-btn:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}

.sb-nav {
  padding: 8px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  position: relative;
}

.sb-item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
}

.sb-item--active {
  background: rgba(255,255,255,0.08);
  color: #e8e8e8;
}

.sb-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(253,130,130,0.2);
  color: #fd8282;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 600;
}

.sb-section {
  padding: 8px 6px 4px;
}

.sb-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  line-height: 1;
}

.sb-section-label svg {
  display: block;
  flex-shrink: 0;
}

.sb-agent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.sb-agent-item:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
}

.sb-agent-item--active {
  background: rgba(132,153,239,0.1);
  color: rgba(132,153,239,0.9);
}

.sb-agent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.sb-agent-live {
  margin-left: auto;
  font-size: 9px;
  font-family: var(--font-mono);
  color: #8499ef;
  opacity: 0.75;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 0.35; }
}

.sb-footer {
  margin-top: auto;
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: flex-end;
}

.sb-help {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.1s, color 0.1s;
}

.sb-help:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
}

/* ─── Main area ─── */

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

.app-topbar {
  height: 44px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  flex-shrink: 0;
}

.app-page-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

.app-updated {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.2);
}

.app-scroll {
  flex: 1;
  overflow: hidden;
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Dashboard sections ─── */

.dash-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: -8px;
}

/* Active agents org cluster */
.dash-agents {
  display: block;
}

.dash-org {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.agent-seat {
  width: 100%;
  max-width: 212px;
  background: #171717;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 11px;
  min-height: 94px;
}

.agent-seat--ceo {
  max-width: 260px;
  position: relative;
}

.agent-seat--ceo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -19px;
  width: 1px;
  height: 19px;
  background: rgba(255,255,255,0.1);
  transform: translateX(-0.5px);
}

.dash-org-branch {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-top: 16px;
}

.dash-org-branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(10% - 5px);
  right: calc(10% - 5px);
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.dash-org-branch .agent-seat {
  position: relative;
}

.dash-org-branch .agent-seat::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.1);
  transform: translateX(-0.5px);
}

.agent-seat-head {
  display: block;
  margin-bottom: 4px;
}

.agent-seat-identity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-seat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-seat-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-seat-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  margin-top: 2px;
}

.agent-seat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255,255,255,0.32);
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  white-space: nowrap;
}

.agent-seat-runtime {
  font-weight: 500;
  flex-shrink: 0;
}

.agent-seat-session {
  color: rgba(255,255,255,0.28);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-seat-issue {
  font-size: 9.5px;
  color: rgba(132,153,239,0.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}

.agent-seat-progress {
  font-size: 9px;
  color: rgba(255,255,255,0.38);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stat cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-card {
  background: #171717;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 11px 13px;
}

.stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.stat-currency {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0;
}

.stat-value--money {
  min-width: 86px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-icon {
  color: rgba(255,255,255,0.2);
  margin-top: 2px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3px;
}

.stat-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.2);
}

/* Chart cards */
.dash-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.chart-card {
  background: #171717;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  display: flex;
  flex-direction: column;
}

.chart-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1px;
}

.chart-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 8px;
}

.chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 50px;
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.bar-inner {
  width: 100%;
  border-radius: 2px 2px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 1px;
}

.bar-seg {
  border-radius: 0;
  min-height: 2px;
}

.chart-dates {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.18);
  margin-top: 6px;
}

.chart-health {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.health-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.health-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.health-meta span:first-child {
  color: rgba(255,255,255,0.52);
}

.health-meta span:last-child {
  color: rgba(255,255,255,0.82);
  font-variant-numeric: tabular-nums;
}

.health-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.health-fill {
  height: 100%;
  border-radius: 999px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.35);
}

.chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  display: inline-block;
  font-style: normal;
}

/* =============================================
   RUNTIMES STRIP
   ============================================= */

.runtimes {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #000;
  overflow: hidden;
}

.runtimes-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}

.runtimes-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.runtimes-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-logos 24s linear infinite;
}

.runtimes-inner:hover {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.runtime-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.runtime-badge:hover {
  border-color: var(--border-strong);
}

.runtime-badge--logo-only {
  padding-inline: 14px;
}

.runtime-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0.8);
}

.runtime-logo--wide {
  width: auto;
  max-width: 88px;
  height: 18px;
  display: block;
  object-position: left center;
}

.runtime-badge span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

/* =============================================
   VALUE PROPS
   ============================================= */

/* ─── Statement section (replaces value-props) ──────────────────────────── */

.statement-section {
  padding: 140px 0 120px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #000;
}

.statement-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.statement-heading {
  font-family: var(--font-body);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 20px;
  text-align: center;
}

.statement-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-3);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 80px;
}

.sh-white { color: #fff; }
.sh-dim   { color: #8A8F98; }

.statement-figs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

/* Reorder: org chart first, CEO runs second, sidebar third */
.statement-fig:nth-child(1) { order: 3; }
.statement-fig:nth-child(2) { order: 2; }
.statement-fig:nth-child(3) { order: 1; }

.statement-fig {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fig-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.fig-art-stack {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin-bottom: 32px;
  padding-bottom: 18px; /* room for stacked cards below */
}
.fig-art-stack::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  height: calc(100% - 18px);
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  z-index: 0;
}
.fig-art-stack::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  height: calc(100% - 18px);
  background: #161616;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  z-index: -1;
}
.fig-art {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 8px 24px rgba(0,0,0,0.4);
}

.fig-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.fig-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #8A8F98;
}

/* ── Mini sidebar mockup (Card 1) ── */
.fig-sb {
  width: 100%;
  height: 100%;
  background: #131313;
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.fig-sb-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.fig-sb-tl {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fig-sb-tl-r { background: #ff5f57; }
.fig-sb-tl-y { background: #febc2e; }
.fig-sb-tl-g { background: #28c840; }
.fig-sb-hd-ic-img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.fig-sb-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  flex-shrink: 0;
}
.fig-sb-nav {
  padding: 6px 6px 2px;
  flex-shrink: 0;
}
.fig-sb-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  cursor: default;
}
.fig-sb-nav-active {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}
.fig-sb-badge {
  margin-left: auto;
  background: #c43333;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.fig-sb-org-nm {
  font-size: 11.5px;
  font-weight: 600;
  color: #e0e0e0;
  flex: 1;
  font-family: var(--font-body);
}
.fig-sb-ic {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.fig-sb-dd {
  display: block;
  position: absolute;
  top: 42px; /* header height only (no chrome) */
  left: 8px;
  right: 8px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 7px;
  padding: 4px;
  z-index: 10;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}
.fig-sb-dd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.1s;
}
.fig-sb-dd-row:not(.muted):hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}
.fig-sb-dd-row.sel {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
}
.fig-sb-dd-row .fig-check { display: none; }
.fig-sb-dd-row.sel .fig-check { display: block; }
.fig-sb-dd-row.muted {
  color: rgba(255,255,255,0.3);
  font-size: 10.5px;
}
.fig-sb-dd-sep {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 3px 0;
}
.fig-sb-lbl {
  display: flex;
  align-items: center;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.22);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 10px 3px;
  flex-shrink: 0;
}
.fig-sb-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  font-family: var(--font-body);
  transition: background 0.1s;
  cursor: default;
}
.fig-sb-agent:hover { background: rgba(255,255,255,0.04); }

/* ── Agent activity panel (Card 1 replacement) ── */
.fig-ap {
  width: 100%;
  height: 100%;
  background: #131313;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.fig-ap-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.fig-ap-live {
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  display: block;
}
.fig-ap-hd-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.fig-ap-hd-total {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
}
.fig-ap-rows {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 5px 0;
}
.fig-ap-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  font-size: 10px;
}
.fig-ap-name {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  width: 88px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fig-ap-rt {
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.85;
  letter-spacing: 0.01em;
}
.fig-ap-task {
  color: rgba(255,255,255,0.35);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fig-ap-tok {
  color: #8499ef;
  font-size: 9.5px;
  font-weight: 600;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.fig-ap-tok--dim {
  color: rgba(255,255,255,0.2);
}

/* ── Runs feed mockup (Card 2) ── */
.fig-runs {
  width: 100%;
  height: 100%;
  background: #131313;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.fig-runs-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.fig-runs-title {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-body);
  flex: 1;
}
.fig-runs-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: #8499ef;
  font-family: var(--font-body);
}
.fig-runs-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8499ef;
  animation: fig-pulse 1.8s ease-in-out infinite;
}
@keyframes fig-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.fig-run-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 12px 7px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.fig-run-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fig-run-spin {
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(132,153,239,0.25);
  border-top-color: #8499ef;
  border-radius: 50%;
  animation: fig-spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes fig-spin { to { transform: rotate(360deg); } }
.fig-run-check {
  color: #7581ff;
  flex-shrink: 0;
}
.fig-run-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.02em;
}
.fig-run-src {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 0 5px;
  height: 16px;
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
  background: rgba(255,255,255,0.04);
}
.fig-run-time {
  margin-left: auto;
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  font-family: var(--font-body);
  flex-shrink: 0;
}
.fig-run-summary {
  font-size: 10.5px;
  color: rgba(255,255,255,0.38);
  font-family: var(--font-body);
  padding-left: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fig-projects {
  width: 100%;
  height: 100%;
  background: #131313;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.fig-projects-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 13px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.fig-projects-title {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
}

.fig-projects-count {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 600;
  color: #8499ef;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.fig-project-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.fig-project-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fig-project-name {
  min-width: 0;
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fig-project-status {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid transparent;
}

.fig-project-status.is-active {
  color: #8499ef;
  background: rgba(132,153,239,0.12);
  border-color: rgba(132,153,239,0.26);
}

.fig-project-status.is-review {
  color: #fffa84;
  background: rgba(255,250,132,0.1);
  border-color: rgba(255,250,132,0.22);
}

.fig-project-status.is-planned {
  color: rgba(255,255,255,0.64);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.fig-project-status.is-blocked {
  color: #fd8282;
  background: rgba(253,130,130,0.1);
  border-color: rgba(253,130,130,0.22);
}

.fig-project-status.is-done {
  color: #8de3a2;
  background: rgba(141,227,162,0.1);
  border-color: rgba(141,227,162,0.22);
}

.fig-project-meta {
  display: grid;
  gap: 3px;
  font-size: 9.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}

.fig-project-meta strong {
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

/* ── Org chart mockup (Card 3) ── */
.fig-oc {
  width: 100%;
  height: 100%;
  background: #131313;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.fig-oc-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.fig-oc-hd-title {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}
.fig-oc-svg {
  flex: 1;
  width: 100%;
  font-family: var(--font-body), system-ui, sans-serif;
}

/* ── Mini org sidebar panels (Card 1) ── */
.fig-org-mini {
  width: 96px;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.fig-org-mini:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
.fig-org-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fig-org-ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.fig-org-nm {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fig-ag-sec { padding: 5px 8px 10px; }
.fig-ag-lbl {
  display: block;
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.22);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 4px 6px;
}
.fig-ag-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 4px;
  border-radius: 5px;
  transition: background 0.12s;
  cursor: default;
}
.fig-ag-row:hover { background: rgba(255,255,255,0.05); }
.fig-ag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fig-ag-dot.on  { background: #8499ef; }
.fig-ag-dot.off { background: #3f3f46; }
.fig-ag-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.fig-ag-name.dim { color: rgba(255,255,255,0.35); }
.fig-ag-live {
  font-size: 9px;
  font-weight: 500;
  color: #8499ef;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* =============================================
   FEATURES
   ============================================= */

.features {
  padding: var(--section-py) 24px;
  background: #000;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 56px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.cap-item {
  background: #060606;
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.15s;
}

.cap-item:hover {
  background: #0c0c0c;
}

.cap-ic {
  width: 14px;
  height: 14px;
  color: #7a8fff;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.cap-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  line-height: 1.2;
}

.cap-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}

/* Last 2 items in 4-col grid (items 13+14) span 2 cols each to fill the row */
.cap-grid > .cap-item:nth-child(13),
.cap-grid > .cap-item:nth-child(14) {
  grid-column: span 2;
}

/* =============================================
   MANIFESTO
   ============================================= */

.manifesto {
  padding: 120px 24px 140px;
  background: #000;
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.manifesto-build {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.1;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.025em;
}

.manifesto-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.manifesto-cta {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.manifesto-bright {
  color: var(--text);
}

.manifesto-land {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.1;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.025em;
}

/* =============================================
   PROOF GRID
   ============================================= */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.proof-block {
  background: #0d0d0f;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proof-icon {
  color: #8499ef;
  width: 20px;
  height: 20px;
}

.proof-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.proof-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =============================================
   DOWNLOAD CTA
   ============================================= */

.cta-section {
  padding: var(--section-py) 24px;
  background: #000;
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #080808;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,0.04) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 96px 48px;
}

.cta-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

.cta-heading {
  font-family: var(--font-body);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 32px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 300;
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cta-silicon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #8A8F98;
  letter-spacing: 0.02em;
}

.cta-req {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: #000;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .nav-icon {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--text-2);
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: #8A8F98;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy-line {
  margin: 0;
}

.footer-copy .footer-link {
  font-size: 12px;
  color: #8A8F98;
}

.footer-linkedin {
  justify-self: end;
}

.agent-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1001;
  height: 40px;
  width: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.agent-toggle.is-hovered {
  width: auto;
  gap: 0.5rem;
  padding: 0 1rem;
}

.agent-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.agent-toggle-icon svg {
  display: block;
}

.agent-toggle-label {
  max-width: 0;
  opacity: 0;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.agent-toggle.is-hovered .agent-toggle-label {
  max-width: 120px;
  opacity: 1;
}

.agent-mode .agent-toggle {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #e0e0e0;
  box-shadow: none;
}

.agent-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  overflow: auto;
}

.agent-overlay-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 64px;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.agent-overlay-main-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.agent-overlay-filename {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.agent-overlay-filename-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8499ef;
}

.agent-copy-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.agent-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.agent-copy-btn:hover,
.agent-copy-btn.is-open {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}

.agent-copy-chevron {
  opacity: 0.5;
  transition: transform 0.15s;
}

.agent-copy-btn.is-open .agent-copy-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.agent-copy-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 4px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.agent-copy-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 5px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-family: var(--font-mono);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}

.agent-copy-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.agent-overlay-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding: 0 2rem 4rem;
}

.agent-overlay-sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 74px);
}

.agent-overlay-sidebar-path {
  padding-right: 20px;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.agent-overlay-sidebar-path button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.agent-overlay-sidebar-path button:hover {
  color: var(--text);
}

.agent-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 20px;
  flex: 1;
}

.agent-overlay-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.agent-overlay-nav-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.5;
  padding: 0 0 6px 0;
  font-family: var(--font-mono);
}

.agent-overlay-nav-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 3px 0 3px 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  line-height: 1.4;
  transition: color 0.15s ease;
  display: block;
  width: 100%;
}

.agent-overlay-nav-link:hover {
  color: var(--text);
}

.agent-overlay-nav-externals {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  padding-right: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.agent-overlay-nav-external {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 0;
  text-align: left;
  cursor: pointer;
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  line-height: 1.4;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-overlay-nav-external:hover {
  color: var(--text);
}

.agent-overlay-content {
  min-width: 0;
}

.agent-overlay-content > .agent-overlay-filename {
  margin-bottom: 12px;
}

.agent-doc {
  max-width: 760px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.8;
}

.agent-doc a {
  color: #8499ef;
  text-decoration: none;
}

.agent-doc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agent-doc-intro {
  margin-bottom: 34px;
}

.agent-doc h1,
.agent-doc h2,
.agent-doc h3 {
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.3;
}

.agent-doc h1 {
  font-size: 1.175rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.agent-doc h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.agent-doc-intro h2 {
  font-size: 1.05rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 12px;
}

.agent-doc h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.agent-doc-download {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.875rem;
  color: #8499ef;
  text-decoration: none;
}
.agent-doc-download:hover {
  text-decoration: underline;
}

.agent-doc p {
  margin: 0 0 14px;
  white-space: pre-line;
}

.agent-doc-copyright {
  margin-top: 28px;
}

.agent-doc-section {
  margin-bottom: 34px;
  scroll-margin-top: 96px;
}

.agent-doc-subsection {
  margin-top: 22px;
}

.agent-doc ul {
  margin: 0 0 14px 18px;
  padding: 0;
}

.agent-doc li {
  margin-bottom: 8px;
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-children > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-children.visible > * { opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(1)  { transition-delay: 0s; }
.reveal-children.visible > *:nth-child(2)  { transition-delay: 0.04s; }
.reveal-children.visible > *:nth-child(3)  { transition-delay: 0.08s; }
.reveal-children.visible > *:nth-child(4)  { transition-delay: 0.12s; }
.reveal-children.visible > *:nth-child(5)  { transition-delay: 0.16s; }
.reveal-children.visible > *:nth-child(6)  { transition-delay: 0.20s; }
.reveal-children.visible > *:nth-child(7)  { transition-delay: 0.24s; }
.reveal-children.visible > *:nth-child(8)  { transition-delay: 0.28s; }
.reveal-children.visible > *:nth-child(9)  { transition-delay: 0.32s; }
.reveal-children.visible > *:nth-child(10) { transition-delay: 0.36s; }
.reveal-children.visible > *:nth-child(11) { transition-delay: 0.40s; }
.reveal-children.visible > *:nth-child(12) { transition-delay: 0.44s; }
.reveal-children.visible > *:nth-child(13) { transition-delay: 0.48s; }
.reveal-children.visible > *:nth-child(14) { transition-delay: 0.52s; }
.reveal-children.visible > *:nth-child(15) { transition-delay: 0.56s; }
.reveal-children.visible > *:nth-child(16) { transition-delay: 0.60s; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .app-body { min-height: 520px; }
  .app-sidebar { width: 170px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --section-py: 80px; }

  .app-sidebar { display: none; }

  .dash-org-branch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vp-num {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .nav-link { display: none; }

  .hero { padding-top: 100px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-ghost {
    justify-content: center;
  }

  .dash-stats  { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: repeat(2, 1fr); }
  .dash-org {
    align-items: stretch;
  }
  .agent-seat,
  .agent-seat--ceo {
    max-width: none;
  }
  .dash-org-branch {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }
  .dash-org-branch::before,
  .dash-org-branch .agent-seat::before,
  .agent-seat--ceo::after {
    display: none;
  }

  .cap-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-content { padding: 60px 24px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .agent-toggle {
    right: 1rem;
    bottom: 1rem;
  }

  .agent-overlay-topbar,
  .agent-overlay-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .agent-overlay-topbar,
  .agent-overlay-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .agent-overlay-sidebar {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .agent-overlay-sidebar-path,
  .agent-overlay-nav {
    padding-right: 0;
  }

  .footer-brand {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-links { justify-content: center; }
}

/* ─── Bar chart grow animation ──────────────────────────────────────────────── */

@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.app-window-wrap.animated .bar-inner {
  transform-origin: bottom center;
  animation: barGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-window-wrap.animated .bar-col:nth-child(1)  .bar-inner { animation-delay: 0.05s; }
.app-window-wrap.animated .bar-col:nth-child(2)  .bar-inner { animation-delay: 0.10s; }
.app-window-wrap.animated .bar-col:nth-child(3)  .bar-inner { animation-delay: 0.15s; }
.app-window-wrap.animated .bar-col:nth-child(4)  .bar-inner { animation-delay: 0.20s; }
.app-window-wrap.animated .bar-col:nth-child(5)  .bar-inner { animation-delay: 0.25s; }
.app-window-wrap.animated .bar-col:nth-child(6)  .bar-inner { animation-delay: 0.30s; }
.app-window-wrap.animated .bar-col:nth-child(7)  .bar-inner { animation-delay: 0.35s; }
.app-window-wrap.animated .bar-col:nth-child(8)  .bar-inner { animation-delay: 0.40s; }
.app-window-wrap.animated .bar-col:nth-child(9)  .bar-inner { animation-delay: 0.45s; }
.app-window-wrap.animated .bar-col:nth-child(10) .bar-inner { animation-delay: 0.50s; }
.app-window-wrap.animated .bar-col:nth-child(11) .bar-inner { animation-delay: 0.55s; }
.app-window-wrap.animated .bar-col:nth-child(12) .bar-inner { animation-delay: 0.60s; }

/* ─── Typewriter cursor ──────────────────────────────────────────────────────── */

/* =============================================
   VISIBILITY
   ============================================= */

.visibility-section {
  padding: 112px 24px 104px;
  background: #000;
  border-top: 1px solid var(--border);
}

.visibility-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.visibility-copy {
  max-width: 680px;
  margin-bottom: 44px;
}

.visibility-heading {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.visibility-sub {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-3);
}

.visibility-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.visibility-pane,
.visibility-card {
  background: linear-gradient(180deg, rgba(16,16,16,0.98) 0%, rgba(10,10,10,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.visibility-pane {
  padding: 0;
  overflow: hidden;
}

.visibility-pane-hd,
.visibility-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.visibility-pane-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}

.visibility-pane-title svg,
.visibility-card-hd svg {
  color: rgba(255,255,255,0.52);
  flex-shrink: 0;
}

.visibility-pane-badge,
.visibility-card-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #8499ef;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.inbox-item {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.inbox-item:last-child {
  border-bottom: 0;
}

.inbox-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.inbox-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.inbox-pill--approval {
  background: rgba(255,250,132,0.12);
  color: #fffa84;
}

.inbox-pill--failure {
  background: rgba(253,130,130,0.12);
  color: #fd8282;
}

.inbox-pill--issue {
  background: rgba(132,153,239,0.14);
  color: #99b1ff;
}

.inbox-time {
  margin-left: auto;
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  font-family: var(--font-mono);
}

.inbox-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.inbox-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

.visibility-side {
  display: grid;
  gap: 16px;
}

.visibility-card {
  padding: 0;
  overflow: hidden;
}

.visibility-card-hd span:first-child {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}

.visibility-card--metrics {
  padding-bottom: 4px;
}

.visibility-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visibility-metric {
  padding: 18px 14px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.visibility-metric:last-child {
  border-right: 0;
}

.visibility-metric-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: rgba(255,255,255,0.96);
  margin-bottom: 6px;
}

.visibility-metric-label {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,0.42);
}

.visibility-budget-bar {
  height: 7px;
  margin: 18px 18px 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
}

.visibility-budget-fill {
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, #7581ff 0%, #8499ef 65%, #fffa84 100%);
}

.visibility-budget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
  font-size: 11px;
  color: rgba(255,255,255,0.42);
}

.visibility-activity {
  padding: 10px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visibility-activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
}

.visibility-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8499ef;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .visibility-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .visibility-section {
    padding: 88px 20px 84px;
  }

  .visibility-metrics {
    grid-template-columns: 1fr;
  }

  .visibility-metric {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .visibility-metric:last-child {
    border-bottom: 0;
  }
}

/* =============================================
   OUTPUT
   ============================================= */

.output-section {
  padding: 120px 24px;
  background: #000;
  border-top: 1px solid var(--border);
  text-align: center;
}

.output-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.output-eyebrow {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.runtime-fig {
  width: 100%;
  max-width: 760px;
  text-align: left;
  background: linear-gradient(180deg, rgba(16,16,16,0.98) 0%, rgba(10,10,10,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(0,0,0,0.48);
}

.output-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin-bottom: 32px;
}

.output-item {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.runtime-fig-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.runtime-fig-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.runtime-fig-title svg,
.runtime-fig-title ion-icon {
  color: rgba(255,255,255,0.52);
  flex-shrink: 0;
}

.runtime-fig-title ion-icon {
  font-size: 14px;
}

.runtime-fig-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8499ef;
  letter-spacing: 0.02em;
}

.runtime-fig-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.runtime-meta-card {
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 14px;
}

.runtime-meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 8px;
}

.runtime-meta-value {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  word-break: break-word;
}

.runtime-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.runtime-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.76);
  text-align: center;
}

.runtime-action--danger {
  border-color: rgba(253,130,130,0.22);
  color: #fd8282;
  background: rgba(253,130,130,0.06);
}

@media (max-width: 900px) {
  .runtime-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .runtime-fig-meta {
    grid-template-columns: 1fr;
  }

  .runtime-actions {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   LOCAL
   ============================================= */

.local-section {
  padding: 80px 24px;
  background: #000;
  border-top: 1px solid var(--border);
}

.local-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.local-heading {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.local-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.local-item {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.6;
}

/* =============================================
   CHANGELOG
   ============================================= */

.changelog-page {
  min-height: 100vh;
  background: #000;
}

.changelog-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.changelog-hero {
  padding: 140px 32px 28px;
}

.changelog-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  text-align: left;
}

.changelog-timeline-section {
  padding: 0 32px 140px;
}

.changelog-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 24px;
  max-width: 100%;
  margin: 0;
}

.changelog-track {
  display: none;
}

.changelog-item {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  min-height: 120px;
}

.changelog-timeline::before {
  content: "";
  position: absolute;
  top: 35px;
  bottom: -10px;
  left: 10px;
  width: 1px;
  background: rgba(190,196,205,0.72);
}

.changelog-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 22px;
}

.changelog-dot {
  position: relative;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #17181b;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

.changelog-dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(190,196,205,0.72);
}

.changelog-item--active .changelog-dot {
  background: rgba(132, 153, 239, 0.18);
}

.changelog-item--active .changelog-dot::after {
  background: #8499ef;
}

.changelog-card {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.changelog-card-title {
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #dbdde1;
  margin-bottom: 8px;
}

.changelog-card-body {
  max-width: none;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.5;
  color: #8A8F98;
  margin-bottom: 0;
}

.changelog-card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A8F98;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .changelog-timeline {
    max-width: 100%;
    gap: 22px;
  }

  .changelog-item {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 24px;
  }
}

@media (max-width: 760px) {
  .changelog-inner {
    width: 100%;
  }

  .changelog-hero {
    padding: 120px 20px 24px;
  }

  .changelog-timeline-section {
    padding: 0 20px 100px;
  }

  .changelog-timeline {
    padding-top: 8px;
    gap: 28px;
  }

  .changelog-item {
    min-height: 0;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .changelog-timeline::before {
    left: 10px;
    top: 19px;
    bottom: -10px;
  }

  .changelog-rail {
    padding-left: 0;
  }

  .changelog-card {
    max-width: none;
    padding-left: 42px;
  }

  .changelog-dot {
    margin-left: 0;
  }
}

/* =============================================
   FAQ + CTA
   ============================================= */

.faq-section {
  padding: 100px 24px 120px;
  background: #000;
}

.faq-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Eyebrow row: "FAQs" label + full-width line */
.faq-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
}

.faq-eyebrow {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.faq-eyebrow-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.faq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

.faq-heading {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.faq-heading-muted {
  color: var(--text-2);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-q {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.faq-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.3);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(90deg);
  color: rgba(255,255,255,0.6);
}

.faq-btn:hover .faq-q {
  color: rgba(255,255,255,0.95);
}

.faq-btn:hover .faq-chevron {
  color: rgba(255,255,255,0.55);
}

.faq-a {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  padding-bottom: 22px;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-bottom-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 80px;
}

.faq-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.cta-heading {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
