:root {
  --bg: #07080b;
  --surface: rgba(12, 14, 18, 0.45);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #f2f4f7;
  --accent-2: #b8c0cc;
  --glow: rgba(242, 244, 247, 0.45);
  --glow-2: rgba(184, 192, 204, 0.35);
  --text: #f2f3f7;
  --muted: rgba(242, 243, 247, 0.68);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --card-blur: 6px;
  --glow-strength: 0.7;
  --avatar-url: url("assets/avatar.jpg");
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.start-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.start-overlay[hidden] {
  display: none;
}

.start-text-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: clamp(0.95rem, 2.6vw, 1.25rem);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  white-space: normal;
  max-width: 92vw;
  text-align: center;
  line-height: 1.6;
  animation: startFade 0.8s ease-out both, startFloat 2.4s ease-in-out infinite;
}

.start-cursor {
  display: inline-block;
  transform: translateY(-1px);
  animation: blink 1s steps(1) infinite;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform;
  filter: brightness(0.78) saturate(0.9);
}

body.has-video .video-bg {
  opacity: 0.5;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.55), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

body.video-playing .video-bg {
  animation: kenburns 26s ease-in-out infinite;
}

.bg-fallback {
  position: absolute;
  inset: 0;
  background: transparent;
  filter: none;
  animation: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.bg-glow,
.bg-noise {
  display: none;
}



.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 96px;
}

.card {
  width: min(860px, 100%);
  padding: 36px 40px;
  background: transparent;
  border: none;
  border-radius: 28px;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  overflow: hidden;
  animation: floatIn 1s ease both;
}

.mute-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.mute-btn.is-muted {
  color: #ffffff;
}

.mute-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.mute-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.mute-icon .icon-off {
  display: none;
}

.mute-btn.is-muted .icon-on {
  display: none;
}

.mute-btn.is-muted .icon-off {
  display: block;
}

.card::before {
  content: none;
}

.top-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-right {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.stat-pill {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 140px;
  text-align: right;
}

.stat-pill .stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-pill .stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--avatar-url),
    radial-gradient(circle at 30% 30%, #ffffff 0%, #d0d6ff 40%, #4d5875 100%);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 30px rgba(110, 231, 255, 0.35);
}

.live-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  background: #63f57f;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(99, 245, 127, 0.9);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.name {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.08em;
}

.tagline {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 14px 0;
}

.social-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text);
  text-decoration: none;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 16px rgba(110, 231, 255, 0.35);
}

.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-title {
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(110, 231, 255, 0.25);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent);
  flex-shrink: 0;
}

.link-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link-text {
  display: grid;
  gap: 4px;
}

.link-title {
  font-weight: 600;
}

.link-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.scene .label,
.slider .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 10px;
  display: block;
}

.scene-dots {
  display: flex;
  gap: 8px;
}

.dot-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot-btn.active,
.dot-btn:hover {
  background: var(--accent);
  color: #0a0b0f;
  box-shadow: 0 0 16px var(--accent);
}

.sliders {
  display: grid;
  gap: 12px;
}

.slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.footer-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-btn .icon {
  font-size: 0.9rem;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.3);
}

.tiny {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 840px) {
  .card {
    padding: 28px;
  }

  .top-row {
    grid-template-columns: 1fr auto;
    text-align: left;
  }

  .avatar-wrap {
    margin: 0;
    width: 82px;
    height: 82px;
  }

  .top-left {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .top-right {
    justify-items: end;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .scene-dots {
    justify-content: center;
  }

  .stat-pill {
    min-width: 120px;
    padding: 8px 12px;
  }

  .divider {
    margin: 10px 0;
  }

  .section-title {
    margin-top: 8px;
  }

  .link-list {
    margin-top: 6px;
  }

  .stage {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .card {
    padding: 22px;
    padding-top: 56px;
  }

  .mute-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .top-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .top-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .stat-pill {
    min-width: 0;
    text-align: center;
  }

  .section-title {
    margin-top: 6px;
  }

  .divider {
    margin: 8px 0;
  }
}

@media (max-height: 780px) {
  .stage {
    align-items: flex-start;
  }
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(2%, -2%);
  }
}

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


@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(1.5%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

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

@keyframes startFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
