/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  /* Base */
  --bg:          #0a0c10;
  --bg-1:        #0d1117;
  --bg-2:        #161b26;
  --bg-3:        #1c2333;
  --bg-4:        #222d3d;

  /* Borders */
  --b0: rgba(255,255,255,.03);
  --b1: rgba(255,255,255,.06);
  --b2: rgba(255,255,255,.10);
  --b3: rgba(255,255,255,.16);

  /* Text */
  --t0: #f1f5ff;
  --t1: #8b98b8;
  --t2: #4a5568;
  --t3: #2d3748;

  /* Accent - electric teal */
  --accent:      #00d4aa;
  --accent-dim:  rgba(0,212,170,.12);
  --accent-glow: rgba(0,212,170,.25);

  /* Status */
  --pass:   #22c55e; --pass-bg: rgba(34,197,94,.09);  --pass-b: rgba(34,197,94,.22);
  --warn:   #f59e0b; --warn-bg: rgba(245,158,11,.09);  --warn-b: rgba(245,158,11,.22);
  --fail:   #ef4444; --fail-bg: rgba(239,68,68,.09);   --fail-b: rgba(239,68,68,.22);
  --info:   #60a5fa; --info-bg: rgba(96,165,250,.09);  --info-b: rgba(96,165,250,.22);

  /* Fonts */
  --sans: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Radius */
  --r1: 6px; --r2: 10px; --r3: 14px; --r4: 20px; --r5: 28px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);

  /* Contentika brand */
  --ctk-orange:     #FF6B2B;
  --ctk-orange-dim: rgba(255,107,43,.12);
  --ctk-orange-glow:rgba(255,107,43,.28);
  --ctk-dark:       #0f0d0c;
}


/* =====================================================
   RESET & BASE
===================================================== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--b3); }


/* =====================================================
   VIEWS
===================================================== */
.view { display: none; min-height: 100vh; }
.view.active { display: block; }


/* =====================================================
   LANDING VIEW
===================================================== */
#vLanding.active { display: flex; flex-direction: column; }

/* Noise texture overlay */
#vLanding::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Gradient blobs */
.blob {
  position: fixed; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; animation: blobDrift 20s ease-in-out infinite;
}
.blob-a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,212,170,.08), transparent 70%);
  top: -200px; right: -100px;
}
.blob-b {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.07), transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: -10s;
}
@keyframes blobDrift {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(40px,-30px); }
  66% { transform: translate(-30px,20px); }
}

/* Grid background */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--b0) 1px, transparent 1px),
    linear-gradient(90deg, var(--b0) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000 20%, transparent 100%);
}


/* =====================================================
   NAV (hidden when site-header shown)
===================================================== */
.nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--b0);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; color: var(--t0);
}
.logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #000;
  box-shadow: 0 0 20px rgba(0,212,170,.3);
}
.nav-badge {
  font-family: var(--mono); font-size: .65rem; color: var(--t2);
  border: 1px solid var(--b1); border-radius: 40px; padding: 3px 10px;
  letter-spacing: .04em;
}
#vLanding .nav { display: none; }


/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative; z-index: 5;
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px 80px; text-align: center;
  max-width: 860px; margin: 0 auto; width: 100%;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  border-radius: 40px; padding: 5px 14px;
  font-family: var(--mono); font-size: .68rem; color: var(--accent);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 32px;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: chipPulse 2.2s ease-in-out infinite;
}
@keyframes chipPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }

