*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #050506;
  color: #e7edf8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1.5rem;
  background-image:
    radial-gradient(circle at top left, #2d6fff22, transparent 32%),
    radial-gradient(circle at bottom right, #2fcbff18, transparent 28%),
    linear-gradient(180deg, #07080a, #09090c 35%, #040507);
}

/* ── Layout ── */
.page {
  width: min(100%, 800px);
  background: rgba(8, 10, 16, .94);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 32px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .35);
  padding: 2.25rem 2.5rem;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 46px; height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 12px 30px rgba(34, 211, 238, .22);
  flex-shrink: 0;
}
.logo-text { font-size: 1.2rem; font-weight: 600; color: #f8fbff; letter-spacing: -.02em; }
.logo-sub {
  font-size: .78rem; color: #9aa5b4;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3px; text-transform: uppercase; letter-spacing: .14em;
}
.clock { font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: #6b7a99; white-space: nowrap; padding-top: 4px; }

/* ── Hero ── */
.hero { font-size: 1rem; line-height: 1.8; color: #bfccdd; margin-bottom: 2rem; }

/* ── Search ── */
.search-area {
  background: rgba(18, 22, 34, .95);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 2rem;
}
.field-label {
  font-size: .72rem; color: #8a95ac;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: .75rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.inp-row { display: flex; gap: .85rem; flex-wrap: wrap; }
.inp {
  flex: 1; min-width: 180px;
  background: #0f151f;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .95rem; color: #edf2ff;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.inp:focus {
  border-color: #4ade80;
  background: #131b28;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .12);
}
.inp::placeholder { color: #66718a; }
.run-btn {
  background: #4ade80;
  border: none; border-radius: 16px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 600;
  color: #050607; cursor: pointer;
  transition: transform .15s, background .15s;
  box-shadow: 0 18px 30px rgba(74, 222, 128, .18);
  white-space: nowrap;
}
.run-btn:hover { background: #5ee992; transform: translateY(-1px); }
.run-btn:disabled { background: #1c3e26; color: #8bc79d; cursor: not-allowed; box-shadow: none; transform: none; }

/* ── Progress ── */
.progress-wrap { margin-bottom: 2rem; display: none; }
.progress-wrap.show { display: block; }
.progress-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
}
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; gap: .75rem; }
.progress-label { font-size: .82rem; color: #9aa5d1; font-family: 'JetBrains Mono', monospace; }
.progress-pct { font-size: .82rem; color: #4ade80; font-family: 'JetBrains Mono', monospace; }
.progress-track { height: 8px; background: rgba(255, 255, 255, .05); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #4ade80, #22d3ee); border-radius: 999px; transition: width .15s ease; width: 0%; }

/* ── Summary ── */
.summary { display: none; }
.summary.show { display: block; }
.summary-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 26px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .18);
}
.summary-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.summary-name { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; color: #f8fbff; }
.summary-time { font-size: .82rem; color: #8a95ac; font-family: 'JetBrains Mono', monospace; }

/* ── Metrics ── */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.metric { background: #0e1622; border: 1px solid rgba(255, 255, 255, .05); border-radius: 18px; padding: 1.1rem; }
.metric-label { font-size: .72rem; color: #8f9ab8; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .55rem; }
.metric-val { font-size: 1.5rem; font-weight: 700; color: #edf2ff; line-height: 1; }
.metric-val.g { color: #4ade80; }
.metric-val.r { color: #f97316; }
.metric-val.y { color: #facc15; }

/* ── Platform table ── */
.section-label { font-size: .72rem; color: #8a95ac; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; }
.platform-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.platform-table tr { background: rgba(255, 255, 255, .025); }
.platform-table tr td { padding: .9rem 1rem; vertical-align: middle; }
.platform-table tr td:first-child { width: 42px; border-radius: 14px 0 0 14px; }
.platform-table tr td:last-child { border-radius: 0 14px 14px 0; }
.platform-table tr td:nth-child(2) { width: 145px; }
.pt-status { font-family: 'JetBrains Mono', monospace; font-size: 1rem; text-align: center; }
.pt-status.found { color: #4ade80; }
.pt-status.none { color: #7c8ba8; }
.pt-status.unknown { color: #7b7d8d; }
.pt-name { font-size: .93rem; color: #e7edf8; font-weight: 600; }
.pt-link { font-family: 'JetBrains Mono', monospace; font-size: .8rem; line-height: 1.4; color: #9aa5d1; word-break: break-all; }
.pt-link a { color: #7dd3fc; text-decoration: none; }
.pt-link a:hover { text-decoration: underline; }
.pt-link.none { color: #6b7389; }

/* ── Footer ── */
.footer {
  font-size: .82rem; color: #6b7a99;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.9;
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.footer a { color: #7dd3fc; text-decoration: none; }
.footer a:hover { color: #a5dbff; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .page { padding: 1.5rem 1.25rem; border-radius: 20px; }
  .header { flex-direction: column; align-items: flex-start; }
  .summary-top { flex-direction: column; align-items: flex-start; }
  .inp-row { flex-direction: column; }
  .run-btn { width: 100%; text-align: center; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
