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

:root {
  --bg: #0c0c0f;
  --surface: #13131a;
  --surface-hover: #1a1a24;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.45);
  --text-muted: rgba(240, 240, 245, 0.25);
  --accent: #7c6fff;
  --accent-glow: rgba(124, 111, 255, 0.15);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* Subtle dot-grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow behind content */
body::before {
  content: '';
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124, 111, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ── Header ── */
header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wordmark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.tagline {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* ── Cards ── */
.cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-glow);
}

.card:hover .card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.card:hover .card-name {
  color: var(--text-primary);
}

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

.card-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
}

.card-index {
  grid-row: 1 / 3;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  align-self: center;
}

.card-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(240, 240, 245, 0.9);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.card-domain {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-top: 0.2rem;
}

.card-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
  align-self: center;
}

.card-arrow svg {
  width: 100%;
  height: 100%;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  body {
    justify-content: flex-start;
    padding-top: 4rem;
  }

  .card {
    padding: 1.25rem 1.25rem;
  }
}
