/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('cursor.svg') 12 12, auto;
}

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

body {
  background: #09090b;
  color: #fafafa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

a {
  cursor: url('cursor.svg') 12 12, pointer;
}

button {
  cursor: url('cursor.svg') 12 12, pointer;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── Background Video ─────────────────────────────────── */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

/* ── Intro ─────────────────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #09090b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  cursor: url('cursor.svg') 12 12, pointer;
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0, 1),
    filter 0.6s cubic-bezier(0.4, 0, 0, 1);
}

#intro.hidden {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(12px);
  pointer-events: none;
}

.intro-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.intro-prompt {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #52525b;
}

/* ── Main ──────────────────────────────────────────────── */
#main {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

#main.visible {
  opacity: 1;
}

.card {
  width: 100%;
  max-width: 380px;
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 32px 32px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

.card:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.06), 0 0 80px rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Avatar ────────────────────────────────────────────── */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1c1c21;
  margin: 0 auto 20px;
  display: block;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  border-color: #3f3f46;
  box-shadow: 0 0 0 4px rgba(63, 63, 70, 0.2);
}

/* ── Profile Info ──────────────────────────────────────── */
.username {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fafafa;
  margin-bottom: 6px;
}

.bio {
  font-size: 0.8rem;
  font-weight: 400;
  color: #71717a;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ── Socials ───────────────────────────────────────────── */
.socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #18181b;
  border: 1px solid #27272a;
  transition: all 0.2s ease;
  cursor: url('cursor.svg') 12 12, pointer;
}

.social-link:hover {
  background: #fafafa;
  border-color: #fafafa;
  transform: translateY(-2px);
}

.social-link:active {
  transform: translateY(0) scale(0.85);
  transition: all 0.1s ease;
}

.social-link.clicked {
  animation: icon-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-btn {
  background: #18181b;
  border: 1px solid #27272a;
  padding: 0;
  outline: none;
}

@keyframes icon-pop {
  0% { transform: scale(0.85); }
  40% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: #a1a1aa;
  transition: fill 0.2s ease;
  cursor: url('cursor.svg') 12 12, pointer;
}

.social-link:hover .social-icon {
  fill: #09090b;
}

/* ── Audio Controls ────────────────────────────────────── */
.audio-controls {
  position: fixed;
  top: 16px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 40;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 0 12px 0 0;
  height: 32px;
}

.audio-mute {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: url('cursor.svg') 12 12, pointer;
  flex-shrink: 0;
}

.audio-mute svg {
  fill: #71717a;
  transition: fill 0.2s ease;
}

.audio-mute:hover svg {
  fill: #a1a1aa;
}

.audio-mute:active {
  transform: scale(0.9);
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 4px;
  background: #27272a;
  border-radius: 2px;
  outline: none;
  cursor: url('cursor.svg') 12 12, pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #71717a;
  cursor: url('cursor.svg') 12 12, pointer;
  transition: background 0.2s ease;
}

.vol-slider::-webkit-slider-thumb:hover {
  background: #a1a1aa;
}

.vol-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #71717a;
  border: none;
  cursor: url('cursor.svg') 12 12, pointer;
}

.vol-slider::-moz-range-track {
  background: #27272a;
  height: 4px;
  border-radius: 2px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  color: #27272a;
  letter-spacing: 0.04em;
}

.clock {
  position: fixed;
  top: 16px;
  right: 20px;
  font-size: 0.65rem;
  color: #27272a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ── Click Ripple ──────────────────────────────────────── */
.ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 0.6s ease-out forwards;
}

@keyframes ripple-out {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}

/* ── Entrance Animations ──────────────────────────────── */
#main .avatar,
#main .username,
#main .bio,
#main .socials {
  opacity: 0;
  transform: translateY(12px);
}

#main.visible .avatar {
  animation: enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

#main.visible .username {
  animation: enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}

#main.visible .bio {
  animation: enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.26s forwards;
}

#main.visible .socials {
  animation: enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards;
}

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

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card {
    padding: 32px 24px 24px;
    border-radius: 12px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .username {
    font-size: 1.1rem;
  }
}
