/* GRAVILOOP website. Self-contained: no third-party requests. Built by
   E:\SixtyFourLabs_tools\build_graviloop_site.py (pages) + this file + app.js. */

@font-face { font-family: "Roboto"; src: url("fonts/roboto-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --ink: #1b1f3b;
  --bg: #0a0b1f;
  --bg-2: #14123a;
  --panel: rgba(34, 30, 92, .55);
  --line: rgba(190, 150, 255, .18);
  --line-strong: rgba(190, 150, 255, .36);
  --text: #f1f3ff;
  --muted: #aab1d9;
  --dim: #7b83b3;
  --yellow: #ffd23a;
  --magenta: #ff3fd8;
  --purple: #a45cff;
  --orange: #ff7a1a;
  --cyan: #39f3ff;
  --green: #5fd16a;
  --accent: #ffc928;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 900; letter-spacing: -.01em; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }

/* ---------------------------------------------------------------- header */

.top { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.top.scrolled { background: rgba(10, 11, 31, .82); backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 19px; letter-spacing: .08em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15px; }
.nav .links { display: contents; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .lang { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; color: var(--text); font-size: 13px; }
.nav .get { color: #2a1a00; background: linear-gradient(180deg, #ffe066, #ffb800); padding: 9px 18px; border-radius: 12px; font-weight: 900; box-shadow: 0 4px 0 #c98a00; }
.nav .get:hover { color: #2a1a00; filter: brightness(1.05); }
@media (max-width: 860px) { .nav .links { display: none; } }

/* ----------------------------------------------------------------- hero */

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 140px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(700px 500px at 75% 40%, rgba(255, 63, 216, .2), transparent 65%),
    radial-gradient(900px 600px at 10% 10%, rgba(57, 243, 255, .12), transparent 60%),
    linear-gradient(180deg, #07071a 0%, #14123a 70%, #1d1650 100%);
}
#corridor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: .6; }

.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero-logo { width: min(520px, 100%); margin-bottom: 4px; filter: drop-shadow(0 10px 40px rgba(255, 63, 216, .45)); }
.tagline { margin: 10px 0 0; color: var(--cyan); font-weight: 900; letter-spacing: .3em; font-size: 15px; }
.hero h1 { margin: 26px 0 14px; font-size: clamp(32px, 4.6vw, 54px); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #39f3ff, #ff3fd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 30px; max-width: 33em; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  color: #fff; background: #000;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease), border-color .2s;
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(255, 255, 255, .55); }
.store-btn svg { width: 30px; height: 30px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.store-btn strong { font-size: 20px; font-weight: 700; }
.store-btn.soon { cursor: default; opacity: .6; box-shadow: none; }
.store-btn.soon:hover { transform: none; border-color: rgba(255, 255, 255, .28); }

.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 700; }
.badges span { display: inline-flex; align-items: center; gap: 7px; }
.badges svg { width: 17px; height: 17px; color: var(--yellow); }

.hero-art { position: relative; width: min(560px, 92vw); margin-inline: auto; }
.hero-art img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: bob 5s ease-in-out infinite; }
.hero-art::before { content: ""; position: absolute; inset: 0 5% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(164, 92, 255, .55), transparent); filter: blur(24px); animation: pulse 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.94); } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint:hover { text-decoration: none; color: var(--text); }
.scroll-hint i { width: 2px; height: 34px; background: linear-gradient(var(--yellow), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero { padding-top: 100px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-logo, .lead { margin-inline: auto; }
  .cta, .badges { justify-content: center; }
  .scroll-hint { display: none; }
}

/* ----------------------------------------------------------------- stats */

.stats { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 63, 216, .08), rgba(57, 243, 255, .08)); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 900; color: var(--yellow); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 700; font-size: 14px; }
@media (max-width: 640px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* -------------------------------------------------------------- sections */

section.block { padding: 110px 0; position: relative; }
section.alt { background: linear-gradient(180deg, transparent, rgba(30, 22, 80, .7) 15%, rgba(30, 22, 80, .7) 85%, transparent); }
.head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.head h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 14px; }
.head p { color: var(--muted); margin: 0; font-size: 18px; }

/* How to play: control keys */
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.control { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.key {
  flex: none;
  min-width: 58px; height: 58px; padding: 0 10px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #c27bff, #7a2fe0);
  box-shadow: 0 5px 0 #4b1a96, 0 0 24px rgba(164, 92, 255, .45);
}
.control h3 { margin: 4px 0 6px; font-size: 19px; }
.control p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .controls { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .controls { grid-template-columns: 1fr; } }

/* Gallery carousel (landscape store images) */
.carousel { position: relative; }
.track {
  display: flex; gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px calc(50% - min(150px, 36vw)) 40px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: none; width: min(300px, 72vw); scroll-snap-align: center; transition: transform .45s var(--ease), opacity .45s; opacity: .45; transform: scale(.9); cursor: pointer; margin: 0; }
.slide.on { opacity: 1; transform: scale(1); }
.slide img { width: 100%; border-radius: 26px; border: 3px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.arrows { display: flex; justify-content: center; align-items: center; gap: 18px; }
.arrow { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; transition: background .2s, transform .2s; }
.arrow:hover { background: rgba(255, 63, 216, .2); transform: scale(1.06); }
.arrow svg { width: 22px; height: 22px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line-strong); cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 26px; background: var(--yellow); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feature .icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 900; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--yellow); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Final call to action */
.final { position: relative; padding: 80px 40px; border-radius: 34px; overflow: hidden; text-align: center; border: 1px solid var(--line-strong); isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(600px 300px at 50% 0%, rgba(255, 63, 216, .35), transparent 70%), radial-gradient(500px 300px at 90% 100%, rgba(57, 243, 255, .22), transparent 70%), linear-gradient(160deg, #2a1f6b, #120f36); }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); }
.final img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 0 0 12px; }
.final p { color: #d6dbf5; margin: 0 auto 30px; max-width: 32em; font-size: 18px; }
.final .cta { justify-content: center; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .hero-art::before, .scroll-hint i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------- documents */

.doc { padding: 130px 0 90px; }
.doc .wrap { max-width: 820px; }
.doc .back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 700; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { margin: 40px 0 10px; font-size: 23px; }
.doc p, .doc li { color: #d3d8f3; }
.doc ul { padding-left: 22px; }

/* ---------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--line); padding: 46px 0 50px; color: var(--muted); font-size: 15px; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .brand { font-size: 15px; }
footer .brand img { width: 30px; height: 30px; border-radius: 9px; }

/* ---------------------------------------------------------- graviloop */

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.world { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: transform .35s var(--ease), box-shadow .35s; }
.world:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 2px var(--c); }
.world img { width: 100%; height: 100%; object-fit: cover; }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 20, .9)); }
.world .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.world .num { font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.world h3 { margin: 4px 0 0; font-size: 21px; text-shadow: 0 0 18px var(--c); }
.world:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.world:first-child h3 { font-size: 32px; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } .world:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }

.fair { display: flex; gap: 22px; align-items: center; margin-top: 26px; padding: 28px 30px; border-radius: var(--radius); border: 1px solid rgba(57, 243, 255, .35); background: linear-gradient(90deg, rgba(57, 243, 255, .1), rgba(164, 92, 255, .1)); }
.fair .shield { flex: none; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; font-size: 30px; background: rgba(57, 243, 255, .15); border: 1px solid rgba(57, 243, 255, .5); }
.fair h3 { margin: 0 0 6px; font-size: 21px; }
.fair p { margin: 0; color: var(--muted); }
.dots button.on { background: var(--magenta); }
.eyebrow { color: var(--magenta); }
.badges svg { color: var(--cyan); }
.faq summary::after { color: var(--magenta); }
.hero .wrap > * { min-width: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
