:root {
  --bg: #e6f6f2;
  --bg-accent: #d2eaf4;
  --card: rgba(244, 253, 251, 0.88);
  --text: #0e2a33;
  --muted: #46656f;
  --line: rgba(14, 42, 51, 0.09);
  --button: #0e5a67;
  --button-text: #effffd;
  --button-alt: #dcf3f0;
  --accent: #1aa184;
  --accent-soft: rgba(26, 161, 132, 0.18);
  --shadow: 0 24px 80px rgba(20, 77, 90, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 32%),
    radial-gradient(circle at top right, rgba(30, 156, 152, 0.15), transparent 26%),
    radial-gradient(circle at bottom left, rgba(24, 122, 181, 0.14), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  position: relative;
  width: min(100%, 640px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 38%),
    linear-gradient(320deg, rgba(26, 161, 132, 0.09), transparent 42%);
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 24px;
  align-items: center;
}

.hero-copy,
.status-panel,
.actions,
.hint {
  position: relative;
  z-index: 1;
}

.signal {
  position: relative;
  width: 164px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 20%, rgba(230, 246, 242, 0.2) 21% 100%);
  border: 1px solid rgba(14, 42, 51, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 18px 40px rgba(20, 77, 90, 0.12);
}

.signal-core,
.signal-ring,
.signal-scan,
.signal-dot {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.signal-core {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, #a7fff0 0%, var(--accent) 72%, #0c6e73 100%);
  box-shadow:
    0 0 0 10px rgba(26, 161, 132, 0.12),
    0 0 32px rgba(24, 122, 181, 0.2);
  animation: pulse-core 2.2s ease-in-out infinite;
}

.signal-ring {
  border: 1px solid rgba(14, 42, 51, 0.09);
}

.signal-ring-1 {
  width: 70px;
  height: 70px;
}

.signal-ring-2 {
  width: 108px;
  height: 108px;
}

.signal-ring-3 {
  width: 144px;
  height: 144px;
}

.signal-scan {
  width: 144px;
  height: 144px;
  background: conic-gradient(from 270deg, transparent 0deg, rgba(26, 161, 132, 0.24) 54deg, transparent 110deg);
  mask: radial-gradient(circle, transparent 0 48px, #000 48px 72px, transparent 73px);
  animation: rotate-scan 2.8s linear infinite;
}

.signal-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(26, 161, 132, 0.35);
}

.signal-dot-1 {
  top: 24px;
  left: 120px;
  animation: blink-dot 1.6s ease-in-out infinite;
}

.signal-dot-2 {
  top: 122px;
  left: 38px;
  animation: blink-dot 1.6s ease-in-out infinite 0.35s;
}

.signal-dot-3 {
  top: 108px;
  left: 124px;
  animation: blink-dot 1.6s ease-in-out infinite 0.7s;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.95;
}

.lead,
.hint {
  color: var(--muted);
}

.lead {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.6;
}

.status-panel {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.72);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.status-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  animation: pulse-bullet 1.8s ease-in-out infinite;
}

.status-row:nth-child(2) .status-bullet {
  animation-delay: 0.25s;
}

.status-row:nth-child(3) .status-bullet {
  animation-delay: 0.5s;
}

.hint {
  margin: 18px 0 0;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal-actions 500ms ease 900ms forwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--button);
  color: var(--button-text);
}

.button-secondary {
  background: var(--button-alt);
  color: var(--text);
  border-color: var(--line);
}

@keyframes rotate-scan {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse-core {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes blink-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.88);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16);
  }
}

@keyframes pulse-bullet {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 var(--accent-soft);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 6px transparent;
  }
}

@keyframes reveal-actions {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .card {
    padding: 24px;
    border-radius: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .signal {
    width: 148px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
