/* VYBE web: same look as the app. Dark space, glass cards, Inter Tight, mood colours. */
:root {
  --bg: #05060B; --ink: #F4F3F1; --muted: rgba(244,243,241,.62); --dim: rgba(244,243,241,.38);
  --glass: rgba(255,255,255,.045); --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --violet: #8C7BFF; --pink: #E0389B; --orange: #FF8A3D; --teal: #3FD1C2; --gold: #FFD270;
  --grad: linear-gradient(135deg, #7B5CFF, #E0389B 55%, #FF8A3D);
  --r: 24px; --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1180px, 100% - 24px);
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(12,13,20,.62); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .32em; font-size: 14px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav .links { display: flex; gap: 2px; margin-left: auto; }
.nav .links a { padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav .links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-white { background: #fff; color: #0B0B10; }
.btn-white:hover { box-shadow: 0 10px 40px rgba(255,255,255,.18); transform: translateY(-1px); }
.btn-glass { background: rgba(255,255,255,.08); border: 1px solid var(--line2); color: var(--ink); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 40px rgba(224,56,155,.35); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 860px) { .nav .links { display: none; } .nav .btn { margin-left: auto; } }

/* type */
.kick { font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.h1 { font-size: clamp(46px, 8vw, 104px); }
.h2 { font-size: clamp(36px, 5.2vw, 64px); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cards */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: all .25s; }
.chip:hover { color: var(--ink); }
.chip.on { background: #fff; color: #0B0B10; border-color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(40px) rotateX(14deg); transform-origin: 50% 100%; transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s } .rv.d2 { transition-delay: .16s } .rv.d3 { transition-delay: .24s }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* forms */
.field { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line2); transition: border-color .2s, background .2s; }
.field:focus-within { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 17px; }
.field select { background: rgba(255,255,255,.08); border: 0; border-radius: 10px; height: 36px; padding: 0 8px; outline: 0; font-weight: 700; }
.field select option { background: #111; }
.err { color: #FF8A8A; font-size: 13.5px; font-weight: 600; min-height: 20px; margin-top: 10px; }
.fine { color: var(--dim); font-size: 12.5px; line-height: 1.5; }

/* simple pages */
.page { padding: 140px 0 80px; }
.page h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 14px; }
.page h2 { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 10px; }
.page p, .page li { color: var(--muted); margin-bottom: 12px; max-width: 760px; }
.page ul { padding-left: 20px; }
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--dim); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: var(--ink); }

/* sign-in card (shared by the landing page, /login and the web player) */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.auth { padding: 32px; border-radius: 30px; background: linear-gradient(160deg, rgba(22,23,34,.78), rgba(10,11,18,.86)); border: 1px solid transparent; box-shadow: 0 40px 120px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3); position: relative; overflow: hidden; isolation: isolate; }
.auth::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ang), rgba(255,255,255,.08), #7B5CFF, #E0389B, #FF8A3D, rgba(255,255,255,.08) 40%, rgba(255,255,255,.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinB 9s linear infinite; }
.auth::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: var(--tint, var(--violet)); filter: blur(90px); opacity: .28; pointer-events: none; z-index: -1; transition: background 1s; animation: drift 14s ease-in-out infinite alternate; }
@keyframes spinB { to { --ang: 360deg; } }
@keyframes drift { to { transform: translate(-60px, 80px) scale(1.2); } }
.auth-x > * { animation: authIn .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i { height: 4px; width: 22px; border-radius: 2px; background: rgba(255,255,255,.15); transition: background .4s, width .5s cubic-bezier(.2,.8,.2,1); }
.steps i.on { background: linear-gradient(90deg, #fff, #cfc6ff); width: 36px; }
.auth h3 { font-size: 30px; margin-bottom: 8px; }
.auth .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.seg { position: relative; display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); margin-bottom: 14px; }
.seg::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 4px 20px rgba(255,255,255,.2); }
.seg[data-on=email]::before { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; flex: 1; height: 38px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; transition: color .3s; }
.seg button.on { color: #0B0B10; }
.codes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 4px; }
.codes input { height: 62px; min-width: 0; text-align: center; font-size: 25px; font-weight: 800; border-radius: 15px; background: rgba(255,255,255,.06); border: 1.5px solid var(--line2); outline: 0; transition: border-color .2s, box-shadow .3s, transform .25s, background .3s; }
.codes input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(140,123,255,.25), 0 0 30px rgba(140,123,255,.35); transform: translateY(-2px); }
.codes input.has { background: rgba(140,123,255,.14); border-color: rgba(140,123,255,.7); }
.codes.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth .full { width: 100%; margin-top: 16px; height: 54px; position: relative; overflow: hidden; }
.auth .full::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(140,123,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.linkbtn { background: none; border: 0; color: var(--ink); font-weight: 700; cursor: pointer; padding: 12px 0 0; font-size: 14px; }
.linkbtn[disabled] { color: var(--dim); }
.swatches { display: flex; gap: 10px; margin: 6px 0 16px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.swatches button:hover { transform: scale(1.15); }
.swatches button.on { border-color: #fff; transform: scale(1.12); }
.me { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.av { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #0B0B10; flex: none; transition: background .5s; }
.av.pop { animation: pop .8s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .auth::after, .auth::before, .auth .full::after { animation: none; } .auth-x > * { animation: none; } }

/* shared motion helpers */
.magnet { transition: transform .4s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
