/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --border: #2a2a2a;
  --spacing-unit: 8px;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Layout
   =========================== */
main {
  max-width: 800px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  margin-bottom: 96px;
}

.title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.tagline {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

/* ===========================
   Links Section
   =========================== */
.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 96px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.2s ease-in-out;
  opacity: 0;
  animation: fadeInStagger 0.6s ease-in-out forwards;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
.link-item:nth-child(6) { animation-delay: 0.6s; }

.link-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

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

.link-text {
  letter-spacing: 0.01em;
}

/* ===========================
   Footer
   =========================== */
.footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 767px) {
  .hero {
    margin-bottom: 64px;
  }

  .links {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 64px;
  }

  .link-item {
    padding: 16px 24px;
  }
}

/* ===========================
   Accessibility
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
