/* CreateGame.ai — home. White, rounded, Tesana-like. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #131313;
  --body: #2a2a2a;
  --muted: #777;
  --soft: #f5f5f4;
  --line: #ececea;
  --display: "Archivo", "SF Pro Display", system-ui, sans-serif;
  --ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
body { margin: 0; background: #fff; color: var(--body); font: 400 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* header */
.top-bar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 14px 28px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 560 17px/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.brand .dim { color: var(--muted); font-weight: 460; }
.pills { justify-self: center; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--soft); }
.pills a { padding: 8px 18px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; }
.pills a:hover { color: var(--ink); }
.pills a[aria-current] { background: #ebebea; color: var(--ink); }
.top-cta { justify-self: end; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; transition: transform .2s; }
.top-cta:hover { background: #000; transform: translateY(-1px); }

/* hero */
.hero { max-width: 860px; margin: 0 auto; padding: 96px 24px 72px; text-align: center; }
.hero h1 { margin: 0; color: var(--ink); font: 520 clamp(40px, 7vw, 80px)/1.02 var(--display); font-stretch: 125%; letter-spacing: -.03em; text-wrap: balance; animation: rise .9s var(--ease-out) both; }
.lede { max-width: 580px; margin: 22px auto 34px; color: var(--muted); font-size: 19px; line-height: 1.55; text-wrap: pretty; animation: rise .9s var(--ease-out) .08s both; }
.waitlist { position: relative; max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; animation: rise .9s var(--ease-out) .16s both; }
.waitlist input[type="email"] { height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink); font: 400 16px/1 var(--ui); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.waitlist input::placeholder { color: #999; }
.waitlist input:focus { background: #fff; border-color: #c9d3ff; box-shadow: 0 0 0 4px #eef1ff; }
.waitlist button { height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15.5px/1 var(--ui); cursor: pointer; }
.waitlist button:hover { background: #000; }
.waitlist button[disabled] { opacity: .7; cursor: progress; }
.form-note { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.form-note.ok { color: #0f7a3d; }
.form-note.err { color: #c0392b; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* sections */
main section.make, main section.reports { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
main section.reports { padding-top: 104px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 18px; margin: 0; padding: 0; list-style: none; }
.feats img, .rep-cards img { width: 100%; height: auto; object-fit: cover; background: var(--soft); }
.feats img { aspect-ratio: 4 / 5; border-radius: 20px; }
.feats b { display: block; margin: 16px 0 6px; color: var(--ink); font: 500 19px/1.3 var(--ui); }
.feats span { display: block; color: #6f6f6f; font-size: 15.5px; line-height: 1.55; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.row-head h2 { margin: 0; color: var(--ink); font: 520 clamp(30px, 4.4vw, 48px)/1.06 var(--display); font-stretch: 125%; letter-spacing: -.025em; }
.pill { padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.pill:hover { background: #000; }
.rep-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 18px; margin: 0; padding: 0; list-style: none; }
.rep-cards img { aspect-ratio: 16 / 9; border-radius: 16px; transition: transform .3s var(--ease-out), box-shadow .3s; }
.rep-cards a { text-decoration: none; }
.rep-cards a:hover img { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .4); }
.rep-cards b { display: block; margin: 14px 0 6px; color: var(--ink); font: 500 17px/1.3 var(--ui); text-wrap: balance; }
.rep-cards span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.end { max-width: 1240px; margin: 104px auto 0; padding: 28px 28px 44px; display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--line); color: #888; font-size: 13.5px; }
.end a { color: #888; text-decoration: none; }
.end a:hover { color: var(--ink); }

/* product story */
.block { max-width: 1240px; margin: 0 auto; padding: 136px 28px 0; }
.kicker { margin: 0 0 14px; color: var(--muted); font: 500 15px/1 var(--ui); }
.block h2 { max-width: 900px; margin: 0; color: var(--ink); font: 520 clamp(32px, 4.8vw, 58px)/1.05 var(--display); font-stretch: 125%; letter-spacing: -.028em; text-wrap: balance; }
.intro { max-width: 640px; margin: 22px 0 0; color: #555; font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 56px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: var(--soft); }
.stats b { color: var(--ink); font: 520 54px/1 var(--display); font-stretch: 125%; letter-spacing: -.03em; }
.stats span { color: #555; font-size: 15.5px; line-height: 1.55; flex: 1; }
.stats a { color: var(--ink); font-size: 14px; font-weight: 500; text-underline-offset: 3px; }
.steps { display: grid; gap: 0; margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 80px minmax(160px, 260px) 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps i { color: #b0b0ad; font: 500 15px/1 var(--ui); font-style: normal; font-variant-numeric: tabular-nums; }
.steps b { color: var(--ink); font: 520 24px/1.2 var(--display); font-stretch: 118%; letter-spacing: -.015em; }
.steps span { color: #555; font-size: 16.5px; line-height: 1.6; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.facts div { padding: 24px; border-radius: 20px; border: 1px solid var(--line); }
.facts dt { color: var(--ink); font: 600 16.5px/1.3 var(--ui); }
.facts dd { margin: 10px 0 0; color: #5c5c5c; font-size: 15px; line-height: 1.55; }
.spectrum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.spectrum div { position: relative; padding: 26px 22px 24px; border-radius: 20px; background: var(--soft); }
.spectrum div::before { content: ""; display: block; height: 6px; margin-bottom: 20px; border-radius: 99px; background: linear-gradient(90deg, #c9d3ff, #3a63ff); }
.spectrum div:nth-child(1)::before { width: 20%; } .spectrum div:nth-child(2)::before { width: 40%; } .spectrum div:nth-child(3)::before { width: 60%; } .spectrum div:nth-child(4)::before { width: 80%; } .spectrum div:nth-child(5)::before { width: 100%; }
.spectrum b { display: block; color: var(--ink); font: 600 17px/1.3 var(--ui); margin-bottom: 10px; }
.spectrum span { color: #5c5c5c; font-size: 14.5px; line-height: 1.55; }
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 56px 0 0; padding: 0; list-style: none; }
.agents li { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .3s var(--ease-out); }
.agents li:hover { border-color: #c9d3ff; transform: translateY(-2px); }
.agents b { display: block; color: var(--ink); font: 600 16.5px/1.3 var(--ui); margin-bottom: 8px; }
.agents span { color: #5c5c5c; font-size: 15px; line-height: 1.55; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.pillars div { padding: 28px; border-radius: 22px; background: #131313; color: #cfcfcf; }
.pillars b { display: block; color: #fff; font: 520 21px/1.2 var(--display); font-stretch: 115%; letter-spacing: -.01em; margin-bottom: 12px; }
.pillars span { font-size: 15px; line-height: 1.6; }
.pillars a { color: #fff; }
.close { text-align: center; }
.close h2, .close .intro { margin-left: auto; margin-right: auto; }
.pill.big { display: inline-block; margin-top: 34px; padding: 16px 28px; font-size: 16px; }

/* centered story sections */
.block { text-align: center; }
.block h2, .block .intro { margin-left: auto; margin-right: auto; }
.stats li { text-align: left; }

/* how it works: a track that fills step by step */
.track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 64px 0 0; padding: 0; list-style: none; }
.track::before, .track::after { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 2px; border-radius: 2px; background: var(--line); }
.track::after { background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 2.4s cubic-bezier(.65, 0, .35, 1) .3s; }
.reveal.in .track::after { transform: scaleX(1); }
.track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.track i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: #999; font: 600 15px/1 var(--ui); font-style: normal; transition: background .4s, color .4s, border-color .4s; transition-delay: calc(var(--i, 0) * .5s + .4s); }
.reveal.in .track i { background: var(--ink); border-color: var(--ink); color: #fff; }
.track b { margin-top: 6px; color: var(--ink); font: 520 21px/1.2 var(--display); font-stretch: 115%; letter-spacing: -.01em; }
.track span { max-width: 230px; color: #5c5c5c; font-size: 15px; line-height: 1.55; }

/* living worlds: small interface sketches */
.mem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; text-align: left; }
.mem article { display: flex; flex-direction: column; padding: 24px; border-radius: 22px; background: var(--soft); }
.mem h3 { margin: 0; color: var(--ink); font: 600 17px/1.3 var(--ui); }
.mem p { margin: 8px 0 20px; color: #5c5c5c; font-size: 14.5px; line-height: 1.55; }
.mem article > :last-child { margin-top: auto; }
.ui-bible, .ui-chips { margin: 0; padding: 0; list-style: none; }
.ui-bible li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: #fff; font-size: 13px; }
.ui-bible b { color: var(--ink); font-weight: 600; }
.ui-bible span { color: #888; }
.ui-npc { padding: 14px; border-radius: 16px; background: #fff; font-size: 13px; }
.npc-head { display: flex; gap: 10px; align-items: center; }
.av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8ecff; color: #3a63ff; font-weight: 700; }
.npc-head b { display: block; color: var(--ink); }
.npc-head small { color: #888; }
.ui-npc dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 12px 0; }
.ui-npc dt { color: #999; }
.ui-npc dd { margin: 0; color: var(--ink); }
.bar, .ui-sliders div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; color: #888; font-size: 12.5px; }
.bar i, .ui-sliders i { position: relative; height: 6px; border-radius: 6px; background: #ececea; overflow: hidden; }
.bar em, .ui-sliders em { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: #3a63ff; transition: width 1.6s var(--ease-out) .6s; }
.reveal.in .bar em { width: 62%; }
.ui-sliders { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; }
.ui-sliders em { background: var(--ink); }
.reveal.in .ui-sliders em { width: var(--to, 50%); }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-chips li { padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out); }
.ui-chips li:nth-child(1) { transition-delay: .5s; } .ui-chips li:nth-child(2) { transition-delay: .8s; } .ui-chips li:nth-child(3) { transition-delay: 1.1s; } .ui-chips li:nth-child(4) { transition-delay: 1.4s; }
.reveal.in .ui-chips li { opacity: 1; transform: none; }
.ui-bible li { opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .5s var(--ease-out); }
.ui-bible li:nth-child(1) { transition-delay: .5s; } .ui-bible li:nth-child(2) { transition-delay: .8s; } .ui-bible li:nth-child(3) { transition-delay: 1.1s; }
.reveal.in .ui-bible li { opacity: 1; transform: none; }

/* genres with mini screens */
.spectrum div { text-align: left; padding: 10px 10px 20px; background: var(--soft); }
.spectrum div::before { display: none; }
.spectrum img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 14px; background: #ececea; }
.spectrum b, .spectrum span { display: block; padding: 0 8px; }

/* harness: agents on a loop with a travelling pulse */
.loop { position: relative; margin-top: 56px; }
.lane { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #d9d9d6 0 6px, transparent 6px 12px); }
.pulse { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #3a63ff; box-shadow: 0 0 0 6px rgba(58, 99, 255, .15); animation: travel 7s linear infinite; }
@keyframes travel { from { left: 0; } to { left: 100%; } }
.loop .agents { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 0; }
.loop .agents li { text-align: left; padding: 16px; }
.loop .agents b { font-size: 15px; }
.loop .agents span { font-size: 13.5px; }
.pillars { text-align: left; }

/* scroll reveal: sections and their children ease in once */
.js .reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in > * { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: .06s; } .js .reveal.in > *:nth-child(3) { transition-delay: .12s; } .js .reveal.in > *:nth-child(4) { transition-delay: .18s; } .js .reveal.in > *:nth-child(5) { transition-delay: .24s; }
.js .reveal .stats li, .js .reveal .steps li, .js .reveal .spectrum div, .js .reveal .agents li, .js .reveal .facts div { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + .15s); }
.js .reveal.in .stats li, .js .reveal.in .steps li, .js .reveal.in .spectrum div, .js .reveal.in .agents li, .js .reveal.in .facts div { opacity: 1; transform: none; }

/* hero over the pixel sky world */
.hero.sky { position: relative; isolation: isolate; max-width: none; min-height: calc(100svh - 64px); margin: 0 12px; padding: 120px 24px 120px; display: flex; flex-direction: column; justify-content: center; border-radius: 28px; overflow: hidden; }
.sky-bg { position: absolute; inset: -2%; z-index: -2; width: 104%; height: 104%; max-width: none; object-fit: cover; object-position: center 60%; background: #cfe2ff; image-rendering: pixelated; animation: sky-drift 40s ease-in-out infinite alternate; }
.hero.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 46% 52% at 50% 50%, rgba(244, 248, 255, .82), rgba(244, 248, 255, .5) 60%, rgba(244, 248, 255, 0) 100%); }
.hero.sky h1, .hero.sky .lede, .hero.sky .waitlist { max-width: 860px; margin-left: auto; margin-right: auto; }
.hero.sky h1 { color: #0f1530; text-shadow: 0 1px 30px rgba(255, 255, 255, .85); }
.hero.sky .lede { color: #39425f; }
.hero.sky .waitlist input[type="email"] { background: rgba(255, 255, 255, .9); border-color: rgba(15, 21, 48, .08); box-shadow: 0 10px 30px -18px rgba(24, 38, 90, .45); }
.hero.sky .form-note { color: #4c5675; }
.sky + .make { padding-top: 96px; }
@keyframes sky-drift { from { transform: scale(1.02) translateX(-.6%); } to { transform: scale(1.05) translateX(.6%); } }

@media (max-width: 1100px) {
  .mem { grid-template-columns: 1fr 1fr; }
  .loop .agents { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lane { display: none; }
}
@media (max-width: 1000px) {
  .track { grid-template-columns: 1fr; gap: 28px; }
  .track::before, .track::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .spectrum { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 56px 1fr; }
  .steps span { grid-column: 2; }
}
@media (max-width: 760px) {
  .block { padding: 96px 18px 0; }
  .facts, .spectrum, .mem { grid-template-columns: 1fr; }
  .loop .agents { grid-template-columns: 1fr 1fr; }
  .intro { font-size: 17px; }
  .top { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .pills { display: none; }
  .hero { padding: 56px 18px 48px; }
  .hero.sky { margin: 0 8px; min-height: 78svh; padding: 72px 18px; border-radius: 20px; }
  .lede { font-size: 17px; }
  .waitlist { grid-template-columns: 1fr; }
  main section.make, main section.reports { padding: 0 18px; }
  .feats img { aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.hero.sky .lede { max-width: 600px; }
