/* ZunimiLabs — shared styles. Colours come from the logo: cyan -> electric blue -> violet. */
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #04050d;
  --bg2: #080a1a;
  --card: rgba(255, 255, 255, .045);
  --card-hi: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --cyan: #22d3ee;
  --blue: #3b5bff;
  --indigo: #4f2bff;
  --violet: #a855f7;
  --pink: #ec4899;
  --grad: linear-gradient(110deg, var(--cyan), var(--blue) 45%, var(--violet) 80%, var(--pink));
  --radius: 22px;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 400 17px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', system-ui, sans-serif; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- animated background ---------- */
.sky { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(1200px 700px at 70% -10%, #121a52 0%, transparent 60%), var(--bg); }
.sky .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.sky .b1 { width: 620px; height: 620px; background: var(--indigo); top: -200px; left: -160px; }
.sky .b2 { width: 520px; height: 520px; background: var(--cyan); top: 30%; right: -200px; opacity: .32; animation-delay: -7s; }
.sky .b3 { width: 560px; height: 560px; background: var(--violet); bottom: -260px; left: 30%; opacity: .38; animation-delay: -14s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(90px, -70px) scale(1.15); } 100% { transform: translate(-60px, 50px) scale(.95); } }
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.grid-floor { position: fixed; inset: auto 0 0 0; height: 45vh; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(79, 43, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .25) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 60px, 0 0; } }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(6, 7, 20, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 1.15rem 'Sora', sans-serif; letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 14px rgba(59, 91, 255, .7)); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.brand:hover img { transform: rotate(-14deg) scale(1.1); }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 9px 15px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--card-hi); }
.menu-btn { display: none; background: var(--card); border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: absolute; top: 76px; left: 14px; right: 14px; flex-direction: column; align-items: stretch; padding: 10px;
    background: rgba(8, 10, 26, .96); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(20px);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .25s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 16px; }
}

/* ---------- buttons, pills ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 16px; border: 0; cursor: pointer;
  font: 600 1rem 'Inter', sans-serif; color: #fff; background: var(--grad); background-size: 200% 100%; isolation: isolate;
  box-shadow: 0 10px 40px -8px rgba(59, 91, 255, .75); transition: transform .25s, box-shadow .25s, background-position .6s; }
.btn:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 18px 50px -8px rgba(168, 85, 247, .8); }
.btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 150% 0; transition: background-position .8s; mix-blend-mode: overlay; }
.btn:hover::after { background-position: -50% 0; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(10px); }
.btn.ghost:hover { background: var(--card-hi); border-color: rgba(255, 255, 255, .2); }
.btn.discord { background: linear-gradient(110deg, #5865f2, #7c4dff); box-shadow: 0 10px 40px -8px rgba(88, 101, 242, .8); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); backdrop-filter: blur(8px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ping 2s infinite; }
.pill.soon .dot { background: #fbbf24; box-shadow: 0 0 0 0 rgba(251, 191, 36, .7); }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.gt { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }

/* ---------- hero ---------- */
.hero { min-height: min(100vh, 1000px); display: grid; place-items: center; text-align: center; padding: 120px 0 80px; position: relative; }
.hero .logo-big { width: min(640px, 92%); margin: 0 auto 26px; filter: drop-shadow(0 0 40px rgba(59, 91, 255, .45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); font-weight: 800; margin: 18px 0; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 680px; margin: 0 auto 36px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); filter: blur(6px); transition: .6s cubic-bezier(.2, .8, .2, 1); }
.rotator span.on { opacity: 1; transform: none; filter: none; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* product hero */
.phero { padding: 150px 0 70px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.phero h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 800; margin: 16px 0 18px; }
.phero .lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 32px; max-width: 560px; }
.phero .cta { justify-content: flex-start; }
@media (max-width: 900px) { .phero { grid-template-columns: 1fr; text-align: center; } .phero .lead { margin-inline: auto; } .phero .cta { justify-content: center; } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: 110px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font: 600 .8rem 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }

/* cards with mouse spotlight + rotating border */
.card { position: relative; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s; transform-style: preserve-3d; }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 43, 255, .28), transparent 60%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(120, 140, 255, .35); box-shadow: 0 30px 80px -30px rgba(59, 91, 255, .55); }
.card h3 { font-size: 1.25rem; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.ring { position: relative; }
.ring::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 60%, var(--cyan), var(--blue), var(--violet), transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(168, 85, 247, .22)); border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.card:hover .icon { transform: rotate(-10deg) scale(1.12); }