.hero-h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -.04em;
  color: var(--t0); margin-bottom: 22px;
}
.h1-accent {
  background: linear-gradient(90deg, var(--accent) 0%, #6ee7f7 50%, #818cf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--t1); max-width: 520px;
  line-height: 1.7; margin-bottom: 48px;
}


/* =====================================================
   SEARCH BOX
===================================================== */
.search-box {
  width: 100%; max-width: 660px; margin-bottom: 16px;
  background: var(--bg-2);
  border: 1.5px solid var(--b2); border-radius: var(--r5);
  display: flex; align-items: stretch; overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,.1), 0 0 40px rgba(0,212,170,.08);
}
.sb-prefix {
  display: flex; align-items: center; gap: 6px;
  padding: 0 2px 0 18px;
  font-family: var(--mono); font-size: .8rem; color: var(--t2);
  border-right: 1px solid var(--b1); white-space: nowrap; flex-shrink: 0;
}
.sb-prefix svg { color: var(--t2); }
.sb-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 17px 14px;
  font-family: var(--mono); font-size: .9rem; color: var(--t0); min-width: 0;
}
.sb-input::placeholder { color: var(--t2); }
.sb-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0a0c10;
  border: none; padding: 0 26px;
  font-size: .9rem; font-weight: 700; letter-spacing: -.01em;
  border-radius: 0 calc(var(--r5) - 1.5px) calc(var(--r5) - 1.5px) 0;
  transition: background .15s, transform .1s; white-space: nowrap;
}
.sb-btn:hover { background: #00efc0; }
.sb-btn:active { transform: scale(.97); }
.sb-btn:disabled { opacity: .5; cursor: not-allowed; }
.sb-btn svg { transition: transform .2s; }
.sb-btn:hover svg { transform: translateX(3px); }
.sb-btn.loading svg { animation: btnSpin .7s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

.search-hint {
  font-family: var(--mono); font-size: .72rem; color: var(--fail);
  min-height: 18px; margin-bottom: 28px;
}


/* =====================================================
   EXAMPLES
===================================================== */
.examples {
  display: flex; align-items: center; gap: 8px; margin-bottom: 52px;
  flex-wrap: wrap; justify-content: center;
}
.ex-label { font-family: var(--mono); font-size: .7rem; color: var(--t2); }
.ex-btn {
  font-family: var(--mono); font-size: .7rem;
  color: var(--t1); background: var(--bg-2);
  border: 1px solid var(--b1); border-radius: 40px; padding: 4px 12px;
  transition: all .15s;
}
.ex-btn:hover { color: var(--accent); border-color: var(--accent-glow); background: var(--accent-dim); }


/* =====================================================
   FEATURES STRIP
===================================================== */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  width: 100%; max-width: 860px;
}
.feat {
  background: var(--bg-1); border: 1px solid var(--b1); border-radius: var(--r3);
  padding: 16px; text-align: left;
  transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--b2); transform: translateY(-2px); }
.feat-icon {
  width: 32px; height: 32px; border-radius: var(--r1);
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 10px;
}
.feat-title { font-size: .8rem; font-weight: 600; color: var(--t0); margin-bottom: 4px; letter-spacing: -.01em; }
.feat-desc { font-size: .72rem; color: var(--t2); line-height: 1.5; }


/* =====================================================
   SCANNING VIEW
===================================================== */
#vScanning.active {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px;
}
.scan-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  max-width: 420px; width: 100%;
}

