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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #1a1a24;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #f0eee8;
  --muted: #7a7a8a;
  --accent: #b8f06e;
  --accent-dim: rgba(184, 240, 110, 0.12);
  --danger: #f06e6e;
  --danger-dim: rgba(240, 110, 110, 0.1);
  --warn: #f0c46e;
  --warn-dim: rgba(240, 196, 110, 0.1);
  --safe: #6ef0b0;
  --safe-dim: rgba(110, 240, 176, 0.1);
  --info: #6eaaf0;
  --info-dim: rgba(110, 170, 240, 0.1);
  --mono: "DM Mono", monospace;
  --display: "Syne", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 4rem;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 240, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 240, 110, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

/* Header */
header {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(184, 240, 110, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h1 span {
  color: var(--accent);
}

.subtitle {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Input zone */
.input-zone {
  margin: 2.5rem 0 2rem;
  position: relative;
}

.url-wrap {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.url-wrap:focus-within {
  border-color: rgba(184, 240, 110, 0.45);
  box-shadow: 0 0 0 4px rgba(184, 240, 110, 0.06);
}

#urlInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 18px 20px;
}

#urlInput::placeholder {
  color: var(--muted);
}

#checkBtn {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 28px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.1s;
  letter-spacing: 0.02em;
}

#checkBtn:hover {
  background: #ccff77;
}
#checkBtn:active {
  transform: scale(0.97);
}
#checkBtn:disabled {
  background: #444;
  color: #666;
  cursor: not-allowed;
}

/* Examples */
.examples {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}

.example-chip {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.example-chip:hover {
  color: var(--bg);
  background-color: var(--accent);
}

/* Results */
#results {
  display: none;
}

/* Verdict banner */
.verdict {
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid;
}

.verdict.safe {
  background: var(--safe-dim);
  border-color: rgba(110, 240, 176, 0.2);
}
.verdict.warning {
  background: var(--warn-dim);
  border-color: rgba(240, 196, 110, 0.2);
}
.verdict.danger {
  background: var(--danger-dim);
  border-color: rgba(240, 110, 110, 0.2);
}

.verdict-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.safe .verdict-icon {
  background: rgba(110, 240, 176, 0.15);
}
.warning .verdict-icon {
  background: rgba(240, 196, 110, 0.15);
}
.danger .verdict-icon {
  background: rgba(240, 110, 110, 0.15);
}

.verdict-text h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.safe .verdict-text h2 {
  color: var(--safe);
}
.warning .verdict-text h2 {
  color: var(--warn);
}
.danger .verdict-text h2 {
  color: var(--danger);
}
.verdict-text p {
  font-size: 0.85rem;
  color: var(--muted);
}

.score-pill {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
}

.safe .score-pill {
  color: var(--safe);
}
.warning .score-pill {
  color: var(--warn);
}
.danger .score-pill {
  color: var(--danger);
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.25rem;
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-safe {
  background: var(--safe);
}
.dot-warn {
  background: var(--warn);
}
.dot-danger {
  background: var(--danger);
}
.dot-info {
  background: var(--info);
}

.card-value {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* Status badge */
.status-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
}

.status-200 {
  background: rgba(110, 240, 176, 0.12);
  color: var(--safe);
}
.status-3xx {
  background: rgba(240, 196, 110, 0.12);
  color: var(--warn);
}
.status-4xx,
.status-5xx,
.status-err {
  background: rgba(240, 110, 110, 0.12);
  color: var(--danger);
}

/* Signals list */
.signals-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.signals-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.signal-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.signal-row:last-child {
  border-bottom: none;
}

.signal-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.signal-text {
  flex: 1;
  line-height: 1.4;
}
.signal-text em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.sig-good {
  color: var(--safe);
}
.sig-warn {
  color: var(--warn);
}
.sig-bad {
  color: var(--danger);
}

/* Progress bar */
.trust-bar-wrap {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.trust-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.trust-bar-track {
  height: 8px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
}

.trust-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loader */
.loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loader-step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Error */
.error-box {
  display: none;
  background: var(--danger-dim);
  border: 1px solid rgba(240, 110, 110, 0.2);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  color: var(--danger);
  font-size: 0.9rem;
  text-align: center;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
  padding-top: 2rem;
  line-height: 1.8;
}
/* FLOATING BUTTON */
.dev-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-image: url("Me.png");
  background-color: var(--accent);
  background-size: cover;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

/* CARD */
.dev-card {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 260px;
  background: black;
  color: var(--accent);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.dev-card img {
  width: 70px;
  border-radius: 50%;
  background-color: var(--accent);
}

.dev-card h3 {
  margin-top: 10px;
}

.mini {
  font-size: 13px;
  margin-top: 10px;
  color: var(--accent);
}

.whatsapp {
  display: block;
  margin-top: 15px;
  padding: 10px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.close {
  position: absolute;
  right: 10px;
  top: 5px;
  cursor: pointer;
  font-size: 38px;
}
