/* ===== FabTech Store =====
 * Dark, glassy, app-store layout. --accent follows whichever app is on show; it is registered
 * below so the whole page can fade from one app's colour to the next.
 * Everything that moves stops under prefers-reduced-motion (bottom of this file).
 */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #4d8cff; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #16c2c2; }

:root {
  --bg: #060914;
  --bg-2: #0b1122;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef2fb;
  --muted: #a2adc4;
  --dim: #808ca6;
  --accent: #4d8cff;
  --accent-2: #16c2c2;
  --on-accent: #06101f;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  transition: --accent 1s ease, --accent-2 1s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- moving background ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg) 62%); }
.aurora i { position: absolute; display: block; width: 62vmax; height: 62vmax; border-radius: 50%; opacity: .34; will-change: transform; }
.aurora i:nth-child(1) { left: -18vmax; top: -30vmax; background: radial-gradient(closest-side, var(--accent), transparent 70%); animation: drift-a 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: -22vmax; top: -12vmax; background: radial-gradient(closest-side, var(--accent-2), transparent 70%); opacity: .22; animation: drift-b 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: 24%; bottom: -46vmax; background: radial-gradient(closest-side, #7a4dff, transparent 70%); opacity: .16; animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(14vmax, 8vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-12vmax, 12vmax, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-10vmax, -14vmax, 0) scale(1.2); } }
.gridlines { position: absolute; inset: 0; 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: 64px 64px; -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 10%, transparent 72%); mask-image: radial-gradient(90% 70% at 50% 0%, #000 10%, transparent 72%); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrollbeam { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 14px var(--accent); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 12px var(--gutter); background: rgba(6, 9, 20, .55); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.topbar.scrolled { border-color: var(--line); background: rgba(6, 9, 20, .78); }
.brand { display: flex; align-items: center; gap: 12px; font: 700 18px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 46px; height: auto; border-radius: 9px; box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; font: 500 14px/1 var(--display); color: var(--muted); transition: color .2s, background .2s; }
.topnav a:hover { color: var(--text); background: var(--glass-2); }
.search { position: relative; flex: 1; max-width: 520px; margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, background .2s, box-shadow .2s; }
.search:focus-within { background: rgba(15, 21, 40, .92); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 400 15px var(--body); }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 500 12px var(--body); color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.search:focus-within kbd { display: none; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: var(--r); background: rgba(13, 18, 35, .97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); max-height: 70vh; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--text); }
.search-results a:hover, .search-results a.on { background: var(--glass-2); }
.search-results .icon { width: 44px; border-radius: 11px; }
.search-results small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.search-results b { font: 600 14px/1.3 var(--display); }
.search-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.search-empty a { display: inline; padding: 0; color: inherit; text-decoration: underline; }
.signin { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; font: 500 14px/1 var(--display); border: 1px solid var(--line); white-space: nowrap; transition: border-color .2s, background .2s; }
.signin:hover { background: var(--glass-2); border-color: var(--line-2); }

/* ---------- layout ---------- */
.view { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 72%, white); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.intro { padding: clamp(26px, 4vw, 44px) 0 clamp(18px, 2.4vw, 26px); }
.intro h1 { margin-top: 14px; font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.shine { background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, #fff 55%, var(--accent) 65%, var(--accent-2)); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s linear infinite; }
@keyframes shine { to { background-position: -240% 0; } }
.subline { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font: 600 15px/1 var(--display); white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.primary:hover { box-shadow: 0 12px 38px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.ghost { background: var(--glass); border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--glass-2); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- app icons ---------- */
.icon { position: relative; display: block; width: 100%; aspect-ratio: 1; flex: none; border-radius: 22%; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 22px rgba(0, 0, 0, .35); }
.icon img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.icon.fill { background: transparent; }
.icon.fill img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.icon.letter { display: grid; place-items: center; background: linear-gradient(145deg, var(--app, var(--accent)), color-mix(in srgb, var(--app, var(--accent)) 45%, #000)); color: #fff; font: 700 1.6em/1 var(--display); container-type: inline-size; }
.icon.letter span { font-size: 42cqw; }

/* ---------- featured carousel ---------- */
.stage { position: relative; height: clamp(500px, 62vh, 620px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 24%, var(--bg-2)), rgba(10, 15, 31, .86) 55%, color-mix(in srgb, var(--accent-2) 16%, var(--bg-2))); box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--accent) 60%, transparent); isolation: isolate; }
.stage::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.07) 50%, transparent 58%); background-size: 260% 100%; animation: sweep 7s var(--ease) infinite; }
@keyframes sweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.slide.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .7s ease; }
.slide-copy { position: relative; z-index: 2; align-self: center; padding: clamp(22px, 4vw, 56px); }
.slide-copy > * { opacity: 0; transform: translateY(18px); }
.slide.on .slide-copy > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.on .slide-copy > :nth-child(2) { transition-delay: .07s; }
.slide.on .slide-copy > :nth-child(3) { transition-delay: .14s; }
.slide.on .slide-copy > :nth-child(4) { transition-delay: .21s; }
.slide.on .slide-copy > :nth-child(5) { transition-delay: .28s; }
.slide-head { display: flex; align-items: center; gap: 14px; }
.slide-head .icon { width: 76px; }
.slide-copy h2 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.035em; }
.slide-copy .tagline { margin-top: 12px; font-size: clamp(16px, 1.7vw, 20px); color: var(--text); opacity: .92; line-height: 1.4; max-width: 30ch; }
.slide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); font: 500 12.5px/1.2 var(--body); color: var(--text); white-space: nowrap; }
.pill .ico { width: 14px; height: 14px; }
.pill.soon { background: color-mix(in srgb, #ffb547 18%, transparent); border-color: color-mix(in srgb, #ffb547 45%, transparent); color: #ffd28a; }
.pill.beta { background: color-mix(in srgb, #b58cff 18%, transparent); border-color: color-mix(in srgb, #b58cff 45%, transparent); color: #d9c4ff; }

.slide-art { position: relative; perspective: 1400px; }
.rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg)); transition: transform .5s var(--ease); }
.device { position: absolute; overflow: hidden; background: #0b0f1c; border: 1px solid var(--line-2); box-shadow: 0 34px 70px -18px rgba(0, 0, 0, .85), 0 0 60px -20px var(--accent); opacity: 0; }
.slide.on .device { opacity: 1; transition: opacity .8s ease .15s, transform 1s var(--ease) .15s; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device.wide { border-radius: 14px; aspect-ratio: 16 / 10; padding-top: 22px; }
.device.wide::before { content: ''; position: absolute; left: 12px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; box-shadow: 12px 0 #ffcb57, 24px 0 #46d17f; }
.device.tall { border-radius: 26px; aspect-ratio: 9 / 19; padding: 6px; }
.device.tall img { border-radius: 20px; }
.rig-one .wide { width: 92%; left: 8%; top: 13%; transform: translateZ(0) translateY(26px); }
.slide.on .rig-one .wide { transform: translateZ(0); animation: float 9s ease-in-out infinite; }
.rig-two .wide.a { width: 82%; left: 16%; top: 7%; transform: translateY(26px); }
.rig-two .wide.b { width: 62%; left: 2%; top: 44%; z-index: 2; transform: translateZ(70px) translateY(40px); }
.slide.on .rig-two .wide.a { transform: none; animation: float 10s ease-in-out infinite; }
.slide.on .rig-two .wide.b { transform: translateZ(70px); animation: float 8s ease-in-out -3s infinite; }
.rig-mix .wide { width: 84%; left: 3%; top: 15%; transform: translateY(26px); }
.rig-mix .tall { height: 74%; right: 5%; top: 16%; z-index: 2; transform: translateZ(80px) translateY(40px); }
.slide.on .rig-mix .wide { transform: none; animation: float 10s ease-in-out infinite; }
.slide.on .rig-mix .tall { transform: translateZ(80px); animation: float 8s ease-in-out -2s infinite; }
.rig-fan .tall { height: 84%; top: 8%; }
.rig-fan .tall:nth-child(1) { left: 6%; transform: rotate(-7deg) translateY(30px); z-index: 1; }
.rig-fan .tall:nth-child(2) { left: 33%; transform: translateY(30px); z-index: 2; }
.rig-fan .tall:nth-child(3) { left: 60%; transform: rotate(7deg) translateY(30px); z-index: 1; }
.slide.on .rig-fan .tall:nth-child(1) { transform: rotate(-7deg) translateY(10px); animation: float 9s ease-in-out -1s infinite; }
.slide.on .rig-fan .tall:nth-child(2) { transform: translateZ(40px); animation: float 8s ease-in-out infinite; }
.slide.on .rig-fan .tall:nth-child(3) { transform: rotate(7deg) translateY(10px); animation: float 10s ease-in-out -3s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.orb { position: absolute; left: 50%; top: 50%; width: min(56%, 300px); translate: -50% -50%; aspect-ratio: 1; display: grid; place-items: center; }
.orb::before, .orb::after { content: ''; position: absolute; inset: -14%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); animation: spin 18s linear infinite; border-top-color: var(--accent); box-shadow: 0 0 40px -6px var(--accent); }
.orb::after { inset: -30%; border-color: color-mix(in srgb, var(--accent-2) 26%, transparent); border-bottom-color: var(--accent-2); animation-duration: 30s; animation-direction: reverse; box-shadow: none; }
.orb .icon { width: 72%; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-nav { position: absolute; left: clamp(22px, 4vw, 56px); bottom: 20px; z-index: 4; display: flex; align-items: center; gap: 7px; }
.stage-dot { position: relative; width: 30px; height: 4px; padding: 0; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .22); transition: width .3s var(--ease); }
.stage-dot::before { content: ''; position: absolute; inset: -10px 0; }
.stage-dot.on { width: 54px; }
.stage-dot i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.stage-dot.on i { animation: fill var(--dwell, 7s) linear forwards; }
.stage.paused .stage-dot.on i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.stage-arrows { position: absolute; right: 18px; bottom: 16px; z-index: 4; display: flex; gap: 8px; }

.round { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(13, 18, 35, .72); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, transform .2s var(--ease), opacity .2s; }
.round:hover { background: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.round[disabled] { opacity: 0; pointer-events: none; }

/* ---------- category chips ---------- */
.chips-wrap { position: sticky; top: 68px; z-index: 30; margin: 24px calc(var(--gutter) * -1) 4px; padding: 10px var(--gutter); background: rgba(6, 9, 20, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; font: 500 14px/1 var(--display); color: var(--muted); background: rgba(13, 18, 35, .72); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------- rows of apps ---------- */
.row { padding: clamp(22px, 3vw, 34px) 0 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.row-head h2 { font-size: clamp(20px, 2.4vw, 27px); }
.row-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.row-body { position: relative; }
.scroller { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 2px 26px; margin: -6px -2px -14px; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }
.row-arrow { position: absolute; top: 34%; z-index: 5; opacity: 0; }
.row-arrow.prev { left: -14px; }
.row-arrow.next { right: -14px; }
.row-body:hover .row-arrow:not([disabled]), .row-arrow:focus-visible { opacity: 1; }

/* A card lights up where the pointer is and leans towards it */
.tilt { --mx: 50%; --my: 0%; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0)); transition: transform .35s var(--ease), box-shadow .3s, border-color .3s; transform-style: preserve-3d; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx) var(--my), color-mix(in srgb, var(--app, var(--accent)) 30%, transparent), transparent 70%); z-index: 3; }
.tilt:hover { --lift: -4px; }
.tilt:hover::after { opacity: 1; }

.card { position: relative; display: block; width: clamp(280px, 30vw, 396px); border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.card:hover { border-color: color-mix(in srgb, var(--app, var(--accent)) 60%, transparent); box-shadow: 0 26px 50px -24px var(--app, var(--accent)); }
.card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--app, var(--accent)) 55%, #0b1122), #0b1122); }
.card-art > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.card:hover .card-art > img { transform: scale(1.05); }
.art-tall { position: absolute; inset: 10% 8% auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: start; }
.art-tall img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 26px rgba(0, 0, 0, .5); transition: transform .6s var(--ease); }
.art-tall img:nth-child(2) { transform: translateY(-5%); }
.card:hover .art-tall img { transform: translateY(-6%); }
.card:hover .art-tall img:nth-child(2) { transform: translateY(-11%); }
.art-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.art-mark .icon { width: 28%; }
.card-body { display: flex; gap: 12px; align-items: center; padding: 14px; }
.card-body .icon { width: 56px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.card-text { min-width: 0; flex: 1; }
.card-text b { display: block; font: 600 15.5px/1.25 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-text small { display: block; font-size: 13.5px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card-badge .pill { background: rgba(10, 14, 28, .92); }

.tile { position: relative; display: block; width: 138px; padding: 12px; border-radius: var(--r); border: 1px solid transparent; }
.tile:hover { background: var(--glass); border-color: var(--line); }
.tile .icon { transition: transform .4s var(--ease), box-shadow .3s; }
.tile:hover .icon { transform: translateZ(26px) scale(1.04); box-shadow: 0 16px 34px -8px var(--app, var(--accent)); }
.tile b { display: block; margin-top: 10px; font: 600 14px/1.25 var(--display); }
.tile small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.3; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 6px 16px; }
.listing { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid transparent; }
.listing:hover { background: var(--glass); border-color: var(--line); }
.listing .icon { width: 72px; }
.listing-text { min-width: 0; flex: 1; }
.listing b { display: block; font: 600 15.5px/1.25 var(--display); }
.listing small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.listing .tag { display: block; color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.no-results { padding: 40px 0; color: var(--muted); text-align: center; }

/* ---------- services, about, contact ---------- */
.band { padding-top: clamp(56px, 8vw, 104px); }
.band-head { max-width: 680px; margin-bottom: 30px; }
.band h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin-top: 12px; }
.band-head > p:last-child, .about-copy > p, .contact-copy > p { margin-top: 14px; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service { padding: 22px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.service:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); }
.service .ico { width: 30px; height: 30px; color: color-mix(in srgb, var(--accent) 70%, white); stroke-width: 1.5; }
.service h3 { margin-top: 14px; font-size: 17px; font-weight: 600; }
.service p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.steps li { padding: 20px 22px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.steps span { font: 700 13px/1 var(--display); color: color-mix(in srgb, var(--accent) 70%, white); letter-spacing: .08em; }
.steps h3 { margin-top: 10px; font-size: 16px; font-weight: 600; }
.steps p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.facts { margin: 0; padding: 8px 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font: 600 14px/1.4 var(--display); text-align: right; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.line { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--text); }
.contact-copy .line:first-of-type { margin-top: 26px; }
.line .ico { color: color-mix(in srgb, var(--accent) 70%, white); }
a.line:hover { color: color-mix(in srgb, var(--accent) 70%, white); }
.contact-form { display: grid; gap: 14px; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.contact-form label { display: grid; gap: 6px; font: 500 13.5px/1.2 var(--display); color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(6, 9, 20, .6); border: 1px solid var(--line); color: var(--text); font: 400 15px/1.5 var(--body); transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.ok { color: #6ee7a8; }
.form-status.err { color: #ff9c9c; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); background: rgba(6, 9, 20, .6); }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
.footer-brand img { border-radius: 10px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 14px; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer a, .footer-grid span { display: block; padding: 3px 0; color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.tabbar { display: none; }

/* ---------- one app ---------- */
.d-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px 8px 10px; border-radius: 999px; font: 500 14px/1 var(--display); color: var(--muted); transition: background .2s, color .2s; }
.d-back:hover { background: var(--glass-2); color: var(--text); }
.d-hero { position: relative; margin-top: 12px; padding: clamp(20px, 3.4vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 26%, var(--bg-2)), rgba(10, 15, 31, .86) 62%); isolation: isolate; }
.d-hero.has-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(10, 15, 31, .96), rgba(10, 15, 31, .55)), var(--banner); background-size: cover; background-position: center; }
.d-top { display: flex; gap: clamp(16px, 3vw, 32px); align-items: center; }
.d-icon { width: clamp(84px, 13vw, 152px); box-shadow: 0 20px 50px -14px var(--accent); }
.d-top h1 { font-size: clamp(30px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; }
.d-dev { display: inline-block; margin-top: 8px; font: 600 15px/1.3 var(--display); color: color-mix(in srgb, var(--accent) 72%, white); }
.d-tagline { margin-top: 8px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 60ch; }
.d-stats { display: flex; flex-wrap: wrap; margin-top: 24px; }
.d-stat { padding: 2px clamp(14px, 2vw, 26px); border-left: 1px solid var(--line-2); }
.d-stat:first-child { padding-left: 0; border-left: 0; }
.d-stat b { display: block; font: 600 15px/1.3 var(--display); }
.d-stat span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.d-actions .btn { min-width: 170px; }
.d-actions .btn.icon-only { min-width: 0; padding: 0 15px; }
.d-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.d-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.d-download { flex: 0 1 auto; display: flex; align-items: center; gap: 12px; min-width: 240px; padding: 11px 18px 11px 14px; border-radius: 14px; background: var(--glass); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line-2)); transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.d-download:hover { background: var(--glass-2); transform: translateY(-1px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.d-download .ico { flex: none; width: 24px; height: 24px; color: color-mix(in srgb, var(--accent) 72%, white); }
.d-download b { display: block; font: 600 15px/1.3 var(--display); }
.d-download small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.d-filecheck { margin-top: 10px; font-size: 13px; color: var(--muted); }
.d-filecheck summary { cursor: pointer; width: fit-content; }
.d-filecheck p { margin-top: 8px; overflow-wrap: anywhere; }
.d-filecheck code { font-size: 12px; }
@media (max-width: 560px) { .d-download { flex: 1 1 100%; min-width: 0; } }
.d-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); margin-top: 8px; }
.d-section { padding-top: 34px; }
.d-section h2 { font-size: clamp(19px, 2vw, 23px); margin-bottom: 12px; }
.d-shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 14px; }
.d-shots::-webkit-scrollbar { display: none; }
.d-shot { position: relative; flex: none; height: clamp(250px, 34vw, 400px); scroll-snap-align: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .3s; }
.d-shot:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px var(--accent); }
.d-shot img { height: 100%; width: auto; max-width: none; }
.d-gallery { position: relative; }
.d-desc { color: var(--muted); white-space: pre-line; }
.d-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.d-features li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.d-features .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 24%, transparent); color: color-mix(in srgb, var(--accent) 60%, white); stroke-width: 2.6; }
.d-info { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.d-info dt { font-size: 13px; color: var(--muted); }
.d-info dd { margin: 2px 0 0; font: 500 14.5px/1.4 var(--display); overflow-wrap: anywhere; }
.d-info dd a { color: color-mix(in srgb, var(--accent) 70%, white); }
.d-side-card { margin-top: 34px; padding: 18px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.d-side-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.d-side-card a.line { margin-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.d-similar { padding-top: 26px; }
.d-similar h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.d-similar .listing { padding: 8px; }
.d-similar .listing .icon { width: 56px; }

/* ---------- screenshot viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px 70px 16px; background: rgba(3, 5, 12, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: zoom .3s var(--ease); }
.lightbox p { padding-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.lightbox .round { position: absolute; }
.lb-close { right: 18px; top: 18px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }

/* ---------- arrival animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal.in { opacity: 1; transform: none; }
.view.entering { animation: rise .55s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
::view-transition-group(app-icon) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

.skeleton { border-radius: var(--r); background: linear-gradient(100deg, var(--glass) 30%, var(--glass-2) 50%, var(--glass) 70%); background-size: 200% 100%; animation: load 1.3s linear infinite; }
.skeleton-stage { position: absolute; inset: 0; }
.skeleton-row { height: 260px; margin-top: 30px; }
@keyframes load { to { background-position: -200% 0; } }
.load-failed { padding: 26px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); color: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .topnav { display: none; }
  .d-layout { grid-template-columns: minmax(0, 1fr); }
  .d-similar { padding-top: 34px; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .stage { height: auto; min-height: 640px; }
  .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(240px, 1fr); }
  .slide-copy { padding: 22px 20px 0; }
  .slide-head .icon { width: 60px; }
  .slide-copy .tagline { max-width: none; }
  .slide-actions { margin-top: 16px; }
  .slide-art { margin-bottom: 42px; }
  .rig { transform: none; }
  .stage-nav { left: 20px; bottom: 16px; }
  .stage-arrows { display: none; }
  .row-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 76px; }
  .brand-name, .signin span, .search kbd { display: none; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .signin { padding: 0 12px; }
  .topbar { gap: 10px; padding-block: 10px; }
  .search { max-width: none; }
  .chips-wrap { top: 64px; margin-top: 18px; }
  .card { width: 82vw; }
  .tile { width: 112px; padding: 8px; }
  .scroller { gap: 10px; }
  .listing .icon { width: 62px; }
  .d-top { align-items: flex-start; }
  .d-actions .btn:not(.icon-only) { flex: 1; }
  .d-stat { padding-block: 6px; }
  .d-shot { height: 56vw; min-height: 230px; }
  .lightbox { padding: 60px 8px 14px; }
  .lb-prev { left: 8px; top: auto; bottom: 10px; translate: none; }
  .lb-next { right: 8px; top: auto; bottom: 10px; translate: none; }
  .lightbox p { padding-inline: 56px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(9, 13, 27, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 3px 0; font: 500 11px/1.1 var(--display); color: var(--muted); }
  .tabbar .ico { width: 22px; height: 22px; }
}

/* ---------- anyone who prefers less movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .stage-dot.on i { transform: scaleX(1); }
  #field { display: none; }
}
