/* ZemForge static website
   Upload everything in this folder to your hosting root.
*/

:root {
  --bg: #020617;
  --surface: rgba(8, 16, 32, .76);
  --surface-strong: rgba(15, 23, 42, .92);
  --line: rgba(148, 163, 184, .20);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #67e8f9;
  --purple: #a78bfa;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #34d399;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, .25), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, .16), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

code {
  color: #bae6fd;
  background: rgba(103, 232, 249, .08);
  border: 1px solid rgba(103, 232, 249, .16);
  border-radius: 8px;
  padding: .12rem .38rem;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(55px);
  opacity: .32;
}

.orb-one {
  top: 10%;
  left: -9rem;
  background: var(--cyan);
}

.orb-two {
  right: -11rem;
  bottom: 3%;
  background: var(--purple);
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 232, 249, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 68%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 28px), var(--max));
  margin: 14px auto 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, .60);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  transition: border-color .25s ease, background .25s ease;
}

.header.scrolled {
  background: rgba(2, 6, 23, .84);
  border-color: rgba(103, 232, 249, .28);
}

.brand {
  width: 190px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nav a {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  padding: .7rem .9rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, .09);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 1.15rem;
  font-weight: 900;
  letter-spacing: .01em;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.header-cta,
.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple) 52%, var(--orange));
  color: #020617;
  box-shadow: 0 12px 32px rgba(103, 232, 249, .20);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  border: 1px solid rgba(148, 163, 184, .24);
  color: var(--text);
  background: rgba(148, 163, 184, .07);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, .08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu {
  position: fixed;
  top: 96px;
  left: 14px;
  right: 14px;
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: .4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(2, 6, 23, .94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 1rem;
  color: var(--muted);
  border-radius: 16px;
  font-weight: 800;
  background: rgba(148, 163, 184, .06);
}

.mobile-menu .mobile-play {
  color: #020617;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--orange));
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 3.5rem;
  padding-top: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 900;
}

.pulse-dot {
  width: .62rem;
  height: .62rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 rgba(52, 211, 153, .7);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 13px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 8vw, 6.95rem);
  line-height: .88;
  letter-spacing: -.075em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.15rem);
  line-height: .95;
  letter-spacing: -.055em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.55rem;
  margin-bottom: .65rem;
}

.hero-text,
.section-heading p,
.game-info p,
.studio-panel > p,
.contact-card p,
.feature p,
.timeline p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero-text {
  max-width: 650px;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 2rem 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, .45);
}

.hero-stats div {
  padding: 1.05rem;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 590px;
}

.phone-frame {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 9/15.7;
  padding: 24px;
  border: 1px solid rgba(103, 232, 249, .28);
  border-radius: 48px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .92)),
    radial-gradient(circle at 45% 18%, rgba(103, 232, 249, .18), transparent 34%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .58),
    inset 0 0 0 8px rgba(148, 163, 184, .06);
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 38px;
  border: 1px solid rgba(148, 163, 184, .13);
  pointer-events: none;
}

.game-topbar,
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.bonus-row {
  display: flex;
  gap: .7rem;
  margin: 20px 0;
}

.bonus {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 1000;
  color: #020617;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18);
}

