:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --border-color: #262626;
  --text-main: #f5f5f5;
  --text-muted: #8f8f8f;
  --text-dim: #5a5a5a;
  
  --brand-orange: #ff4500;
  
  --status-red: #ef4444;
  --status-red-bg: #ef44441a;
  --status-red-border: #ef444433;
  
  --status-orange: #f97316;
  --status-orange-bg: #f973161a;
  --status-orange-border: #f9731633;
  
  --status-yellow: #eab308;
  --status-yellow-bg: #eab3081a;
  --status-yellow-border: #eab30833;
  
  --status-green: #22c55e;
  --status-green-bg: #22c55e1a;
  --status-green-border: #22c55e33;
  
  --font-inter: 'Inter', sans-serif;
  --font-tight: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-inter);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-tight);
}

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

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

/* Layout */
.screen {
  min-height: 100vh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.screen-hero {
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 10;
  margin-top: -24px;
}

.hero-title {
  color: #fafafa;
  font-size: clamp(80px, 15vw, 240px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.06em;
  margin-bottom: 28px;
}

.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-line {
  width: 40px;
  height: 2px;
  background-color: var(--brand-orange);
}

.hero-label {
  color: #a3a3a3;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.64px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 40px;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  max-width: 1440px;
  margin: 0 auto;
}

.nav-brand .nav-mono {
  color: #737373;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.92px;
  text-transform: uppercase;
}

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

.nav-link {
  color: #737373;
  font-family: var(--font-tight);
  font-size: 15px;
  letter-spacing: -0.15px;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link--active {
  color: #fafafa;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--brand-orange);
  border-radius: 50%;
}

.nav-status-text {
  color: #a3a3a3;
  font-family: var(--font-tight);
  font-size: 15px;
}

/* Dashboard Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 36px 40px 24px;
}

.page-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-eyebrow {
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.16px;
  text-transform: uppercase;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.76px;
}

.page-meta {
  color: var(--text-muted);
  font-size: 13px;
}

.page-header-actions {
  display: flex;
  gap: 12px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #161616;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 11px 18px;
  color: #d4d4d4;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background-color: #222;
  border-color: #3e3e3e;
}
.btn-secondary svg {
  color: #a3a3a3;
}

.btn-primary-sm {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-orange);
  border-radius: 10px;
  padding: 11px 18px;
  color: var(--bg-dark);
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary-sm:hover {
  opacity: 0.9;
}
.btn-primary-sm:active {
  transform: scale(0.98);
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #1e1e1e;
}

/* KPI Section */
.kpi-row {
  display: flex;
  padding: 28px 40px 0;
  gap: 20px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px;
}

.kpi-main {
  width: 400px;
  flex-shrink: 0;
}

.kpi-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.82px;
  text-transform: uppercase;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge--orange {
  background-color: var(--status-orange-bg);
  border-color: var(--status-orange-border);
  color: var(--status-orange);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.badge-dot--orange { background-color: var(--status-orange); }

.kpi-score-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 22px;
}

.kpi-score {
  font-size: 96px;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -3.84px;
}

.kpi-score-denom {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 22px;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease-out;
}

.kpi-desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.kpi-mini-grid {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 16px;
}

.kpi-mini {
  flex: 1;
  min-width: 220px;
  padding: 22px;
}

.kpi-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-mini-label {
  color: var(--text-muted);
  font-size: 13px;
}

.kpi-num {
  margin-top: 18px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: #f5f5f5;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.kpi-denom {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.kpi-sub {
  margin-top: 6px;
  font-size: 12px;
}

/* Common Section */
.section-block {
  display: flex;
  flex-direction: column;
  padding: 28px 40px 0;
  gap: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 40px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #f5f5f5;
}

.section-sub {
  color: var(--text-muted);
  font-size: 13px;
}

/* Health Card */
.health-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 40px 40px;
}

.health-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.health-label {
  width: 180px;
  flex-shrink: 0;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 500;
}

.flex-1 {
  flex: 1;
}

.health-score {
  width: 44px;
  flex-shrink: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #f5f5f5;
}

/* Agents Grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  padding: 18px 40px 60px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.agent-card:hover {
  transform: translateY(-2px);
  border-color: #3e3e3e;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-num {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1.44px;
}

.agent-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid;
}
.agent-badge--HIGH {
  background-color: var(--status-orange-bg);
  border-color: var(--status-orange-border);
  color: var(--status-orange);
}
.agent-badge--MEDIUM {
  background-color: var(--status-yellow-bg);
  border-color: var(--status-yellow-border);
  color: var(--status-yellow);
}
.agent-badge--LOW {
  background-color: var(--status-green-bg);
  border-color: var(--status-green-border);
  color: var(--status-green);
}
.agent-badge--CRITICAL {
  background-color: var(--status-red-bg);
  border-color: var(--status-red-border);
  color: var(--status-red);
}

.agent-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.agent-title {
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 600;
}

.agent-role {
  color: var(--text-muted);
  font-size: 13px;
}

.agent-score-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.agent-score-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-score-label {
  color: var(--text-muted);
  font-size: 12px;
}

.agent-score-val {
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 700;
}

.agent-progress {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

/* Toast */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-orange);
  color: var(--bg-dark);
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(255, 69, 0, 0.3);
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.toast.show {
  bottom: 40px;
}
/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  padding: 0 40px;
  margin-top: 24px;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn--active {
  background-color: #262626;
  color: #f5f5f5;
  border-color: #3e3e3e;
}
.badge-dot--red { background-color: var(--status-red); }
.badge-dot--yellow { background-color: var(--status-yellow); }
.badge-dot--green { background-color: var(--status-green); }

/* Risk Table */
.risk-table {
  margin: 24px 40px 60px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}
.risk-row {
  display: grid;
  grid-template-columns: 120px 1fr 180px 120px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  gap: 16px;
}
.risk-row:last-child {
  border-bottom: none;
}
.risk-title {
  color: #f5f5f5;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.risk-desc {
  color: var(--text-muted);
  font-size: 13px;
}
.risk-domain {
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-mono);
}
.risk-agent {
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Framework Screen */
.screen-framework {
  padding-bottom: 80px;
}
.framework-steps {
  display: flex;
  flex-direction: column;
  padding: 40px;
  gap: 0;
  position: relative;
}
.fw-step {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}
.fw-connector {
  width: 2px;
  height: 30px;
  background-color: var(--brand-orange);
  margin: 0 auto;
}
.fw-step-num {
  font-family: var(--font-mono);
  color: var(--brand-orange);
  font-size: 12px;
  margin-bottom: 12px;
}
.fw-icon {
  margin-bottom: 16px;
}
.fw-step-title {
  color: #f5f5f5;
  font-size: 18px;
  margin-bottom: 8px;
}
.fw-step-desc {
  color: var(--text-muted);
  font-size: 14px;
}

/* Stats Strip */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 40px 40px;
  padding: 30px 40px;
  background-color: var(--brand-orange);
  border-radius: 16px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  color: var(--bg-dark);
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-tight);
}
.stat-label {
  color: rgba(10, 10, 10, 0.7);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-div {
  width: 1px;
  height: 40px;
  background-color: rgba(10, 10, 10, 0.2);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}
.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  font-family: var(--font-tight);
  font-weight: 900;
  font-size: 20px;
  color: #f5f5f5;
  letter-spacing: -1px;
}
.footer-mono, .footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* Base backgrounds */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, #1a1a1a 1px, transparent 1px),
    linear-gradient(to bottom, #1a1a1a 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: 1;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,69,0,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
