/* QPU: the 3D stage, glass surfaces and motion. Loaded after qpu.css, so it wins where they overlap. */
html { background: #04050f; scroll-behavior: auto; }
body, body.has-3d { background: transparent; background-image: none; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#app { position: relative; z-index: 2; }
body::before { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(2, 3, 10, .75) 100%),
              linear-gradient(rgba(130, 150, 255, .045) 1px, transparent 1px) 0 0 / 64px 64px,
              linear-gradient(90deg, rgba(130, 150, 255, .045) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 40%, #000 30%, transparent 100%); mask-image: radial-gradient(90% 80% at 50% 40%, #000 30%, transparent 100%); }
#prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px rgba(154, 107, 255, .8); }

.top { background: rgba(5, 6, 20, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
body.scrolled .top { border-bottom-color: rgba(140, 160, 255, .14); }
.sheet { background: rgba(5, 6, 20, .92); }
.foot { background: rgba(4, 5, 15, .6); backdrop-filter: blur(16px); border-top: 1px solid rgba(140, 160, 255, .12); }

h1, h2, h3, .brand, .stats b, .hud b { font-family: var(--head); }
h1, h2 { font-weight: 800; letter-spacing: -.045em; }
.soft { background: linear-gradient(100deg, #4aa3ff, #9a6bff, #e56bff, #4aa3ff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 7s linear infinite; }
@keyframes hue { to { background-position: 250% 0; } }
.hero { min-height: calc(100vh - 140px); padding: 40px 0 30px; align-items: center; grid-template-columns: 1.05fr .95fr; }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; text-shadow: 0 0 60px rgba(120, 130, 255, .25); }
.hero .lead { color: #b6c0e6; }
.hero-art::before, .hero-art img { display: none; }

/* glass cards with a pointer spotlight and a gradient edge */
.card { position: relative; background: linear-gradient(160deg, rgba(20, 24, 62, .62), rgba(9, 11, 32, .55)); backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(140, 160, 255, .16); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; will-change: transform; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(130, 140, 255, .16), transparent 60%); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { box-shadow: 0 24px 70px rgba(70, 60, 200, .22); }
.tilt { transform-style: preserve-3d; }
.focus-card .ic { background: linear-gradient(135deg, rgba(74, 163, 255, .22), rgba(229, 107, 255, .2)); box-shadow: inset 0 0 0 1px rgba(160, 170, 255, .25); }
.focus-card:nth-child(even) .ic { background: linear-gradient(135deg, rgba(154, 107, 255, .25), rgba(229, 107, 255, .18)); }
.step::before { background: var(--grad); color: #fff; box-shadow: 0 0 22px rgba(154, 107, 255, .55); }

/* buttons: gradient pills with a glow */
.btn { background: var(--grad); border: 0; color: #fff; text-shadow: 0 1px 0 rgba(20, 10, 60, .25); box-shadow: 0 10px 34px rgba(110, 90, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .28); position: relative; }
.btn:hover { background: var(--grad); filter: brightness(1.12); box-shadow: 0 14px 44px rgba(130, 90, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border: 1px solid rgba(160, 175, 255, .28); box-shadow: none; text-shadow: none; backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(130, 140, 255, .14); border-color: #8fa4ff; color: #fff; filter: none; box-shadow: none; }
.ib, .btn-wallet { background: rgba(255, 255, 255, .04); border-color: rgba(160, 175, 255, .22); }
.ib:hover, .btn-wallet:hover { border-color: #8fa4ff; }
.top-links a.on { background: rgba(130, 140, 255, .16); color: #fff; }
.top-links a:hover { background: rgba(130, 140, 255, .1); }
.kicker { background: rgba(130, 140, 255, .1); border-color: rgba(160, 175, 255, .25); color: #c6d0f5; }
.tag { background: rgba(130, 140, 255, .14); color: #b9c8ff; }
.seg button.on, .fp.on, .chip.on { background: rgba(130, 140, 255, .18); border-color: #8fa4ff; color: #fff; box-shadow: 0 0 0 1px rgba(143, 164, 255, .35), 0 0 24px rgba(120, 110, 255, .22); }
.fp, .chip { background: rgba(255, 255, 255, .03); }
input[type=text], input[type=url], input[type=number], textarea, input:not([type]), .tick-in { background: rgba(5, 7, 24, .6); }
input:focus, textarea:focus { border-color: #8fa4ff; box-shadow: 0 0 0 4px rgba(120, 130, 255, .18); }
.status { background: rgba(130, 140, 255, .12); }
.status.err { background: rgba(255, 90, 80, .12); }
.status.ok { background: rgba(98, 224, 180, .12); color: #7fe9c2; }
.bar i b { background: var(--grad); }
.diagram, pre.qasm, details.more, .metric, .drop { background: rgba(4, 6, 22, .55); }
.empty { background: rgba(255, 255, 255, .02); border-color: rgba(160, 175, 255, .22); }

/* data strip and ticker */
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 10px 0 0; border: 1px solid rgba(140, 160, 255, .16); border-radius: 20px; overflow: hidden; background: rgba(140, 160, 255, .12); backdrop-filter: blur(16px); }
.hud > div { background: rgba(7, 9, 30, .72); padding: 22px 24px; display: grid; gap: 2px; }
.hud b { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.04em; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hud span { color: var(--mute); font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.marquee { overflow: hidden; margin: 26px 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee > div { display: flex; gap: 14px; width: max-content; animation: scrollx 38s linear infinite; }
.marquee span { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(160, 175, 255, .2); background: rgba(255, 255, 255, .03); color: #b9c4ee; font: 500 13px var(--mono); white-space: nowrap; }
.marquee span:nth-child(3n) { color: #d9b8ff; }
.marquee span:nth-child(3n+1) { color: #9cc4ff; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* reveal: rise and unblur */
[data-fade] { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
[data-fade].is-in { opacity: 1; transform: none; filter: none; }
.sec { padding: 80px 0; }
.sec-h h2 { font-size: clamp(30px, 4.2vw, 56px); }
::selection { background: rgba(154, 107, 255, .5); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (max-width: 960px) { .hero { min-height: auto; padding-top: 250px; } .hero-art { display: none; } }
@media (max-width: 800px) { .hud { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { [data-fade] { filter: none; } .marquee > div, .soft { animation: none !important; } }

.foot-social { display: flex; gap: 8px; margin-top: 16px; }
.sheet-social { display: flex; gap: 8px; padding: 14px 0 4px; }
