:root {
  --bg: #fafafa;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --border: #e5e7eb;
  --border-2: #d1d5db;
  --red: #dc2626;
  --red-light: rgba(220, 38, 38, 0.08);
  --green: #059669;
  --green-light: rgba(5, 150, 105, 0.08);
  --amber: #d97706;
  --amber-light: rgba(217, 119, 6, 0.08);
  --blue-obvious: #4a7fb5;
  --orange-contextual: #e07a5f;
  --green-hot100: #588c7e;
  --navy: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --mono: "IBM Plex Mono", "Menlo", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
}

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.container-wide {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* ===== Top Navigation Bar ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease;
}

.topbar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  height: 56px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  transition: all 120ms ease;
}

.topbar-link:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.topbar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(74, 127, 181, 0.07), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(224, 122, 95, 0.05), transparent 50%),
    linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
}

.hero .container-wide {
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
  margin-bottom: 24px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(5, 150, 105, 0.5); }
  50% { box-shadow: 0 0 20px rgba(5, 150, 105, 0.8); }
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
}

.hero-logo {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  border-radius: 16px;
  object-fit: contain;
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: 5px;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
  color: var(--ink-2);
}

/* ===== Hero Section Cards ===== */

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 180ms ease;
}

.hero-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.hero-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.hero-card-icon--results {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red);
}

.hero-card-icon--dist {
  background: rgba(74, 127, 181, 0.1);
  color: var(--blue-obvious);
}

.hero-card-icon--cases {
  background: rgba(224, 122, 95, 0.1);
  color: var(--orange-contextual);
}

.hero-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.hero-card-desc {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.hero-card-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--ink-4);
  transition: transform 180ms ease;
}

.hero-card:hover .hero-card-arrow {
  transform: translateX(3px);
  color: var(--ink-3);
}

/* ===== Sections ===== */

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ===== ASR Table ===== */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.asr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.asr-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}

.asr-table thead th:not(.th-model) {
  text-align: center;
  width: 25%;
}

.asr-table tbody td,
.asr-table tfoot td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.asr-table tbody tr:last-child td {
  border-bottom: 2px solid var(--border);
}

.asr-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

.th-model,
.asr-table .td-model {
  width: 25%;
}

.asr-table .td-model {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--ink);
}

.asr-table .td-value {
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}

.asr-table .td-bar {
  position: absolute;
  inset: 4px 8px;
  border-radius: 6px;
  z-index: 0;
  pointer-events: none;
}

.asr-table .td-num {
  position: relative;
  z-index: 1;
}

.asr-table tfoot td {
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.92rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: none;
}

.asr-table .tf-label {
  text-align: left;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.table-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-4);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Vulnerability Charts ===== */

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.chart-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.chart-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

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

.chart-dot--obvious { background: var(--blue-obvious); }
.chart-dot--contextual { background: var(--orange-contextual); }
.chart-dot--hot100 { background: var(--green-hot100); }

