@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  --bg-primary: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3a;
  --astro-orange: #FF8C00;
  --astro-orange-dim: rgba(255,140,0,.15);
  --astro-red: #B22222;
  --astro-red-dim: rgba(178,34,34,.15);
  --astro-green: #22c55e;
  --astro-green-dim: rgba(34,197,94,.12);
  --astro-yellow: #eab308;
  --astro-yellow-dim: rgba(234,179,8,.12);
  --astro-blue: #3b82f6;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a82;
  --border: rgba(255,255,255,.06);
  --glow-orange: 0 0 30px rgba(255,140,0,.15);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
.report-header {
  position: relative;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #0a0a1a 100%);
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.report-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/header-bg.png') center/cover no-repeat;
  opacity: .35;
}
.header-content { position: relative; z-index: 2; }
.header-logo {
  height: 48px; width: auto; margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  border-radius: 8px;
}
.header-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--astro-orange-dim);
  color: var(--astro-orange);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
  border: 1px solid rgba(255,140,0,.25);
}
.header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--astro-orange) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.header-subtitle { font-size: 16px; color: var(--text-secondary); max-width: 600px; }
.header-meta {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.meta-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ---- NAV ---- */
.report-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,26,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav-inner {
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: block; padding: 14px 20px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-muted); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--astro-orange);
  border-bottom-color: var(--astro-orange);
}

/* ---- SECTIONS ---- */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.section-title .icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--astro-orange-dim);
  flex-shrink: 0;
}
.section-title .icon svg { width: 18px; height: 18px; stroke: var(--astro-orange); fill: none; stroke-width: 2; }

