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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a1a;
  color: #e8e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: #6366f1; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav .logo { font-size: 1.2rem; font-weight: 700; color: #fff; }
nav .nav-links { display: flex; gap: 24px; align-items: center; }
nav .nav-links a { color: #9090a0; font-size: 0.9rem; }
nav .nav-links a:hover { color: #fff; }
nav .btn { padding: 8px 20px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; display: inline-block; }
.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { background: #5558e3; text-decoration: none; }
.btn-secondary { background: rgba(255,255,255,0.08); color: #e8e8f0; }
.btn-secondary:hover { background: rgba(255,255,255,0.14); text-decoration: none; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; text-decoration: none; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.15; }
.hero h1 span { color: #6366f1; }
.hero p { font-size: 1.15rem; color: #9090a0; max-width: 560px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 16px; justify-content: center; }

/* Features */
.features { padding: 60px 0; }
.section-label { color: #6366f1; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.section-sub { color: #9090a0; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 28px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: #9090a0; }
.feature-icon { font-size: 1.5rem; margin-bottom: 12px; }

/* Dashboard preview */
.dashboard-preview { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 32px; margin: 40px 0; }
.dashboard-preview h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 20px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #9090a0; font-weight: 500; }
td { padding: 12px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #e8e8f0; }
tr:hover td { background: rgba(255,255,255,0.03); }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-high { background: rgba(239,68,68,0.2); color: #ef4444; }
.badge-medium { background: rgba(245,158,11,0.2); color: #f59e0b; }
.badge-low { background: rgba(34,197,94,0.2); color: #22c55e; }
.badge-critical { background: #ef4444; color: #fff; }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 0.875rem; font-weight: 500; color: #9090a0; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #e8e8f0; font-size: 0.9rem; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #6366f1; }
.error-msg { color: #ef4444; font-size: 0.875rem; margin-bottom: 12px; padding: 10px 14px; background: rgba(239,68,68,0.1); border-radius: 6px; }

/* Cards */
.card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 1rem; font-weight: 600; color: #fff; }

/* App layout */
.app-nav { background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 24px; }
.app-nav-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.app-nav .logo { font-size: 1rem; font-weight: 700; color: #fff; }
.app-nav .nav-links { display: flex; gap: 4px; }
.app-nav .nav-links a { color: #9090a0; font-size: 0.875rem; padding: 6px 12px; border-radius: 6px; }
.app-nav .nav-links a:hover, .app-nav .nav-links a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.app-body { max-width: 960px; margin: 0 auto; padding: 32px 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 1.5rem; font-weight: 700; color: #fff; }
.subtitle { color: #9090a0; font-size: 0.875rem; margin-top: 2px; }

/* Risk score display */
.risk-score { font-size: 2rem; font-weight: 800; }
.risk-high { color: #ef4444; }
.risk-medium { color: #f59e0b; }
.risk-low { color: #22c55e; }

/* Alerts */
.alert-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 16px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dot-critical { background: #ef4444; }
.dot-high { background: #f59e0b; }
.dot-low { background: #22c55e; }
.alert-content { flex: 1; }
.alert-type { font-size: 0.75rem; color: #6366f1; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.alert-message { font-size: 0.9rem; color: #e8e8f0; margin-top: 2px; }
.alert-time { font-size: 0.75rem; color: #9090a0; margin-top: 4px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 0; color: #9090a0; }
.empty-state h3 { color: #e8e8f0; margin-bottom: 8px; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; color: #9090a0; font-size: 0.8rem; }

/* Utility */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: #9090a0; }
.text-right { text-align: right; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero .cta { flex-direction: column; align-items: center; }
  .grid-2 { grid-template-columns: 1fr; }
}