:root {
  --cyan: #38E1FF;
  --ink: #0b1026;
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.68);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #0b1026;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(99, 102, 241, 0.55), transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.5), transparent 46%),
    radial-gradient(circle at 50% 88%, rgba(37, 99, 235, 0.55), transparent 50%),
    linear-gradient(180deg, #0b1026 0%, #12103a 100%);
  background-size: 120% 120%;
  animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 100% 100%, 0% 100%, 50% 0%, 0 0; }
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 20px 60px rgba(0, 0, 0, 0.35);
}

.stage {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.panel {
  width: min(560px, 92vw);
  padding: clamp(28px, 6vw, 56px);
  border-radius: 24px;
  text-align: center;
}

.name {
  margin: 0;
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.descriptor {
  margin: 12px 0 28px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.links {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 160ms ease, transform 160ms ease;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.link:hover {
  color: var(--cyan);
}

.link:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn--hire {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(56, 225, 255, 0.5);
}

.btn--hire:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 225, 255, 0.35);
}

.btn--shake {
  animation: shake 320ms ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.btn__spark {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0%, var(--cyan) 40%, transparent 70%);
  animation: spark 400ms ease-out forwards;
}

@keyframes spark {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.apps {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 8, 24, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.apps[hidden] { display: none; }

.apps__panel {
  width: min(480px, 92vw);
  padding: 24px 24px 16px;
  border-radius: 20px;
  position: relative;
}

.apps__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.apps__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apps__list li a,
.apps__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.apps__list li a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.apps__list small {
  color: var(--muted);
  font-size: 0.85rem;
}

.apps__row strong {
  font-weight: 600;
}

.apps__row em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Bots */
.bot {
  position: fixed;
  z-index: 2;
  pointer-events: none;
}

.bot--tl { top: 18px; left: 18px; }
.bot--tr { top: 18px; right: 18px; }
.bot--br { bottom: 18px; right: 18px; }

.bot__rope {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.35);
  transform-origin: top center;
}

.bot--rappel .bot__rope {
  animation: rope 700ms ease-out forwards;
}

@keyframes rope {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

.bot__sprite {
  position: relative;
  width: 28px;
  height: 34px;
  transform: translateY(-80px);
  opacity: 0;
}

.bot--rappel .bot__sprite {
  animation: rappel 700ms ease-out forwards;
}

@keyframes rappel {
  0% { transform: translateY(-80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.bot__head {
  position: absolute;
  top: 0;
  left: 6px;
  width: 16px;
  height: 12px;
  background: #c8d0e8;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
}

.bot__eye {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 3px;
  height: 3px;
  background: #0b1026;
  border-radius: 50%;
}

.bot__body {
  position: absolute;
  top: 13px;
  left: 4px;
  width: 20px;
  height: 14px;
  background: #9aa6c8;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
}

.bot__gun {
  position: absolute;
  top: 17px;
  left: 22px;
  width: 14px;
  height: 4px;
  background: #6b7aa0;
  border-radius: 2px;
  transform-origin: left center;
  transform: rotate(var(--gun-angle, 0deg));
  transition: transform 60ms linear;
}

.bot__flash {
  position: absolute;
  top: 15px;
  left: 34px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--cyan) 50%, transparent 75%);
  opacity: 0;
  transform: scale(0.4);
}

.bot--firing .bot__flash {
  animation: flash 220ms ease-out;
}

@keyframes flash {
  0% { opacity: 1; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.6); }
}

.bot__tracer {
  position: fixed;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 225, 255, 0));
  pointer-events: none;
  z-index: 6;
  transform-origin: left center;
  animation: tracer 320ms ease-out forwards;
}

@keyframes tracer {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 640px) {
  body { overflow: auto; }
  .stage { height: auto; min-height: 100vh; min-height: 100dvh; }
  .bot--br { display: none; }
  .bot { transform: scale(0.85); }
  .bot--tl { top: 10px; left: 10px; }
  .bot--tr { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  .bot--rappel .bot__rope,
  .bot--rappel .bot__sprite { animation: none; }
  .bot__sprite { transform: none; opacity: 1; }
  .bot__rope { transform: scaleY(1); }
  .link::after { transition: none; }
}
