/* ===========================
   SCAMPEDE — GLOBAL STYLES
   =========================== */

:root {
  --bg: #0a0b0f;
  --bg2: #111318;
  --bg3: #181c24;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(255,82,82,0.3);

  --text: #f0f2f8;
  --text-muted: #7a8099;
  --text-dim: #4a5070;

  --red: #ff4040;
  --red-glow: rgba(255,64,64,0.15);
  --orange: #ff8c42;
  --yellow: #f7c948;
  --green: #3ddc84;
  --blue: #4a9eff;

  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 12px;
  --radius-lg: 20px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-red: 0 0 40px rgba(255,64,64,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-display); }

/* ===========================
   NAVBAR
   =========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

.nav-link-report {
  background: var(--red);
  color: white !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}
.nav-link-report:hover { opacity: 0.85; }

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,64,64,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,64,64,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,64,64,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-block;
  background: rgba(255,64,64,0.12);
  border: 1px solid rgba(255,64,64,0.25);
  color: var(--red);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.accent {
  color: var(--red);
  text-shadow: 0 0 40px rgba(255,64,64,0.5);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* SCAN BOX */
.scan-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 0.85rem;
  margin-bottom: 2rem;
  transition: border-color 0.3s;
}
.scan-box:focus-within {
  border-color: rgba(255,64,64,0.4);
  box-shadow: 0 0 0 4px rgba(255,64,64,0.05);
}

.scan-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scan-icon { font-size: 1.2rem; flex-shrink: 0; }

.scan-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0;
}
.scan-input::placeholder { color: var(--text-dim); }
.scan-input.small { font-size: 0.8rem; }

.scan-btn {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.scan-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.scan-btn:active { transform: translateY(0); }
.scan-btn.small { padding: 0.55rem 1rem; font-size: 0.82rem; }

.btn-arrow { transition: transform 0.2s; }
.scan-btn:hover .btn-arrow { transform: translateX(3px); }

.scan-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
  font-family: var(--font-mono);
}
.hint-link {
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hint-link:hover { color: var(--text); }

/* STATS */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* FLOATING CARDS */
.float-card {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}
.float-card-1 {
  top: 18%;
  left: 4%;
  animation-delay: 0s;
  border-color: rgba(255,64,64,0.2);
}
.float-card-2 {
  bottom: 22%;
  right: 5%;
  animation-delay: -3s;
  border-color: rgba(61,220,132,0.2);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.fc-icon { font-size: 1.4rem; }
.fc-title { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.fc-domain { font-family: var(--font-mono); font-size: 0.82rem; margin-top: 0.2rem; }

@media (max-width: 768px) {
  .float-card { display: none; }
}

/* ===========================
   SECTIONS
   =========================== */

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.section-title.small { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* HOW IT WORKS */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: rgba(255,64,64,0.25);
  transform: translateY(-3px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}
.step-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.step-connector {
  font-size: 1.5rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .step-connector { transform: rotate(90deg); width: 100%; text-align: center; }
}

/* LATEST SCAMS */
.latest-scams {
  padding: 6rem 2rem;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.feed-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.feed-card:hover {
  border-color: rgba(255,64,64,0.2);
  transform: translateY(-2px);
}

.feed-badge {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feed-badge.danger  { background: rgba(255,64,64,0.15); color: var(--red); }
.feed-badge.warning { background: rgba(247,201,72,0.15); color: var(--yellow); }
.feed-badge.safe    { background: rgba(61,220,132,0.15); color: var(--green); }

.feed-info { flex: 1; min-width: 0; }
.feed-domain {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-signals {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.feed-score {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.feed-score.danger  { color: var(--red); }
.feed-score.warning { color: var(--yellow); }
.feed-score.safe    { color: var(--green); }

/* SIGNALS SECTION */
.signals-section {
  padding: 6rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.signal-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  border: 1px solid;
}
.signal-pill.danger  { background: rgba(255,64,64,0.1);  border-color: rgba(255,64,64,0.25);  color: var(--red); }
.signal-pill.warning { background: rgba(247,201,72,0.1); border-color: rgba(247,201,72,0.25); color: var(--yellow); }
.signal-pill.caution { background: rgba(255,140,66,0.1); border-color: rgba(255,140,66,0.25); color: var(--orange); }

.signals-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { max-width: 500px; margin: 0 auto; }
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ===========================
   LOADING STATE
   =========================== */

.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.5rem;
  padding: 3rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 320px;
  width: 100%;
}

.load-step {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.3s;
}
.load-step.active {
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
}
.load-step.done {
  color: var(--green);
}

/* ===========================
   REPORT PAGE
   =========================== */

.report-page .hero { display: none; }
.report-main { padding: 2rem; max-width: 1100px; margin: 0 auto; }

/* VERDICT BANNER */
.verdict-banner {
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid;
}
.verdict-banner.danger {
  background: linear-gradient(135deg, rgba(255,64,64,0.08), rgba(255,64,64,0.03));
  border-color: rgba(255,64,64,0.25);
}
.verdict-banner.warning {
  background: linear-gradient(135deg, rgba(247,201,72,0.08), rgba(247,201,72,0.03));
  border-color: rgba(247,201,72,0.25);
}
.verdict-banner.safe {
  background: linear-gradient(135deg, rgba(61,220,132,0.08), rgba(61,220,132,0.03));
  border-color: rgba(61,220,132,0.25);
}

.verdict-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.verdict-icon { font-size: 3rem; flex-shrink: 0; }
.verdict-text { flex: 1; min-width: 200px; }
.verdict-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.verdict-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.verdict-title.danger  { color: var(--red); }
.verdict-title.warning { color: var(--yellow); }
.verdict-title.safe    { color: var(--green); }

.verdict-url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.verdict-score-wrap { text-align: center; flex-shrink: 0; }
.verdict-score {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}
.verdict-score.danger  { color: var(--red); }
.verdict-score.warning { color: var(--yellow); }
.verdict-score.safe    { color: var(--green); }

.verdict-score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
}

.score-bar-wrap { margin-top: 0.75rem; width: 120px; }
.score-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}
.score-bar-fill.danger  { background: var(--red); }
.score-bar-fill.warning { background: var(--yellow); }
.score-bar-fill.safe    { background: var(--green); }

/* REPORT GRID */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 768px) {
  .report-grid { grid-template-columns: 1fr; }
}

.report-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.card-icon { font-size: 1.1rem; }
.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* DOMAIN INFO TABLE */
.info-table { display: flex; flex-direction: column; gap: 0.6rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text-muted); }
.info-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); }

/* SIGNALS */
.signals-list { display: flex; flex-direction: column; gap: 0.6rem; }
.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
}
.signal-name {
  font-family: var(--font-mono);
  font-weight: 700;
}
.signal-impact {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red);
  background: rgba(255,64,64,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.no-signals {
  text-align: center;
  padding: 1rem;
  color: var(--green);
  font-size: 0.85rem;
  background: rgba(61,220,132,0.05);
  border-radius: 8px;
  border: 1px solid rgba(61,220,132,0.15);
}

/* BREAKDOWN CHART */
.breakdown-chart { display: flex; flex-direction: column; gap: 0.75rem; }
.bc-row { display: flex; flex-direction: column; gap: 0.3rem; }
.bc-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bc-track {
  height: 6px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
}
.bc-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}

/* RECOMMENDATION */
.recommendation-card.danger  { border-color: rgba(255,64,64,0.2); }
.recommendation-card.warning { border-color: rgba(247,201,72,0.2); }
.recommendation-card.safe    { border-color: rgba(61,220,132,0.2); }
.recommendation-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* SCAN AGAIN */
.scan-again-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
}
.scan-again-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.scan-again-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
}

