/* Game Bridge — Steam-inspired bento design. Colors mean one thing each:
   green = go/download, Steam blue = information, brand purple = subscription, red = warning. */
:root {
  --bg-top: #0e141b;
  --bg: #1b2838;
  --bar: #171a21;
  --tile: #1e2b3a;
  --tile-hi: #24364a;
  --stroke: rgba(255, 255, 255, 0.07);
  --text: #e6edf3;
  --dim: #8f98a0;
  --blue: #66c0f4;
  --play-a: #75b022;
  --play-b: #588a1b;
  --brand-a: #4f7cff;
  --brand-b: #9b5cf6;
  --warn: #f5a623;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(155, 92, 246, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(26, 159, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg) 900px);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Top bar, like Steam's */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(23, 26, 33, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 12px rgba(155, 92, 246, 0.55)); }
.brand b { font-weight: 900; letter-spacing: 0.18em; font-size: 15px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--dim); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 26px; height: 54px;
  border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.16); transition: transform .12s ease, filter .12s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.play { background: linear-gradient(180deg, var(--play-a), var(--play-b)); color: #fff; box-shadow: 0 10px 30px rgba(117, 176, 34, 0.35); }
.btn.brand { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; box-shadow: 0 10px 30px rgba(155, 92, 246, 0.35); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--stroke); }
.btn.small { height: 40px; padding: 0 18px; font-size: 13px; border-radius: 11px; }
.btn svg { width: 18px; height: 18px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { background: var(--tile); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden; }
.tile.hi { background: var(--tile-hi); }
.label { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.label.blue { color: var(--blue); } .label.brand { color: var(--brand-b); } .label.green { color: var(--play-a); }
.tile h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--dim); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(102, 192, 244, 0.12); color: var(--blue); }
.icon.brand { background: rgba(155, 92, 246, 0.14); color: var(--brand-b); }
.icon.green { background: rgba(117, 176, 34, 0.14); color: var(--play-a); }
.icon svg { width: 22px; height: 22px; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; }
.s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; }
.r2 { grid-row: span 2; }

