/* ============================================================
   HackerScore — shared stylesheet
   Used by: index.html, login.html, about.html, apply.html
   ============================================================ */

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

:root {
  --bg-0: #0a0e1a;
  --bg-1: #0f1424;
  --bg-2: #161c30;
  --border: #232a42;
  --border-strong: #2f3853;
  --text: #ffffff;
  --text-dim: #a4acc4;
  --text-mute: #6b7391;
  --red: #ff4757;
  --red-glow: rgba(255,71,87,0.35);
  --red-soft: rgba(255,71,87,0.12);
  --green: #2ed573;
}

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; }

/* Ambient background — subtle radar pulse */
body::before {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle,
    rgba(255,71,87,0.08) 0%,
    rgba(255,71,87,0.03) 30%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -60%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -60%) scale(1.05); }
}

/* Faint grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(10,14,26,0.8);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.brand img { height: 22px; display: block; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s;
  cursor: pointer;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--red-glow);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  font-size: 14px;
  font-family: inherit;
  display: inline-block;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--red-glow);
}
.nav-signin {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
}
.nav-signin:hover {
  border-color: #4a5578;
  background: var(--bg-2);
}

/* ============ GENERIC PAGE HEADER (for sub-pages) ============ */
.page-header {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 32px;
  text-align: center;
}
.page-header .badge { margin-bottom: 24px; }
.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(22,28,48,0.5);
  backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: dotpulse 2s infinite;
}
@keyframes dotpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

em.accent { color: var(--red); font-style: normal; }

/* ============ HERO (index) ============ */
.hero-split {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.hero-copy .badge { margin-bottom: 28px; }
.hero-copy h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-copy .subtitle {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 12px;
  line-height: 1.55;
}
.hero-copy .msp-tag {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
}

.trust {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 13px;
}
.trust-num {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* ============ LOGIN CARD ============ */
.login-card {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 32px;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,71,87,0.06);
}
.login-card.static { position: static; }
.login-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.login-card-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input, .field select {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 20px;
  font-size: 12px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}
.forgot-link {
  color: var(--text-dim);
  text-decoration: none;
}
.forgot-link:hover { color: var(--text); }

.btn-primary {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px var(--red-glow);
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #ff5a68; }
.btn-primary:active { transform: scale(0.99); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 0.5px;
  margin: 22px 0;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.apply-link-box {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.apply-link-box a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}
.apply-link-box a:hover { text-decoration: underline; }

.form-note {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.5;
  text-align: center;
}

/* Standalone login page centering */
.login-page-wrap {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
  z-index: 5;
}
.login-page-wrap .login-card { width: 100%; max-width: 420px; }

/* ============ PILLARS ============ */
.pillars {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 3;
}
.pillar {
  background: rgba(22,28,48,0.4);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 40px; height: 40px;
  background: var(--red-soft);
  border: 1px solid rgba(255,71,87,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 14px;
}
.pillar-icon svg { display: block; }
.pillar-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pillar-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ============ CONTENT SECTIONS (about/apply) ============ */
.content-wrap {
  position: relative;
  z-index: 5;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 32px 64px;
}
.content-wrap h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 40px 0 14px;
}
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* FAQ accordion */
.faq-question-heading { font-size: inherit; font-weight: inherit; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(22,28,48,0.35);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .chev {
  color: var(--text-mute);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-question .chev { transform: rotate(180deg); color: var(--red); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============ APPLY PAGE SPLIT ============ */
.apply-split {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 5;
}
.apply-copy h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.apply-copy p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 460px;
}
.apply-steps { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.apply-step { display: flex; gap: 14px; align-items: flex-start; }
.apply-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--red-soft);
  border: 1px solid rgba(255,71,87,0.2);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apply-step-text { font-size: 14px; color: var(--text-dim); line-height: 1.5; padding-top: 4px; }
.apply-step-text strong { color: var(--text); font-weight: 600; }

/* CRM form card — light card matching the reference screenshot */
.crm-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  color: #10131f;
}
.crm-card h3 {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: #10131f;
  margin-bottom: 24px;
}
.crm-field { margin-bottom: 16px; }
.crm-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #10131f;
  margin-bottom: 6px;
}
.crm-field input, .crm-field select {
  width: 100%;
  border: 1px solid #d7dae2;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: #10131f;
  background: #fff;
  outline: none;
}
.crm-field input:focus, .crm-field select:focus { border-color: var(--red); }
.crm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.crm-consent {
  font-size: 11.5px;
  color: #6b7080;
  line-height: 1.5;
  margin: 4px 0 20px;
}
.crm-consent a { color: var(--red); text-decoration: none; }
.crm-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: inherit;
}
.crm-submit:hover { background: #ff5a68; }
.crm-embed-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.5;
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-mute);
  font-size: 12px;
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer .powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer .powered a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
}
.footer .powered a:hover { color: var(--red); }
.footer-links { margin-top: 8px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-mute); text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--text-dim); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .login-card { position: static; }
  .apply-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-link { display: none; }
  .hero-copy h1 { font-size: 42px; letter-spacing: -1.5px; }
  .hero-split { padding: 40px 20px 24px; }
  .pillars { grid-template-columns: 1fr; padding: 32px 20px; }
  .page-header h1 { font-size: 34px; }
  .crm-row { grid-template-columns: 1fr; }
  .apply-copy h1 { font-size: 32px; }
}