/* ── Community Cards (shared across report.html + report-scam.html) ── */
.community-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s;
}
.community-card:hover { border-color: rgba(255,140,66,0.2); }
.cc-type-badge {
  flex-shrink: 0;
  background: rgba(255,140,66,0.1);
  border: 1px solid rgba(255,140,66,0.2);
  color: var(--orange);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-top: 2px;
  white-space: nowrap;
}
.cc-body { flex: 1; min-width: 0; }
.cc-domain { font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.cc-meta { font-size: 0.68rem; color: var(--text-dim); font-family: var(--font-mono); margin-top: 0.3rem; }
.cc-empty { font-size: 0.85rem; color: var(--text-dim); font-family: var(--font-mono); padding: 0.5rem 0; }
.community-feed { display: flex; flex-direction: column; gap: 0.75rem; }

/* ── DNS Status Banner ── */
.dns-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  border: 1px solid;
}
.dns-banner.dns-inactive {
  background: rgba(255,170,0,0.07);
  border-color: rgba(255,170,0,0.25);
  color: var(--text);
}
.dns-banner.dns-inactive strong { color: #ffaa00; }
.dns-banner.dns-active {
  background: rgba(61,220,132,0.07);
  border-color: rgba(61,220,132,0.2);
  color: var(--text);
}
.dns-banner.dns-active strong { color: #3ddc84; }
.dns-banner.dns-timeout {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
  color: var(--text-muted);
}
.dns-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

/* domain-not-found signal pill styling */
.signal-pill.signal-dns {
  background: rgba(255,170,0,0.1);
  border-color: rgba(255,170,0,0.3);
  color: #ffaa00;
}

/* ── Signal row improvements ── */
.signal-main { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.signal-note { font-size: 0.68rem; color: var(--text-dim); font-family: var(--font-mono); }