/* Hero */
.hero { padding: 40px 0 16px; }
.hero-tile { padding: 44px; background:
  radial-gradient(600px 400px at 100% 100%, rgba(155, 92, 246, 0.22), transparent 60%),
  linear-gradient(135deg, #1b3a57, #16263a 55%, #1e1b3a); }
.hero-tile h1 { text-shadow: 0 2px 24px rgba(0,0,0,.45); font-size: clamp(38px, 5.4vw, 62px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.035em; font-weight: 900; }
.hero-tile h1 em { font-style: normal; background: linear-gradient(135deg, var(--blue), var(--brand-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tile .lead b { color: var(--text); }
.hero-tile .lead { font-size: 18px; color: #b9c3cc; max-width: 560px; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip.yes::before { content: "✓ "; color: var(--play-a); }
.chip { font-size: 12px; font-weight: 700; color: #cfd8e0; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); }
.pad { position: absolute; right: -60px; bottom: -70px; width: 380px; opacity: 0.12; color: #9b5cf6; transform: rotate(-14deg); pointer-events: none; }

.ring { --p: 100; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: conic-gradient(var(--brand-a), var(--brand-b) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0); }
.ring > div { width: 96px; height: 96px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; text-align: center; }
.ring b { display: block; font-size: 36px; line-height: 1; font-weight: 900; }
.ring small { font-size: 10px; letter-spacing: 0.14em; color: var(--dim); font-weight: 800; }
.big { font-size: 46px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 2px 0 6px; }
.big span { font-size: 15px; font-weight: 600; color: var(--dim); letter-spacing: 0; }
.green-text { color: var(--play-a); font-weight: 700; }

/* App window mock */
.window { margin-top: 16px; border-radius: 18px; border: 1px solid var(--stroke); background: linear-gradient(180deg, #0e141b, #1b2838);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); overflow: hidden; }
.window .chrome { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #171a21; border-bottom: 1px solid var(--stroke); }
.window .chrome i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window .chrome span { margin-left: 14px; font-weight: 900; letter-spacing: 0.18em; font-size: 11px; }
.window .chrome em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: var(--blue); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(102,192,244,.35); background: rgba(102,192,244,.12); }
.mock { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding: 14px; }
.mock .tile { padding: 20px; border-radius: 16px; }
.mock .m-hero { background: linear-gradient(135deg, #1b3a57, #16263a 55%, #1e1b3a); min-height: 200px; display: flex; flex-direction: column; }
.mock .m-hero h4 { font-size: 28px; margin: 0 0 4px; font-weight: 900; letter-spacing: -0.02em; }
.mock .m-hero .btn { margin-top: auto; width: 200px; height: 46px; }
.mock .m-side { display: grid; gap: 12px; }
.mock .m-row { display: flex; gap: 14px; align-items: center; }
.mock .ring { width: 78px; height: 78px; margin: 0; } .mock .ring > div { width: 62px; height: 62px; } .mock .ring b { font-size: 24px; }

section { padding: 56px 0 8px; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.head h2 { flex: 1 1 auto; font-size: clamp(28px, 3.4vw, 40px); margin: 0; letter-spacing: -0.03em; font-weight: 900; }
.head p { margin: 0; color: var(--dim); max-width: 380px; flex: 0 1 380px; }
.steps .num { font-size: 13px; font-weight: 900; color: var(--blue); letter-spacing: 0.1em; }

.plan .btn { width: 100%; margin-top: 20px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--stroke); padding-top: 14px; }
.plan li { padding: 4px 0 4px 26px; position: relative; font-weight: 600; font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--dim); }
.plan li.save { color: var(--play-a); } .plan li.save::before { color: var(--play-a); }
.plan.best { border: 1.5px solid transparent; background:
  linear-gradient(var(--tile-hi), var(--tile-hi)) padding-box, linear-gradient(135deg, var(--brand-a), var(--brand-b)) border-box; }
.tag { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; color: #fff;
  padding: 5px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.feature-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); flex: none; }
.note { color: var(--dim); font-size: 13px; margin-top: 14px; }

.download { text-align: center; padding: 52px 28px; background:
  radial-gradient(500px 260px at 50% 0%, rgba(117, 176, 34, 0.18), transparent 70%), var(--tile); }
.download h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 10px; letter-spacing: -0.03em; font-weight: 900; }
.download .btn { height: 62px; font-size: 18px; padding: 0 36px; margin: 18px 0 10px; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq details { background: var(--tile); border: 1px solid var(--stroke); border-radius: 18px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--dim); margin: 10px 0 0; font-size: 15px; }

footer { margin-top: 64px; border-top: 1px solid var(--stroke); padding: 30px 0 46px; color: var(--dim); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
footer .links a { color: var(--dim); text-decoration: none; font-weight: 700; }
footer .links a:hover { color: var(--text); }

/* Motion: animated hero background, rotating headline word, live app preview */
.hero-tile > *:not(.aurora):not(.pad):not(.reel) { position: relative; z-index: 2; }
.reel { position: absolute; inset: 0; z-index: 0; background: #0e141b; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.reel video.on { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,20,27,.9) 0%, rgba(14,20,27,.66) 50%, rgba(22,38,58,.1) 100%),
              linear-gradient(0deg, rgba(14,20,27,.75), transparent 40%); }
.hero-tile .aurora { z-index: 1; mix-blend-mode: screen; opacity: .4; }
.hero-tile .pad { z-index: 1; }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.aurora i:nth-child(1) { background: #1a9fff; left: -15%; top: -30%; animation: drift1 16s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: #9b5cf6; right: -20%; bottom: -40%; animation: drift2 19s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: #75b022; left: 30%; bottom: -55%; width: 40%; opacity: 0.25; animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(35%, 25%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-30%, -20%) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-40%, -15%) scale(1.3); } }
.rotator { display: inline-block; }
.rotator .word { display: inline-block; background: linear-gradient(135deg, #fff, #cfe8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .38s ease, opacity .38s ease, filter .38s ease; }
.rotator .word.out { transform: translateY(-0.35em); opacity: 0; filter: blur(4px); }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(117,176,34,.35); } 50% { box-shadow: 0 10px 46px rgba(117,176,34,.75), 0 0 0 6px rgba(117,176,34,.15); } }
.m-progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 14px; overflow: hidden; max-width: 320px; }
.m-progress span { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, #66c0f4, #9b5cf6); animation: load 2.8s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.mock .m-hero .btn { margin-top: auto; }
.window { animation: rise .9s cubic-bezier(.2,.8,.2,1) both .15s; }
@keyframes rise { from { transform: translateY(18px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .aurora i, .pulse, .m-progress span, .window { animation: none !important; }
  .reel video { transition: none; }
  .window { opacity: 1; }
}

/* Video tiles */
.vtile { padding: 0; min-height: 230px; display: flex; align-items: flex-end; background: #0e141b; }
.vtile.r2 { min-height: 476px; }
.vtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,20,27,.94) 0%, rgba(14,20,27,.55) 45%, rgba(14,20,27,.05) 100%); }
.vt-text { position: relative; z-index: 1; padding: 26px; }
.vt-text p { color: #c3ccd5; }
.vtile:hover video { transform: scale(1.03); }
.vtile video { transition: transform .8s ease; }
.gallery .vtile h3 { font-size: 22px; }
.gallery .vtile.r2 h3 { font-size: 30px; letter-spacing: -0.02em; }
#library .note { margin-top: 14px; }

/* Trailers */
.player { padding: 14px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.frame img, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.playbtn { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--play-a), var(--play-b)); color: #fff; box-shadow: 0 10px 40px rgba(117,176,34,.55); }
.playbtn svg { width: 30px; height: 30px; margin-left: 4px; }
.now { display: flex; align-items: center; gap: 12px; padding: 0 6px 4px; }
.now b { font-size: 18px; font-weight: 800; }
.picks { padding: 0; position: relative; min-height: 320px; }
.picks-inner { position: absolute; inset: 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
@media (max-width: 860px) { .picks { min-height: 0; } .picks-inner { position: static; padding: 10px; } }
.pick { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: transparent;
  color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.pick:hover { background: rgba(255,255,255,.05); }
.pick.on { background: rgba(102,192,244,.1); border-color: rgba(102,192,244,.35); }
.pick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pick img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.pick span { display: flex; flex-direction: column; min-width: 0; }
.pick b { font-size: 14px; font-weight: 800; }
.pick small { font-size: 11.5px; color: var(--dim); }
#trailers .note { margin-top: 14px; }

.perks .tile { padding: 22px; }
.perks h3 { font-size: 17px; }

.work { padding: 0 0 16px; overflow: hidden; }
.work img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; margin-bottom: 12px; }
.work h3, .work p { padding: 0 16px; }
.work h3 { font-size: 15px; margin-bottom: 2px; }
.work p { font-size: 13px; }

/* Founders banner */
.founders { background: linear-gradient(90deg, rgba(79,124,255,.18), rgba(155,92,246,.22)); border-bottom: 1px solid rgba(155,92,246,.35); }
.founders .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 10px; font-size: 14px; }
.f-badge { font-size: 11px; font-weight: 900; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.f-text { color: #cfd8e0; flex: 1 1 320px; min-width: 0; }
.f-text b { color: var(--text); }
.f-meter { width: 120px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.f-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--play-a), #a4d007); }
.f-count, .f-time { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-count b, .f-time b { color: var(--text); }
.founders .btn.small { height: 34px; }

.invited { background: linear-gradient(90deg, rgba(117,176,34,.2), rgba(102,192,244,.16)); border-bottom: 1px solid rgba(117,176,34,.4); }
.invited .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 10px; font-size: 14px; }
.invited .f-badge { background: linear-gradient(180deg, var(--play-a), var(--play-b)); }
.invited code { font-weight: 900; letter-spacing: .08em; color: var(--text); background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 6px; }
.invited .btn.small { height: 34px; }

.deal { color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.deal:hover { transform: translateY(-2px); border-color: rgba(102,192,244,.4); }
.deal .price { font-size: 18px; color: var(--text); }
.deal s { color: var(--dim); }
.deal .off { color: #0e141b; background: var(--play-a); font-weight: 900; font-size: 12px; padding: 1px 6px; border-radius: 6px; }

/* Legal pages */
.legal { max-width: 780px; }
.legal header.top { display: flex; align-items: center; padding: 24px 0; }
.legal h1 { font-size: 40px; letter-spacing: -0.03em; margin: 26px 0 4px; font-weight: 900; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; font-weight: 800; }
.legal p, .legal li { color: #c3ccd5; }
.legal footer { margin-top: 40px; }

@media (max-width: 860px) {
  .s8, .s7, .s6, .s5, .s4, .s3 { grid-column: span 12; }
  .r2 { grid-row: auto; }
  nav a:not(.btn) { display: none; }
  .hero-tile { padding: 30px; }
  .mock { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: start; }
  .head p { flex: none; }
  .reel::after { background: linear-gradient(180deg, rgba(14,20,27,.78), rgba(14,20,27,.86)); }
  .brand b { font-size: 13px; letter-spacing: 0.14em; white-space: nowrap; }
  .topbar .btn.small { padding: 0 14px; white-space: nowrap; }
  .topbar .btn.small .long { display: none; }
}