/* ============================================================
   CREATIVE HERO — animated "live scan" demo (index.html only)
   Purely illustrative; no real scans are triggered here.
   ============================================================ */
.hero-creative {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 20px;
  text-align: center;
}
.hero-creative .badge { margin: 0 auto 26px; }
.hero-creative h1 {
  font-size: 66px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-creative .subtitle {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.55;
}
.hero-creative .trust { justify-content: center; }

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.hero-cta-row .nav-cta { padding: 14px 26px; font-size: 15px; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: #4a5578; background: var(--bg-2); }

.hero-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: .3px;
  margin-bottom: 36px;
}
.hero-live-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: dotpulse 2s infinite;
}
.hero-live-tag strong { color: var(--text-dim); font-weight: 600; }

/* ---- App window (mock product UI) ---- */
.app-window {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,71,87,.06);
  overflow: hidden;
  text-align: left;
}
.app-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.app-chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-chrome .dot.r { background: #ff5f57; }
.app-chrome .dot.y { background: #febc2e; }
.app-chrome .dot.g { background: #28c840; }
.app-url {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-mute);
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: "SF Mono", Menlo, monospace;
}
.app-chrome-login {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.app-chrome-login:hover { border-color: var(--red); color: var(--text); }

.app-body { padding: 22px 24px 26px; }

.scan-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.scan-progress-label { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.scan-progress-label strong {
  color: var(--text); font-family: "SF Mono", Menlo, monospace; font-weight: 600;
}
.scan-progress-track {
  flex: 1; min-width: 160px; height: 6px; border-radius: 4px;
  background: var(--bg-0); border: 1px solid var(--border); overflow: hidden;
}
.scan-progress-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--red), #ffb020, var(--green));
  transition: width .4s linear;
}
.scan-progress-pct {
  font-size: 12px; color: var(--text-mute); font-family: "SF Mono", Menlo, monospace;
  width: 38px; text-align: right;
}

.scan-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 20px;
  align-items: stretch;
}

/* Radar */
.radar-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,14,26,0.5); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.radar { position: relative; width: 168px; height: 168px; border-radius: 50%; }
.radar-rings {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0, transparent 24px, rgba(255,71,87,.16) 25px, transparent 26px);
  border: 1px solid var(--border-strong);
}
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,71,87,.6), transparent 30%);
  animation: radarspin 3.2s linear infinite;
}
@keyframes radarspin { to { transform: rotate(360deg); } }
.radar-blip {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px var(--red); opacity: 0;
  animation: blipshow 3.2s infinite;
}
.radar-blip.b1 { top: 28%; left: 64%; animation-delay: .2s; }
.radar-blip.b2 { top: 62%; left: 28%; animation-delay: 1.1s; }
.radar-blip.b3 { top: 68%; left: 66%; animation-delay: 1.9s; }
.radar-blip.b4 { top: 22%; left: 24%; animation-delay: 2.6s; }
@keyframes blipshow {
  0% { opacity: 0; transform: scale(.3); }
  10% { opacity: 1; transform: scale(1.3); }
  25% { opacity: .85; transform: scale(1); }
  45%, 100% { opacity: 0; }
}
.radar-core {
  position: absolute; inset: 14px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: rgba(10,14,26,.55);
}
.radar-domain { font-size: 11.5px; font-weight: 600; color: var(--text); font-family: "SF Mono", Menlo, monospace; }
.radar-status { font-size: 10px; color: var(--text-mute); margin-top: 3px; }
.radar-caption { margin-top: 14px; font-size: 11px; color: var(--text-mute); text-align: center; }

