/* Gamez4jali shared styles: home page and game pages */
@property --c { syntax: "<color>"; inherits: true; initial-value: #ffc62e; }

:root {
  --bg: #070f2b; --bg-2: #0c1838; --surface: rgba(255, 255, 255, .045); --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --text: #f3f6ff; --muted: #a3b2d6; --dim: #6f7fa8;
  --accent: #ffc62e; --accent-ink: #1a1300;
  --c: var(--accent);
  --radius: 22px; --radius-lg: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --head: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* animated background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 26s ease-in-out infinite alternate; }
.blob.b1 { background: #2f6bff; top: -18vmax; left: -12vmax; }
.blob.b2 { background: #ff4f9a; top: 10vmax; right: -20vmax; opacity: .2; animation-duration: 32s; animation-delay: -8s; }
.blob.b3 { background: var(--c); bottom: -26vmax; left: 20vmax; opacity: .14; animation-duration: 38s; transition: --c 1s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 10px 0 22px; border-radius: 999px; border: 1px solid transparent; transition: background .4s var(--ease), border-color .4s, box-shadow .4s; }
.nav.scrolled .nav-in { background: rgba(9, 18, 48, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); box-shadow: 0 10px 40px -10px rgba(0,0,0,.5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #ffc62e, #ff6fa8); color: #1a1300; font-size: 17px; font-weight: 800; box-shadow: 0 6px 16px -4px rgba(255, 150, 80, .6); }
.brand b { color: var(--accent); font-weight: 800; }
.brand-cube { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.brand-word { height: 40px; width: auto; margin: 0 -4px; }
.brand:hover .brand-cube { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 6px; }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: var(--accent-ink); background: var(--accent); padding: 10px 18px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 16px; font: 600 16px/1 "Outfit", system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 198, 46, .7); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 198, 46, .85); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn-c { background: var(--c); color: #10101a; box-shadow: 0 10px 30px -12px var(--c); transition: transform .3s var(--ease), box-shadow .3s, background 1s; }

/* shared bits */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 500; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #4fd68b; box-shadow: 0 0 0 0 rgba(79,214,139,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(79,214,139,0); } 100% { box-shadow: 0 0 0 0 rgba(79,214,139,0); } }
.grad { background: linear-gradient(100deg, #ffc62e 0%, #ff8a5c 30%, #ff6fa8 55%, #7fb8ff 80%, #ffc62e 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.c { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.section { padding: 120px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { display: block; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(34px, 5.2vw, 56px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* phone mockup */
.phone { position: relative; width: 280px; padding: 11px; border-radius: 46px; background: linear-gradient(150deg, #34406e, #121a3c 45%, #0a1028); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 6px #070b1e, 0 50px 100px -30px rgba(0,0,0,.75), 0 0 140px -30px var(--c); transition: box-shadow 1s; }
.phone::after { content: ""; position: absolute; right: -3px; top: 120px; width: 3px; height: 54px; border-radius: 0 3px 3px 0; background: #2a355e; }
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #0b1230; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.screen img.on { opacity: 1; transform: none; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.14) 0%, transparent 32%); pointer-events: none; z-index: 2; }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: width .4s var(--ease), background .4s; }
.dots button.on { width: 26px; background: var(--c); }

/* ---------- HOME ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.lockup { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; }
.lockup-cube { width: 128px; height: 128px; flex: none; filter: drop-shadow(0 18px 28px rgba(0,0,0,.5)); animation: wobble 6s ease-in-out infinite; }
.lockup-word { display: block; width: min(100%, 440px); height: auto; margin: -2% 0 -2% -1%; filter: drop-shadow(0 14px 26px rgba(0,0,0,.45)); }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-8px); } }
.hero-copy > .tagline { color: var(--text); max-width: none; font-family: var(--head); font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 18px; }
.hero-copy > p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.stack { display: flex; }
.stack img { width: 38px; height: 38px; border-radius: 11px; border: 2px solid var(--bg); margin-left: -10px; transition: transform .3s var(--ease); }
.stack img:first-child { margin-left: 0; }
.stack:hover img { transform: translateY(-4px); }
.stack:hover img:nth-child(2) { transition-delay: .04s; } .stack:hover img:nth-child(3) { transition-delay: .08s; }
.stack:hover img:nth-child(4) { transition-delay: .12s; } .stack:hover img:nth-child(5) { transition-delay: .16s; }
.proof b { color: var(--text); font-weight: 600; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-stage .ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite; }
.hero-stage .ring.r2 { width: 380px; height: 380px; border-style: solid; border-color: var(--line); animation-direction: reverse; animation-duration: 45s; }
@keyframes spin { to { rotate: 360deg; } }
.hero-stage .phone { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
.orbit { position: absolute; z-index: 2; display: block; border-radius: 22px; transition: transform .4s var(--ease); animation: float 6s ease-in-out infinite; }
.orbit img { display: block; width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); }
.orbit:hover { transform: scale(1.12) rotate(-6deg); }
.orbit.o1 { top: 6%; left: 4%; animation-delay: -1s; }
.orbit.o2 { top: 16%; right: 0; animation-delay: -2.5s; }
.orbit.o3 { bottom: 22%; left: -2%; animation-delay: -4s; }
.orbit.o4 { bottom: 6%; right: 6%; animation-delay: -3s; }
.orbit.o5 { top: 50%; right: -6%; animation-delay: -5s; }
.orbit.o5 img { width: 58px; height: 58px; border-radius: 16px; }
.now-playing { position: absolute; bottom: -4px; left: 50%; translate: -50% 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(9,18,48,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.now-playing img { width: 30px; height: 30px; border-radius: 9px; }
.now-playing span { color: var(--dim); font-weight: 500; }
.now-playing strong { transition: opacity .3s; }

/* marquee */
.marquee { position: relative; overflow: hidden; padding: 30px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 280px; width: auto; aspect-ratio: 9 / 16; border-radius: 22px; border: 1px solid var(--line); transition: transform .4s var(--ease); }
.marquee img:hover { transform: translateY(-8px) scale(1.03); }
@keyframes slide { to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 70px; }
.stat { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(36px, 4.6vw, 52px); line-height: 1; letter-spacing: -.03em; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: 15px; }

/* game showcase */
.tabs { position: relative; display: flex; justify-content: center; gap: 10px; margin: 0 auto 40px; padding: 6px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 16px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 15px/1 "Outfit", system-ui, sans-serif; cursor: pointer; transition: background .35s, color .35s, border-color .35s; }
.tab img { width: 38px; height: 38px; border-radius: 11px; transition: transform .35s var(--ease); }
.tab:hover { color: var(--text); }
.tab:hover img { transform: rotate(-6deg) scale(1.06); }
.tab[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--tc) 16%, transparent); border-color: color-mix(in srgb, var(--tc) 45%, transparent); }

.showcase { position: relative; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); overflow: hidden; }
.showcase::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 65%); transition: --c 1s; pointer-events: none; }
.panel { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px; }
.panel[hidden] { display: none; }
.panel.enter .p-info > * { animation: rise .7s var(--ease) both; }
.panel.enter .p-info > *:nth-child(2) { animation-delay: .06s; } .panel.enter .p-info > *:nth-child(3) { animation-delay: .12s; }
.panel.enter .p-info > *:nth-child(4) { animation-delay: .18s; } .panel.enter .p-info > *:nth-child(5) { animation-delay: .24s; }
.panel.enter .p-media { animation: pop .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.94) rotate(2deg); } }
.p-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.p-head img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 16px 34px -12px rgba(0,0,0,.7); }
.p-head h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.p-info > p { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 520px; }
.features { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.features li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 7px; background: color-mix(in srgb, var(--c) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p-media { display: flex; flex-direction: column; align-items: center; }
.p-media .phone { width: 270px; cursor: zoom-in; }
.p-nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.p-nav .dots { margin: 0; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .3s var(--ease); }
.arrow:hover { background: var(--surface-2); transform: scale(1.08); }
.arrow svg { width: 18px; height: 18px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(34px, 5vw, 54px); margin: 14px 0 22px; }
.about-grid p { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.values { display: grid; gap: 14px; }
.card { position: relative; padding: 24px 24px 24px 88px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .4s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover { border-color: var(--line-2); transform: translateX(6px); }
.card:hover::before { opacity: 1; }
.card .ic { position: absolute; left: 24px; top: 24px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.card h3 { font-size: 20px; margin-bottom: 6px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* contact */
.cta { position: relative; padding: 2px; border-radius: 36px; background: conic-gradient(from var(--a, 0deg), #ffc62e, #ff6fa8, #7fb8ff, #4fd68b, #ffc62e); animation: rot 8s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --a: 360deg; } }
.cta-in { position: relative; border-radius: 34px; padding: 72px 32px; text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(255,198,46,.12), transparent 70%), #0b1638; overflow: hidden; }
.cta h2 { font-size: clamp(34px, 5.4vw, 60px); margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 34px; }
.cta .hero-cta { justify-content: center; }

/* footer */
footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; }
.foot p { margin: 14px 0 0; max-width: 260px; }
.foot h4 { font-family: "Outfit", sans-serif; letter-spacing: 0; color: var(--text); font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); transition: color .2s; }
.foot a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot-bottom a { color: var(--muted); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 8, 24, .9); backdrop-filter: blur(6px); }
.lightbox[open] img { animation: pop .5s var(--ease); }
.lightbox img { display: block; max-width: 92vw; max-height: 88vh; border-radius: 22px; }
.lightbox .close { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: #0c1838; color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- GAME PAGE ---------- */
.g-hero { padding: 150px 0 40px; }
.g-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 15px; margin-bottom: 28px; transition: color .2s, gap .3s var(--ease); }
.back:hover { color: var(--text); gap: 12px; }
.g-icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.7), 0 0 60px -10px var(--c); display: block; margin-bottom: 26px; }
.g-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; margin: 0 0 18px; }
.g-hero .lead { color: var(--muted); font-size: 19px; max-width: 540px; margin: 18px 0 32px; }
.g-stage { display: flex; flex-direction: column; align-items: center; position: relative; }
.g-stage::before { content: ""; position: absolute; width: 460px; height: 460px; top: 50%; left: 50%; translate: -50% -55%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 32%, transparent), transparent 65%); z-index: -1; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat-grid .card { padding: 26px; }
.feat-grid .card .ic { position: static; margin-bottom: 16px; }
.feat-grid .card:hover { transform: translateY(-6px); }
.gallery { display: flex; justify-content: safe center; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 18px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; max-width: 1160px; margin: 0 auto; }
.gallery button { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: center; border-radius: 22px; }
.gallery img { display: block; height: 420px; width: auto; aspect-ratio: 9 / 16; border-radius: 22px; border: 1px solid var(--line); transition: transform .4s var(--ease); }
.gallery button:hover img { transform: translateY(-8px); }
.legal { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.legal a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.legal a span { color: var(--muted); font-weight: 400; font-size: 14px; display: block; margin-top: 2px; }
.legal a:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: var(--surface-2); transform: translateY(-3px); }
.legal a::after { content: "→"; color: var(--c); font-size: 20px; transition: transform .3s var(--ease); }
.legal a:hover::after { transform: translateX(4px); }
.foot.small { grid-template-columns: 1fr auto; align-items: start; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .g-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-copy > p, .g-hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .proof, .lockup { justify-content: center; }
  .g-icon { margin-left: auto; margin-right: auto; }
  .g-hero .tags { justify-content: center; }
  .hero { min-height: 0; padding-top: 130px; }
  .panel { grid-template-columns: 1fr; padding: 40px 32px; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot { grid-template-columns: repeat(3, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { top: 10px; }
  .nav-in { padding: 0 4px 0 12px; height: 54px; gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 9px; font-size: 14px; }
  .nav-cta { display: none; }
  .brand { font-size: 19px; gap: 6px; } .brand-cube { width: 34px; height: 34px; } .brand-word { height: 34px; }
  .lockup { flex-direction: column; gap: 4px; margin-top: 20px; }
  .lockup-cube { width: 104px; height: 104px; }
  .lockup-word { width: min(100%, 340px); margin: -3% auto -2%; }
  .hero { padding: 110px 0 40px; }
  .hero-copy > p { font-size: 17px; }
  .hero-stage { min-height: 480px; }
  .hero-stage .ring { width: 330px; height: 330px; } .hero-stage .ring.r2 { width: 260px; height: 260px; }
  .hero-stage .phone, .p-media .phone, .g-stage .phone { width: 220px; border-radius: 38px; padding: 9px; }
  .hero-stage .phone .screen, .p-media .phone .screen, .g-stage .phone .screen { border-radius: 30px; }
  .orbit img { width: 56px; height: 56px; border-radius: 15px; }
  .orbit.o5 img { width: 44px; height: 44px; border-radius: 12px; }
  .orbit.o1 { left: 0; } .orbit.o3 { left: 0; } .orbit.o5 { right: 0; } .orbit.o2 { right: 2%; }
  .marquee img { height: 200px; border-radius: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 40px; }
  .stat { padding: 22px 14px; }
  .section { padding-top: 90px; }
  .tabs { justify-content: flex-start; width: 100%; }
  .tab { padding: 6px 14px 6px 6px; font-size: 14px; }
  .tab img { width: 32px; height: 32px; }
  .panel { padding: 28px 20px; text-align: left; }
  .p-head img { width: 64px; height: 64px; border-radius: 17px; }
  .features { grid-template-columns: 1fr; }
  .p-actions .btn { flex: 1 1 auto; }
  .card { padding: 20px 20px 20px 80px; }
  .card .ic { left: 18px; top: 20px; }
  .cta-in { padding: 52px 20px; }
  .cta .hero-cta .btn { flex: 1 1 100%; }
  .foot { grid-template-columns: 1fr 1fr; gap: 28px; }
  .g-hero { padding-top: 120px; }
  .g-icon { width: 92px; height: 92px; border-radius: 24px; }
  .gallery { padding: 4px 16px 18px; }
  .gallery img { height: 340px; }
  .foot.small { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
