@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

:root {
  --mpc-accent: #0061FF;
  --mpc-accent-hover: #0050D4;
  --mpc-accent-glow: rgba(0, 97, 255, 0.12);

  --mpc-bg: #0A0A0C;
  --mpc-surface: #141416;
  --mpc-surface-2: #1C1C1F;
  --mpc-surface-3: #242428;
  --mpc-border: #2A2A2E;
  --mpc-border-strong: #3A3A40;
  --mpc-text-primary: #F5F5F7;
  --mpc-text-secondary: #9A9AA8;
  --mpc-text-muted: #5A5A6A;

  --mpc-radius-sm: 6px;
  --mpc-radius-md: 10px;
  --mpc-radius-lg: 14px;
  --mpc-radius-xl: 20px;
  --mpc-radius-pill: 9999px;

  --mpc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --mpc-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --mpc-shadow-accent: 0 8px 32px rgba(0, 97, 255, 0.18);

  --mpc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mpc-dur-fast: 150ms;
  --mpc-dur-base: 250ms;
  --mpc-dur-slow: 600ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mpc-bg);
  color: var(--mpc-text-primary);
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 97, 255, 0.3);
  color: var(--mpc-text-primary);
}

:focus-visible {
  outline: 2px solid var(--mpc-accent);
  outline-offset: 2px;
  border-radius: var(--mpc-radius-sm);
}

/* ---- Backdrop: grid texture + accent glow + grain ---- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 40%, transparent 100%);
}

.backdrop-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, var(--mpc-accent-glow), transparent 70%);
}

.backdrop-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ---- Watermark wordmark ---- */

.watermark {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 22vw, 9rem);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 247, 0.05);
  white-space: nowrap;
  user-select: none;
  z-index: 0;
}

/* ---- Layout ---- */

.page {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 64px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Header ---- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.avatar-ring {
  width: 92px;
  height: 92px;
  border-radius: var(--mpc-radius-xl);
  background: var(--mpc-surface);
  border: 1px solid var(--mpc-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--mpc-shadow-md), 0 0 0 6px rgba(0, 97, 255, 0.06);
  margin-bottom: 20px;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mpc-accent);
  margin: 0 0 10px;
}

.profile-name {
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.profile-tagline {
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mpc-text-secondary);
  max-width: 340px;
  margin: 0;
}

/* ---- Socials ---- */

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--mpc-radius-pill);
  background: var(--mpc-surface);
  border: 1px solid var(--mpc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mpc-text-secondary);
  transition: transform var(--mpc-dur-base) var(--mpc-ease),
              border-color var(--mpc-dur-base) var(--mpc-ease),
              color var(--mpc-dur-base) var(--mpc-ease),
              box-shadow var(--mpc-dur-base) var(--mpc-ease);
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--mpc-accent);
  color: var(--mpc-accent);
  box-shadow: var(--mpc-shadow-accent);
}

.social-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Link list ---- */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--mpc-surface);
  border: 1px solid var(--mpc-border);
  border-radius: var(--mpc-radius-lg);
  box-shadow: var(--mpc-shadow-sm);
  text-decoration: none;
  color: var(--mpc-text-primary);
  transition: transform var(--mpc-dur-base) var(--mpc-ease),
              border-color var(--mpc-dur-base) var(--mpc-ease),
              box-shadow var(--mpc-dur-base) var(--mpc-ease),
              background var(--mpc-dur-base) var(--mpc-ease);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--mpc-accent);
  box-shadow: var(--mpc-shadow-accent);
  background: var(--mpc-surface-2);
}

.link-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--mpc-radius-md);
  background: linear-gradient(155deg, var(--mpc-surface-3), var(--mpc-surface-2));
  border: 1px solid var(--mpc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mpc-accent);
}

.link-thumb svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-thumb.has-image {
  background: none;
  border-color: var(--mpc-border-strong);
  overflow: hidden;
  padding: 0;
}

.link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.link-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mpc-accent);
  margin-right: 6px;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .link-live-dot { animation: none; }
}

.link-body {
  flex: 1 1 auto;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-subtitle {
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--mpc-text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--mpc-text-muted);
  transition: transform var(--mpc-dur-base) var(--mpc-ease), color var(--mpc-dur-base) var(--mpc-ease);
}

.link-card:hover .link-chevron,
.link-card:focus-visible .link-chevron {
  transform: translateX(3px);
  color: var(--mpc-accent);
}

/* ---- Footer ---- */

.footer {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mpc-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--mpc-dur-base) var(--mpc-ease);
}

.footer:hover { color: var(--mpc-text-secondary); }

.footer svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ---- Entrance animation ---- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal var(--mpc-dur-slow) var(--mpc-ease) forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .link-card, .link-chevron, .footer { transition: none; }
}