/* ---- KPI CARDS ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 36px; }
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--glow-orange); }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.kpi-value { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--text-primary); }
.kpi-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.kpi-card.highlight { border-color: rgba(255,140,0,.3); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,140,0,.08) 100%); }

/* ---- TABLES ---- */
.table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
thead { background: rgba(255,255,255,.03); }
th { padding: 12px 16px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-champion { background: var(--astro-orange-dim); color: var(--astro-orange); }
.badge-good { background: var(--astro-green-dim); color: var(--astro-green); }
.badge-monitor { background: var(--astro-yellow-dim); color: var(--astro-yellow); }
.badge-pause { background: var(--astro-red-dim); color: var(--astro-red); }
.val-highlight { color: var(--astro-orange); font-weight: 700; }
.val-green { color: var(--astro-green); font-weight: 600; }
.val-red { color: #ef4444; font-weight: 600; }
.col-leads, .col-cpr { background: rgba(255,140,0,.07); font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 14px; }
th.col-leads, th.col-cpr { background: rgba(255,140,0,.15); color: var(--astro-orange); font-size: 10px; font-family: 'Inter', sans-serif; }
.col-leads { border-left: 2px solid rgba(255,140,0,.3); }
.col-cpr { border-right: 2px solid rgba(255,140,0,.3); }

/* ---- FUNNEL ---- */
.funnel-img { max-width: 400px; margin: 0 auto 32px; display: block; border-radius: 12px; }

/* ---- CREATIVE CARDS ---- */
.creative-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.creative-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform .2s;
}
.creative-card:hover { transform: translateY(-2px); }
.creative-card.champion { border-color: rgba(255,140,0,.4); background: linear-gradient(135deg, var(--bg-card), rgba(255,140,0,.06)); }
.creative-name { font-family: 'Space Grotesk'; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.creative-type { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.creative-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.creative-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.creative-stat-value { font-size: 18px; font-weight: 700; font-family: 'Space Grotesk'; }
.creative-reason { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ---- GLOSSARY ---- */
.glossary-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 12px; }
.glossary-term { font-weight: 700; color: var(--astro-orange); margin-bottom: 4px; font-size: 14px; }
.glossary-def { font-size: 13px; color: var(--text-secondary); }

/* ---- CHECKLIST ---- */
.checklist { list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.checklist li:last-child { border-bottom: none; }
.check-icon { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-urgent { background: var(--astro-red-dim); }
.check-urgent svg { stroke: var(--astro-red); }
.check-important { background: var(--astro-yellow-dim); }
.check-important svg { stroke: var(--astro-yellow); }
.check-creative { background: var(--astro-green-dim); }
.check-creative svg { stroke: var(--astro-green); }

/* ---- ALERT BOXES ---- */
.alert { border-radius: 12px; padding: 20px; margin-bottom: 20px; border-left: 4px solid; }
.alert-warning { background: var(--astro-red-dim); border-color: var(--astro-red); }
.alert-info { background: rgba(59,130,246,.1); border-color: var(--astro-blue); }
.alert-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.alert-warning .alert-title { color: var(--astro-red); }
.alert-info .alert-title { color: var(--astro-blue); }
.alert-text { font-size: 13px; color: var(--text-secondary); }

/* ---- FOOTER ---- */
.report-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.footer-astro-logo { height: 32px; width: auto; border-radius: 6px; opacity: .7; }
.footer-logo { font-family: 'Space Grotesk'; font-size: 14px; font-weight: 700; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.footer-text { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---- RESPONSIVE: TABLET ---- */
@media (max-width: 768px) {
  .report-header { padding: 40px 0 32px; }
  .header-logo { height: 40px; }
  .header-title { font-size: 28px; }
  .header-subtitle { font-size: 14px; }
  .header-meta { gap: 12px; }
  .meta-item { min-width: 45%; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-value { font-size: 24px; }
  .creative-grid { grid-template-columns: 1fr; }
  .nav-link { padding: 12px 14px; font-size: 11px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 20px; }
  .funnel-img { max-width: 280px; }
  .glossary-item { padding: 16px; }
  .alert { padding: 16px; }
  table { font-size: 12px; }
  th, td { padding: 10px 12px; }
}

/* ---- RESPONSIVE: MOBILE ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .report-header { padding: 32px 0 24px; }
  .header-logo { height: 36px; margin-bottom: 16px; }
  .header-title { font-size: 24px; }
  .header-subtitle { font-size: 13px; }
  .header-badge { font-size: 10px; padding: 5px 10px; }
  .header-meta { gap: 8px; }
  .meta-item { min-width: 100%; flex-direction: row; gap: 8px; align-items: center; }
  .meta-label { font-size: 9px; min-width: 80px; }
  .meta-value { font-size: 13px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 16px; border-radius: 10px; }
  .kpi-value { font-size: 22px; }
  .kpi-label { font-size: 9px; margin-bottom: 4px; }
  .kpi-sub { font-size: 11px; }
  .section { padding: 28px 0; }
  .section-title { font-size: 18px; margin-bottom: 20px; }
  .section-title .icon { width: 30px; height: 30px; }
  .section-title .icon svg { width: 14px; height: 14px; }
  .creative-grid { grid-template-columns: 1fr; gap: 14px; }
  .creative-card { padding: 18px; }
  .creative-name { font-size: 14px; }
  .creative-stat-value { font-size: 16px; }
  .funnel-img { max-width: 240px; }
  .glossary-item { padding: 14px; margin-bottom: 8px; border-radius: 10px; }
  .glossary-term { font-size: 13px; }
  .glossary-def { font-size: 12px; }
  .checklist li { font-size: 13px; gap: 8px; }
  .alert { padding: 14px; border-radius: 10px; }
  .alert-title { font-size: 13px; }
  .alert-text { font-size: 12px; }
  .nav-link { padding: 10px 12px; font-size: 10px; letter-spacing: .5px; }
  .table-wrapper { border-radius: 10px; }
  table { font-size: 11px; min-width: 600px; }
  th, td { padding: 8px 10px; }
  .col-leads, .col-cpr { font-size: 12px; }
  .footer-astro-logo { height: 24px; }
  .footer-logo { font-size: 12px; }
  .footer-text { font-size: 11px; }
  .report-footer { padding: 28px 0; }
}
