:root {
  --bg: #0a0a0d; --surface: #15151b; --surface-2: #1e1e27; --line: #2a2a35;
  --text: #f4f4f6; --muted: #a3a3b2;
  --green: #1ed760; --pink: #ff4fa3; --violet: #8b6cff; --yellow: #f5e94a;
  --r: 20px; --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.4vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
em { font-style: normal; color: var(--green); }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; margin: auto; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 56ch; text-wrap: pretty; }
.fine { color: var(--muted); font-size: .86rem; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; cursor: pointer; font: 600 1rem var(--font); padding: .95rem 1.6rem; border-radius: 999px; text-decoration: none; transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--green); color: #05130a; }
.btn.primary:hover { transform: scale(1.04); background: #3be477; box-shadow: 0 8px 30px rgba(30, 215, 96, .28); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px #55556a; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); transform: scale(1.03); }
.btn.small { padding: .55rem 1rem; font-size: .88rem; }
.btn.disabled { opacity: .45; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); color: var(--text); border: 0; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: background .18s; }
.icon-btn:hover { background: var(--surface-2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: .8rem clamp(1rem, 4vw, 3rem); background: rgba(10, 10, 13, .72); backdrop-filter: blur(14px); }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none; }
.logo-mark { position: relative; width: 30px; height: 20px; }
.logo-mark i { position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%; mix-blend-mode: screen; }
.logo-mark i:first-child { left: 0; background: var(--green); }
.logo-mark i:last-child { right: 0; background: var(--pink); }
.nav-right, .nav-user { display: flex; align-items: center; gap: .8rem; }
.nav-user span { color: var(--muted); font-size: .9rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq i { width: 3px; background: var(--green); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 60%; } .eq i:nth-child(2) { height: 100%; animation-delay: -.35s; } .eq i:nth-child(3) { height: 45%; animation-delay: -.7s; }
.off .eq i { animation: none; height: 3px; background: var(--muted); }
@keyframes eq { 50% { transform: scaleY(.35); } }
.eq i { transform-origin: bottom; }

/* hero */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding: 3rem clamp(1rem, 4vw, 3rem); }
#heroFx { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; max-width: 780px; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 2rem 0 1rem; }
@media (max-width: 820px) { .hero { align-items: flex-end; padding-top: 48vh; min-height: 100vh; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* marquee */
.marquee { overflow: hidden; background: var(--green); color: #05130a; transform: rotate(-1.4deg) scale(1.03); margin: 2rem 0; }
.marquee-track { display: flex; gap: 2.2rem; width: max-content; padding: .9rem 0; font-weight: 800; font-size: clamp(1.3rem, 3vw, 2.3rem); letter-spacing: -.03em; animation: slide 26s linear infinite; }
.marquee-track span { white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* bands */
.band { padding: clamp(3.5rem, 9vw, 7.5rem) clamp(1rem, 4vw, 3rem); max-width: 1280px; margin: 0 auto; }
.band > h2 { margin-bottom: 2.5rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.step { border-radius: var(--r); padding: 1.8rem; min-height: 220px; display: flex; flex-direction: column; color: #0a0a0d; transition: transform .35s var(--ease), opacity .8s var(--ease); }
.step:hover { transform: translateY(-8px) rotate(-1deg); }
.step .num { font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.step h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin: auto 0 .6rem; padding-top: 2rem; }
.step p { font-size: .98rem; }
.s1 { background: var(--green); } .s2 { background: var(--pink); } .s3 { background: var(--yellow); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; }
.split h2 { margin-bottom: 1.2rem; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.promises li { background: var(--surface); border-radius: 16px; padding: 1.1rem 1.3rem; color: var(--muted); }
.promises b { color: var(--text); }

/* footer socials */
.socials { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.socials .fine { margin-right: .3rem; }
.social { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--text); transition: transform .25s var(--ease), background .25s, color .25s; }
.social:hover { transform: translateY(-3px); background: var(--green); color: #05130a; }

.footer { padding: 2.5rem clamp(1rem, 4vw, 3rem) 3.5rem; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); max-width: 1280px; margin: 0 auto; }

/* app */
#app { max-width: 1040px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; min-height: 70vh; }
.app-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.chip { background: var(--surface-2); padding: .28rem .75rem; border-radius: 999px; font-size: .82rem; white-space: nowrap; }
.chip.alt { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.tabs { display: flex; gap: .4rem; overflow-x: auto; margin: 1.8rem 0 1.5rem; padding-bottom: .3rem; scrollbar-width: none; }
.tabs button { background: var(--surface); color: var(--text); border: 0; padding: .65rem 1.15rem; border-radius: 999px; font: 600 .95rem var(--font); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--ease); }
.tabs button:hover { background: var(--surface-2); }
.tabs button[aria-selected=true] { background: var(--text); color: var(--bg); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: #0a0a0d; font-size: .72rem; margin-left: .3rem; }
.panel-intro { margin-bottom: 1.2rem; }
.sub { margin: 2.2rem 0 1rem; color: var(--muted); }
.card { background: var(--surface); border-radius: var(--r); padding: 1.6rem; }

.pop { animation: pop .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.list { display: grid; gap: .7rem; }
.match { display: flex; align-items: center; gap: 1rem; background: var(--surface); border-radius: var(--r); padding: 1rem 1.2rem; transition: background .2s, transform .25s var(--ease); width: 100%; border: 0; color: inherit; font: inherit; text-align: left; }
.match:hover { background: var(--surface-2); transform: translateY(-2px); }
.convo { cursor: pointer; }
.convo.unread { box-shadow: inset 3px 0 0 var(--pink); }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #0a0a0d; overflow: hidden; background: var(--green); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hue1 { background: var(--pink); } .hue2 { background: var(--violet); } .hue3 { background: var(--yellow); }
.score { text-align: right; flex: none; }
.score .n { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.score .u { font-size: .72rem; color: var(--muted); }
.score.inline { text-align: left; }
@media (max-width: 640px) { .match { flex-wrap: wrap; } .match .btn { width: 100%; } }

.empty { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1rem; background: var(--surface); border-radius: var(--r); }
.empty h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .8rem; }
.empty .lede { margin: 0 auto 1.6rem; }

/* twin reveal */
.twin-reveal { display: grid; grid-template-columns: minmax(220px, 1fr) 1.4fr; gap: 2.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 28px; background: linear-gradient(135deg, #2a1d5e, #16161d 60%); overflow: hidden; }
.twin-reveal.mutual { background: linear-gradient(135deg, #0f5c2c, #3a1640 85%); }
.twin-reveal h2 small { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: .5rem; }
.twin-reveal .lede { margin: 1rem 0; color: #d6d6e2; }
.twin-art { position: relative; aspect-ratio: 1; max-width: 300px; width: 100%; margin: auto; }
.orb { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.orb .avatar { width: 100%; height: 100%; font-size: 4rem; }
.orb.a { left: 0; top: 0; animation: joinA 1.5s var(--ease) both, bob 5s ease-in-out 1.5s infinite; }
.orb.b { right: 0; bottom: 0; animation: joinB 1.5s var(--ease) both, bob 5s ease-in-out -1s infinite reverse; }
.orb.a .avatar { background: var(--green); }
.orb.b .avatar { background: var(--pink); box-shadow: 0 0 0 6px var(--bg); }
@keyframes joinA { from { transform: translate(-70%, -50%) scale(.4); opacity: 0; } }
@keyframes joinB { from { transform: translate(70%, 50%) scale(.4); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-9px); } }
@media (max-width: 720px) { .twin-reveal { grid-template-columns: 1fr; } .twin-art { max-width: 200px; } }

/* forms */
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; align-items: start; }
.form { display: grid; gap: 1rem; }
.form h2 { font-size: 1.6rem; }
.form label { display: grid; gap: .35rem; font-size: .86rem; color: var(--muted); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
input, select { width: 100%; background: var(--surface-2); color: var(--text); border: 1.5px solid transparent; border-radius: 12px; padding: .8rem .9rem; font: 400 1rem var(--font); transition: border-color .2s; }
input:focus, select:focus { outline: 0; border-color: var(--green); }
.form .check { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.twin-card { background: linear-gradient(160deg, #3a1640, var(--surface) 70%); }
.danger { margin-top: 2rem; text-align: center; }
.local-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.local-bar .fine { flex-basis: 100%; }
.local-bar select { width: auto; padding: .4rem .6rem; }
.inline { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; }
.switch { display: flex; align-items: center; gap: .7rem; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; }
.switch span { width: 48px; height: 28px; border-radius: 14px; background: #44444f; position: relative; transition: background .25s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }

/* chat drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); z-index: 40; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .45s var(--ease); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer header { display: flex; align-items: center; gap: .6rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.drawer header .avatar { width: 42px; height: 42px; font-size: 1.1rem; }
.drawer header strong, .drawer header .fine { display: block; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.bubble { max-width: 80%; padding: .6rem .95rem; border-radius: 18px; overflow-wrap: anywhere; animation: pop .35s var(--ease) both; }
.bubble.mine { align-self: flex-end; background: var(--green); color: #05130a; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.chat-form { display: flex; gap: .6rem; padding: 1rem; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: var(--text); color: var(--bg); padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .92rem; z-index: 60; transition: transform .4s var(--ease); max-width: calc(100vw - 2rem); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.toast.bad { background: var(--pink); color: #0a0a0d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.hero-title { text-transform: uppercase; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.92; }
.neighbours-lede { margin-top: 1.2rem; }

/* no text highlighting or drag-select; form fields stay typeable */
body { -webkit-user-select: none; user-select: none; }
input, select, textarea { -webkit-user-select: text; user-select: text; }
img, a, canvas { -webkit-user-drag: none; }
