/* src/styles.css */
:root {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  color: #edf3ff;
  background: #080b12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 0 0, #22c55e33, #0000 32rem), radial-gradient(circle at 100% 0, #3b82f63d, #0000 34rem), linear-gradient(135deg, #070912 0%, #0c1220 52%, #101827 100%);
  min-height: 100vh;
  margin: 0;
}

button, textarea {
  font: inherit;
}

.shell {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items:  end;
  gap: 28px;
  margin-bottom: 28px;
}

.eyebrow {
  color: #7dd3fc;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  letter-spacing: -.07em;
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .9;
}

h2 {
  letter-spacing: -.04em;
  margin-bottom: 0;
  font-size: 24px;
}

.hero-copy {
  color: #aab7cc;
  max-width: 720px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.6;
}

.status-card, .panel {
  backdrop-filter: blur(22px);
  background: #0f172abd;
  border: 1px solid #94a3b833;
  box-shadow: 0 24px 80px #00000059;
}

.status-card {
  display: flex;
  border-radius: 24px;
  align-items:  center;
  gap: 14px;
  padding: 18px;
}

.status-card span:not(.status-dot) {
  display: block;
  color: #8ea0b8;
  margin-top: 3px;
  font-size: 13px;
}

.status-dot {
  background: #22c55e;
  border-radius: 999px;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 8px #22c55e26, 0 0 30px #22c55ecc;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(360px, 1.12fr);
  gap: 22px;
}

.panel {
  border-radius: 28px;
  min-width: 0;
  padding: 22px;
}

.panel-heading, .form-footer {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 16px;
}

textarea {
  resize: vertical;
  outline: none;
  color: #eff6ff;
  background: #020617b8;
  border: 1px solid #94a3b838;
  border-radius: 22px;
  width: 100%;
  min-height: 260px;
  margin: 22px 0 14px;
  padding: 18px;
  line-height: 1.6;
}

textarea:focus {
  border-color: #7dd3fccc;
  box-shadow: 0 0 0 4px #0ea5e926;
}

.primary-button, .ghost-button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  color: #03111a;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  padding: 13px 20px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: .65;
}

.ghost-button {
  color: #dceafe;
  background: #94a3b81f;
  padding: 10px 14px;
}

#char-count, .latency, .muted-line {
  color: #91a1b8;
  font-size: 13px;
}

.empty-state {
  display: grid;
  text-align: center;
  color: #9fb0c8;
  align-content:  center;
  place-items:  center;
  min-height: 460px;
}

.shield {
  display: grid;
  color: #7dd3fc;
  background: #0ea5e91f;
  border: 1px solid #7dd3fc4d;
  border-radius: 30px;
  place-items:  center;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  font-size: 44px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.verdict-card {
  display: flex;
  background: linear-gradient(135deg, #22c55e2e, #0f172ab3);
  border-radius: 26px;
  justify-content: space-between;
  align-items:  center;
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
}

.verdict-card.suspicious {
  background: linear-gradient(135deg, #f59e0b33, #0f172ab3);
}

.verdict-card.phishing {
  background: linear-gradient(135deg, #ef444447, #0f172ab3);
}

.verdict-card h3 {
  letter-spacing: -.06em;
  margin-bottom: 8px;
  font-size: 44px;
}

.verdict-card p:last-child {
  color: #bfcee1;
  text-transform: capitalize;
  margin-bottom: 0;
}

.score-ring {
  --score: 0deg;
  display: grid;
  background: conic-gradient(#38bdf8 var(--score), #94a3b82e 0deg);
  border-radius: 999px;
  flex: none;
  place-items:  center;
  width: 112px;
  height: 112px;
}

.score-ring span {
  display: grid;
  background: #08111f;
  border-radius: 999px;
  place-items:  center;
  width: 78px;
  height: 78px;
  font-size: 30px;
  font-weight: 900;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.metric, .url-card, .signal, .raw-json {
  background: #02061775;
  border: 1px solid #94a3b829;
}

.metric {
  border-radius: 18px;
  padding: 15px;
}

.metric span, .signal small, .url-card span {
  display: block;
  color: #8fa1b8;
  font-size: 12px;
}

.metric strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

.section-block {
  margin-top: 20px;
}

.section-block h3 {
  color: #dbeafe;
  margin-bottom: 10px;
  font-size: 16px;
}

.url-list, .signal-list {
  display: grid;
  gap: 10px;
}

.url-card, .signal {
  display: flex;
  border-radius: 18px;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  padding: 14px;
}

.url-card b, .signal > span {
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
}

.url-card.trusted b, .signal.low > span {
  color: #86efac;
  background: #22c55e24;
}

.url-card.unknown b, .signal.medium > span {
  color: #fcd34d;
  background: #f59e0b24;
}

.url-card.suspicious b, .signal.high > span, .signal.critical > span {
  color: #fca5a5;
  background: #ef444429;
}

.signal {
  justify-content: flex-start;
  align-items:  flex-start;
}

.signal strong {
  display: block;
  margin-bottom: 4px;
}

.raw-json {
  border-radius: 18px;
  margin-top: 20px;
  padding: 14px;
}

.raw-json summary {
  cursor: pointer;
  color: #bae6fd;
  font-weight: 700;
}

pre {
  overflow: auto;
  color: #bdd3ef;
  white-space: pre-wrap;
  max-height: 280px;
}

@media (width <= 860px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 24px 0;
  }

  .hero, .workspace, .metrics-grid {
    grid-template-columns: 1fr;
  }

  .verdict-card {
    flex-direction: column;
    align-items:  flex-start;
  }
}
