@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Fraunces:opsz,wght@9..144,600;700&display=swap');

:root {
  --bg-1: #0b0f1a;
  --bg-2: #101a2d;
  --accent: #3af2b2;
  --accent-2: #ffb454;
  --ink: #e8eefc;
  --muted: #9db0d2;
  --card: rgba(16, 26, 45, 0.7);
  --border: rgba(120, 150, 220, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 15% -10%, #1c2d52 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 10%, #2a1c52 0%, transparent 60%),
              linear-gradient(160deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.08"/></svg>');
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero {
  padding: 48px 6vw 24px;
}

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

.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Fraunces", serif;
  background: linear-gradient(140deg, var(--accent), #22c6ff);
  color: #08141c;
  box-shadow: 0 10px 30px rgba(58, 242, 178, 0.3);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  font-family: "Fraunces", serif;
}

.lead {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.layout {
  display: grid;
  gap: 24px;
  padding: 0 6vw 56px;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.controls .control-row {
  display: grid;
  gap: 16px;
}

.stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(8, 14, 30, 0.7);
  border: 1px solid rgba(80, 120, 200, 0.25);
}

.stat .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.stat .value {
  margin-top: 6px;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 14px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(130deg, var(--accent), #22c6ff);
  color: #061219;
  box-shadow: 0 10px 20px rgba(58, 242, 178, 0.25);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(120, 150, 220, 0.4);
  color: var(--ink);
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.25);
}

.progress {
  height: 10px;
  border-radius: 99px;
  background: rgba(10, 18, 40, 0.9);
  overflow: hidden;
  border: 1px solid rgba(80, 120, 200, 0.25);
}

.progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

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

.meta.warning {
  color: #ffb454;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-size: 20px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(58, 242, 178, 0.15);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(58, 242, 178, 0.4);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: rgba(10, 18, 40, 0.8);
  border: 1px solid rgba(120, 150, 220, 0.2);
  border-radius: 16px;
  padding: 14px;
  min-height: 120px;
  animation: rise 0.4s ease;
}

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

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card .ip {
  font-weight: 700;
}

.card .status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(120, 150, 220, 0.2);
  color: var(--muted);
}

.card.online .status {
  background: rgba(58, 242, 178, 0.2);
  color: var(--accent);
}

.card .hostname {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card .ports {
  font-size: 13px;
  color: #f1d8ff;
}

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