/* Hex scanner animation */
.hex-scanner {
  position: relative; width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.hex-svg {
  position: absolute; inset: 0;
  animation: hexRotate 3s linear infinite;
}
.hex-svg-rev {
  position: absolute; inset: 10px;
  animation: hexRotate 4s linear infinite reverse;
}
@keyframes hexRotate { to { transform: rotate(360deg); } }
.hex-inner { position: relative; z-index: 2; text-align: center; }
.hex-pct {
  font-family: var(--mono); font-size: 2rem; font-weight: 500;
  color: var(--t0); line-height: 1;
}
.hex-label { font-family: var(--mono); font-size: .65rem; color: var(--t2); margin-top: 4px; letter-spacing: .06em; }

.scan-info { width: 100%; text-align: center; }
.scan-url {
  display: inline-block;
  font-family: var(--mono); font-size: .78rem; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  border-radius: 40px; padding: 5px 16px; margin-bottom: 18px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scan-bar-wrap {
  height: 2px; background: var(--bg-3); border-radius: 9px; overflow: hidden; margin-bottom: 10px;
}
.scan-bar {
  height: 100%; background: linear-gradient(90deg, var(--accent), #6ee7f7);
  border-radius: 9px; width: 0%;
  transition: width .4s var(--ease);
  box-shadow: 0 0 8px var(--accent);
}
.scan-step-text {
  font-family: var(--mono); font-size: .75rem; color: var(--t1); margin-bottom: 22px;
}
.scan-steps { display: flex; flex-direction: column; gap: 5px; text-align: left; width: 100%; }
.ss-row {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .7rem; color: var(--t2);
  padding: 3px 0; transition: color .25s;
}
.ss-row.active { color: var(--accent); }
.ss-row.done { color: var(--pass); }
.ss-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.ss-row.active .ss-dot { box-shadow: 0 0 6px currentColor; animation: chipPulse 1s infinite; }


/* =====================================================
   RESULTS VIEW
===================================================== */
#vResults.active { display: block; }

/* TOP BAR */
.res-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 28px;
  background: rgba(10,12,16,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--b1);
}
.res-back {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-2); border: 1px solid var(--b1);
  color: var(--t1); border-radius: var(--r2); padding: 7px 13px;
  font-size: .8rem; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.res-back:hover { color: var(--t0); border-color: var(--b2); }
.res-url {
  flex: 1; font-family: var(--mono); font-size: .75rem; color: var(--accent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.res-copy-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--b1);
  color: var(--t1); border-radius: var(--r2); padding: 7px 13px;
  font-size: .8rem; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.res-copy-btn:hover { color: var(--t0); border-color: var(--b2); }
.res-copy-btn.copied { color: var(--pass); border-color: var(--pass-b); }

/* MAIN LAYOUT */
.res-layout {
  display: grid; grid-template-columns: 288px 1fr;
  min-height: calc(100vh - 57px);
}

/* -- LEFT SIDEBAR -- */
.sidebar {
  background: var(--bg-1); border-right: 1px solid var(--b1);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 57px; height: calc(100vh - 57px); overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 3px; }

/* Score card */
.score-card {
  background: var(--bg-2); border: 1px solid var(--b2); border-radius: var(--r4);
  padding: 20px; text-align: center;
  position: relative; overflow: hidden;
}
.score-card::after {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .4;
}
.sc-eyebrow {
  font-family: var(--mono); font-size: .62rem; color: var(--t2);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.sc-ring-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 14px; }
.sc-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-track { fill: none; stroke: var(--bg-3); stroke-width: 9; }
.sc-fill {
  fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 410; stroke-dashoffset: 410;
  transition: stroke-dashoffset 1.4s var(--ease), stroke .5s;
  filter: drop-shadow(0 0 8px currentColor);
}
.sc-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sc-num { font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--t0); letter-spacing: -.04em; }
.sc-of { font-family: var(--mono); font-size: .65rem; color: var(--t2); }
.sc-grade { font-size: .82rem; font-weight: 700; margin-top: 3px; }
.sc-scanned { font-family: var(--mono); font-size: .67rem; color: var(--t2); margin-top: 6px; line-height: 1.6; }

/* Quick stats */
.qstats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: var(--b1); border: 1px solid var(--b1); border-radius: var(--r3); overflow: hidden;
}
.qs { background: var(--bg-2); padding: 14px 8px; text-align: center; }
.qs-num { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.qs-label { font-family: var(--mono); font-size: .6rem; color: var(--t2); margin-top: 3px; letter-spacing: .05em; text-transform: uppercase; }
.qs.fail .qs-num { color: var(--fail); }
.qs.warn .qs-num { color: var(--warn); }
.qs.pass .qs-num { color: var(--pass); }

/* Category breakdown */
.cat-breakdown {
  background: var(--bg-2); border: 1px solid var(--b1); border-radius: var(--r3); padding: 16px;
}
.cb-title {
  font-family: var(--mono); font-size: .62rem; color: var(--t2);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
.cb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.cb-row:last-child { margin-bottom: 0; }
.cb-name { font-size: .74rem; color: var(--t1); width: 96px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-track { flex: 1; height: 4px; background: var(--bg-3); border-radius: 9px; overflow: hidden; }
.cb-bar { height: 100%; border-radius: 9px; width: 0%; transition: width 1s var(--ease); }
.cb-pct { font-family: var(--mono); font-size: .66rem; color: var(--t2); width: 28px; text-align: right; flex-shrink: 0; }

/* Page snapshot */
.page-snap {
  background: var(--bg-2); border: 1px solid var(--b1); border-radius: var(--r3); padding: 16px;
}
.ps-title { font-family: var(--mono); font-size: .62rem; color: var(--t2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.ps-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--b0); font-size: .76rem;
}
.ps-row:last-child { border-bottom: none; }
.ps-key { color: var(--t2); }
.ps-val { font-family: var(--mono); font-size: .72rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t0); }
.ps-val.good { color: var(--pass); }
.ps-val.bad { color: var(--fail); }
.ps-val.meh { color: var(--warn); }

/* -- MAIN PANEL -- */
.main-panel { background: var(--bg); padding: 20px 24px; min-height: calc(100vh - 57px); }

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  background: var(--bg-1); border: 1px solid var(--b1); border-radius: var(--r3); padding: 7px;
  flex-wrap: wrap;
}
.fb-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; }
.fb-tab {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500;
  color: var(--t2); background: transparent; border: none;
  border-radius: var(--r2); padding: 6px 12px;
  transition: all .15s; white-space: nowrap;
}
.fb-tab:hover { color: var(--t0); background: var(--bg-2); }
.fb-tab.active { background: var(--bg-2); color: var(--t0); box-shadow: 0 0 0 1px var(--b2) inset; }
.fb-tab.active.fail { color: var(--fail); box-shadow: 0 0 0 1px var(--fail-b) inset; }
.fb-tab.active.warn { color: var(--warn); box-shadow: 0 0 0 1px var(--warn-b) inset; }
.fb-tab.active.pass { color: var(--pass); box-shadow: 0 0 0 1px var(--pass-b) inset; }
.fb-badge {
  font-family: var(--mono); font-size: .6rem;
  background: var(--bg); border-radius: 40px; padding: 1px 6px;
}
.fb-search-wrap {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 6px 11px; color: var(--t2);
}
.fb-search {
  background: transparent; border: none; outline: none;
  font-family: var(--mono); font-size: .75rem; color: var(--t0);
  width: 150px;
}
.fb-search::placeholder { color: var(--t2); }

/* Audit categories */
.audit-list { display: flex; flex-direction: column; gap: 12px; }
.acat {
  background: var(--bg-1); border: 1px solid var(--b1);
  border-radius: var(--r4); overflow: hidden;
  animation: catIn .35s var(--ease) both;
}
@keyframes catIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.acat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; cursor: pointer; user-select: none;
  transition: background .12s;
}
.acat-head:hover { background: var(--bg-2); }
.acat-icon {
  width: 32px; height: 32px; border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.acat-info { flex: 1; min-width: 0; }
.acat-name { font-size: .86rem; font-weight: 600; color: var(--t0); letter-spacing: -.01em; }
.acat-sub { font-size: .71rem; color: var(--t2); margin-top: 1px; }
.acat-score { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; flex-shrink: 0; margin-right: 4px; }
.acat-chevron { color: var(--t2); font-size: .7rem; transition: transform .25s; flex-shrink: 0; }
.acat.collapsed .acat-chevron { transform: rotate(-90deg); }
.acat.collapsed .acat-body { display: none; }

/* Heading tree */
.heading-tree {
  border-top: 1px solid var(--b0);
  padding: 12px 18px 14px;
  background: rgba(0,0,0,.15);
}
.ht-title {
  font-family: var(--mono); font-size: .6rem; color: var(--t2);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 9px;
  display: flex; align-items: center; gap: 8px;
}
.ht-title::after { content: ''; flex: 1; height: 1px; background: var(--b1); }
.ht-item {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 0; font-size: .76rem; color: var(--t1);
  animation: fadeIn .3s both;
}
.ht-tag {
  font-family: var(--mono); font-size: .62rem;
  padding: 1px 6px; border-radius: 4px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-glow); flex-shrink: 0; min-width: 24px; text-align: center;
}
.ht-h2 .ht-tag { background: rgba(99,102,241,.1); color: #818cf8; border-color: rgba(99,102,241,.2); }
.ht-h3 .ht-tag { background: rgba(245,158,11,.08); color: #f59e0b; border-color: rgba(245,158,11,.2); }
.ht-h4 .ht-tag,.ht-h5 .ht-tag,.ht-h6 .ht-tag { background: var(--bg-3); color: var(--t2); border-color: var(--b1); }
.ht-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: .74rem; }
.ht-more { font-family: var(--mono); font-size: .65rem; color: var(--t2); padding-top: 4px; }

/* Check rows */
.check-row {
  display: grid; grid-template-columns: 30px 1fr auto;
  align-items: start; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--b0);
  transition: background .1s;
}
.check-row:hover { background: rgba(255,255,255,.015); }
.check-row.hidden { display: none !important; }

