/* ==========================================================
   yovaris — link in bio
   One look: pale blue-lavender frosted glass over a video background.
   Type: Unbounded (display) + Manrope (text)
   ========================================================== */

:root {
  --night: #0a0d18;
  --text: #f4f6ff;
  --muted: rgba(228, 234, 255, 0.72);

  /* glass (matches the translucent toggle in the reference) */
  --tint: rgba(206, 218, 255, 0.16);
  --tint-hover: rgba(214, 225, 255, 0.24);
  --tint-solid: rgba(240, 244, 255, 0.78);
  --edge: rgba(255, 255, 255, 0.36);
  --glow: #d6e0ff;
  --ink: #26304f;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --metal: linear-gradient(
    105deg,
    #8e9bc4 0%,
    #cfd8f5 22%,
    #ffffff 38%,
    #b3bfe3 52%,
    #f1f4ff 66%,
    #8e9bc4 100%
  );
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 14px;
}

/* ---------- Video background ---------- */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--night);
}

.bg-shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(8, 11, 26, 0.18) 0%, rgba(8, 11, 26, 0.62) 100%),
    linear-gradient(to bottom, rgba(8, 11, 26, 0.30), rgba(8, 11, 26, 0.50));
}

/* ---------- Shared glass pill ---------- */
.glass-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
          backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 34px -10px rgba(6, 9, 24, 0.55);
}

/* ==========================================================
   INTRO / PRELOADER
   ========================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #070a14;
  transition: opacity 0.9s ease, visibility 0.9s ease, transform 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.preloader__aura {
  position: absolute;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 42% 50%, rgba(160, 182, 255, 0.24), transparent 55%),
    radial-gradient(circle at 60% 52%, rgba(206, 218, 255, 0.16), transparent 55%);
  filter: blur(40px);
  opacity: 0;
  animation: aura 3.2s ease-out 0.2s forwards;
}

.preloader__stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(20px, 4vw, 30px);
  padding: 0 20px;
}

.logo {
  position: relative;
  filter:
    drop-shadow(0 0 12px rgba(190, 206, 255, 0.35))
    drop-shadow(0 0 40px rgba(150, 172, 255, 0.35));
  animation: bloom 3.2s ease-in-out 0.3s both;
}

.logo__text {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 14vw, 8.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 0.05em 0.08em;
  color: transparent;
  background: var(--metal);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  clip-path: inset(-10% 100% -10% 0);
  filter: blur(14px);
  transform: translateY(0.08em) scale(0.96);
  animation:
    reveal 1.5s cubic-bezier(0.65, 0, 0.15, 1) 0.4s forwards,
    sweep 2.1s cubic-bezier(0.45, 0, 0.2, 1) 1.2s forwards;
}

.logo__beam {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 0;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(to bottom, transparent, #fff 20%, #fff 80%, transparent);
  box-shadow:
    0 0 12px 3px rgba(214, 224, 255, 0.9),
    0 0 40px 12px rgba(150, 172, 255, 0.6);
  opacity: 0;
  animation: beam 1.5s cubic-bezier(0.65, 0, 0.15, 1) 0.4s forwards;
}

.preloader__bar {
  width: min(220px, 55vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #9fb4ff, #ffffff);
  box-shadow: 0 0 12px rgba(190, 206, 255, 0.9);
  animation: load 2.9s cubic-bezier(0.5, 0, 0.2, 1) 0.2s forwards;
}

/* Tap to enter (needed so the browser lets the video play with sound) */
.enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--tint);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
          backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 34px -10px rgba(6, 9, 24, 0.6);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.enter svg { width: 20px; height: 20px; }