/* Terminal */
.term-window {
  background: #05070d; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.term-dot { width: 8px; height: 8px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-title { margin-left: 8px; font-size: 11px; color: var(--text-mute); font-family: "SF Mono", Menlo, monospace; letter-spacing: .3px; }
.term-body {
  flex: 1; padding: 12px 14px; font-family: "SF Mono", Menlo, monospace; font-size: 11.5px; line-height: 1.75;
  color: #8fe3a3; min-height: 168px; max-height: 168px; overflow-y: auto; scrollbar-width: none;
}
.term-body::-webkit-scrollbar { display: none; }
.term-line { opacity: 0; animation: termIn .3s ease forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes termIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.term-line .tag { padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; margin-left: 6px; }
.term-line .tag.crit { background: rgba(255,71,87,.18); color: #ff6b78; }
.term-line .tag.high { background: rgba(255,160,60,.18); color: #ffb04a; }
.term-line .tag.med { background: rgba(255,210,60,.15); color: #e8d066; }
.term-line .tag.pass { background: rgba(46,213,115,.15); color: #5fe08a; }
.term-line .path { color: #7dd3fc; }

/* Gauge */
.gauge-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,14,26,0.5); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.gauge {
  position: relative; width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--red) 0deg, #ffb020 90deg, var(--green) 180deg, transparent 180deg 360deg);
}
.gauge-needle {
  position: absolute; left: 50%; bottom: 50%; width: 2px; height: 58px; background: var(--text);
  transform-origin: bottom center; transform: rotate(-90deg);
  transition: transform 1.2s cubic-bezier(.34,1.2,.64,1);
  box-shadow: 0 0 6px rgba(255,255,255,.5);
}
.gauge-value {
  position: absolute; inset: 16px; border-radius: 50%; background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-value span { font-size: 26px; font-weight: 700; color: var(--text); font-family: "SF Mono", Menlo, monospace; }
.gauge-value small { font-size: 11px; color: var(--text-mute); }
.gauge-grade { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .4px; }
.gauge-caption { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* Category chips */
.chip-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.chip {
  background: rgba(10,14,26,0.5); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; text-align: center; transition: border-color .3s, background .3s;
}
.chip-label { font-size: 9.5px; letter-spacing: .4px; color: var(--text-mute); text-transform: uppercase; margin-bottom: 6px; }
.chip-value { font-size: 16px; font-weight: 700; color: var(--text-mute); font-family: "SF Mono", Menlo, monospace; transition: color .3s; }
.chip.neg { border-color: rgba(255,71,87,.4); background: rgba(255,71,87,.07); }
.chip.neg .chip-value { color: var(--red); }
.chip.warn { border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.07); }
.chip.warn .chip-value { color: #ffb020; }
.chip.ok { border-color: rgba(46,213,115,.35); background: rgba(46,213,115,.06); }
.chip.ok .chip-value { color: var(--green); }

@media (max-width: 900px) {
  .scan-grid { grid-template-columns: 1fr; }
  .chip-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-creative h1 { font-size: 42px; letter-spacing: -1.5px; }
  .hero-creative { padding: 40px 20px 12px; }
  .app-chrome-login { display: none; }
  .app-body { padding: 18px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .radar-blip, .badge-dot, .hero-live-tag .dot { animation: none !important; }
}
