:root {
  --bg-primary: #0f0e17;
  --bg-secondary: #1a1825;
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-red: #dc143c;
  --accent-red-light: rgba(220, 20, 60, 0.15);
  --accent-blue: #575ed8;
  --accent-blue-light: rgba(87, 94, 216, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #8b949e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --gradient-red: linear-gradient(135deg, #dc143c 0%, #ff6b6b 100%);
  --gradient-blue: linear-gradient(135deg, #575ed8 0%, #7c83ff 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --shadow-glow: 0 0 40px rgba(220, 20, 60, 0.15);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  background: var(--bg-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
.page-wrapper {
  min-height: 100vh;
  position: relative;
}
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(87, 94, 216, 0.3), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(220, 20, 60, 0.2), transparent);
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 23, 0.8);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  flex-direction: column;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent-blue);
}
.hero {
  text-align: center;
  padding: 80px 0 60px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 20, 60, 0.3);
  box-shadow: var(--shadow-glow);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.stat-icon.red { background: var(--accent-red-light); color: var(--accent-red); }
.stat-icon.blue { background: var(--accent-blue-light); color: var(--accent-blue); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.section {
  margin-bottom: 60px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title i {
  color: var(--accent-red);
}
.section-badge {
  background: var(--accent-red-light);
  color: var(--accent-red);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  max-width: 100%;
}
.chart-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.chart-card canvas {
  max-width: 100% !important;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.insight-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.insight-card.highlight {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(220, 20, 60, 0.05) 100%);
  border-color: rgba(220, 20, 60, 0.3);
}
.insight-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.insight-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.insight-value.accent {
  color: var(--accent-red);
}
.insight-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.risk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
}
.risk-card:hover {
  border-color: rgba(220, 20, 60, 0.4);
  transform: translateY(-2px);
}
.risk-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.risk-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.risk-icon.critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.risk-icon.high { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.risk-icon.medium { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.risk-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.risk-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.risk-stat {
  text-align: center;
}
.risk-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.risk-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.size-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.size-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.size-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.size-card.mega::after { background: var(--gradient-red); }
.size-card.large::after { background: var(--gradient-amber); }
.size-card.medium::after { background: var(--gradient-blue); }
.size-card.small::after { background: var(--gradient-purple); }
.size-card.tiny::after { background: var(--gradient-emerald); }
.size-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.size-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.size-card.mega .size-value { color: #dc143c; }
.size-card.large .size-value { color: #f59e0b; }
.size-card.medium .size-value { color: #575ed8; }
.size-card.small .size-value { color: #8b5cf6; }
.size-card.tiny .size-value { color: #10b981; }
.size-percent {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
}
.table-card h3 {
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}
.table-responsive {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.2);
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: rgba(220, 20, 60, 0.05);
}
.data-table img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}
.description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}
.description.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-toggle {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.read-toggle:hover {
  color: var(--text-secondary);
}
.record-count {
  font-weight: 600;
  color: var(--text-primary);
}
.yearly-chart-wrapper {
  height: 350px;
  position: relative;
}
.industry-chart-wrapper {
  height: 650px;
  position: relative;
}
.password-chart-wrapper {
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}
.datatypes-chart-wrapper {
  height: 320px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}
footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent-blue);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--accent-blue-light);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.cta-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}
.cta-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-btn.primary {
  background: var(--gradient-blue);
  color: white;
  border: none;
}
.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(87, 94, 216, 0.3);
}
.cta-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.cta-btn.secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-blue);
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-cards { grid-template-columns: repeat(2, 1fr); }
  .size-cards { grid-template-columns: repeat(3, 1fr); }
  .risk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 50px 0 40px; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-cards { grid-template-columns: repeat(2, 1fr); }
  .size-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.active { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { font-size: 1rem; }
  .footer-content { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .cta-section { flex-direction: column; align-items: center; }
  .stat-card { padding: 20px; }
  .stat-value { font-size: 1.8rem; }
  .stat-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .section { margin-bottom: 40px; }
  .chart-card, .table-card { padding: 20px; }
  .industry-chart-wrapper { height: 500px; }
  .section-title { font-size: 1.2rem; }
  .insight-card { padding: 16px; }
  .insight-value { font-size: 1.4rem; }
  .risk-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .header-content { position: relative; }
  .password-chart-wrapper { height: 220px; }
  .datatypes-chart-wrapper { height: 280px; }
  .yearly-chart-wrapper { height: 280px; }
  .chart-card { padding: 16px; }
  .chart-card h3 { font-size: 1rem; margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .insight-cards { grid-template-columns: 1fr; }
  .size-cards { grid-template-columns: 1fr; }
  .stat-value { font-size: 2rem; }
  .industry-chart-wrapper { height: 450px; }
  .password-chart-wrapper { height: 200px; }
  .datatypes-chart-wrapper { height: 260px; }
  .yearly-chart-wrapper { height: 250px; }
  .data-table th, .data-table td { padding: 12px 10px; font-size: 0.8rem; }
  .data-table img { width: 30px; height: 30px; }
  .cta-btn { width: 100%; justify-content: center; }
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
}
.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  padding: 12px 24px;
  background: var(--accent-red);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
.cta-btn:focus-visible,
.read-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}
.nav-links a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 4px;
}
.footer-social a {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
.footer-links a {
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a {
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 16px 24px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.error-banner i {
  color: #ef4444;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.error-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fca5a5;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-close:hover {
  color: #fff;
}
.error-close:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
.error-banner.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}
.error-banner.warning i {
  color: #f59e0b;
}
.data-timestamp {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .data-timestamp {
    position: static;
    text-align: center;
    margin-top: 16px;
  }
}
.view-all-link {
  display: block;
  padding: 16px 24px;
  text-align: center;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
  transition: background 0.2s;
}
.view-all-link:hover {
  background: rgba(87, 94, 216, 0.05);
}
.view-all-link:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: -2px;
}
.view-all-link i {
  margin-right: 6px;
}
.breach-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.breach-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}
.breach-link:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