.preloader.can-enter .enter {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.enter:hover,
.enter:focus-visible {
  background: var(--tint-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 36px -4px rgba(190, 206, 255, 0.55);
}
.enter:active { transform: scale(0.97); }

@keyframes reveal {
  0%   { clip-path: inset(-10% 100% -10% 0); filter: blur(14px); transform: translateY(0.08em) scale(0.96); }
  60%  { filter: blur(3px); }
  100% { clip-path: inset(-10% -2% -10% 0); filter: blur(0); transform: translateY(0) scale(1); }
}
@keyframes sweep {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@keyframes beam {
  0%   { left: 0; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes bloom {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(190, 206, 255, 0.25)) drop-shadow(0 0 30px rgba(150, 172, 255, 0.25)); }
  55%      { filter: drop-shadow(0 0 22px rgba(205, 218, 255, 0.6)) drop-shadow(0 0 70px rgba(150, 172, 255, 0.55)); }
}
@keyframes aura {
  0%   { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes load { to { transform: scaleX(1); } }

/* ==========================================================
   SOUND SWITCH (same segmented glass as the reference)
   ========================================================== */
.sound {
  position: fixed;
  z-index: 20;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  padding: 4px;
  gap: 2px;
}
.sound__opt {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.sound__opt svg { width: 18px; height: 18px; }
.sound__opt.is-on {
  background: var(--tint-solid);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(8, 12, 30, 0.25);
}
.sound__opt:not(.is-on):hover { color: #fff; }

/* ==========================================================
   MAIN PAGE
   ========================================================== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(64px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.hero {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}
body.is-ready .reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.9s ease;
  transition-delay: calc(var(--d, 0) * 0.09s);
}

/* Avatar */
.avatar {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
}
.avatar__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.95), rgba(150,172,255,0.5), rgba(255,255,255,0.95), rgba(150,172,255,0.5), rgba(255,255,255,0.95));
  animation: spin 7s linear infinite;
  box-shadow: 0 0 28px rgba(170, 190, 255, 0.45);
}
.avatar__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #05060b;
}
.avatar__core img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Brand */
.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 13vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: transparent;
  background: var(--metal);
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  filter: drop-shadow(0 4px 28px rgba(8, 12, 30, 0.55));
  animation: shimmer 7s ease-in-out infinite;
}
body.is-ready .brand.reveal { filter: drop-shadow(0 4px 28px rgba(8, 12, 30, 0.55)); }

.bio {
  margin: 14px 0 22px;
  max-width: 34ch;
  font-size: clamp(1rem, 3.8vw, 1.12rem);
  color: var(--muted);
  text-shadow: 0 2px 16px rgba(8, 12, 30, 0.6);
}

/* Views */
.views {
  gap: 9px;
  margin-bottom: 26px;
  padding: 9px 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.views svg { width: 18px; height: 18px; color: var(--glow); }
.views strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Cards ---------- */
.cards {
  width: 100%;
  display: grid;
  gap: 14px;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 24px;
  text-align: left;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 62%),
    var(--tint);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
          backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 44px -14px rgba(6, 9, 24, 0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

/* Glowing border that follows the cursor */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(200px circle at var(--mx) var(--my), #fff, rgba(190, 206, 255, 0.0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  box-shadow: 0 0 36px -4px rgba(190, 206, 255, 0.55), 0 18px 54px -18px rgba(150, 172, 255, 0.6);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover,
.card:focus-visible,
.card.is-active {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.6);
}
.card:hover::before,
.card:focus-visible::before,
.card.is-active::before,
.card:hover::after,
.card:focus-visible::after,
.card.is-active::after { opacity: 1; }
.card:active { transform: scale(0.985); }

.card__icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--tint-solid);
  box-shadow: 0 4px 16px -4px rgba(8, 12, 30, 0.4);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon,
.card:focus-visible .card__icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 24px -2px rgba(214, 224, 255, 0.8);
}

.card__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.card__desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.card__arrow {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.35s ease;
}
.card:hover .card__arrow,
.card:focus-visible .card__arrow {
  color: #fff;
  transform: translate(3px, -3px);
}

.foot {
  margin-top: 34px;
  font-size: 0.8rem;
  color: rgba(228, 234, 255, 0.5);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: 0% 0; }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero { max-width: 760px; }
  .avatar { width: 96px; height: 96px; margin-bottom: 26px; }
  .views { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px; }
  .card__body { width: 100%; }
  .card__arrow { position: absolute; top: 22px; right: 22px; }
}

@media (max-width: 380px) {
  .card { padding: 16px; gap: 12px; }
  .card__icon { width: 46px; height: 46px; }
}

@media (max-height: 640px) and (orientation: landscape) {
  .page { place-items: start center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .logo__text { clip-path: none; filter: none; transform: none; background-position: 0 0; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
