:root {
  --bg-0: #07111d;
  --bg-1: #0f1f2f;
  --bg-2: #122f3d;
  --ink-0: #e8f3ff;
  --ink-1: #afd0ec;
  --line: rgba(167, 205, 236, 0.24);
  --hot-0: #f86d24;
  --hot-1: #ffbd3c;
  --ok-0: #2ec4b6;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-0);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -20%, #24598f44 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 110%, #ff8e2f33 0%, transparent 60%),
    linear-gradient(165deg, var(--bg-0) 10%, var(--bg-1) 48%, var(--bg-2) 100%);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: #ff7e2d22;
  top: -120px;
  left: 55%;
  animation: drift-a 18s ease-in-out infinite;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: #4cc9f033;
  bottom: -120px;
  left: -60px;
  animation: drift-b 20s ease-in-out infinite;
}

.shell {
  width: min(1100px, calc(100vw - 32px));
  margin: 28px auto;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hero {
  padding: 16px 8px 6px;
  animation: fade-up 420ms ease-out both;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  color: #9fc2df;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.subline {
  margin: 10px 0 0;
  color: var(--ink-1);
  font-size: 0.98rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #10273b88 0%, #0b1b2a8f 100%);
  box-shadow: 0 10px 40px #02070e7a;
  backdrop-filter: blur(6px);
  animation: fade-up 420ms ease-out both;
}

.controls {
  padding: 16px;
  animation-delay: 80ms;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: #c5e0f5;
  font-size: 0.9rem;
}

input[type="url"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid #7eb0d466;
  background: #0c1a278a;
  border-radius: 12px;
  color: #e9f7ff;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

input:focus {
  border-color: #7fd8f5;
  background: #0f24348a;
  transform: translateY(-1px);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-row input {
  width: 18px;
  height: 18px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hint {
  margin: 12px 2px 0;
  color: #8fc2e5;
  font-size: 0.86rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-hot {
  color: #17110a;
  background: linear-gradient(125deg, var(--hot-1), var(--hot-0));
}

.btn-light {
  color: #e5f4ff;
  background: #13283a;
  border-color: #6da8d055;
}

.btn-ghost {
  color: #a9d7f6;
  background: transparent;
  border-color: #6da8d055;
}

.metrics {
  padding: 14px 16px;
  animation-delay: 140ms;
}

.metrics h2,
.output h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.status-line {
  color: #c4e6ff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.summary-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-row {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: #d8eeff;
  padding: 8px 10px;
  border: 1px solid #79b2d53f;
  border-radius: 10px;
  background: #1732487f;
}

.summary-row.warn {
  border-color: #f6b65f8a;
  color: #ffe0b8;
}

.summary-row.ok {
  border-color: #46d0c277;
  color: #b8f4ed;
}

.progress-track {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #6da8d055;
  background: #0c2132;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2ec4b6, #57c9ff);
  transition: width 180ms ease;
}

.output {
  padding: 14px 16px 16px;
  animation-delay: 210ms;
}

.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

pre {
  margin: 0;
  border: 1px solid #6da8d04d;
  border-radius: 12px;
  background: #071320b8;
  color: #caedff;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.56;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-a {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(18px) translateY(14px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes drift-b {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(12px) translateY(-12px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

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

  .summary-rows {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(1100px, calc(100vw - 20px));
    margin: 14px auto 18px;
  }
}
