/*
  SkyGlass's page (5.0): dark, quiet, glass. Plain CSS, no build. One accent run - the diamond's cyan to violet to pink - used
  sparingly: the headline word, the primary glow, the edges of what is lit. Motion stops with the class "calm" on <html>
  (set in index.html: the system's "reduce motion", or the visitor's pause button).
*/
:root {
	--night: #0B0C10;
	--ink: #F5F5F7;
	--dim: #A1A1AA;
	--faint: #71717A;
	--line: rgba(255, 255, 255, .10);
	--glass: rgba(255, 255, 255, .055);
	--sky: #6FD6FF;
	--violet: #9C8CFF;
	--pink: #FF86D8;
	--run: linear-gradient(100deg, var(--sky), var(--violet) 55%, var(--pink));
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
	--r-xl: 28px;
	--r-lg: 20px;
	--r-md: 14px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html.calm { scroll-behavior: auto; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font: .9em var(--mono); background: rgba(255, 255, 255, .09); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }

/* the light behind the page */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(60vw 46vw at 12% -8%, rgba(111, 214, 255, .16), transparent 60%), radial-gradient(54vw 44vw at 96% 4%, rgba(255, 134, 216, .12), transparent 62%), radial-gradient(70vw 60vw at 50% 110%, rgba(156, 140, 255, .10), transparent 60%); }

