/* Lyvéra — site styles.
   Self-contained: no external fonts, scripts, images or network requests. */

:root {
  color-scheme: dark;

  --ink: #07050f;
  --violet-deep: #2e1a59;
  --violet: #591fa6;
  --magenta: #bf1a8c;
  --gold: #f2bf4d;
  --gold-soft: #ffe2a1;

  --text: rgba(246, 243, 252, 0.86);
  --text-dim: rgba(246, 243, 252, 0.62);
  --text-faint: rgba(246, 243, 252, 0.40);
  --hair: rgba(255, 255, 255, 0.09);
  --hair-strong: rgba(255, 255, 255, 0.16);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(242, 191, 77, 0.28); color: #fff; }

a { color: var(--gold-soft); text-decoration-color: rgba(242, 191, 77, 0.45); text-underline-offset: 3px; transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease); }
a:hover { color: var(--gold); text-decoration-color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }


/* ─── Atmosphere ──────────────────────────────────────────────────────────── */

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

.bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 38% at 14% 8%,  rgba(89, 31, 166, 0.62), transparent 70%),
    radial-gradient(34% 34% at 88% 18%, rgba(191, 26, 140, 0.40), transparent 72%),
    radial-gradient(42% 42% at 52% 108%, rgba(242, 191, 77, 0.20), transparent 70%);
  animation: drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 38%, #000, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 38%, #000, transparent 75%);
}

/* Fine film grain: removes gradient banding and adds depth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}


/* ─── Top bar ─────────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(14px, env(safe-area-inset-top)) clamp(18px, 4vw, 40px) 14px;
  background: linear-gradient(rgba(7, 5, 15, 0.72), rgba(7, 5, 15, 0.40));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--hair);
}

.mark {
  font: 500 26px/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  background: linear-gradient(180deg, #fff 25%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.bar nav { display: flex; gap: 2px; }

.bar nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.bar nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.bar nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.09); }


/* ─── Hero (home and shared-link pages) ───────────────────────────────────── */

.hero {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 7vh, 72px) 24px clamp(40px, 9vh, 96px);
}

/* A soft light that follows the pointer on desktop. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(242, 191, 77, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.hero:hover::before { opacity: 1; }

.hero > * { animation: rise 1.2s var(--ease) both; }
.hero > :nth-child(1) { animation-delay: 0.05s; }
.hero > :nth-child(2) { animation-delay: 0.20s; }
.hero > :nth-child(3) { animation-delay: 0.32s; }
.hero > :nth-child(4) { animation-delay: 0.42s; }
.hero > :nth-child(5) { animation-delay: 0.52s; }
.hero > :nth-child(6) { animation-delay: 0.62s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.word {
  margin: clamp(30px, 6vh, 56px) 0 0;
  font: 500 clamp(3.6rem, 14vw, 8.2rem) / 0.95 var(--serif);
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 18%, var(--gold) 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 44px rgba(191, 26, 140, 0.30));
}

.line {
  margin: 18px 0 0;
  font: 300 clamp(1.05rem, 2.8vw, 1.55rem) / 1.4 var(--sans);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.84);
}

.sub {
  margin: 8px 0 0;
  font: 300 clamp(0.95rem, 2.1vw, 1.12rem) / 1.5 var(--sans);
  color: var(--text-dim);
}

.rule {
  width: 72px;
  height: 1px;
  margin: 30px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 30px 0 0;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: ping 2.6s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(242, 191, 77, 0.55); }
  80%, 100% { box-shadow: 0 0 0 11px rgba(242, 191, 77, 0); }
}


/* ─── The orb: the app's breathing circle and sound bars ──────────────────── */

.orb {
  --s: clamp(190px, 36vmin, 320px);
  position: relative;
  width: var(--s);
  height: var(--s);
  display: grid;
  place-items: center;
}

.orb > * { position: absolute; }

.halo {
  inset: -42%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 191, 77, 0.30), rgba(191, 26, 140, 0.20) 46%, transparent 72%);
  animation: breathe 7s ease-in-out infinite;
}

.ring { border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.11); }
.ring-a { inset: -9%; }
.ring-b { inset: -22%; border-color: rgba(255, 255, 255, 0.055); }

.orbit { inset: -9%; border-radius: 50%; animation: spin 26s linear infinite; }

.sat {
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 191, 77, 0.15), 0 0 22px 4px rgba(242, 191, 77, 0.65);
}

.core {
  position: relative;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7%;
  background: radial-gradient(120% 120% at 28% 18%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.05) 38%, rgba(7, 5, 15, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -30px 60px rgba(191, 26, 140, 0.18),
    0 40px 90px -30px rgba(191, 26, 140, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: breathe 7s ease-in-out infinite;
}

.core i {
  display: block;
  width: 6%;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), #fff);
  transform-origin: 50% 50%;
  animation: eq 2.2s ease-in-out infinite;
}
.core i:nth-child(1) { height: 26%; animation-delay: -0.2s; }
.core i:nth-child(2) { height: 44%; animation-delay: -0.7s; }
.core i:nth-child(3) { height: 62%; animation-delay: -1.1s; }
.core i:nth-child(4) { height: 40%; animation-delay: -1.6s; }
.core i:nth-child(5) { height: 22%; animation-delay: -0.4s; }

@keyframes eq      { 0%, 100% { transform: scaleY(0.62); } 50% { transform: scaleY(1.12); } }
@keyframes breathe { 0%, 100% { transform: scale(0.985); } 50% { transform: scale(1.025); } }
@keyframes spin    { to { transform: rotate(360deg); } }


/* ─── Documents (privacy, terms, support) ─────────────────────────────────── */

.doc {
  flex: 1;
  width: min(100% - 36px, 780px);
  margin: clamp(30px, 6vw, 76px) auto clamp(44px, 8vw, 100px);
  animation: rise 1s var(--ease) both;
}

.doc-head {
  margin: 0 0 26px;
  padding: 0 4px 26px;
  border-bottom: 1px solid var(--hair);
}

.doc h1 {
  margin: 0 0 12px;
  font: 500 clamp(2.5rem, 7vw, 4rem) / 1.03 var(--serif);
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 226, 161, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stamp { margin: 0; font-size: 13.5px; color: var(--text-faint); letter-spacing: 0.01em; }

.doc-body {
  padding: clamp(24px, 4.5vw, 48px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 10, 30, 0.74), rgba(9, 6, 20, 0.66));
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 100px -40px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.doc h2 {
  margin: 2.3em 0 0.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--hair);
  font: 500 1.18rem / 1.3 var(--serif);
  letter-spacing: -0.005em;
  color: #fff;
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.doc p {
  margin: 0.7em 0;
  font-size: 15.5px;
  line-height: 1.8;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  color: var(--text);
}


/* ─── Footer ──────────────────────────────────────────────────────────────── */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 26px clamp(18px, 4vw, 40px) max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--text-faint);
}

.foot p { margin: 0; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: #fff; }


/* ─── Small screens ───────────────────────────────────────────────────────── */

@media (max-width: 520px) {
  .bar nav a { padding: 8px 10px; }
  .doc-body { border-radius: 22px; }
  .doc p { font-size: 15px; }
  .foot { justify-content: center; text-align: center; }
}


/* ─── Motion preferences ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ─── Print ───────────────────────────────────────────────────────────────── */

@media print {
  body { background: #fff; color: #000; }
  .bg, body::after, .bar nav, .foot nav { display: none !important; }
  .bar, .doc-body { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mark, .doc h1 { background: none; -webkit-text-fill-color: #000; color: #000; }
  .doc h2, .doc p, a { color: #000; }
}
