/* ─────────────────────────────────────────────
   Gamoo — coming soon (gamoo.app)
   ───────────────────────────────────────────── */

:root {
  --bg: #0d0c0b;
  --panel: #161513;
  --bubble: #262420;
  --line: rgba(255, 246, 232, 0.075);
  --line-2: rgba(255, 246, 232, 0.13);
  --text: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.66);
  --subtle: rgba(244, 240, 232, 0.42);
  --ember: #ff6b2c;
  --amber: #ffb547;
  --sky: #4c7dff;
  --ok: #86d993;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain — inset must stay 0 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Background glow */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; }
.glow i:nth-child(1) { left: -14vw; top: 14vh; width: 56vw; height: 56vw; background: radial-gradient(closest-side, rgba(255, 86, 24, .42), transparent); animation: drift 22s ease-in-out infinite alternate; }
.glow i:nth-child(2) { left: 10vw; bottom: -34vw; width: 60vw; height: 52vw; background: radial-gradient(closest-side, rgba(58, 98, 255, .38), transparent); animation: drift 26s ease-in-out infinite alternate-reverse; }
.glow i:nth-child(3) { right: -16vw; top: -10vh; width: 50vw; height: 50vw; background: radial-gradient(closest-side, rgba(255, 181, 71, .2), transparent); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(4vw, -3vh, 0) scale(1.06); } }

/* Layout */
.lp {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  max-width: 1240px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(16px, 4vw, 48px) 32px;
}

/* Copy */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14.5px;
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: rgba(255, 246, 232, .24); background: rgba(255, 255, 255, .08); }
.pill__mark { width: 28px; height: 28px; }
.pill b { font-weight: 600; }
.pill span { color: var(--subtle); }

.lp__title {
  margin: 28px 0 0;
  font: 700 clamp(2.9rem, 7vw, 6.5rem)/0.96 var(--display);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.03em;
}
.lp__title span { display: block; }
.lp__grad {
  padding-bottom: .08em;
  background: linear-gradient(96deg, #ff5a1f 0%, #ff8a3d 45%, #ffcf5c 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lp__lede { margin: 26px 0 0; max-width: 30em; font-size: clamp(16px, 1.45vw, 19.5px); line-height: 1.55; color: var(--muted); }

.join {
  position: relative;
  display: flex; gap: 6px;
  max-width: 540px; margin-top: 30px; padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(22, 21, 19, .82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
  transition: border-color .2s, box-shadow .2s;
}
.join:focus-within { border-color: rgba(255, 138, 76, .55); box-shadow: 0 0 0 4px rgba(255, 107, 44, .12), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.join__input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; outline: 0; background: none; font-size: 16px; }
.join__input::placeholder { color: var(--subtle); }
.join__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join__btn {
  height: 50px; padding: 0 22px; border-radius: 13px;
  background: linear-gradient(180deg, #ff7a3d, #f2581a);
  color: #fff; font-weight: 600; font-size: 15.5px; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -12px rgba(255, 90, 31, .9);
  transition: transform .2s var(--ease), filter .2s, opacity .2s;
}
.join__btn:hover { filter: brightness(1.08); }
.join__btn:active { transform: scale(.98); }
.join__btn:disabled { opacity: .6; cursor: progress; }
.join__msg { min-height: 22px; margin: 10px 0 0 6px; font-size: 14px; color: #ff9b9b; }

.joined {
  display: flex; align-items: center; gap: 14px;
  max-width: 540px; margin-top: 30px; padding: 12px 18px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(134, 217, 147, .3);
  background: rgba(134, 217, 147, .08);
}
.joined__gm { flex: none; width: 58px; height: 58px; animation: gm-hop 1.8s ease-in-out infinite; }
.joined b { display: block; font-size: 16.5px; }
.joined span { color: var(--muted); font-size: 14.5px; }

.lp__call {
  margin: 30px 0 0; max-width: 20em;
  font: 600 clamp(22px, 2.3vw, 32px)/1.25 var(--display);
  font-variation-settings: 'opsz' 48;
  letter-spacing: -0.015em;
}
.lp__call a { color: var(--amber); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lp__call a:hover { color: #ffcf5c; }

.lp__peek { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.lp__peek svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.lp__peek:hover { color: var(--text); }
.lp__peek:hover svg { transform: translateX(3px); }

/* Demo window */
.lp__demo { position: relative; display: flex; justify-content: center; }
.win {
  position: relative;
  display: flex; flex-direction: column;
  width: min(440px, 100%);
  height: clamp(540px, 76vh, 660px);
  border-radius: 30px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #171614, #121110);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 0 8px rgba(255, 255, 255, .025);
}
.win__gm {
  position: absolute; left: -38px; top: -50px; z-index: 3;
  width: 96px; height: 96px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
  animation: win-gm 5s ease-in-out infinite;
}
@keyframes win-gm { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-7px) rotate(-5deg); } }
.win__bar { flex: none; position: relative; display: flex; align-items: center; justify-content: center; height: 68px; border-bottom: 1px solid var(--line); }
.win__dots { position: absolute; right: 20px; display: flex; gap: 6px; }
.win__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.win__who { display: flex; align-items: center; gap: 10px; }
.win__mark { width: 32px; height: 32px; }
.win__who b { display: block; font-size: 15px; line-height: 1.2; }
.win__who span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--subtle); }
.win__who span i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.thread {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 18px 16px 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  transition: opacity .5s;
}
.thread.is-fading { opacity: 0; }
.b { max-width: 84%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.45; animation: pop .38s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.b--me { align-self: flex-end; border-bottom-right-radius: 6px; background: linear-gradient(180deg, #ff7a3d, #f2581a); color: #fff; }
.row { display: flex; align-items: flex-end; gap: 8px; animation: pop .38s var(--ease) both; }
.row .b { animation: none; }
.row__av { flex: none; width: 26px; height: 26px; }
.b--gm { border-bottom-left-radius: 6px; background: var(--bubble); }
.typing { display: inline-flex; gap: 4px; padding: 14px 15px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.steps li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.steps li.is-done { color: var(--text); }
.steps .ic { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.steps .spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--amber); animation: spin .8s linear infinite; }
.steps svg { width: 15px; height: 15px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.shot { position: relative; padding: 4px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.shot span {
  position: absolute; right: 12px; top: 12px;
  padding: 5px 8px; border-radius: 6px;
  background: rgba(16, 14, 22, .82); border: 1.5px solid rgba(110, 80, 160, .9);
  font: 500 11px/1 var(--mono); color: #e2c2ff;
}
.b__cta { display: inline-flex; align-items: center; margin-top: 10px; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--text); color: #141210; font-weight: 600; font-size: 13.5px; }
.b__cta:hover { background: #fff; }

.lp__foot { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 28px; }
.lp__foot p { margin: 0; font-size: 12.5px; color: var(--subtle); }

/* Responsive */
@media (max-width: 960px) {
  .lp { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 40px; gap: 72px; }
  .lp__demo { padding-bottom: 8px; }
  .win { height: 560px; }
  .win__gm { left: -6px; top: -46px; width: 76px; height: 76px; }
}
@media (max-width: 520px) {
  .join { flex-direction: column; padding: 6px; }
  .join__input { height: 48px; }
  .join__btn { width: 100%; }
  .win { height: 520px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
