:root {
  --bg: #08090c;
  --surface: #101218;
  --surface-hover: #151823;
  --border: #1e2230;
  --border-hover: #333a52;
  --text: #e8eaf1;
  --muted: #7b8194;
  --accent: #8b7dff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient glow */
.glow {
  position: fixed;
  top: -30vh;
  left: 50%;
  width: 90vw;
  max-width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(139, 125, 255, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 96px 24px 48px;
  flex: 1;
}

.hero {
  text-align: center;
  margin-bottom: 44px;
}

.hero h1 {
  font-size: clamp(2.4rem, 9vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #a9aec4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.link:nth-child(1) { animation-delay: 0.05s; }
.link:nth-child(2) { animation-delay: 0.1s; }
.link:nth-child(3) { animation-delay: 0.15s; }
.link:nth-child(4) { animation-delay: 0.2s; }
.link:nth-child(5) { animation-delay: 0.25s; }
.link:nth-child(6) { animation-delay: 0.3s; }
.link:nth-child(7) { animation-delay: 0.35s; }
.link:nth-child(8) { animation-delay: 0.4s; }

.thumb {
  width: 88px;
  height: 50px;
  flex: none;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #232838;
  background: #0b0d12;
  opacity: 0.88;
  transition: opacity 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.label {
  flex: 1;
}

.arrow {
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.link:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.link:hover .thumb {
  opacity: 1;
  border-color: #3a3f57;
  transform: scale(1.03);
}

.link:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}

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

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 24px;
  font-size: 0.75rem;
  color: #4d5364;
  letter-spacing: 0.04em;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-top: 72px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .link {
    padding: 8px 15px 8px 8px;
    gap: 12px;
  }

  .thumb {
    width: 74px;
    height: 42px;
  }
}
