/* AstraBlox homepage v5 - Roblox-style, animated, uncluttered */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0d0e12; --bg2: #14161b; --card: #1c1f26; --card2: #242832; --line: #2b2f39; --line2: #3a3f4b;
  --text: #f6f7f9; --muted: #a3a9b5; --dim: #6f7684;
  --blue: #3b6cff; --blue2: #5b86ff; --green: #00b06f; --green2: #10c985; --gold: #ffb020; --cyan: #3ad4ff; --pink: #ff5ab4;
  --r: 14px; --r2: 20px; --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.wrap { width: min(var(--max), 92vw); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- background: drifting aurora + grid ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx .blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; will-change: transform; }
.bg-fx .b1 { background: radial-gradient(circle, var(--blue) 0%, transparent 62%); top: -25vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.bg-fx .b2 { background: radial-gradient(circle, #7c3aed 0%, transparent 62%); top: -10vmax; right: -25vmax; animation: drift2 32s ease-in-out infinite alternate; opacity: .24; }
.bg-fx .b3 { background: radial-gradient(circle, var(--green) 0%, transparent 62%); bottom: -35vmax; left: 20vmax; animation: drift3 38s ease-in-out infinite alternate; opacity: .16; }
.bg-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, 18vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-12vmax, -14vmax) scale(1.2); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(1.4); background: rgba(13,14,18,.72); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-color: var(--line); background: rgba(13,14,18,.9); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); transition: color .2s, background .2s, transform .2s; }
.icon-link:hover { color: var(--text); background: rgba(255,255,255,.07); transform: translateY(-1px); }
.icon-link svg { width: 19px; height: 19px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--text); cursor: pointer; overflow: hidden;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); border-color: #4a5060; background: var(--card2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; border-radius: 14px; }
.btn-play { background: linear-gradient(180deg, var(--green2), var(--green)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(0,176,111,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-play:hover { background: linear-gradient(180deg, #19d892, #04bd78); border-color: transparent; box-shadow: 0 14px 40px rgba(0,176,111,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-blue { background: linear-gradient(180deg, var(--blue2), var(--blue)); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(59,108,255,.3); }
.btn-blue:hover { background: linear-gradient(180deg, #6d94ff, #4a78ff); border-color: transparent; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- banner ---------- */
.banner { display: none; background: linear-gradient(90deg, var(--blue), #7c3aed); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.banner.show { display: block; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green2); box-shadow: 0 0 0 0 rgba(16,201,133,.6); animation: pulse 2s infinite; margin-left: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(16,201,133,0); } 100% { box-shadow: 0 0 0 0 rgba(16,201,133,0); } }
.hero h1 { text-wrap: balance; font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -.045em; font-weight: 900; margin: 22px auto 18px; max-width: 980px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--cyan) 0%, var(--blue2) 35%, #a78bfa 65%, var(--pink) 100%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradmove 6s linear infinite; }
@keyframes gradmove { to { background-position: 200% center; } }
.hero h1 .grad.w { animation: wordin .9s var(--ease) forwards, gradmove 6s linear 1s infinite; }
.hero .sub { font-size: clamp(16px, 2vw, 19.5px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--dim); }
.hero-note a { color: var(--blue2); font-weight: 600; }
.hero-note a:hover { text-decoration: underline; }
.stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px); margin: 40px auto 0; flex-wrap: wrap; }
.stat b { display: block; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--dim); font-weight: 600; }

/* hero split letters */
.split .w { display: inline-block; padding-bottom: .06em; opacity: 0; transform: translateY(.55em) rotate(4deg); filter: blur(6px); animation: wordin .9s var(--ease) forwards; }
@keyframes wordin { to { opacity: 1; transform: none; filter: none; } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeup .9s var(--ease) forwards; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* ---------- live demo window ---------- */
.demo { margin: 56px auto 0; max-width: 1060px; perspective: 1600px; }
.demo-win { position: relative; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); overflow: hidden; text-align: left;
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03); transform: rotateX(14deg) scale(.96); transform-origin: 50% 0;
  transition: transform 1.2s var(--ease); }
.demo.in .demo-win { transform: none; }
.demo-win::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--blue2) 75%, var(--cyan) 85%, 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 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); font-weight: 600; }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4b; }
.demo-bar i:nth-child(1) { background: #ff5f57; } .demo-bar i:nth-child(2) { background: #febc2e; } .demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar .t { margin-left: 10px; }
.demo-bar .studio { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--green2); }
.demo-bar .studio::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.demo-body { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 380px; }
.demo-chat { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.bubble { align-self: flex-end; max-width: 92%; background: var(--blue); color: #fff; padding: 11px 15px; border-radius: 16px 16px 4px 16px; font-size: 14.5px; font-weight: 500; min-height: 46px; }
.bubble .caret { display: inline-block; width: 2px; height: 1.05em; background: #fff; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
.steps li.on { opacity: 1; transform: none; }
.steps li .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--card2); flex-shrink: 0; }
.steps li .ic svg { width: 13px; height: 13px; }
.steps li.done .ic { background: rgba(16,201,133,.16); color: var(--green2); }
.steps li.run .ic { background: rgba(59,108,255,.18); color: var(--blue2); }
.steps li.run .ic svg { animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.steps li b { color: var(--text); font-weight: 600; }
.demo-view { position: relative; overflow: hidden; background: #08090c; }
.demo-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s, transform 6s linear; }
.demo-view img.on { opacity: 1; transform: scale(1); }
.demo-view .tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 9px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.12); }
.demo-view.dim img.on { opacity: .28; filter: blur(2px) saturate(.6); }
.demo-view img { transition: opacity .9s, transform 6s linear, filter .6s; }
.demo-view .scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(59,108,255,.18), transparent); animation: scan 2.6s linear infinite; }
@keyframes scan { to { top: 100%; } }
.demo-cap { text-align: center; font-size: 13px; color: var(--dim); margin-top: 14px; }