/* product showcase cards */
.product { padding: 38px; min-height: 100%; display: flex; flex-direction: column; }
.product .ptop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 10px; }
.product .pico { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 2.3rem; }
.product.cd .pico { background: linear-gradient(135deg, #ff2d55, #ff7a18); box-shadow: 0 14px 40px -10px #ff2d55; }
.product.nv .pico { background: linear-gradient(135deg, #5865f2, #a855f7); box-shadow: 0 14px 40px -10px #7c4dff; }
.product h3 { font-size: 2rem; font-weight: 800; }
.product .tag { color: var(--text); opacity: .85; font-weight: 500; margin: 8px 0 14px; }
.product ul { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 10px; }
.product li { display: flex; gap: 10px; color: var(--muted); }
.product li::before { content: '✦'; color: var(--cyan); }
.product .go { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.arrow { transition: transform .25s; } .btn:hover .arrow { transform: translateX(4px); }

/* download platforms */
.platform { display: flex; flex-direction: column; gap: 14px; }
.platform .icon { margin-bottom: 4px; }
.platform .btn, .platform .pill { align-self: flex-start; }
.platform small { color: var(--muted); font-size: .85rem; margin-top: auto; }
.platform small a { color: #8fb3ff; text-decoration: underline; }
.platform.mine { border-color: rgba(34, 211, 238, .55); box-shadow: 0 30px 80px -30px rgba(34, 211, 238, .6); }
.platform.mine h3::after { content: 'Your device'; margin-left: 10px; font: 600 .7rem 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; background: rgba(34, 211, 238, .15); color: var(--cyan); vertical-align: middle; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; }
.stat b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem) 'Sora', sans-serif; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* marquee of platforms */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding: 10px 0; }
.marquee .track { display: flex; gap: 16px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .chip { padding: 12px 22px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); white-space: nowrap; font-weight: 600; color: var(--muted); }
@keyframes slide { to { transform: translateX(-50%); } }

/* steps */
.steps { counter-reset: step; }
.step { padding-top: 64px; }
.step::after { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 22px; left: 30px;
  font: 800 1.6rem 'Sora', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* mockups */
.mock { text-align: left; border-radius: 24px; padding: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(79, 43, 255, .8); animation: float 8s ease-in-out infinite; }
.mock .bar { display: flex; gap: 7px; margin-bottom: 14px; } .mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .mock .bar i:nth-child(2) { background: #febc2e; } .mock .bar i:nth-child(3) { background: #28c840; }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; margin-bottom: 9px; background: rgba(0, 0, 0, .28); font-size: .92rem;
  opacity: 0; transform: translateX(-16px); animation: msgin .6s forwards; }
.msg .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; }
.msg b { display: block; font-size: .82rem; } .msg span { color: var(--muted); }
.msg.paid { background: linear-gradient(110deg, rgba(251, 191, 36, .22), rgba(236, 72, 153, .18)); border: 1px solid rgba(251, 191, 36, .35); }
.msg .src { margin-left: auto; font-size: .72rem; padding: 3px 8px; border-radius: 99px; background: var(--card-hi); color: var(--muted); }
@keyframes msgin { to { opacity: 1; transform: none; } }
.wave { display: flex; gap: 4px; align-items: center; height: 34px; margin-top: 14px; padding: 0 6px; }
.wave i { flex: 1; border-radius: 3px; background: var(--grad); height: 30%; animation: eq 1.1s ease-in-out infinite; }
@keyframes eq { 50% { height: 100%; } }
.dc { background: #313338; border-radius: 16px; padding: 16px; font-size: .92rem; }
.dc .row { display: flex; gap: 12px; margin-bottom: 14px; }
.dc .bot { font-size: .62rem; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.dc .embed { border-left: 4px solid var(--violet); background: #2b2d31; border-radius: 6px; padding: 12px 14px; margin-top: 6px; }
.dc .embed b { display: block; margin-bottom: 4px; }
.dc .btns { display: flex; gap: 8px; margin-top: 10px; } .dc .btns span { background: #4e5058; padding: 6px 12px; border-radius: 6px; font-size: .82rem; }
.dc .btns span.p { background: #5865f2; }
.dc .slash { background: #383a40; border-radius: 10px; padding: 11px 14px; color: #b5bac1; font-family: ui-monospace, monospace; font-size: .88rem; }
.dc .slash b { color: #c9cdfb; }
.caret { display: inline-block; width: 2px; height: 1em; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* big CTA band */
.band { text-align: center; padding: 70px 30px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(600px 300px at 20% 0%, rgba(34, 211, 238, .25), transparent 70%), radial-gradient(600px 300px at 80% 100%, rgba(168, 85, 247, .3), transparent 70%), rgba(255, 255, 255, .04); }
.band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 14px; }
.band p { color: var(--muted); margin: 0 auto 30px; max-width: 560px; }

/* legal pages */
.legal { padding: 140px 0 80px; }
.legal .doc { max-width: 860px; margin: 0 auto; padding: clamp(26px, 5vw, 56px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin: 8px 0 8px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 10px; }
.legal p, .legal li { color: #c3c9e4; }
.legal a { color: #8fb3ff; text-decoration: underline; text-underline-offset: 3px; }
.legal code { background: rgba(255, 255, 255, .08); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal .toc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 56px 0 40px; background: linear-gradient(to bottom, transparent, rgba(4, 5, 13, .9)); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot a { display: block; color: #c3c9e4; padding: 4px 0; transition: color .2s; } .foot a:hover { color: var(--cyan); }
.foot .logo-sm { width: 210px; margin-bottom: 14px; }
.foot p { color: var(--muted); font-size: .92rem; margin: 0; max-width: 340px; }
.legalnote { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* cursor glow */
.glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1; left: 0; top: 0;
  background: radial-gradient(circle, rgba(59, 91, 255, .16), transparent 65%); transform: translate(-50%, -50%); transition: opacity .3s; }

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