.cr-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.cr-icon.pass { background: var(--pass-bg); border: 1px solid var(--pass-b); color: var(--pass); }
.cr-icon.warn { background: var(--warn-bg); border: 1px solid var(--warn-b); color: var(--warn); }
.cr-icon.fail { background: var(--fail-bg); border: 1px solid var(--fail-b); color: var(--fail); }
.cr-icon.info { background: var(--info-bg); border: 1px solid var(--info-b); color: var(--info); }

.cr-body { min-width: 0; }
.cr-name { font-size: .86rem; font-weight: 600; color: var(--t0); margin-bottom: 4px; letter-spacing: -.01em; }
.cr-value {
  font-family: var(--mono); font-size: .7rem; color: var(--t1);
  margin-bottom: 5px; line-height: 1.5; word-break: break-all;
  background: var(--bg); border: 1px solid var(--b1);
  border-radius: var(--r1); padding: 4px 8px; display: inline-block; max-width: 100%;
}
.cr-rec { font-size: .79rem; color: var(--t1); line-height: 1.6; }
.cr-rec strong { color: var(--t0); font-weight: 600; }
.cr-rec code {
  font-family: var(--mono); font-size: .68rem;
  background: var(--bg-3); border: 1px solid var(--b1);
  border-radius: 4px; padding: 1px 5px; color: #7dd3fc;
}

