/* SteamWorks - AI game development for Roblox */
:root {
  --bg: #000;
  --panel: #090c10;
  --line: #16202b;
  --text: #e8eef5;
  --mute: #8a97a6;
  --blue: #00a2ff;
  --deep: #0d7ec6;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Manrope,"Segoe UI",system-ui,sans-serif;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

/* nav */ nav {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 20;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -.01em;
}

.brand img {
  width: 36px;
  height: auto;
}

.brand b {
  font-weight: 400;
  color: var(--blue);
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: var(--mute);
}

nav ul a:hover {
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--blue);
  transition: background .15s,color .15s;
}

.btn.solid {
  background: var(--blue);
  color: #001622;
}

.btn.solid:hover {
  background: #33b5ff;
}

.btn.ghost {
  color: var(--blue);
}

.btn.ghost:hover {
  background: rgba(0,162,255,.1);
}

button.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
}

/* hero */ .hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.wall {
  position: absolute;
  inset: -20% -10%;
  transform: rotate(-9deg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: .62;
  pointer-events: none;
}

.row {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: slide 90s linear infinite;
}

.row:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 120s;
}

.tile {
  width: 190px;
  height: 190px;
  border-radius: 14px;
  flex: none;
  position: relative;
  overflow: hidden;
}

.tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%,rgba(0,0,0,.96) 25%,rgba(0,0,0,.55) 70%,rgba(0,0,0,.8));
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: center;
  padding: 110px 0 100px;
}

h1 {
  font-size: clamp(38px,5.6vw,68px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 24px;
}

.lede {
  color: #b4c0cd;
  max-width: 520px;
  margin: 0 0 34px;
  font-size: 19px;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mark {
  justify-self: center;
  width: min(300px,70%);
  animation: bob 7s ease-in-out infinite;
  filter: drop-shadow(0 0 50px rgba(0,162,255,.28));
}

@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(28px,3.6vw,42px);
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
}

.sub {
  color: var(--mute);
  max-width: 560px;
  margin: 0 0 52px;
}

/* what we do */ .defs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.defs div {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
}

.defs h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.defs h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--blue);
  margin-right: 12px;
  transform: rotate(12deg);
}

.defs p {
  margin: 0;
  color: var(--mute);
  font-size: 16px;
}

/* demo */ .demo {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}

.prompts {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.prompts button {
  all: unset;
  cursor: pointer;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 15px;
  line-height: 1.5;
  border-left: 3px solid transparent;
}

.prompts button:hover {
  color: #fff;
}

.prompts button[aria-selected=true] {
  color: #fff;
  background: rgba(0,162,255,.08);
  border-left-color: var(--blue);
}

.prompts button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.out {
  padding: 22px 26px;
  overflow-x: auto;
}

.out small {
  color: var(--mute);
  font-size: 13px;
}

pre {
  margin: 12px 0 0;
  font: 13.5px/1.7 Consolas,"Cascadia Mono",Menlo,monospace;
  color: #cfe3f5;
  white-space: pre;
}

.k {
  color: #4cb8ff;
}

.c {
  color: #566676;
}

.s {
  color: #7fd6a4;
}

.n {
  color: #f0b46a;
}

/* games */ .games {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.game {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.game svg {
  display: block;
  width: 100%;
  height: auto;
}

.game div {
  padding: 16px 18px 18px;
}

.game h3 {
  margin: 0;
  font-size: 18px;
}

.game p {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 14px;
}

.game:nth-child(1) {
  grid-column: span 2;
}

.game:nth-child(1) svg {
  aspect-ratio: 2/1;
  object-fit: cover;
}

/* steps */ .steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  counter-reset: s;
}

.steps li {
  list-style: none;
  padding: 0 28px 0 0;
  position: relative;
  counter-increment: s;
}

.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
  background: #000;
  position: relative;
  z-index: 1;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 34px;
  right: 0;
  height: 1px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
}

ol.steps {
  padding: 0;
  margin: 0;
}

footer {
  padding: 80px 0 40px;
}

.end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 60px;
}

.end h2 {
  margin: 0;
  max-width: 520px;
}

.fine {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--mute);
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

@media (max-width:860px) {
  nav ul {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    padding: 70px 0;
  }
  .mark {
    order: -1;
    width: 130px;
    justify-self: start;
  }
  .defs,.games {
    grid-template-columns: 1fr;
  }
  .game:nth-child(1) {
    grid-column: auto;
  }
  .demo {
    grid-template-columns: 1fr;
  }
  .prompts {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps li::after {
    display: none;
  }
  section {
    padding: 70px 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .row,.mark {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
