/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #f5f0ea;
  --surface: #fff;
  --text: #1a1a1a;
  --text-secondary: #6b6560;
  --border: #e0dbd4;
  --accent: #1a1a1a;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a, button, input, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Scroll Animations ──────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Layout ─────────────────────────────────────────────── */
.site-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 0;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.topbar::after {
  content: "";
  position: absolute;
  left: -50vw;
  right: -50vw;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-word {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.topbar-actions,
.hero-actions,
.auth-tabs,
.bulk-inputs,
.bulk-actions,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ── Buttons ────────────────────────────────────────────── */
.button {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.button.primary {
  background: var(--text);
  color: #fff;
}

.button.primary:hover {
  background: #333;
}

.button.primary.subtle {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button.primary.subtle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button.secondary {
  background: rgba(26, 26, 26, 0.06);
  color: var(--text);
}

.button.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button.outline:hover {
  background: rgba(26, 26, 26, 0.03);
  border-color: #c5c0b8;
}

.button.ghost {
  background: rgba(26, 26, 26, 0.05);
  color: var(--text);
}

.button.ghost:hover {
  background: rgba(26, 26, 26, 0.08);
}

.button.ghost.subtle {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.button.ghost.subtle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: 780px;
  margin: 0 0 48px;
}

.hero h1 {
  margin: 0 0 28px;
  font-weight: 700;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(26, 26, 26, 0.35);
  color: var(--text-secondary);
}

.hero-sub {
  max-width: 52ch;
  margin: 0 0 36px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-actions {
  gap: 12px;
}

/* ── Logo Strip ─────────────────────────────────────────── */
.logo-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
  justify-content: center;
}

.strip-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.strip-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.strip-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5c0b8;
  flex-shrink: 0;
}

/* ── Hero Demo ──────────────────────────────────────────── */
.hero-demo {
  margin-bottom: 120px;
}

.hero-screen {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px -8px rgba(0,0,0,.08);
}

.screen-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #faf8f5;
  border-bottom: 1px solid var(--border);
}

.screen-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d0cb;
}

.screen-chrome-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-left: auto;
  opacity: 0.5;
}

.screen-chrome-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.5;
}

/* App layout: sidebar + detail */
.screen-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 420px;
}

/* ── Sidebar ── */
.app-sidebar {
  background: #f8f6f3;
  border-right: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
}

.app-sidebar-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.app-sidebar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.app-sidebar-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.app-sidebar-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 999px;
}

.app-sidebar-item {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 10px 16px;
  cursor: default;
  transition: background 0.15s;
}