.chart-panel h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.bar-label {
  font-size: 0.82rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 22px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill--obvious { background: var(--blue-obvious); }
.bar-fill--contextual { background: var(--orange-contextual); }
.bar-fill--hot100 { background: var(--green-hot100); }

.bar-value {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
  text-align: right;
}

/* ===== Tabs ===== */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 150ms ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tab-dot--obvious { background: var(--blue-obvious); }
.tab-dot--contextual { background: var(--orange-contextual); }
.tab-dot--hot100 { background: var(--green-hot100); }

/* ===== Case Cards ===== */

.cases-container {
  display: grid;
  gap: 20px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}

.case-card:hover {
  box-shadow: var(--shadow);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.case-header:hover {
  background: rgba(0, 0, 0, 0.01);
}

.case-info {
  flex: 1;
  min-width: 0;
}

.case-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.case-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.case-chip--model {
  background: rgba(30, 41, 59, 0.08);
  color: var(--navy);
}

.case-chip--vuln {
  background: var(--red-light);
  color: var(--red);
}

.case-chip--verdict {
  background: rgba(220, 38, 38, 0.12);
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  transition: transform 200ms ease;
}

.case-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: transform 200ms ease;
}

.case-card.open .case-toggle svg {
  transform: rotate(180deg);
}

.case-body {
  display: none;
  border-top: 1px solid var(--border);
}

.case-card.open .case-body {
  display: block;
}

.case-desc {
  padding: 20px 24px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}

/* ===== Skill Info ===== */

.case-skill {
  padding: 16px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.case-skill-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.case-skill-row .step-field-label {
  flex-shrink: 0;
  min-width: 100px;
  margin-bottom: 0;
}

.case-skill-value {
  font-size: 0.9rem;
  font-family: var(--sans);
  color: var(--ink-2);
  line-height: 1.55;
}

.case-skill-row:first-child .case-skill-value {
  font-weight: 600;
  color: var(--ink);
}

/* ===== Rounds ===== */

.case-rounds {
  border-bottom: 1px solid var(--border);
}

.rounds-list {
  display: grid;
  gap: 0;
}

.round-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
  transition: background 120ms ease;
}

.round-bar:hover {
  background: rgba(0, 0, 0, 0.015);
}

.round-bar.open {
  background: rgba(0, 0, 0, 0.02);
}

.round-num-badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.round-result {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
}

.round-result--ignore {
  background: var(--green-light);
  color: var(--green);
}

.round-result--technical {
  background: var(--amber-light);
  color: var(--amber);
}

.round-result--success {
  background: var(--red-light);
  color: var(--red);
}

.round-toggle {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.round-toggle-icon {
  font-size: 0.9rem;
  transition: transform 150ms ease;
}

.round-bar.open .round-toggle-icon {
  transform: rotate(45deg);
}

.round-detail {
  display: none;
  border-bottom: 1px solid var(--border);
}

.round-detail.open {
  display: block;
}

.round-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.round-section:last-child {
  border-bottom: none;
}

.round-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.round-section-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.round-section-tag--prompt {
  background: rgba(30, 41, 59, 0.08);
  color: var(--navy);
}

.round-section-tag--judge {
  background: var(--red-light);
  color: var(--red);
}

.round-section-tag--judge-safe {
  background: var(--green-light);
  color: var(--green);
}

.round-model-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

.round-prompt-text {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.round-judge-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.round-judge-result--success {
  background: var(--red-light);
  color: var(--red);
}

.round-judge-result--ignore {
  background: var(--green-light);
  color: var(--green);
}

.round-reason-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 6px;
}

.round-reason-text {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.case-chip--rounds {
  background: rgba(30, 41, 59, 0.06);
  color: var(--ink-3);
}

/* ===== Simulation Steps ===== */

.round-section--steps {
  background: var(--bg-alt);
}

.round-section-tag--steps {
  background: rgba(30, 41, 59, 0.08);
  color: var(--navy);
}

.sim-timeline {
  position: relative;
  padding-left: 24px;
}

.sim-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-2);
}

.sim-step {
  position: relative;
  padding: 0 0 14px;
}

.sim-step:last-child {
  padding-bottom: 0;
}

.sim-step-dot {
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-2);
  z-index: 1;
}


.sim-step-body {
  min-width: 0;
}

.sim-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sim-step-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-3);
}

.sim-step-type {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-3);
}

.sim-step-tool {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(74, 127, 181, 0.08);
  color: var(--blue-obvious);
}

.sim-step-content {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  word-break: break-word;
  white-space: pre-wrap;
}


.sim-step-empty {
  color: var(--ink-4);
  font-style: italic;
}

/* ===== Judge Section Styling ===== */

.round-section--judge {
  border-left: 4px solid var(--border-2);
  margin: 0;
}

.round-section--judge-success {
  border-left-color: var(--red);
  background: rgba(220, 38, 38, 0.02);
}

.round-section--judge-ignore {
  border-left-color: var(--ink-4);
}

.round-judge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.round-judge-badge--success {
  background: var(--red-light);
  color: var(--red);
}

.round-judge-badge--ignore {
  background: var(--green-light);
  color: var(--green);
}

.round-judge-badge--technical {
  background: var(--amber-light);
  color: var(--amber);
}

/* ===== Pipeline Steps ===== */

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pipeline-step {
  padding: 24px;
  border-right: 1px solid var(--border);
}

.pipeline-step:last-child {
  border-right: none;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.step-num--analyze { background: var(--blue-obvious); }
.step-num--attack { background: var(--orange-contextual); }
.step-num--judge { background: var(--red); }

.step-label {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.step-arrow {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 1.2rem;
}

.step-field {
  margin-bottom: 12px;
}

.step-field:last-child {
  margin-bottom: 0;
}

.step-field-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 4px;
}

.step-field-value {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--bg-alt);
  color: var(--ink-3);
  border: 1px solid var(--border);
}

.step-prompt {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow-y: auto;
}

.step-evidence {
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-evidence li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.step-evidence li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verdict-badge--success {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.verdict-badge--success::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ===== Footer ===== */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--ink-4);
  font-size: 0.88rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

/* ===== Animations ===== */

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .chart-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .pipeline-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pipeline-step:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 36px;
  }

  .hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section {
    padding: 48px 0;
  }

  .container,
  .container-wide {
    width: calc(100% - 32px);
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 10px 14px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .asr-table {
    min-width: 560px;
  }

  .case-header {
    padding: 16px;
  }

  .pipeline-step {
    padding: 16px;
  }

  .bar-row {
    grid-template-columns: 110px 1fr 42px;
    gap: 8px;
  }

  .bar-label {
    font-size: 0.76rem;
  }

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

  .topbar-inner {
    width: calc(100% - 32px);
  }

  .topbar-name {
    display: none;
  }

  .topbar-link span {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar-link {
    padding: 7px 10px;
  }
}
