/* ================= v2: glass, depth, motion (loaded after qec.css) ================= */
html.lenis, html.lenis body { height: auto; } .lenis.lenis-smooth { scroll-behavior: auto !important; } .lenis.lenis-stopped { overflow: hidden; }
html { scroll-behavior: auto; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; transition: opacity .3s; }
html.no3d body:before { background: radial-gradient(60% 50% at 78% 28%, rgba(140, 245, 63, .2), transparent 70%), url(/assets/img/mark-512.png) 85% 14% / min(520px, 70vw) no-repeat, radial-gradient(60% 40% at 50% -5%, rgba(140, 245, 63, .12), transparent 70%); opacity: .8; }
main#app, .foot { position: relative; z-index: 2; } .top { z-index: 40; } main#app { outline: 0; }
body:before { background: radial-gradient(55% 45% at 50% -8%, rgba(140, 245, 63, .14), transparent 70%), radial-gradient(45% 40% at 100% 70%, rgba(79, 194, 27, .08), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(79, 194, 27, .07), transparent 70%); }
body:after { mask-image: radial-gradient(90% 70% at 50% 20%, #000, transparent 90%); -webkit-mask-image: radial-gradient(90% 70% at 50% 20%, #000, transparent 90%); }
::selection { background: rgba(140, 245, 63, .35); }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: #1d3516; border-radius: 6px; } ::-webkit-scrollbar-track { background: var(--bg); }

.top { background: rgba(2, 5, 3, .55); border-bottom: 0; }
.top:before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(140, 245, 63, .35), transparent); }
.top:after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--g2), var(--g), #dcffc4); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); box-shadow: 0 0 12px var(--g); }
.brand img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 12px rgba(140, 245, 63, .65)); border-radius: 50%; } .brand:hover img { transform: rotate(180deg) scale(1.08); }
.brand span { background: linear-gradient(180deg, #fff, #b6ff72); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .06em; }
.nav a.on { box-shadow: inset 0 0 0 1px rgba(140, 245, 63, .3); }

.card { position: relative; background: linear-gradient(155deg, rgba(24, 44, 18, .55), rgba(5, 10, 4, .72)); border: 1px solid rgba(160, 255, 110, .14); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(0, 0, 0, .7); }
.card:before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 245, 63, .13), transparent 60%); }
.card:hover:before { opacity: 1; }
.preview { position: sticky; }
.btn { background: rgba(16, 28, 13, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: relative; overflow: hidden; }
.btn.go { background: linear-gradient(180deg, #b6ff72, #6fdc22 60%, #4fc21b); border-color: #b6ff72; color: #0a1503; box-shadow: 0 0 28px rgba(140, 245, 63, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.go:hover:not(:disabled) { background: linear-gradient(180deg, #d4ffa6, #86ee38 60%, #5fd523); box-shadow: 0 0 44px rgba(140, 245, 63, .6), inset 0 1px 0 rgba(255, 255, 255, .6); transform: translateY(-1px); }
.btn.go:before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); transition: left .7s; pointer-events: none; } .btn.go:hover:before { left: 130%; }
input, select, textarea { background: rgba(5, 10, 4, .65); }

/* reveal on scroll */
.rv { opacity: 0; translate: 0 34px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv.in { opacity: 1; translate: 0 0; }
.ch, .step { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, border-color .2s, box-shadow .2s, opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.ch:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); border-color: rgba(160, 255, 110, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(140, 245, 63, .35); }
.step:hover { border-color: rgba(160, 255, 110, .38); }
.step b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(140, 245, 63, .12); border: 1px solid rgba(140, 245, 63, .35); box-shadow: 0 0 20px rgba(140, 245, 63, .18); font-size: 14px; }

/* hero */
.hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: calc(100svh - 64px - 30px); padding: 40px 0 30px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: .98; letter-spacing: -.035em; background: linear-gradient(180deg, #fff 10%, #cfeec0 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { background: linear-gradient(100deg, #dcffc4, #8cf53f 45%, #4fc21b); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 28px rgba(140, 245, 63, .45)); }
.hero .lead { font-size: clamp(17px, 1.7vw, 20px); }
.kicker { padding: 7px 13px; border: 1px solid rgba(140, 245, 63, .3); border-radius: 999px; background: rgba(140, 245, 63, .07); }
.stats { background: rgba(160, 255, 110, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } .stats div { background: rgba(5, 10, 4, .6); }
.stats b { background: linear-gradient(180deg, #fff, #b6ff72); -webkit-background-clip: text; background-clip: text; color: transparent; }
.watch { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.live { padding: 14px; } .live canvas { background: rgba(2, 8, 3, .85); box-shadow: inset 0 0 40px rgba(140, 245, 63, .06); }
.marq { overflow: hidden; margin-top: 10px; border-block: 1px solid rgba(160, 255, 110, .12); background: rgba(5, 10, 4, .5); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq div { display: flex; width: max-content; animation: marq 40s linear infinite; } .marq span { padding: 14px 28px; font: 600 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; } .marq span:before { content: "◆"; color: var(--g); margin-right: 14px; font-size: 9px; vertical-align: 2px; }
@keyframes marq { to { transform: translateX(-50%); } }
.band { background: radial-gradient(60% 140% at 50% 0%, rgba(140, 245, 63, .2), transparent 70%), linear-gradient(155deg, rgba(24, 44, 18, .6), rgba(5, 10, 4, .75)); border-color: rgba(160, 255, 110, .28); }
.band h2 { font-size: clamp(30px, 4.2vw, 54px); background: linear-gradient(180deg, #fff, #b6ff72); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sech h2 { font-size: clamp(28px, 3.6vw, 46px); }
.foot { background: linear-gradient(180deg, transparent, rgba(2, 5, 3, .9)); border-top: 1px solid rgba(160, 255, 110, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feed div { background: rgba(5, 10, 4, .62); } .formula { background: rgba(5, 10, 4, .6); }
table.lb tr.row:hover { background: rgba(140, 245, 63, .06); }
.toast { background: rgba(23, 40, 19, .9); backdrop-filter: blur(10px); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 150px 0 20px; } .hero-space { display: none; } .watch { grid-template-columns: 1fr; gap: 22px; }
  .nav { background: rgba(5, 10, 4, .96); }
}
@media (max-width: 960px) { .hero { padding-top: 300px; } }
@media (max-width: 560px) { .hero { padding-top: 290px; } .marq span { padding: 12px 18px; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; translate: none; } .marq div { animation: none; } }
.live .halo { inset: -10px; } .col, .lab > *, .studio > *, .watch > * { min-width: 0; }
@media (max-width: 960px) { .hero, .lab, .studio, .watch { grid-template-columns: minmax(0, 1fr); } }
.col { grid-template-columns: minmax(0, 1fr); } .scroll-x { max-width: 100%; }

/* hero must fit above the fold: smaller headline, tighter rhythm */
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: 28px 0 24px; align-content: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; margin-top: 16px !important; }
.hero .lead { margin: 18px 0 22px; max-width: 560px; }
.hero .stats { margin-top: 26px; }
.hero .stats div { padding: 12px 16px; } .hero .stats b { font-size: 22px; }
@media (max-height: 760px) and (min-width: 961px) { .hero h1 { font-size: clamp(36px, 4vw, 54px); } .hero .stats { margin-top: 18px; } }