.cr-pill {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 40px; border: 1px solid;
  white-space: nowrap; align-self: start; margin-top: 2px; flex-shrink: 0;
}
.cr-pill.pass { color: var(--pass); border-color: var(--pass-b); background: var(--pass-bg); }
.cr-pill.warn { color: var(--warn); border-color: var(--warn-b); background: var(--warn-bg); }
.cr-pill.fail { color: var(--fail); border-color: var(--fail-b); background: var(--fail-bg); }
.cr-pill.info { color: var(--info); border-color: var(--info-b); background: var(--info-bg); }


/* =====================================================
   ERROR TOAST
===================================================== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--fail-b);
  border-radius: var(--r3); padding: 12px 16px;
  font-size: .8rem; max-width: 90vw; min-width: 300px;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.toast-icon { color: var(--fail); flex-shrink: 0; }
.toast-msg { flex: 1; color: var(--t0); font-family: var(--mono); font-size: .74rem; }
.toast-close { background: none; border: none; color: var(--t2); font-size: 1rem; cursor: pointer; }
.toast-close:hover { color: var(--t0); }

/* Success toast variant */
.toast.success { border-color: var(--pass-b); }
.toast.success .toast-icon { color: var(--pass); }


/* =====================================================
   SITE HEADER
===================================================== */
.site-header {
  position: relative; z-index: 200;
  background: rgba(10,12,16,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,107,43,.18);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ctk-orange) 40%, rgba(255,107,43,.3) 60%, transparent 100%);
  opacity: .5;
}
.hdr-left { display: flex; align-items: center; gap: 18px; }
.hdr-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hdr-logo-img { height: 34px; width: auto; filter: brightness(1.05); transition: filter .2s; }
.hdr-logo-link:hover .hdr-logo-img { filter: brightness(1.2); }

.hdr-divider { width: 1px; height: 28px; background: var(--b1); }
.hdr-tool-badge {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .68rem; color: var(--ctk-orange);
  background: var(--ctk-orange-dim); border: 1px solid var(--ctk-orange-glow);
  border-radius: 40px; padding: 4px 12px;
  letter-spacing: .06em; text-transform: uppercase;
}
.hdr-tool-badge svg { flex-shrink: 0; }

.hdr-nav { display: flex; align-items: center; gap: 4px; }
.hdr-nav-link {
  font-size: .82rem; font-weight: 500; color: var(--t1);
  padding: 6px 12px; border-radius: var(--r2);
  text-decoration: none; transition: color .15s, background .15s;
}
.hdr-nav-link:hover { color: var(--t0); background: var(--bg-2); }