.app-sidebar-item.active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.app-sidebar-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-sidebar-item strong {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-item span:last-child {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.app-severity {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.app-severity.high { background: #dc2626; }
.app-severity.med  { background: #d97706; }
.app-severity.low  { background: #059669; }

/* ── Detail pane ── */
.app-detail {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
}

.app-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.app-detail-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-detail-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.app-risk-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #dc2626;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.app-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.app-detail-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.app-intel-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  background: #faf8f5;
}

.app-card-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.app-intel-card > p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}

.app-intel-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-intel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.78rem;
}

.app-intel-row:last-child {
  border-bottom: none;
}

.app-intel-row span {
  color: var(--text-secondary);
}

.app-intel-row strong {
  font-weight: 600;
  color: var(--text);
}

.text-red { color: #dc2626 !important; }
.text-amber { color: #b45309 !important; }
.text-green { color: #059669 !important; }

.app-exposure {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #dc2626;
  line-height: 1;
  margin-bottom: 8px;
}

.app-exposure-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.app-action-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.app-copilot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-copilot-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* ── Demo responsive ── */
@media (max-width: 900px) {
  .screen-app {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none;
  }
  .app-detail-grid.three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-detail-grid {
    grid-template-columns: 1fr;
  }
  .app-detail {
    padding: 20px;
  }
}

/* ── Eyebrows & Labels ──────────────────────────────────── */
.eyebrow,
.section-kicker,
.plan-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Status Chips ───────────────────────────────────────── */
.status-chip,
.workspace-status,
.mini-status,
.flag-meta {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-chip.safe {
  background: rgba(5, 150, 105, 0.08);
  color: var(--green);
}

.status-chip.review {
  background: rgba(217, 119, 6, 0.08);
  color: var(--amber);
}

.status-chip.risk {
  background: rgba(220, 38, 38, 0.08);
  color: #ef4444;
}

.status-chip.neutral,
.workspace-status,
.mini-status,
.flag-meta {
  background: rgba(26, 26, 26, 0.05);
  color: var(--text-secondary);
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 48px;
  margin-bottom: 120px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.stat-item strong {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-item span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-caption {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stat-sub {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
}

/* ── Section Blocks ─────────────────────────────────────── */
.section-block {
  margin-top: 140px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-head-text {
  max-width: 560px;
  margin: 0 auto;
}

.section-head h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

/* ── Pricing Grid ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pricing-card.featured {
  border-color: var(--text);
}

.pricing-top h3 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 14px;
}

.pricing-top h3 span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-top p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.pricing-card ul li {
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--border);
  font-weight: 700;
}

.section-note {
  text-align: center;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ── Feature Split Demos ────────────────────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 140px;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-copy {
  padding: 8px 0;
}

.feature-copy h2 {
  margin: 0 0 24px;
  font-weight: 600;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.feature-copy > p {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}


/* ── Demo Screen (shared) ───────────────────────────────── */
.feature-demo {
  position: relative;
}

.demo-screen {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px -8px rgba(0,0,0,.08);
}

.demo-screen-body {
  padding: 28px;
}

/* ── Demo 1: Risk Scoring ───────────────────────────────── */
.demo-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #faf8f5;
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.demo-search-bar svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.demo-search-bar > span {
  flex: 1;
  color: var(--text);
  font-weight: 600;
}

.demo-search-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.demo-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--text-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.demo-agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.demo-agent-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.demo-agent-header strong {
  font-weight: 600;
}

.demo-task-count {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.demo-steps {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.demo-step.revealed {
  opacity: 1;
  transform: translateY(0);
}

.demo-step.active {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
}

.demo-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.demo-step.revealed .demo-check {
  background: rgba(5, 150, 105, 0.1);
  border-color: #059669;
}

.demo-step.revealed .demo-check::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: solid #059669;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.demo-step.active .demo-check {
  border-color: var(--text-secondary);
  background: transparent;
}

.demo-step.active .demo-check::after {
  display: none;
}

.demo-progress {
  margin-left: auto;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.demo-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 60%;
  background: var(--text-secondary);
  border-radius: 2px;
  animation: progress-sweep 2s ease-in-out infinite;
}

@keyframes progress-sweep {
  0% { width: 30%; }
  50% { width: 85%; }
  100% { width: 30%; }
}

.demo-result-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.demo-result-bar.revealed {
  opacity: 1;
  transform: translateY(0);
}

.demo-result-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-result-stat span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.demo-result-stat strong {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ── Demo 2: Evidence ───────────────────────────────────── */
.demo-provider-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.demo-provider-name {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.demo-provider-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.demo-flags {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.demo-flag {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #faf8f5;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-flag.revealed {
  opacity: 1;
  transform: translateX(0);
}

.demo-flag-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.demo-flag-severity {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-flag-severity.high { background: #ef4444; }
.demo-flag-severity.med { background: #f59e0b; }

.demo-flag-header strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-flag-weight {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 999px;
}

.demo-flag p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.demo-evidence-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.demo-evidence-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #faf8f5;
}

.demo-evidence-item span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-secondary);
}

.demo-evidence-item strong {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Demo 3: AI Copilot ─────────────────────────────────── */
.demo-copilot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.demo-copilot-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-copilot-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.demo-copilot-output {
  display: grid;
  gap: 20px;
  min-height: 280px;
}

.demo-copilot-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.demo-copilot-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.demo-copilot-section strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.demo-copilot-section p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.demo-copilot-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

.deep-dive-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 140px;
}

.deep-dive-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.deep-dive-number {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #a3a0a0;
  font-weight: 400;
}

.deep-dive-rule {
  width: 62px;
  height: 1px;
  background: #bfb8af;
  flex-shrink: 0;
}

.deep-dive-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.deep-dive-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.deep-dive-visual {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.agent-console {
  width: min(100%, 460px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px -8px rgba(0,0,0,.08);
}

.agent-console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: #faf8f5;
}

.agent-console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d0cb;
}

.agent-console-title {
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.agent-console-body {
  padding: 18px 22px 22px;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.agent-line,
.agent-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-line {
  margin-bottom: 10px;
}

.agent-line strong {
  color: var(--text);
  font-weight: 600;
}

.agent-meta {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 0.78rem;
  opacity: 0.6;
}

.agent-child {
  margin: 0 0 12px 28px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.agent-mark {
  width: 18px;
  text-align: center;
  font-weight: 700;
}

.agent-mark.done { color: #059669; }
.agent-mark.active { color: #b45309; }
.agent-mark.queued { color: var(--text-secondary); opacity: 0.4; }

/* ── Process Section — Carousel ─────────────────────────── */
.process-section {
  margin-bottom: 140px;
}

.process-section > h2 {
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 40px;
}

/* Columns layout */
.proc-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.proc-col {
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.proc-col.active {
  opacity: 1;
}

.proc-col:hover:not(.active) {
  opacity: 0.5;
}

/* Tab header inside each column */
.proc-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 16px;
  text-align: left;
}

.proc-tab-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.proc-tab-title {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.proc-tab-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}

.proc-tab-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 3px;
}

.proc-col.active .proc-tab-fill {
  animation: proc-fill var(--proc-duration, 6s) linear forwards;
}

@keyframes proc-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Body content under each tab */
.proc-body {
  padding: 24px 24px 0 24px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.proc-body p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.proc-demo {
  display: flex;
  justify-content: flex-start;
}

/* ── Scan Animation ───────────────────────────────────── */
.scan-window {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

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

.scan-status {
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--green);
  transition: color 0.3s;
}

.scan-status.done { color: var(--text); }

.scan-counter {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.scan-bar-track {
  height: 5px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.scan-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.scan-rows { display: flex; flex-direction: column; gap: 5px; }

.scan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.025);
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scan-row.revealed { opacity: 1; transform: translateY(0); }

.scan-row span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.scan-dot--green { background: var(--green); }
.scan-dot--red { background: var(--red); }
.scan-dot--amber { background: var(--amber); }

.scan-tag {
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scan-tag--clear { background: rgba(5, 150, 105, 0.1); color: var(--green); }
.scan-tag--flagged { background: rgba(220, 38, 38, 0.1); color: var(--red); }
.scan-tag--review { background: rgba(217, 119, 6, 0.1); color: var(--amber); }

/* ── Evidence Animation ───────────────────────────────── */
.evidence-window {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

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

.evidence-label {
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--text);
  transition: color 0.3s;
}

.evidence-tag {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(220, 38, 38, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evidence-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.evidence-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

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

.evidence-dot--red { background: var(--red); }
.evidence-dot--amber { background: var(--amber); }

.evidence-card strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 1px;
}

.evidence-card p {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.evidence-card > div { flex: 1; min-width: 0; }

.evidence-sev {
  font-size: 0.62rem;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Brief Animation ──────────────────────────────────── */
.brief-window {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.brief-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.brief-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}

.brief-tag {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(5, 150, 105, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brief-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 140px;
}

.brief-line {
  font-size: 0.72rem;
  font-family: "SF Mono", "Fira Code", "Menlo", monospace;
  color: var(--text-secondary);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-height: 1.15em;
}

.brief-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.brief-line.typing::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 13px;
  background: var(--green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Comparison Section ─────────────────────────────────── */
.comparison-section {
  margin-bottom: 140px;
}

.comparison-section > h2 {
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 48px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-col {
  display: grid;
  gap: 16px;
}

.comparison-item {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}

.comparison-col.synexi .comparison-item {
  background: var(--text);
  color: #fff;
  border-color: transparent;
}

.comparison-item h4 {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.comparison-col.others .comparison-item h4 {
  color: var(--text-secondary);
}

.comparison-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.comparison-col.others .comparison-item p {
  color: var(--text-secondary);
}

.comparison-col.synexi .comparison-item p {
  color: rgba(255, 255, 255, 0.7);
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 48px;
  margin-bottom: 140px;
  border-radius: var(--radius-xl);
  background: var(--text);
  color: #fff;
}

.cta-section h2 {
  max-width: 620px;
  margin: 0 auto 32px;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-button {
  background: #fff !important;
  color: var(--text) !important;
  margin-bottom: 32px;
}

.cta-button:hover {
  background: #f5f0ea !important;
}

.cta-sub {
  max-width: 560px;
  margin: 0 auto 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.cta-sub:last-child {
  margin-bottom: 0;
}

/* ── Workspace Shell ────────────────────────────────────── */
.workspace-shell {
  margin-top: 140px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #111827, #0c1117);
  color: #fff;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.workspace-header h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}

.workspace-sidebar {
  display: grid;
  gap: 14px;
}

.workspace-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.workspace-panel .section-kicker,
.workspace-panel .eyebrow,
.workspace-panel .mini-label,
.workspace-panel .plan-label {
  color: #5eead4;
}

.workspace-shell .button.ghost,
.workspace-shell .button.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.workspace-shell .button.ghost:hover,
.workspace-shell .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.workspace-shell .workspace-status,
.workspace-shell .mini-status,
.workspace-shell .flag-meta,
.workspace-shell .status-chip.neutral {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
}

.auth-tabs {
  margin-bottom: 16px;
}

.stack-form,
.search-form {
  display: grid;
  gap: 14px;
}

.stack-form label,
.search-form label {
  display: grid;
  gap: 6px;
}

.stack-form span,
.search-form span,
.metric-label,
.score-caption,
.meta-row span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 500;
}

.workspace-panel h3 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.account-card h3 {
  margin: 0 0 4px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.35);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

textarea { resize: vertical; }

.inline-feedback {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.account-card {
  padding: 0;
  border: none;
  background: transparent;
}

.account-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
}

.account-meta {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.account-meta span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.account-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
}

.sidebar-note {
  background: rgba(255, 255, 255, 0.02);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 22px;
  position: relative;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  line-height: 1.5;
}

.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.access-banner {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}

.access-banner.locked {
  background: rgba(220, 38, 38, 0.06);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.1);
}

.access-banner.unlocked {
  background: rgba(5, 150, 105, 0.08);
  color: #6ee7b7;
  border: 1px solid rgba(5, 150, 105, 0.12);
}

.workspace-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.primary-row {
  grid-template-columns: 1.05fr 0.95fr;
}

.workspace-main {
  display: grid;
  gap: 0;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.directory-results,
.flag-list,
.evidence-list,
.workflow-steps {
  display: grid;
  gap: 8px;
}

.agent-plan-shell {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.agent-plan-item {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.agent-plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

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

.agent-plan-status.done { background: #10b981; }
.agent-plan-status.priority { background: #f59e0b; }
.agent-plan-status.watch { background: #64748b; }
.agent-plan-status.queued { background: #cbd5e1; }

.agent-plan-children {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  line-height: 1.55;
}

.agent-plan-child::before {
  content: "└ ";
  color: rgba(255, 255, 255, 0.28);
}

.monitor-panel {
  margin-bottom: 14px;
}

.monitor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.monitor-stat {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.monitor-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.monitor-stat span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.monitor-feed {
  display: grid;
  gap: 10px;
}

.monitor-event {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.monitor-event-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.monitor-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.monitor-pill.high {
  background: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
}

.monitor-pill.medium {
  background: rgba(217, 119, 6, 0.12);
  color: #fcd34d;
}

.monitor-pill.low {
  background: rgba(100, 116, 139, 0.18);
  color: #cbd5e1;
}

.monitor-time,
.monitor-provider,
.monitor-summary,
.monitor-detail {
  color: rgba(255, 255, 255, 0.5);
}

.monitor-event h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.monitor-provider {
  margin: 0 0 10px;
  font-size: 0.82rem;
}

.monitor-summary {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.monitor-details {
  display: grid;
  gap: 4px;
}

.monitor-detail::before {
  content: "• ";
  color: rgba(255, 255, 255, 0.25);
}

.directory-card,
.flag-item,
.evidence-item,
.workflow-step,
.score-card,
.meta-card,
.copilot-output {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.directory-card {
  text-align: left;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.directory-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.directory-card strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.directory-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.badge-row {
  margin-top: 8px;
}

.hidden { display: none; }

.empty-state {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

.score-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.score-card {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.08);
}

.score-value {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 6px;
  letter-spacing: -0.04em;
}

.score-caption {
  font-weight: 600;
  font-size: 0.85rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.meta-row:last-child { border-bottom: none; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.profile-content h4 {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.flag-item strong,
.evidence-item strong,
.workflow-step strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.copilot-output {
  min-height: 110px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.file-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.file-button:hover { background: rgba(255, 255, 255, 0.1); }

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.table-shell {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.locked-inputs input,
.locked-inputs button {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Provider Actions Bar ──────────────────────────────── */
.profile-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-actions-bar .button {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.workspace-shell .button.primary.subtle {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.workspace-shell .button.primary.subtle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.inline-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(5, 150, 105, 0.08);
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ── Activity Timeline ─────────────────────────────────── */
.activity-section {
  margin-top: 20px;
}

.activity-timeline {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.activity-event {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.activity-event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.activity-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 999px;
}

.activity-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.activity-event strong {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.activity-event p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.activity-source {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
  display: inline-block;
}

/* ── Audit Log ─────────────────────────────────────────── */
.audit-panel {
  margin-top: 14px;
}

.audit-log {
  display: grid;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.audit-event {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.audit-event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.audit-action-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 999px;
}

.audit-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.audit-event p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.audit-npi {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
  display: inline-block;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: 120px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-links-grid {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

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

.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .deep-dive-section,
  .hero-demo .screen-main,
  .hero-demo .screen-footer,
  .workspace-grid,
  .workspace-row,
  .primary-row,
  .score-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .feature-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-split.reverse {
    direction: ltr;
  }


  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .monitor-stats {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 1200px);
  }

  .proc-columns { grid-template-columns: 1fr; }
  .proc-col { opacity: 1; }
  .proc-col:not(.active) .proc-body { display: none; }
  .proc-tab { padding: 14px 16px; }

  .topbar {
    padding: 16px 0;
    margin-bottom: 48px;
  }

  .hero {
    max-width: 100%;
  }

  .hero h1 { font-size: 2.2rem; }

  .hero-sub { font-size: 1rem; }

  .hero-demo { margin-bottom: 64px; }

  .logo-strip {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  .strip-dot { display: none; }

  .section-block { margin-top: 80px; }

  .feature-split {
    margin-bottom: 80px;
    gap: 24px;
  }

  .feature-copy h2 { font-size: 1.5rem; }

  .feature-copy > p { font-size: 0.92rem; }

  .section-head h2 { font-size: 1.6rem; }

  .deep-dive-section {
    gap: 32px;
    margin-bottom: 80px;
  }

  .deep-dive-visual {
    padding-top: 0;
  }

  .deep-dive-copy p {
    max-width: none;
  }

  .deep-dive-copy h2 {
    font-size: 2.2rem;
  }

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

  .workspace-shell { padding: 20px; }

  .workspace-panel { padding: 18px; }

  .workspace-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .screen-body { padding: 20px; }

  .demo-screen-body { padding: 20px; }

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

  .demo-result-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo-provider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .demo-copilot-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .demo-copilot-footer {
    flex-direction: column;
    gap: 8px;
  }

  .demo-flag-header {
    flex-wrap: wrap;
  }

  .agent-console-body {
    padding: 14px 16px 16px;
    font-size: 0.75rem;
  }

  .agent-line {
    flex-wrap: wrap;
  }

  .agent-meta {
    margin-left: 28px;
    width: 100%;
  }

  .app-detail {
    padding: 20px;
  }

  .app-detail-header {
    flex-direction: column;
    gap: 10px;
  }

  .app-detail-title {
    font-size: 1.05rem;
  }

  .process-section,
  .comparison-section {
    margin-bottom: 80px;
  }

  .process-section > h2,
  .comparison-section > h2 {
    margin-bottom: 32px;
  }

  .cta-section {
    padding: 48px 24px;
    margin-bottom: 80px;
  }

  .comparison-item { padding: 24px; }

  .threat-badge { flex-wrap: wrap; }

  .stats-bar {
    padding: 24px;
    gap: 20px;
    margin-bottom: 80px;
  }

  .stat-item strong {
    font-size: 1.4rem;
  }

  .footer {
    margin-top: 80px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-grid {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(100% - 20px, 1200px);
  }

  .topbar {
    padding: 12px 0;
    margin-bottom: 36px;
  }

  .topbar-actions .button {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 24px; }
  .hero { margin-bottom: 32px; }

  .hero-demo {
    margin-bottom: 48px;
  }

  .hero-screen {
    border-radius: 14px;
  }

  .screen-chrome {
    padding: 10px 14px;
  }

  .app-detail {
    padding: 16px;
  }

  .app-detail-title {
    font-size: 0.95rem;
  }

  .app-intel-card {
    padding: 14px;
  }

  .demo-screen {
    border-radius: 14px;
  }

  .demo-screen-body {
    padding: 16px;
  }

  .demo-search-bar {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .demo-step {
    padding: 8px 12px;
    font-size: 0.82rem;
    gap: 10px;
  }

  .demo-flag {
    padding: 14px;
  }

  .demo-evidence-bar {
    grid-template-columns: 1fr 1fr;
  }

  .demo-evidence-item {
    padding: 10px;
  }

  .demo-copilot-section p {
    font-size: 0.82rem;
  }

  .agent-console {
    border-radius: 14px;
  }

  .agent-console-body {
    padding: 12px 14px 14px;
    font-size: 0.72rem;
  }

  .agent-child {
    margin-left: 16px;
    font-size: 0.72rem;
  }

  .feature-split {
    margin-bottom: 56px;
    gap: 20px;
  }

  .section-block { margin-top: 56px; }

  .process-section,
  .comparison-section {
    margin-bottom: 56px;
  }

  .comparison-item {
    padding: 20px;
  }

  .cta-section {
    padding: 36px 20px;
    margin-bottom: 56px;
    border-radius: 16px;
  }

  .cta-section h2 {
    font-size: 1.4rem;
  }

  .workspace-shell {
    padding: 16px;
    margin-top: 56px;
    border-radius: 16px;
  }

  .footer-links-grid {
    flex-direction: column;
    gap: 28px;
  }
}
