/* ===== SafeChild AI — Main Styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #99f6e4;
  --accent: #f97316;
  --danger-c: #ef4444;
  --danger-h: #f97316;
  --danger-m: #eab308;
  --danger-l: #22c55e;
  --bg: #0a0a14;
  --bg-card: #13131f;
  --bg-card2: #1c1c2e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #252538;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,20,0.92);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px; display: flex;
  align-items: center; height: 68px; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}
.logo-text { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo-sub { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; align-items: center; }
.nav-link {
  display: block; padding: 8px 14px;
  text-decoration: none; color: var(--text-muted);
  border-radius: 9px; font-size: 0.88rem; font-weight: 500;
  transition: all 0.18s;
}
.nav-link:hover { color: #fff; background: rgba(99,102,241,0.12); }
.nav-link.active { color: #fff; background: rgba(99,102,241,0.18); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  box-shadow: 0 2px 12px rgba(99,102,241,0.35);
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== LAYOUT ===== */
.main-content { min-height: calc(100vh - 68px); }
.container { max-width: 1280px; margin: 0 auto; }
.section { padding: 88px 28px; }
.section-light { background: #0e0e1c; }
.section-dark { background: linear-gradient(135deg, #0b0b18 0%, #141424 100%); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.section-header.light h2, .section-header.light p { color: #fff; }
.section-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 28px; letter-spacing: -0.3px; }
.section-title.mt-4 { margin-top: 64px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 11px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: 2px solid transparent;
  text-decoration: none; transition: all 0.2s; font-family: var(--font);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.4); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 34px; font-size: 1rem; border-radius: 13px; }
.btn-xl { padding: 18px 52px; font-size: 1.1rem; border-radius: 14px; }
.btn-full { width: 100%; justify-content: center; margin-top: 16px; }
.btn-sm { padding: 7px 15px; font-size: 0.8rem; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden; padding: 80px 28px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(99,102,241,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(245,158,11,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 80%, rgba(99,102,241,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(99,102,241,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-content { max-width: 880px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50px; padding: 9px 20px; font-size: 0.83rem; font-weight: 600;
  color: var(--primary-light); margin-bottom: 32px; letter-spacing: 0.2px;
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800; line-height: 1.08;
  color: #fff; margin-bottom: 28px; letter-spacing: -2.5px;
}
.accent-text {
  color: #f97316;
  text-shadow: 0 0 18px rgba(249,115,22,0.16);
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 580px; margin: 0 auto 40px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-metrics {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 36px; flex-wrap: wrap; gap: 0;
}
.metric { text-align: center; padding: 0 28px; }
.metric-value { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 5px; }
.metric-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; }
.metric-divider { width: 1px; height: 44px; background: var(--border); }

/* ===== PIPELINE ===== */
.pipeline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.pipeline-step {
  text-align: center; padding: 34px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 185px; max-width: 220px;
  position: relative; transition: all 0.2s;
}
.pipeline-step:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.step-icon { font-size: 2.6rem; margin-bottom: 12px; }
.step-num {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px; background: var(--primary);
  border-radius: 50%; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pipeline-step h3 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 9px; }
.pipeline-step p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.pipeline-arrow { font-size: 1.4rem; color: var(--primary); padding: 0 6px; opacity: 0.7; }

/* ===== CLASSES GRID ===== */
.classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.class-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 16px;
  text-align: center; transition: all 0.2s; cursor: default;
}
.class-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.class-icon { font-size: 2.2rem; margin-bottom: 11px; }
.class-name { font-weight: 700; color: #fff; font-size: 0.92rem; margin-bottom: 3px; }
.class-uz { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 12px; }
.danger-badge {
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
  border-radius: 50px; display: inline-block;
}
.danger-critical .danger-badge, .danger-badge.danger-critical { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.danger-high .danger-badge, .danger-badge.danger-high { background: rgba(249,115,22,0.15); color: #fdba74; border: 1px solid rgba(249,115,22,0.3); }
.danger-medium .danger-badge, .danger-badge.danger-medium { background: rgba(234,179,8,0.15); color: #fde047; border: 1px solid rgba(234,179,8,0.3); }
.danger-low .danger-badge, .danger-badge.danger-low { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 18px; }
.stat-card {
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: all 0.2s;
}
.stat-card:hover { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.3); }
.stat-icon { font-size: 2rem; margin-bottom: 14px; }
.stat-value { font-size: 1.85rem; font-weight: 800; color: #fff; margin-bottom: 7px; }
.stat-label { font-size: 0.83rem; color: var(--text-muted); }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(245,158,11,0.04) 100%);
  border-top: 1px solid var(--border);
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-section p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0b0b18 0%, #141428 100%);
  padding: 72px 28px 60px; border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.6rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -1px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; }
.demo-notice {
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px; padding: 13px 18px; margin-top: 18px;
  font-size: 0.88rem; color: var(--primary-light);
}
.demo-notice code {
  background: rgba(255,255,255,0.1); padding: 2px 8px;
  border-radius: 5px; font-family: 'Courier New', monospace; font-size: 0.85rem;
}

/* ===== PIPELINE DETAIL ===== */
.pipeline-detail { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 640px; margin: 0 auto; }
.pd-step {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; align-items: flex-start; gap: 22px;
  transition: border-color 0.2s;
}
.pd-step:hover { border-color: rgba(99,102,241,0.4); }
.pd-icon { font-size: 2.2rem; flex-shrink: 0; margin-top: 2px; }
.pd-step h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.pd-step ul { list-style: none; }
.pd-step ul li { color: var(--text-muted); font-size: 0.86rem; padding: 3px 0; }
.pd-step ul li::before { content: '›  '; color: var(--primary); font-weight: 700; }
.pd-arrow { font-size: 1.4rem; color: var(--primary); padding: 6px 0; opacity: 0.6; }

/* ===== DATA TABLE ===== */
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 600px; }
.data-table thead tr { background: var(--bg-card2); }
.data-table th {
  padding: 15px 16px; text-align: left; color: var(--text-muted);
  font-weight: 600; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.6px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text); }
.data-table tbody tr:hover { background: rgba(99,102,241,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }
.map-val { color: #67e8f9; font-size: 1rem; font-weight: 700; }
.model-row-primary td:first-child { border-left: 3px solid #6366f1; }
.model-row-warning td:first-child { border-left: 3px solid #f97316; }
.model-row-success td:first-child { border-left: 3px solid #22c55e; }

/* ===== ABOUT: DANGER LEGEND ===== */
.danger-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.dl-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 9px; padding: 11px 16px; font-size: 0.88rem; flex: 1; min-width: 220px;
}
.dl-item.critical { border-color: rgba(239,68,68,0.35); }
.dl-item.high { border-color: rgba(249,115,22,0.35); }
.dl-item.medium { border-color: rgba(234,179,8,0.35); }
.dl-item.low { border-color: rgba(34,197,94,0.35); }

.classes-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.class-detail-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left-width: 4px; border-radius: var(--radius); padding: 20px;
}
.danger-border-critical { border-left-color: var(--danger-c) !important; }
.danger-border-high { border-left-color: var(--danger-h) !important; }
.danger-border-medium { border-left-color: var(--danger-m) !important; }
.danger-border-low { border-left-color: var(--danger-l) !important; }
.cdc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cdc-icon { font-size: 2rem; }
.cdc-name { font-weight: 700; color: #fff; font-size: 1rem; }
.cdc-uz { color: var(--text-muted); font-size: 0.82rem; }
.cdc-count { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 9px; }
.cdc-bar { height: 5px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.cdc-fill { height: 100%; border-radius: 4px; max-width: 100%; transition: width 0.8s; }
.danger-bg-critical { background: var(--danger-c); }
.danger-bg-high { background: var(--danger-h); }
.danger-bg-medium { background: var(--danger-m); }
.danger-bg-low { background: var(--danger-l); }

/* ===== TECH GRID ===== */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tech-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 28px; transition: all 0.2s;
}
.tech-card:hover { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.3); }
.tech-icon { font-size: 2.2rem; margin-bottom: 15px; }
.tech-card h3 { font-weight: 700; color: #fff; margin-bottom: 10px; }
.tech-card p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.6; }

/* ===== EXAMPLES ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 18px; border-radius: 50px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-size: 0.86rem; font-weight: 600; transition: all 0.18s; font-family: var(--font);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; margin-bottom: 48px; }
.example-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all 0.2s;
}
.example-card:hover { transform: translateY(-5px); border-color: rgba(99,102,241,0.4); box-shadow: var(--shadow); }
.example-img-wrap { position: relative; background: #0d0d1a; }
.example-svg { width: 100%; display: block; }
.risk-overlay {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px;
}
.risk-critical { background: rgba(239,68,68,0.9); color: #fff; }
.risk-high { background: rgba(249,115,22,0.9); color: #fff; }
.risk-medium { background: rgba(234,179,8,0.9); color: #000; }
.risk-low { background: rgba(34,197,94,0.9); color: #fff; }
.example-info { padding: 22px; }
.example-info h3 { font-weight: 700; color: #fff; margin-bottom: 16px; font-size: 1rem; }
.detection-list { margin-bottom: 16px; }
.detection-item { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.det-name { font-size: 0.85rem; font-weight: 600; color: #fff; width: 100px; flex-shrink: 0; }
.conf-bar { flex: 1; height: 7px; background: rgba(255,255,255,0.08); border-radius: 50px; overflow: hidden; }
.conf-fill { height: 100%; border-radius: 50px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.det-conf { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); width: 44px; text-align: right; }
.example-desc { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.example-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem; font-weight: 600;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary-light); padding: 3px 10px; border-radius: 50px;
}
.try-cta {
  text-align: center; padding: 56px 24px;
  background: var(--bg-card); border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}
.try-cta h3 { color: #fff; margin-bottom: 22px; font-size: 1.5rem; font-weight: 700; }

/* ===== RESULTS PAGE ===== */
.results-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-bottom: 44px; }
.res-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; position: relative;
  transition: all 0.2s;
}
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.res-yolo8 { border-top: 3px solid #6366f1; }
.res-yolo11 { border-top: 3px solid #f97316; }
.res-yolo26 { border-top: 3px solid #22c55e; }
.best-model { box-shadow: 0 0 36px rgba(34,197,94,0.18); }
.rc-best-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #22c55e; color: #fff; font-size: 0.73rem; font-weight: 800;
  padding: 5px 16px; border-radius: 50px; white-space: nowrap; letter-spacing: 0.3px;
}
.rc-model { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 20px; }
.rc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.rcm { display: flex; flex-direction: column; gap: 3px; }
.rcm span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.rcm strong { font-size: 1.1rem; color: #fff; font-weight: 700; }
.rc-bar { height: 6px; background: rgba(255,255,255,0.07); border-radius: 50px; overflow: hidden; margin-bottom: 13px; }
.rc-fill { height: 100%; background: #6366f1; border-radius: 50px; transition: width 0.8s; }
.res-yolo11 .rc-fill { background: #f97316; }
.res-yolo26 .rc-fill { background: #22c55e; }
.rc-tag { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

.model-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.mtab {
  padding: 9px 22px; border-radius: 9px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-weight: 600; font-size: 0.88rem; transition: all 0.18s; font-family: var(--font);
}
.mtab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.mini-bar {
  display: inline-block; width: 80px; height: 7px;
  background: rgba(255,255,255,0.08); border-radius: 50px;
  vertical-align: middle; overflow: hidden; margin-right: 7px;
}
.mini-fill { height: 100%; border-radius: 50px; transition: width 0.5s; }
.fill-great { background: #22c55e; }
.fill-good { background: #f97316; }
.fill-low { background: #ef4444; }
.mini-val { font-size: 0.82rem; font-weight: 700; color: var(--text); }

.misty-results {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.misty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-bottom: 18px; }
.misty-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px; position: relative;
}
.best-misty { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.04); }
.best-badge {
  background: #22c55e; color: #fff; font-size: 0.7rem; font-weight: 800;
  padding: 4px 12px; border-radius: 50px; position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
}
.misty-card h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; text-align: center; }
.lux-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.lux-bar > span:first-child { width: 64px; font-size: 0.8rem; color: var(--text-muted); }
.lb-fill { flex: 1; height: 10px; background: #6366f1; border-radius: 50px; transition: width 0.8s; }
.lb-fill.warn { background: #f97316; }
.lb-fill.best { background: #22c55e; }
.lux-bar > span:last-child { width: 42px; text-align: right; font-size: 0.82rem; font-weight: 700; color: #fff; }
.misty-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ===== DEMO PAGE ===== */
.demo-layout { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.upload-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px;
}
.upload-tabs { display: flex; border-bottom: 1px solid var(--border); }
.utab {
  flex: 1; padding: 16px; background: transparent; border: none;
  color: var(--text-muted); font-weight: 600; cursor: pointer;
  font-size: 0.9rem; transition: all 0.18s; font-family: var(--font);
  border-bottom: 2px solid transparent;
}
.utab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(99,102,241,0.06); }
.upload-zone { padding: 24px; }
.drop-area {
  border: 2px dashed var(--border); border-radius: 13px;
  padding: 40px 24px; text-align: center; transition: all 0.2s; cursor: pointer;
}
.drop-area:hover, .drop-area.drag-over { border-color: var(--primary); background: rgba(99,102,241,0.05); }
.drop-icon { font-size: 3.2rem; margin-bottom: 14px; }
.drop-area h3 { color: #fff; font-size: 1.05rem; margin-bottom: 9px; font-weight: 700; }
.drop-area p { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 5px; }
.upload-hint { font-size: 0.78rem !important; color: #4b5568 !important; }

.preview-area { text-align: center; }
.preview-area img {
  width: 100%; max-height: 300px; object-fit: contain;
  border-radius: 11px; border: 1px solid var(--border); margin-bottom: 12px;
}
.video-preview video { width: 100%; border-radius: 11px; border: 1px solid var(--border); margin-bottom: 12px; }
#videoInfo { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }

.results-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; min-height: 500px;
}

/* Loading */
.loading-state { text-align: center; padding: 80px 20px; }
.spinner {
  width: 52px; height: 52px;
  border: 4px solid rgba(99,102,241,0.15);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 0 auto 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { color: var(--text-muted); font-size: 1rem; margin-bottom: 24px; }
.loading-bar { width: 220px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.loading-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(400%)} }

/* Idle */
.idle-state { text-align: center; padding: 70px 20px; }
.idle-icon { font-size: 4.5rem; margin-bottom: 22px; }
.idle-state h3 { color: #fff; margin-bottom: 13px; font-size: 1.25rem; font-weight: 700; }
.idle-state p { color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }
.idle-steps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.is-step {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 16px; font-size: 0.84rem; color: var(--text-muted);
}
.is-step span {
  width: 24px; height: 24px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Risk banner */
.risk-banner { margin-bottom: 22px; }
.risk-banner-inner {
  display: flex; align-items: center; gap: 16px;
  border: 2px solid; border-radius: 13px; padding: 16px 22px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.risk-icon { font-size: 1.9rem; }
.risk-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.risk-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }
.risk-count { margin-left: auto; font-size: 1.6rem; font-weight: 800; color: #fff; flex-shrink: 0; }

/* Comparison */
.comparison-wrapper {
  display: grid; grid-template-columns: 1fr 4px 1fr;
  gap: 14px; margin-bottom: 26px; align-items: start;
}
.comp-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 9px; }
.comp-pane img { width: 100%; border-radius: 11px; border: 1px solid var(--border); }
.comp-divider { background: var(--border); border-radius: 4px; margin-top: 28px; }

/* Detection list */
.det-list-section { margin-bottom: 22px; }
.det-list-section h4 { color: #fff; margin-bottom: 14px; font-size: 0.92rem; font-weight: 700; }
.det-item {
  background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  border-radius: 11px; padding: 15px 17px; margin-bottom: 10px;
  animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn { from{opacity:0;transform:translateX(-10px)} to{opacity:1;transform:translateX(0)} }
.det-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.det-name { font-weight: 700; color: #fff; font-size: 0.93rem; }
.det-name small { color: var(--text-muted); font-weight: 400; }
.det-danger { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.3px; }
.conf-wrap { display: flex; align-items: center; gap: 10px; }
.conf-track { flex: 1; height: 9px; background: rgba(255,255,255,0.07); border-radius: 50px; overflow: hidden; }
.conf-fill { height: 100%; border-radius: 50px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.conf-num { font-size: 0.88rem; font-weight: 700; color: #fff; width: 46px; text-align: right; }
.no-det { color: var(--text-muted); font-style: italic; text-align: center; padding: 24px; }

/* Stats & summary */
.result-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.rs-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px; font-size: 0.8rem; color: var(--text-muted);
}
.demo-tag { background: rgba(99,102,241,0.1); color: var(--primary-light); border-color: rgba(99,102,241,0.2); }
.result-summary { margin-bottom: 22px; }
.summary-box { border: 2px solid; border-radius: 11px; padding: 15px 18px; font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: #06060f; border-top: 1px solid var(--border); padding: 64px 28px 28px; }
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; margin-bottom: 44px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}
.footer-logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.footer-brand p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.75; }
.footer-links h4, .footer-stats h4 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; font-weight: 700; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 9px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.86rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.85rem; color: var(--text-muted); }
.footer-stat span { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) { .demo-layout { grid-template-columns: 1fr; } .upload-panel { position: static; } }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(10,10,20,0.98); flex-direction: column;
    padding: 18px 24px 24px; border-bottom: 1px solid var(--border); gap: 2px;
  }
  .nav-links.open { display: flex; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
  .hero-metrics { flex-wrap: wrap; gap: 24px 0; padding: 20px 20px; }
  .metric-divider { display: none; }
  .comparison-wrapper { grid-template-columns: 1fr; }
  .comp-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .examples-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .hero { padding: 60px 20px; min-height: auto; padding-top: 80px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; letter-spacing: -1px; }
  .results-cards { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.8rem; }
}