/* ---------- sections ---------- */
section { padding: 88px 0; position: relative; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue2); margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.035em; font-weight: 900; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 17.5px; max-width: 640px; margin: 0; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }

/* ---------- Roblox-style game tiles marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding: 10px 0 6px; }
.track { display: flex; gap: 18px; width: max-content; animation: marq 55s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-50% - 9px)); } }
.tile { width: 300px; flex-shrink: 0; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; }
.tile .thumb { position: relative; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .thumb { transform: translateY(-6px); border-color: var(--line2); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.tile:hover .thumb img { transform: scale(1.07); }
.tile .play { position: absolute; inset: auto 12px 12px auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green); color: #fff; opacity: 0; transform: translateY(8px) scale(.9); transition: all .3s var(--ease); box-shadow: 0 8px 22px rgba(0,176,111,.45); }
.tile:hover .play { opacity: 1; transform: none; }
.tile .play svg { width: 18px; height: 18px; }
.tile .badge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); }
.tile h3 { font-size: 15.5px; font-weight: 700; margin: 11px 2px 2px; letter-spacing: -.01em; }
.tile p { margin: 0 2px; font-size: 13.5px; color: var(--dim); }

/* ---------- feature grid ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { position: relative; padding: 26px; border-radius: var(--r2); background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s; transform-style: preserve-3d; }
.feat::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(91,134,255,.16), transparent 45%); }
.feat:hover { border-color: var(--line2); }
.feat:hover::after { opacity: 1; }
.feat .ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; background: var(--card2); border: 1px solid var(--line2); }
.feat .ico img { width: 34px; height: 34px; }
.feat .ico svg { width: 26px; height: 26px; }
.feat .ico.c1 { background: rgba(59,108,255,.14); border-color: rgba(91,134,255,.35); color: #7aa0ff; }
.feat .ico.c2 { background: rgba(255,90,180,.12); border-color: rgba(255,90,180,.32); color: #ff7cc4; }
.feat .ico.c3 { background: rgba(16,201,133,.12); border-color: rgba(16,201,133,.32); color: #2fdc9a; }
.feat .ico.c4 { background: rgba(255,176,32,.12); border-color: rgba(255,176,32,.32); color: #ffc24d; }
.feat .ico.c5 { background: rgba(167,139,250,.14); border-color: rgba(167,139,250,.35); color: #b9a4ff; }
.feat .ico.c6 { background: rgba(58,212,255,.12); border-color: rgba(58,212,255,.32); color: #5fdcff; }
.feat h3 { font-size: 18.5px; margin: 0 0 7px; letter-spacing: -.02em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.feat.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: center; }
.feat.big .shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.feat.big .shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- video feature ---------- */
.video-card { position: relative; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; box-shadow: 0 40px 100px rgba(0,0,0,.55); }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card .overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); border: 0; cursor: pointer; color: #fff; font: inherit; }
.video-card .overlay span { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 16px; font-weight: 800; font-size: 17px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.25); transition: transform .3s var(--ease), background .3s; }
.video-card .overlay:hover span { transform: scale(1.05); background: rgba(255,255,255,.2); }
.video-card .overlay svg { width: 22px; height: 22px; }
.video-card.playing .overlay { display: none; }

