:root {
  --bg:          #1c1c1c;
  --accent:      #4ade80;
  --accent-dim:  rgba(74, 222, 128, 0.10);
  --accent-ring: rgba(74, 222, 128, 0.30);
  --accent-glow: rgba(74, 222, 128, 0.18);
  --text:        rgba(255, 255, 255, 0.92);
  --text-muted:  rgba(255, 255, 255, 0.42);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
}

/* ── Canvas background ─────────────────────────────── */

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

/* ── Main layout ───────────────────────────────────── */

.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  width: 100%;
  height: 100vh;
}

/* ── Wordmark ──────────────────────────────────────── */

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  /* Enter animation */
  opacity: 0;
  transform: translateY(-18px);
  animation: fadeSlideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.wordmark-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Buttons wrapper ───────────────────────────────── */

.buttons-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* ── Individual button ─────────────────────────────── */

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;

  width: 220px;
  height: 220px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;

  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Enter animation – staggered */
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    transform 0.30s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.30s ease,
    background 0.30s ease,
    border-color 0.30s ease;

  will-change: transform, box-shadow;
}

.btn.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn:hover {
  transform: translateY(-10px) scale(1.025);
  background: var(--accent-dim);
  border-color: var(--accent-ring);
  box-shadow:
    0 0 0 1px var(--accent-ring),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px var(--accent-glow);
}

.btn:active {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 0 20px var(--accent-glow);
}

/* ── Logo image ────────────────────────────────────── */

.btn-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.10);
  transition: box-shadow 0.30s ease;
}

.btn:hover .btn-logo {
  box-shadow: 0 0 0 3px var(--accent-ring), 0 0 18px var(--accent-glow);
}

/* ── Label ─────────────────────────────────────────── */

.btn-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  transition: color 0.25s ease;
}

.btn:hover .btn-label {
  color: var(--accent);
}

/* ── Keyframes ─────────────────────────────────────── */

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

/* ── Responsive: stack vertically on small screens ── */

@media (max-width: 520px) {
  .wordmark-title {
    font-size: 2.2rem;
  }

  .buttons-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .btn {
    width: 200px;
    height: 200px;
  }

  .btn-logo {
    width: 88px;
    height: 88px;
  }
}