.hammer { background: linear-gradient(135deg, #facc15, #fb7185); }
.rocket { background: linear-gradient(135deg, #67e8f9, #22c55e); }
.freeze { background: linear-gradient(135deg, #a78bfa, #60a5fa); }

.cube-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .72rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 28px;
  background: rgba(2, 6, 23, .34);
}

.cube {
  aspect-ratio: 1;
  border-radius: 18px;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .20), 0 10px 24px rgba(0, 0, 0, .22);
  animation: floatCube 3s ease-in-out infinite;
}

.cube:nth-child(2n) { animation-delay: -.9s; }
.cube:nth-child(3n) { animation-delay: -1.7s; }

@keyframes floatCube {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.c1 { background: linear-gradient(135deg, #67e8f9, #2563eb); }
.c2 { background: linear-gradient(135deg, #facc15, #f97316); }
.c3 { background: linear-gradient(135deg, #34d399, #059669); }
.c4 { background: linear-gradient(135deg, #c084fc, #7c3aed); }

.carrier {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 74%;
  height: 58px;
  display: flex;
  justify-content: center;
  gap: 12px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: rgba(148, 163, 184, .10);
  border: 1px solid rgba(148, 163, 184, .16);
}

.carrier span {
  width: 48px;
  height: 48px;
  margin-top: 5px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e2e8f0, #64748b);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .22);
}

.floating-card {
  position: absolute;
  padding: .9rem 1rem;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 20px;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.floating-card strong {
  display: block;
  margin-top: .2rem;
  font-size: 1.3rem;
}

.card-one {
  top: 18%;
  left: 2%;
  animation: bob 4s ease-in-out infinite;
}

.card-two {
  right: 0;
  bottom: 18%;
  animation: bob 4s ease-in-out infinite -1.5s;
}

@keyframes bob {
  50% { transform: translateY(-14px); }
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2rem;
}

.game-card,
.studio-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(2, 6, 23, .68));
  box-shadow: var(--shadow);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
  gap: 2rem;
  padding: 1.2rem;
}

.game-preview {
  min-height: 390px;
  padding: 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 30%, rgba(103, 232, 249, .26), transparent 14rem),
    radial-gradient(circle at 90% 65%, rgba(249, 115, 22, .20), transparent 12rem),
    rgba(2, 6, 23, .46);
  border: 1px solid rgba(148, 163, 184, .14);
  overflow: hidden;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #bbf7d0;
}

.live-pill::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: var(--green);
}

.preview-scene {
  position: relative;
  height: calc(100% - 28px);
  display: grid;
  place-items: center;
}

.mini-grid {
  width: 230px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  transform: rotate(-8deg);
}

.mini-grid i {
  aspect-ratio: 1;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .18), 0 18px 35px rgba(103, 232, 249, .12);
}

.mini-grid i:nth-child(2n) { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.mini-grid i:nth-child(3n) { background: linear-gradient(135deg, var(--green), var(--cyan)); }

.snake-preview {
  background:
    radial-gradient(circle at 35% 28%, rgba(52, 211, 153, .26), transparent 14rem),
    radial-gradient(circle at 82% 70%, rgba(103, 232, 249, .18), transparent 12rem),
    rgba(2, 6, 23, .46);
}

.snake-board {
  width: min(280px, 78vw);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(52, 211, 153, .22);
  background:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px),
    rgba(2, 6, 23, .56);
  background-size: 48px 48px;
  transform: rotate(-5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.snake-board span {
  aspect-ratio: 1;
  border-radius: 13px;
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .08);
}

.snake-board .snake {
  background: linear-gradient(135deg, #34d399, #67e8f9);
  border-color: rgba(167, 243, 208, .35);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 10px 26px rgba(52, 211, 153, .20);
}

.snake-board .head {
  position: relative;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
}

.snake-board .head::before,
.snake-board .head::after {
  content: "";
  position: absolute;
  top: 30%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #020617;
}

.snake-board .head::before { left: 28%; }
.snake-board .head::after { right: 28%; }

.snake-board .food {
  background: linear-gradient(135deg, #f97316, #facc15);
  border-color: rgba(250, 204, 21, .4);
  box-shadow: 0 0 24px rgba(249, 115, 22, .32);
  animation: foodPulse 1.4s ease-in-out infinite;
}

@keyframes foodPulse {
  50% { transform: scale(.84); }
}


.spark {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(103, 232, 249, .12);
  border: 1px solid rgba(103, 232, 249, .28);
}

.s1 { left: 16%; top: 18%; }
.s2 { right: 14%; top: 26%; width: 38px; height: 38px; }
.s3 { right: 18%; bottom: 18%; background: rgba(249, 115, 22, .12); border-color: rgba(249, 115, 22, .28); }

.game-info {
  padding: 2.2rem 1.4rem;
  align-self: center;
}

.game-info h3 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0 2rem;
}

.tags span {
  color: #cbd5e1;
  font-size: .85rem;
  font-weight: 800;
  padding: .55rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(148, 163, 184, .07);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.text-link {
  color: #a7f3d0;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature {
  min-height: 240px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(15, 23, 42, .56);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 249, .30);
  background: rgba(15, 23, 42, .76);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  background: rgba(103, 232, 249, .10);
  border: 1px solid rgba(103, 232, 249, .18);
  font-size: 1.5rem;
}

.studio-panel {
  padding: clamp(1.5rem, 4vw, 3.2rem);
}

.studio-panel > p {
  max-width: 850px;
  font-size: 1.12rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: 2rem;
}

.timeline div {
  padding: 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(148, 163, 184, .06);
}

.timeline span {
  color: var(--cyan);
  font-weight: 1000;
  letter-spacing: .12em;
}

.timeline strong {
  display: block;
  margin: .45rem 0;
  font-size: 1.1rem;
}

.contact-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  text-align: center;
}

.signup {
  display: flex;
  gap: .8rem;
  max-width: 660px;
  margin: 1.7rem auto 0;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, .55);
}

.signup input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 1rem;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.signup input::placeholder {
  color: #64748b;
}

.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 28px;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.footer-brand img {
  width: 32px;
}

.footer-brand span {
  color: var(--text);
  font-weight: 1000;
}

.footer-links a {
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .brand {
    width: 168px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 58px;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-frame {
    width: min(360px, 92vw);
  }

  .game-card,
  .timeline {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(calc(100% - 24px), var(--max));
    padding: 66px 0;
  }

  .header {
    width: calc(100% - 24px);
  }

  .brand {
    width: 150px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    padding: .7rem;
  }

  .game-info {
    padding: 1.2rem .8rem 1.5rem;
  }

  .game-preview {
    min-height: 310px;
  }

  .signup {
    flex-direction: column;
    border-radius: 24px;
    padding: .8rem;
  }

  .signup input {
    min-height: 50px;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


.games-list { display: grid; gap: 1.5rem; }
.nav a[href="admin/index.html"] { color: #facc15; }
.mobile-menu a[href="admin/index.html"] { color: #facc15; }


/* Legal / Privacy Policy Page */
.legal-hero {
  padding-top: 96px;
  padding-bottom: 38px;
}

.legal-hero h1 {
  max-width: 12ch;
}

.legal-section {
  padding-top: 24px;
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 23, 42, .84), rgba(2, 6, 23, .72));
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-top: 2.1rem;
  margin-bottom: .75rem;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin-top: 1.35rem;
  color: #e2e8f0;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-card p {
  margin-bottom: .8rem;
}

.legal-card ul {
  margin: .7rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-card li::marker {
  color: var(--cyan);
}

.nav a[href="privacy-policy.html"],
.footer-links a[href="privacy-policy.html"] {
  color: #a7f3d0;
}


.nav a[href="terms.html"],
.footer-links a[href="terms.html"],
.legal-card a {
  color: #a7f3d0;
}

.legal-card a {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(167, 243, 208, .35);
  text-underline-offset: 3px;
}