.hdr-cta {
  display: flex; align-items: center; gap: 7px;
  background: var(--ctk-orange); color: #fff;
  border: none; border-radius: var(--r2); padding: 8px 18px;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  transition: background .15s, transform .1s; white-space: nowrap;
  box-shadow: 0 0 20px rgba(255,107,43,.25);
}
.hdr-cta:hover { background: #ff7d45; }
.hdr-cta:active { transform: scale(.97); }

.hdr-mobile-menu { display: none; background: none; border: none; color: var(--t1); cursor: pointer; }


/* =====================================================
   MOBILE MENU OVERLAY
===================================================== */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; width: 280px; height: 100%;
  background: var(--bg-1); border-left: 1px solid var(--b1);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.mobile-nav-overlay.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-end; background: none; border: none; color: var(--t1);
  cursor: pointer; padding: 4px; margin-bottom: 12px;
}
.mobile-nav-close:hover { color: var(--t0); }
.mobile-nav-link {
  display: block; font-size: .92rem; font-weight: 500; color: var(--t1);
  padding: 10px 12px; border-radius: var(--r2);
  text-decoration: none; transition: color .15s, background .15s;
}
.mobile-nav-link:hover { color: var(--t0); background: var(--bg-2); }
.mobile-nav-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ctk-orange); color: #fff;
  border: none; border-radius: var(--r2); padding: 12px 18px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  margin-top: 12px; transition: background .15s;
}
.mobile-nav-cta:hover { background: #ff7d45; }


/* =====================================================
   SCAN HISTORY (Landing)
===================================================== */
.history-section {
  width: 100%; max-width: 660px; margin-top: 12px;
}
.history-title {
  font-family: var(--mono); font-size: .68rem; color: var(--t2);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.history-title::after { content: ''; flex: 1; height: 1px; background: var(--b1); }
.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--b1); border-radius: var(--r2);
  padding: 8px 14px; cursor: pointer;
  transition: all .15s;
}
.history-item:hover { border-color: var(--accent-glow); background: var(--accent-dim); }
.hi-score {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  min-width: 36px; text-align: center;
}
.hi-url { flex: 1; font-family: var(--mono); font-size: .74rem; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-date { font-family: var(--mono); font-size: .62rem; color: var(--t2); white-space: nowrap; }
.hi-remove {
  background: none; border: none; color: var(--t2); cursor: pointer;
  font-size: .75rem; padding: 2px 4px; border-radius: 4px;
  transition: color .15s;
  opacity: 0;
}
.history-item:hover .hi-remove { opacity: 1; }
.hi-remove:hover { color: var(--fail); }
.history-clear {
  font-family: var(--mono); font-size: .62rem; color: var(--t2);
  background: none; border: none; cursor: pointer;
  padding: 4px 0; margin-top: 4px;
  transition: color .15s;
}
.history-clear:hover { color: var(--fail); }


/* =====================================================
   SCROLL TO TOP
===================================================== */
.scroll-top-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); border: none; color: #0a0c10;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,212,170,.3);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  cursor: pointer;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.scroll-top-btn:hover { background: #00efc0; }


/* =====================================================
   WHY SEO MATTERS
===================================================== */
.why-section {
  position: relative; overflow: hidden;
  padding: 88px 48px;
  background: var(--bg-1);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
}
.why-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ctk-orange), var(--accent), transparent);
  opacity: .6;
}
.why-inner { max-width: 1100px; margin: 0 auto; }
.why-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  margin-bottom: 72px;
}
.why-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .68rem; color: var(--ctk-orange);
  background: var(--ctk-orange-dim); border: 1px solid var(--ctk-orange-glow);
  border-radius: 40px; padding: 5px 14px; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 22px;
}
.why-h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.04em;
  color: var(--t0); margin-bottom: 18px;
}
.why-h2 span {
  background: linear-gradient(90deg, var(--ctk-orange), #ff9a5c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.why-desc { font-size: .98rem; color: var(--t1); line-height: 1.72; margin-bottom: 28px; }
.why-learn-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ctk-orange); font-size: .88rem; font-weight: 600;
  text-decoration: none; transition: gap .2s;
}
.why-learn-link:hover { gap: 12px; }

