:root {
  --bg: #0a0a0c;
  --bg-alt: #121216;
  --border: #232329;
  --border-hover: #3a3a44;
  --text: #e8e8ec;
  --text-dim: #8b8b96;
  --accent: #7c8cff;
  --radius: 14px;
}

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

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.logo-mark {
  color: var(--accent);
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-brand {
  width: 100%;
  max-width: 180px;
  margin-bottom: 4px;
}

.logo-brand img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 32px rgba(64, 180, 255, 0.18);
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 .dot {
  color: var(--accent);
}

.tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.5;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.6s ease forwards;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--border-hover);
  background: #16161b;
  transform: translateY(-2px);
}

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

.link-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 100%;
  height: 100%;
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  font-size: 1rem;
}

.link-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.link-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.25s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--text);
}

.footer {
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
  animation-delay: 0.4s;
  color: var(--text-dim);
  font-size: 0.8rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero, .link-card, .footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
