:root {
  --bg: #050505;
  --card: rgba(20, 20, 20, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --primary: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --accent: #8b5cf6;
  --ok: #4ade80;
  --bad: #f87171;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background:
    radial-gradient(circle at 50% -10%, #171717, #050505 55%),
    #050505;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px;
  overflow-x: hidden;
}

.orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.orb-a { top: -240px; left: -160px; background: var(--primary); }
.orb-b { bottom: -260px; right: -160px; background: var(--accent); }

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand .dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
}

h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.02em;
  font-weight: 650;
}

.badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.intro p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.service {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.service:hover { border-color: rgba(59, 130, 246, 0.55); transform: translateY(-2px); }

.service.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

input[type="url"] {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="url"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input[type="url"]::placeholder { color: #4a4a4a; }

#start {
  width: 100%;
  height: 54px;
  margin-top: 22px;
  border: none;
  border-radius: 13px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#start:hover { transform: translateY(-1px); }
#start:active { transform: scale(0.99); }
#start:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.status { margin-top: 26px; }

.status-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

#barFill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s ease;
}

.result {
  margin-top: 26px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-word;
}

.result.ok { border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07); }
.result.bad { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.07); }
.result a { color: #7db4ff; }

.result .title { font-weight: 650; margin-bottom: 8px; display: block; }

footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: #555;
  display: flex;
  justify-content: center;
  gap: 10px;
}

footer a { color: #777; text-decoration: none; }
footer a:hover { color: #fff; }

.hidden { display: none; }

@media (max-width: 560px) {
  body { padding: 20px 12px; }
  .card { padding: 24px; }
}
