* {
  box-sizing: border-box;
}

:root {
  --bg-1: #06070b;
  --bg-2: #0f1020;
  --bg-3: #120814;
  --text: #f6f7ff;
  --muted: #a9b0d0;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

html, body {
  min-height: 100%;
}

html {
  background-color: #06070b;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 92, 255, 0.18), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(77, 215, 255, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 77, 196, 0.10), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 40%, var(--bg-3));
  overflow-x: hidden;
}

body.effects-off *,
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 20%, #ffffff 0.5px, transparent 0.7px),
    radial-gradient(circle at 80% 70%, #ffffff 0.5px, transparent 0.8px);
  background-size: 180px 180px, 220px 220px;
  mix-blend-mode: screen;
}

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), rgba(124, 92, 255, 0));
  filter: blur(22px);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.topbar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 14px;
  font: inherit;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.chip:hover { transform: translateY(-1px); }
.audio-chip { display: inline-flex; align-items: center; gap: 10px; }

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7d859f;
}

.audio-chip.active .chip-dot { background: #4dffb8; }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 18px 28px;
  position: relative;
  z-index: 1;
}

.profile-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 760px);
  padding: 34px 28px 22px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 65px rgba(0,0,0,0.40);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  overflow: hidden;
  will-change: transform;
  transition: transform 0.16s ease-out;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 35px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.42;
  pointer-events: none;
}

.orb-1 {
  width: 180px;
  height: 180px;
  top: -70px;
  left: -50px;
  background: radial-gradient(circle, rgba(77, 215, 255, 0.78), rgba(77, 215, 255, 0));
}

.orb-2 {
  width: 200px;
  height: 200px;
  right: -70px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255, 77, 196, 0.65), rgba(255, 77, 196, 0));
}

.avatar-ring {
  position: relative;
  width: 176px;
  height: 176px;
  margin: 0 auto 22px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(77, 215, 255, 0.95), rgba(124, 92, 255, 0.95), rgba(255, 77, 196, 0.95));
  box-shadow: 0 0 0 6px rgba(255,255,255,0.05), 0 12px 34px rgba(85, 91, 255, 0.28);
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #cfd8ff;
}

.intro {
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #cfd4ff;
  opacity: 0.9;
}

.rgb-title {
  margin: 0;
  font-size: clamp(44px, 10vw, 88px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #ff5fd2, #7c5cff, #4dd7ff, #79ffb3, #ff5fd2);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rgbShift 8s linear infinite;
}

.subtitle {
  margin: 18px auto 28px;
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(16px, 3.6vw, 21px);
  line-height: 1.65;
}

.links {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.link-card {
  position: relative;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 14px 18px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 28px rgba(0,0,0,0.16);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 34px rgba(0,0,0,0.22);
}

.link-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.14) 45%, transparent 60%);
  transform: translateX(-130%);
}

.link-card:hover .link-shine { animation: shine 0.8s ease; }

.icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.24), rgba(77, 215, 255, 0.20));
  border: 1px solid rgba(255,255,255,0.14);
}

.icon-wrap svg { width: 28px; height: 28px; fill: #ffffff; }

.link-text { display: grid; gap: 4px; }
.link-text strong { font-size: clamp(20px, 4vw, 25px); font-weight: 800; letter-spacing: -0.03em; }
.link-text small { font-size: 13px; color: #c4c9ea; }
.link-arrow { font-size: 24px; opacity: 0.82; }

.footer-note {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c4c9ea;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79ffb3;
}

.ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.20);
  pointer-events: none;
  animation: ripple 0.55s ease-out forwards;
}

@keyframes ripple {
  from { width: 0; height: 0; opacity: 0.36; }
  to { width: 380px; height: 380px; opacity: 0; }
}

@keyframes shine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@keyframes rgbShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

@media (max-width: 640px) {
  .topbar { left: 14px; right: 14px; top: 14px; }
  .chip { flex: 1 1 auto; justify-content: center; }
  .profile-card { padding: 28px 16px 18px; border-radius: 28px; }
  .avatar-ring { width: 148px; height: 148px; }
  .link-card {
    grid-template-columns: 56px 1fr auto;
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 20px;
  }
  .icon-wrap { width: 56px; height: 56px; border-radius: 16px; }
  .footer-note { display: flex; text-align: left; border-radius: 18px; }
  .cursor-glow, .noise, #fx-canvas { display: none; }
}


@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .chip,
  .profile-card,
  .link-card,
  .footer-note {
    background: rgba(24, 26, 44, 0.92);
  }
}

@media (hover: none) {
  .link-card:hover,
  .chip:hover {
    transform: none;
  }
}