.why-stats-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wstat {
  background: var(--bg-2); border: 1px solid var(--b1);
  border-radius: var(--r4); padding: 22px 20px;
  transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.wstat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: var(--r4) var(--r4) 0 0;
}
.wstat:nth-child(1)::before { background: var(--ctk-orange); }
.wstat:nth-child(2)::before { background: var(--accent); }
.wstat:nth-child(3)::before { background: #818cf8; }
.wstat:nth-child(4)::before { background: #f59e0b; }
.wstat:hover { border-color: var(--b2); transform: translateY(-3px); }
.wstat-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.wstat:nth-child(1) .wstat-num { color: var(--ctk-orange); }
.wstat:nth-child(2) .wstat-num { color: var(--accent); }
.wstat:nth-child(3) .wstat-num { color: #818cf8; }
.wstat:nth-child(4) .wstat-num { color: #f59e0b; }
.wstat-label { font-size: .78rem; color: var(--t1); line-height: 1.5; }

/* How it works cards */
.why-cards-title {
  font-size: 1.15rem; font-weight: 700; color: var(--t0);
  letter-spacing: -.02em; margin-bottom: 22px; text-align: center;
}
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wcard {
  background: var(--bg-2); border: 1px solid var(--b1);
  border-radius: var(--r4); padding: 24px 20px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.wcard:hover { border-color: var(--b2); transform: translateY(-3px); }
.wcard-num {
  font-family: var(--mono); font-size: .62rem;
  color: var(--ctk-orange); letter-spacing: .1em;
  margin-bottom: 14px; opacity: .8;
}
.wcard-icon {
  width: 38px; height: 38px; border-radius: var(--r2);
  background: var(--ctk-orange-dim); border: 1px solid var(--ctk-orange-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--ctk-orange); margin-bottom: 14px; font-size: 1.1rem;
}
.wcard-title { font-size: .88rem; font-weight: 700; color: var(--t0); letter-spacing: -.01em; margin-bottom: 8px; }
.wcard-desc { font-size: .77rem; color: var(--t2); line-height: 1.6; }
.wcard-connector {
  position: absolute; top: 50%; right: -14px; width: 14px; height: 2px;
  background: linear-gradient(90deg, var(--b2), transparent); z-index: 2;
}
.wcard:last-child .wcard-connector { display: none; }


/* =====================================================
   SITE FOOTER
===================================================== */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--b1);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ctk-orange), var(--accent), transparent);
  opacity: .4;
}
.footer-main {
  max-width: 1100px; margin: 0 auto;
  padding: 52px 48px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-logo-img { height: 30px; width: auto; margin-bottom: 14px; display: block; }
.footer-tagline { font-size: .82rem; color: var(--t2); line-height: 1.65; max-width: 220px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 34px; height: 34px; border-radius: var(--r2);
  background: var(--bg-2); border: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); text-decoration: none; transition: all .2s;
}
.footer-social:hover { color: var(--ctk-orange); border-color: var(--ctk-orange-glow); background: var(--ctk-orange-dim); }

.footer-col-title {
  font-size: .72rem; font-weight: 700; color: var(--t0);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .8rem; color: var(--t2); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--ctk-orange); }

.footer-bottom {
  border-top: 1px solid var(--b0);
  padding: 18px 48px;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-family: var(--mono); font-size: .68rem; color: var(--t2); }
.footer-copy a { color: var(--ctk-orange); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  font-family: var(--mono); font-size: .62rem; color: var(--t2);
  border: 1px solid var(--b1); border-radius: 40px; padding: 3px 10px;
}


/* =====================================================
   UTILS
===================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }


/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width: 900px) {
  .res-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 16px 20px; }
  .hero { padding: 40px 20px 60px; }
  .search-box { flex-direction: column; border-radius: var(--r3); }
  .sb-btn { padding: 14px; border-radius: 0 0 calc(var(--r3) - 1.5px) calc(var(--r3) - 1.5px); justify-content: center; }
  .sb-prefix { border-right: none; border-bottom: 1px solid var(--b1); padding: 10px 14px; }
}

@media(max-width: 1024px) {
  .why-top { grid-template-columns: 1fr; gap: 36px; }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media(max-width: 768px) {
  .site-header { padding: 0 20px; }
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-mobile-menu { display: flex; }
  .why-section { padding: 56px 20px; }
  .why-stats-col { grid-template-columns: 1fr 1fr; }
  .why-cards { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
  .footer-bottom { padding: 16px 20px; }
}

@media(max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 2.4rem; }
  .res-topbar { flex-wrap: wrap; gap: 8px; }
  .main-panel { padding: 14px; }
  .sidebar { padding: 14px; }
}

@media(max-width: 480px) {
  .why-cards { grid-template-columns: 1fr; }
  .why-stats-col { grid-template-columns: 1fr; }
}

@media print {
  .res-topbar, .filter-bar { display: none !important; }
  .res-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border: none; }
  .acat { break-inside: avoid; }
  body { background: #fff !important; color: #000 !important; }
  .scroll-top-btn { display: none !important; }
}
