
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:           #F5F5F7;
  --surface:      #FFFFFF;
  --surface2:     #F0F0F3;
  --text:         #1A1A2E;
  --text2:        #6B7280;
  --text3:        #9CA3AF;
  --accent:       #7C3AED;
  --accent-sub:   rgba(124,58,237,0.08);
  --accent-border:rgba(124,58,237,0.25);
  --green:        #10B981;
  --green-bg:     rgba(16,185,129,0.08);
  --red:          #EF4444;
  --red-bg:       rgba(239,68,68,0.06);
  --amber:        #F59E0B;
  --amber-bg:     rgba(245,158,11,0.08);
  --blue:         #3B82F6;
  --border:       #E5E7EB;
  --border2:      #D1D5DB;
  --radius:       10px;
  --radius-lg:    14px;
  --shadow:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg:    0 4px 16px rgba(0,0,0,0.08);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:         'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 300;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.site-logo { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; text-decoration: none; }
.site-logo span { color: var(--text2); font-weight: 400; font-size: 16px; }
.header-search {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 7px 14px;
  gap: 6px;
  flex: 1;
  max-width: 260px;
  margin: 0 12px;
  transition: border-color 200ms;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; width: 100%;
}
.header-search input::placeholder { color: var(--text3); }

.breadcrumb {
  font-size: 13px; color: var(--text3);
  padding: 12px 20px 0;
  display: flex; align-items: center; gap: 5px;
}
.breadcrumb a { color: var(--text2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.report-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 20px 0;
}
.hero-domain-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.favicon-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-sub); border: 2px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.report-domain { font-size: 26px; font-weight: 800; color: var(--text); }
.domain-meta { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.domain-meta strong { color: var(--text); font-weight: 600; }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; border: 1px solid;
}
.badge.green { color: #059669; border-color: rgba(5,150,105,0.3); background: var(--green-bg); }
.badge.red   { color: var(--red); border-color: rgba(239,68,68,0.2); background: var(--red-bg); }
.badge.amber { color: #D97706; border-color: rgba(217,119,6,0.25); background: var(--amber-bg); }
.badge.purple{ color: var(--accent); border-color: var(--accent-border); background: var(--accent-sub); }
.badge.gray  { color: var(--text2); border-color: var(--border); background: var(--surface2); }

.section-nav {
  position: sticky;
  top: 56px;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-nav::-webkit-scrollbar { display: none; }
.nav-pills {
  display: flex; gap: 0; min-width: max-content; padding: 0 16px;
}
.nav-pill {
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: var(--text2); white-space: nowrap;
  border-bottom: 3px solid transparent;
  cursor: pointer; transition: all 150ms; user-select: none;
}
.nav-pill:hover { color: var(--text); }
.nav-pill.active { color: var(--accent); border-bottom-color: var(--accent); }

.content { max-width: 900px; margin: 0 auto; padding: 0 16px; }

.section-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 16px 0;
  overflow: hidden;
}
.section-header { padding: 20px 20px 0; }
.section-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.section-title .domain-prefix { color: var(--accent); font-weight: 800; }
.section-desc {
  font-size: 13px; color: var(--text2); line-height: 1.5;
  margin-bottom: 16px;
}
.section-body { padding: 0 20px 20px; }

.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 16px;
}
@media (min-width: 600px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-value {
  font-size: 28px; font-weight: 800; line-height: 1.1;
  color: var(--text);
}
.stat-value.green { color: var(--green); }
.stat-value.amber { color: var(--amber); }
.stat-value.red   { color: var(--red); }
.stat-value.accent { color: var(--accent); }
.stat-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text2); margin-top: 6px;
}
.stat-sub {
  font-size: 12px; color: var(--text3); margin-top: 3px;
  display: flex; align-items: center; gap: 4px;
}
.stat-change {
  font-size: 11px; font-weight: 700; padding: 1px 6px;
  border-radius: 4px;
}
.stat-change.up { color: #059669; background: var(--green-bg); }
.stat-change.down { color: var(--red); background: var(--red-bg); }

.ai-box {
  background: linear-gradient(135deg, var(--accent-sub), rgba(124,58,237,0.03));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.ai-box-header {
  font-size: 12px; font-weight: 700; color: var(--accent);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ai-box p {
  font-size: 14px; line-height: 1.7; color: var(--text);
}
.ai-box p strong { color: var(--accent); font-weight: 600; }

.data-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; gap: 12px;
}
.data-row:last-child { border-bottom: none; }
.data-key { color: var(--text2); }
.data-val { color: var(--text); text-align: right; font-weight: 600; }
.data-val.mono, .mono { font-family: var(--mono); font-size: 13px; }

.score-bar-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.score-bar-row:last-child { border-bottom: none; }
.score-bar-label { font-size: 14px; color: var(--text); flex: 1; }
.score-bar-track {
  width: 100px; height: 6px; background: var(--surface2);
  border-radius: 3px; overflow: hidden;
}
.score-bar-fill { height: 100%; border-radius: 3px; }
.score-bar-num { font-size: 13px; font-weight: 700; width: 40px; text-align: right; }

.ring-container { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.ring-wrap { text-align: center; }
.ring-label { font-size: 12px; color: var(--text2); margin-top: 6px; font-weight: 600; }
.ring { position: relative; width: 90px; height: 90px; }
.ring svg { transform: rotate(-90deg); }
.ring-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 22px; font-weight: 800;
}

.chip-group-title {
  font-size: 12px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 16px 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 6px 12px;
  border-radius: 8px; background: var(--surface2);
  border: 1px solid var(--border); color: var(--text);
  transition: border-color 150ms;
}
.chip:hover { border-color: var(--accent); }
.chip .conf { font-size: 11px; color: var(--green); font-weight: 700; }
.chip .ver { font-size: 11px; color: var(--text3); }

.bl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bl-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--text); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.clean { background: var(--green); }
.dot.flagged { background: var(--red); }

.info-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 10px; display: flex; align-items: flex-start; gap: 14px;
}
.info-card.positive { border-color: rgba(16,185,129,0.3); background: var(--green-bg); }
.info-card .info-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.info-card .info-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.info-card .info-desc { font-size: 13px; color: var(--text2); line-height: 1.5; }

.cta-banner {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 20px 0;
  text-align: center;
  color: white;
}
.cta-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cta-banner p { font-size: 13px; opacity: 0.85; margin-bottom: 14px; }
.cta-btn {
  display: inline-block; background: white; color: var(--accent);
  font-weight: 700; font-size: 14px; padding: 10px 24px;
  border-radius: 24px; text-decoration: none;
  transition: transform 100ms;
}
.cta-btn:hover { transform: scale(1.03); }

.related-section { margin: 20px 0; padding: 0 4px; }
.related-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.related-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.related-link {
  font-size: 13px; color: var(--accent); background: var(--accent-sub);
  border: 1px solid var(--accent-border); padding: 6px 14px;
  border-radius: 20px; text-decoration: none; font-weight: 500;
  transition: background 150ms;
}
.related-link:hover { background: rgba(124,58,237,0.15); }

.report-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  font-size: 13px; color: var(--text2);
  text-align: center; line-height: 1.8;
  margin-top: 20px;
}
.report-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

.scroll-top {
  position: fixed; bottom: 24px; right: 16px;
  background: var(--accent); color: white;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow-lg); z-index: 250;
  opacity: 0; pointer-events: none; transition: opacity 200ms;
  border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 420px) {
  .report-domain { font-size: 22px; }
  .stat-value { font-size: 24px; }
  .section-title { font-size: 16px; }
}
