/* ==========================================================================
   AILiabilityAudit.com - Master Design System & Institutional Legal Stylesheet
   Color Palette: Deep Slate Navy (#060913, #0b1120, #111a2e, #16223d)
   Accents: Cyber Cyan (#00d2ff), Royal Indigo (#4f46e5), Sky Blue (#38bdf8),
            Risk Critical (#ef4444), Risk High (#f97316), Risk Medium (#eab308), Risk Low (#10b981)
   ========================================================================== */

:root {
  --bg-primary: #060913;
  --bg-secondary: #0b1120;
  --bg-card: #111a2e;
  --bg-card-hover: #16223d;
  --bg-elevated: #1a2744;
  --bg-input: #0e1628;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 210, 255, 0.4);
  --border-card: rgba(148, 163, 184, 0.14);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00d2ff;

  --accent-cyan: #00d2ff;
  --accent-cyan-glow: rgba(0, 210, 255, 0.18);
  --accent-indigo: #4f46e5;
  --accent-blue: #38bdf8;

  --risk-critical: #ef4444;
  --risk-critical-bg: rgba(239, 68, 68, 0.12);
  --risk-high: #f97316;
  --risk-high-bg: rgba(249, 115, 22, 0.12);
  --risk-medium: #eab308;
  --risk-medium-bg: rgba(234, 179, 8, 0.12);
  --risk-low: #10b981;
  --risk-low-bg: rgba(16, 185, 129, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 13, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 10px;
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
  transition: all 0.3s ease;
}

.brand-logo:hover .brand-shield {
  border-color: var(--accent-cyan);
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.4);
}

.brand-title {
  color: #ffffff;
}

.brand-highlight {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  font-size: 0.925rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-item:hover, .nav-item.active {
  color: #ffffff;
}

/* Nav Dropdown Container */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 72px;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.2rem;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown-btn:focus-visible {
  color: #ffffff;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* Dropdown Menu Card */
.dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(11, 18, 34, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(14, 165, 233, 0.08);
  padding: 0.65rem;
  z-index: 1100;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.dropdown-menu-wide {
  width: 370px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateX(3px);
}

.dropdown-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dropdown-icon-box.cyan {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.dropdown-icon-box.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.dropdown-icon-box.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.dropdown-icon-box.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.dropdown-item:hover .dropdown-icon-box {
  transform: scale(1.08);
}

.dropdown-text {
  flex: 1;
  min-width: 0;
}

.dropdown-title {
  font-size: 0.885rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-count-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.dropdown-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.885rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* Mobile Toggle & Drawer */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(8, 13, 24, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  z-index: 999;
}

.mobile-drawer.open {
  max-height: 85vh;
  overflow-y: auto;
  opacity: 1;
}

.mobile-drawer-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.mobile-nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  width: 100%;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-badge, .hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  background: rgba(17, 26, 46, 0.85);
  border: 1px solid var(--border-active);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
  margin-bottom: 1.5rem;
}

.hero-badge-dot, .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-headline, .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin: 0 auto 1.25rem auto;
  color: #ffffff;
}

.gradient-text, .text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 80%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead, .hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.hero-cta-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 6px 28px rgba(0, 210, 255, 0.5);
  transform: translateY(-2px);
}

.hero-secondary-btn, .nav-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  background: rgba(17, 26, 46, 0.8);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.hero-secondary-btn:hover, .nav-btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Stats Row
   ========================================================================== */
.hero-stats-row, .stat-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.stat-card, .stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.stat-value, .stat-counter {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat-label {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Search & Filter Hub
   ========================================================================== */
.search-filter-section {
  max-width: 1280px;
  margin: 1rem auto 3rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.search-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 0.25rem 0.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  pointer-events: none;
}

.search-input-field {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3.25rem;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
}

.search-input-field::placeholder {
  color: var(--text-muted);
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.filter-pill {
  padding: 0.5rem 1rem;
  background: rgba(17, 26, 46, 0.75);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  backdrop-filter: blur(6px);
}

.filter-pill:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.filter-pill.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.2);
}

/* ==========================================================================
   Section Layout & Headings
   ========================================================================== */
.section-wrapper {
  max-width: 1280px;
  margin: 4.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-tag, .domain-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 9999px;
  color: var(--accent-cyan);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   EU AI Act Matrix Cards (4 Column Grid)
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.matrix-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.matrix-card.tier-unacceptable {
  border-top: 4px solid var(--risk-critical);
}
.matrix-card.tier-high-risk {
  border-top: 4px solid var(--risk-high);
}
.matrix-card.tier-gpai {
  border-top: 4px solid var(--accent-indigo);
}
.matrix-card.tier-transparency {
  border-top: 4px solid var(--risk-medium);
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.matrix-article-badge {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.badge-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.matrix-tier-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.matrix-fine-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--risk-critical);
  margin-bottom: 1rem;
}

.matrix-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.matrix-list {
  list-style: none;
  font-size: 0.825rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.matrix-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

/* ==========================================================================
   Use Cases Grid (3 Column Grid)
   ========================================================================== */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 330px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.use-case-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  gap: 0.5rem;
}

.risk-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.risk-badge-critical {
  background: var(--risk-critical-bg);
  color: var(--risk-critical);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.risk-badge-high {
  background: var(--risk-high-bg);
  color: var(--risk-high);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.risk-badge-medium {
  background: var(--risk-medium-bg);
  color: var(--risk-medium);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.risk-badge-low {
  background: var(--risk-low-bg);
  color: var(--risk-low);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.card-description {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.statute-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  min-height: 2.2rem;
}

.statute-chip, .statute-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: rgba(14, 22, 40, 0.8);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  gap: 0.75rem;
}

.penalty-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 60%;
}

.penalty-amount {
  color: var(--risk-critical);
  font-weight: 700;
  font-family: var(--font-mono);
}

.card-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.card-view-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateX(2px);
}

/* ==========================================================================
   Tables & Responsive Wrappers
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.indemnity-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.indemnity-table th {
  background: rgba(14, 22, 40, 0.9);
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid var(--border-card);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.indemnity-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.indemnity-table tr:hover td {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   Assessment Page Specific Elements
   ========================================================================== */
.assessment-container {
  max-width: 1100px;
  margin: 2.5rem auto 5rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb-separator {
  color: var(--border-card);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.assessment-title-area {
  flex: 1;
}

.assessment-h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 0.75rem 0;
  line-height: 1.2;
}

.assessment-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.risk-score-badge-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
}

.risk-score-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--risk-high);
  line-height: 1;
}

.risk-score-max {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quick-answer-box {
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.quick-answer-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.quick-answer-text {
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.metric-label {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.metric-val {
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compliance-checklist-card, .statutory-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.checklist-title, .statute-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.checklist-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.statutes-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.statute-detail-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.statute-item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.statute-citation-code {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-accordion-header {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-accordion-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.1);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
  margin-top: auto;
  padding: 4.5rem 0 2rem 0;
  width: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-disclaimer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.885rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1100px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats-row, .stat-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .mobile-drawer {
    display: block;
  }
  .header-container {
    height: 64px;
    padding: 0 1.25rem;
  }
}

@media (max-width: 768px) {
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row, .stat-banner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .assessment-header {
    flex-direction: column;
    padding: 1.5rem;
  }
  .risk-score-badge-card {
    width: 100%;
  }
}
