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

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #e8e8e8;
  --muted: rgba(255,255,255,0.45);
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.1);
  --card-hover-bg: rgba(255,255,255,0.08);
  --card-hover-border: rgba(255,255,255,0.3);
  --accent: #ffffff;
}

html, body {
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

canvas#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 80px;
}

.header {
  text-align: center;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.server-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0.5px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.server-tag span {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 20px;
}

.title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.4);
}

.subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
}

.card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(32px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

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

.card:hover .card-number {
  opacity: 0.7;
}

.card.visible {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  transition: opacity 0.3s ease;
  user-select: none;
}

.card-arrow {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  opacity: 0.4;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  flex-shrink: 0;
}

.card-arrow svg {
  width: 14px; height: 14px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body {
  flex: 1;
}

.card-site {
  font-size: 13px;
  font-weight: 500;
  color: var(--off-white);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(255,255,255,0.07);
}

.card-url {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

.divider {
  width: 100%;
  max-width: 900px;
  height: 0.5px;
  background: rgba(255,255,255,0.08);
  margin: 56px 0 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.1s forwards;
}

.footer {
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.2s forwards;
}

.footer p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}

.footer a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: var(--white); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 60px 16px 60px; }
  .header { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; }
  .title { font-size: clamp(52px, 14vw, 80px); }
}