.card { background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 18px 40px -24px rgba(0, 0, 0, .8); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px max(20px, calc((100vw - 1120px) / 2)); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(11, 12, 16, .72); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 7px 12px; border-radius: 99px; color: var(--dim); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 99px; font-weight: 600; font-size: 15.5px; line-height: 1; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-light { background: var(--ink); color: #0B0C10; box-shadow: 0 10px 34px -12px rgba(111, 214, 255, .7); }
.btn-light:hover { background: #fff; }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: var(--line); color: var(--ink); }
.btn-glass:hover { background: rgba(255, 255, 255, .13); }
.btn.is-off { opacity: .55; cursor: default; pointer-events: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 54px 0 20px; text-align: center; }
.eyebrow { color: var(--dim); font-size: 13.5px; letter-spacing: .02em; display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.chip { padding: 4px 10px; border-radius: 99px; background: rgba(111, 214, 255, .14); color: var(--sky); font-weight: 600; border: 1px solid rgba(111, 214, 255, .3); }
h1 { font-size: clamp(44px, 8.4vw, 96px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin-top: 18px; }
.gem-text { background: var(--run); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--dim); font-size: clamp(16.5px, 1.5vw, 19.5px); max-width: 660px; margin: 20px auto 0; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.meta { color: var(--faint); font-size: 13.5px; margin-top: 16px; }

.stage { position: relative; margin-top: 48px; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 110px -50px rgba(111, 214, 255, .45), 0 30px 80px -40px #000; isolation: isolate; text-align: left; }
.stage-world { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; animation: drift 34s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.6%, -1.2%); } }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 16, .05), rgba(11, 12, 16, .5)); }
.hud { position: absolute; font-size: clamp(8px, 1.06vw, 12.5px); line-height: 1.5; color: var(--ink); }
.hud.card { border-radius: 1.1em; background: rgba(18, 19, 24, .58); padding: .9em 1em; }
.hud .dim { color: var(--dim); }
.hud .row { display: flex; justify-content: space-between; gap: 1.4em; }
.hud hr { border: 0; border-top: 1px solid var(--line); margin: .55em 0; }
.hud header { display: flex; align-items: center; gap: .6em; margin-bottom: .5em; font-weight: 650; }
.hud header .dim { margin-left: auto; font-weight: 400; }
.pill { background: var(--sky); color: #06202C; font-weight: 700; padding: .1em .65em; border-radius: 99px; font-size: .86em; letter-spacing: .04em; }
.hud-board { right: 2.2%; top: 6%; width: 17.5em; }
.bar { position: relative; display: flex; justify-content: space-between; padding: .2em .65em; margin-top: .35em; border-radius: .6em; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, rgba(111, 214, 255, .5), rgba(156, 140, 255, .5)); }
.bar span, .bar em { position: relative; font-style: normal; }
.hud-money { left: 2.2%; top: 30%; width: 14.5em; }
.hud-money .big { font-size: 1.9em; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hud-money .big small { font-size: .5em; color: var(--dim); font-weight: 500; }
.hud-menu { left: 50%; top: 6%; transform: translateX(-50%); display: flex; gap: .7em; padding: .6em .8em; }
.hud-menu img { width: 2.3em; height: 2.3em; }
.hud-bars { left: 50%; bottom: 5%; transform: translateX(-50%); display: flex; gap: .7em; }
.vital { position: relative; width: 13em; padding: .28em 0; text-align: center; border-radius: 99px; overflow: hidden; }
.vital i { position: absolute; inset: 0 auto 0 0; width: var(--v); opacity: .8; }
.vital.health i { background: linear-gradient(90deg, #FF5A5F, #FF8A70); }
.vital.mana i { background: linear-gradient(90deg, #3E9BFF, #6FD6FF); }
.vital span { position: relative; font-weight: 600; }
.motion { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(11, 12, 16, .6); color: var(--ink); font: 12px var(--font); cursor: pointer; backdrop-filter: blur(10px); }
.motion span, .motion .i-play { display: none; }
.calm .motion span, .calm .motion .i-play { display: inline; }
.calm .motion .i-pause { display: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.facts li { padding: 18px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); }
.facts b { display: block; font-size: 28px; letter-spacing: -.02em; background: var(--run); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--dim); font-size: 13.5px; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(70px, 10vw, 130px) 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head.left { text-align: left; margin: 0; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-head .eyebrow { color: var(--sky); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; }
h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin-top: 12px; text-wrap: balance; }
.section-head .lede { margin-top: 16px; }
.section-head.left .lede { margin-inline: 0; }
h3 { font-size: 18px; letter-spacing: -.01em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { padding: 22px; transition: transform .35s var(--ease), border-color .3s, background .3s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); }
.tile img { width: 44px; height: 44px; margin-bottom: 14px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.tile p { color: var(--dim); font-size: 14.5px; margin-top: 6px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.shot { overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { padding: 12px 16px; color: var(--dim); font-size: 14px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 14px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.place { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); scroll-snap-align: start; }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.place:hover img { transform: scale(1.05); }
.place figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px; background: linear-gradient(180deg, transparent, rgba(11, 12, 16, .9)); }
.place b { display: block; font-size: 17px; }
.place span { color: var(--dim); font-size: 13.5px; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip { grid-template-columns: 1.05fr 1fr; }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--dim); font-size: 15px; }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 17px; height: 17px; border-radius: 50%; background: rgba(111, 214, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.300 8.300l2.500 2.500 5-5.600' fill='none' stroke='%236FD6FF' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.note { color: var(--faint); font-size: 13.5px; margin-top: 20px; }
.wall { padding: 18px; }
.wall img { width: 100%; height: auto; }

.chat { padding: 20px; display: grid; gap: 12px; font-size: 14.5px; }
.bubble { padding: 11px 15px; border-radius: 16px; max-width: 92%; }
.bubble.me { justify-self: end; background: linear-gradient(120deg, rgba(111, 214, 255, .32), rgba(156, 140, 255, .32)); border: 1px solid rgba(156, 140, 255, .35); }
.bubble.ai { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: grid; gap: 10px; }
.bubble.ai b { color: var(--ink); }
.bubble.ai p { color: #D4D4DC; }
.steps { display: grid; gap: 3px; font-size: 13px; color: var(--faint); }
.steps li { padding-left: 15px; position: relative; display: flex; gap: 8px; }
.steps li span { margin-left: auto; }
.steps li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--sky); box-shadow: 0 0 0 4px rgba(111, 214, 255, .18); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(111, 214, 255, 0); } }
.undo { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.undo b { margin-left: auto; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-weight: 600; }

.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edition { padding: 28px; display: flex; flex-direction: column; }
.edition h3 { font-size: 24px; letter-spacing: -.02em; }
.where { color: var(--sky); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.edition .cta { justify-content: flex-start; margin-top: auto; padding-top: 26px; }
.warn { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 170, 60, .09); border: 1px solid rgba(255, 170, 60, .28); color: #FFD9A8; font-size: 13.5px; }

.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; counter-reset: n; }
.news li { padding: 18px 20px 18px 58px; position: relative; counter-increment: n; }
.news li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font: 600 13px var(--mono); color: var(--sky); }
.news b { display: block; }
.news span { color: var(--dim); font-size: 14.5px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how li { padding: 24px; }
.how i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--run); color: #0B0C10; font: 700 16px var(--font); margin-bottom: 14px; }
.how b { display: block; font-size: 17px; }
.how span { color: var(--dim); font-size: 14.5px; }

details.card { margin-top: 10px; padding: 0 20px; }
summary { cursor: pointer; padding: 17px 26px 17px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--dim); padding: 0 0 18px; font-size: 15px; }

.foot { margin-top: clamp(80px, 10vw, 130px); padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.foot .brand { color: var(--ink); }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot nav a:hover { color: var(--ink); }

/* things come in as they are reached (only with scripts on and motion allowed) */
.js:not(.calm) .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js:not(.calm) .reveal.is-in { opacity: 1; transform: none; }
.calm .stage-world, .calm .steps li.on::before { animation: none; }
.calm .btn, .calm .tile, .calm .place img { transition: none; }

@media (max-width: 900px) {
	.nav-links { display: none; }
	.nav .btn { margin-left: auto; }
	.split, .split.flip, .editions, .how { grid-template-columns: 1fr; }
	.split.flip .chat { order: 2; }
	.facts { grid-template-columns: repeat(2, 1fr); }
	.stage { aspect-ratio: 4 / 3; }
	.hud { font-size: clamp(7px, 2vw, 11px); }
	.hud-money { top: 40%; }
	.hud-menu { display: none; }
}
@media (max-width: 520px) {
	.hero { padding-top: 30px; }
	.cta .btn { width: 100%; }
	.edition .cta .btn { width: auto; }
	.hud-money { display: none; }
	.hud-board { width: 15.5em; }
	.foot nav { margin-left: 0; flex-wrap: wrap; }
}