/* ---------- steps (how to join) ---------- */
.join { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.jstep { padding: 24px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); position: relative; }
.jstep::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; margin-bottom: 16px;
  font-weight: 900; background: linear-gradient(180deg, var(--blue2), var(--blue)); color: #fff; box-shadow: 0 8px 20px rgba(59,108,255,.35); }
.jstep h3 { margin: 0 0 6px; font-size: 17px; }
.jstep p { margin: 0; color: var(--muted); font-size: 14.5px; }
.jstep a { color: var(--blue2); font-weight: 600; }
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.credit { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); }
.credit b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.credit div { color: var(--muted); font-size: 14.5px; }
.credit div strong { color: var(--text); display: block; font-size: 15.5px; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--line2); background: var(--card2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq .a { padding: 0 22px 18px; color: var(--muted); font-size: 15.5px; }
.faq .a a { color: var(--blue2); font-weight: 600; }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: 70px 24px; border-radius: 28px; background: radial-gradient(ellipse at 50% 0%, rgba(59,108,255,.35), transparent 60%), var(--bg2);
  border: 1px solid var(--line); overflow: hidden; position: relative; }
.final h2 { max-width: 720px; margin: 0 auto 14px; }
.final .lead { margin: 0 auto 28px; }
.final .orb { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); opacity: .7; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-26px); opacity: .25; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 30px; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 30px; }
.foot h4 { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a:hover { color: var(--text); }
.foot form { display: flex; gap: 8px; margin-top: 4px; }
.input { flex: 1; min-width: 0; font: inherit; font-size: 14.5px; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); }
.input:focus { outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(59,108,255,.25); }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.chk input { accent-color: var(--blue); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.ok { color: var(--green2); } .err { color: #ff6b6b; }
.creator-form { display: grid; gap: 8px; margin-top: 10px; }
.creator-form select { appearance: none; }
details.creator summary { cursor: pointer; color: var(--text); font-weight: 600; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 4vw; background: rgba(5,6,9,.9); backdrop-filter: blur(10px); }
.lb.open { display: grid; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.lb-inner { width: min(1200px, 100%); }
.lb-media img, .lb-media video { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 16px; background: #000; }
.lb-title { margin-top: 12px; font-weight: 700; text-align: center; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-close svg { width: 18px; height: 18px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat.big { grid-column: 1 / -1; }
  .join { grid-template-columns: 1fr 1fr; }
  .credits { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-view { min-height: 220px; }
  .demo-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .feats, .join, .foot { grid-template-columns: 1fr; }
  .feat.big { grid-column: auto; grid-template-columns: 1fr; }
  .tile { width: 240px; }
  .hide-sm { display: none !important; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split .w, .fade-up, .reveal, .reveal-stagger > *, .steps li { opacity: 1 !important; transform: none !important; filter: none !important; }
  .demo-win { transform: none; }
}
.nav .btn { white-space: nowrap; }
@media (max-width: 420px) { .nav .wrap { gap: 8px; } .brand { font-size: 16px; } .nav .icon-link { width: 34px; } .nav .btn-sm { padding: 8px 11px; font-size: 13.5px; } }
