:root {
  --nav-shadow: 0 12px 40px #00000014;
  --bg: #1b1d21;
  --surface: rgba(47, 50, 55, 0.6);
  --surface-solid: #30343a;
  --header: rgba(32, 35, 39, 0.9);
  --text: #eff1f4;
  --muted: #a6adb5;
  --line: #d5dfed26;
  --accent: #b8e878;
  --gold: #f9dc72;
  --preview-fill: #24272bc4;
  --preview-edge: #cad4e16b;
  --preview-shine: #e1ebff5c;
}
:root[data-theme="light"] {
  --bg: #f0f1ef;
  --surface: #ffffffe0;
  --surface-solid: #e4e7e8;
  --header: #f8faf7df;
  --text: #252a2e;
  --muted: #687078;
  --line: #525e6c22;
  --accent: #537d24;
  --gold: #996612;
  --preview-fill: #f6f8f5bb;
  --preview-edge: #ffffff;
  --preview-shine: #fff;
}

.hero {
  padding-top: 54px;
}
.brand img {
  display: block;
  width: 154px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
@media (max-width: 700px) {
  .brand img {
    width: 112px;
    height: auto;
  }
}
.hero h1 {
  font-size: clamp(42px, 5.2vw, 70px);
  margin: 22px 0 18px;
}
.hero-description {
  font-size: 16px;
  max-width: 580px;
  margin: auto;
}
.hero .product-stage {
  margin: 52px auto 0;
  padding: 0;
  width: 100%;
}
.ambient {
  height: 1400px;
}
.aurora {
  animation: none;
}
.aurora-one {
  opacity: 0.35;
}
.aurora-two {
  opacity: 0.2;
}
.orbit {
  display: none;
}
.app-preview {
  position: relative;
  text-align: left;
  padding: 0;
  min-width: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  aspect-ratio: auto;
}
.app-menu {
  min-width: 0;
}
.screenshot-slot {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--preview-edge);
  background: var(--preview-fill);
  box-shadow:
    inset 0 1px 4px var(--preview-shine),
    0 16px 45px #0000000c;
  aspect-ratio: 16 / 9;
}
.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.screenshot-slot .shot-light {
  display: none;
}
[data-theme="light"] .screenshot-slot .shot-light {
  display: block;
}
[data-theme="light"] .screenshot-slot .shot-dark {
  display: none;
}
.real-dock {
  display: flex;
  position: relative;
  width: fit-content;
  margin: 26px auto 0;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--preview-edge);
  box-shadow:
    inset 0 1px 3px var(--preview-shine),
    0 10px 24px #00000014;
  backdrop-filter: blur(20px);
}
.dock-item {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 18px;
  padding: 9px;
  transition: none;
}
.dock-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.dock-item[aria-selected="true"] {
  background: var(--surface-solid);
  box-shadow: inset 0 1px 1px var(--line);
}
.dock-item:hover {
  transform: none;
}
.dock-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.feature-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.feature-card h3 {
  margin-top: 0;
}
.feature-number {
  letter-spacing: 0.03em;
}
.section-heading .eyebrow {
  letter-spacing: 0.09em;
}
.feature-shot {
  margin: auto 24px 24px;
  border-radius: 16px;
  flex-shrink: 0;
}
.ramp-card .card-copy {
  padding-bottom: 24px;
}
.image-comparison {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  margin: auto 24px 24px;
  border: 1px solid var(--preview-edge);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}
.comparison-layer {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.comparison-after {
  clip-path: inset(0 0 0 var(--split));
}
.comparison-label {
  position: absolute;
  bottom: 12px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  pointer-events: none;
}
.before-label {
  left: 12px;
}
.after-label {
  right: 12px;
}
.comparison-divider {
  position: absolute;
  left: var(--split);
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--text);
  pointer-events: none;
}
.comparison-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  box-shadow: 0 3px 15px #0002;
}
#ramp-comparison {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.image-comparison:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .image-comparison {
    margin: auto 20px 20px;
  }
}
.achievement-card .card-copy {
  position: static;
  padding: 32px;
}
.achievement-card {
  align-items: stretch;
  text-align: left;
}
.language-select {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 6px;
  font:
    800 11px Nunito,
    sans-serif;
  max-width: 100px;
  cursor: pointer;
}
.language-select option {
  background: var(--bg);
  color: var(--text);
}
.language-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.ambient {
  position: fixed;
  inset: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}
.play-pattern {
  position: absolute;
  inset: -540px -640px;
  background: url("content/ui/play-pattern.svg") repeat;
  opacity: 0.15;
  animation: play-drift 32s linear infinite;
  will-change: transform;
}
@keyframes play-drift {
  to {
    transform: translate3d(640px, -540px, 0);
  }
}
.aurora-one {
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora-two {
  animation: drift 34s ease-in-out -12s infinite alternate-reverse;
}
.button {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.button:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 24px #9bbc4926;
}
.button:active {
  transform: scale(0.98);
}
.icon-button:active,
.dock-item:active {
  scale: 0.95;
}
@media (prefers-reduced-motion: reduce) {
  .play-pattern,
  .aurora-one,
  .aurora-two {
    animation: none;
    will-change: auto;
  }
  .button {
    transition: none;
  }
}
.achievement-card h3 {
  font-size: 31px;
}
.release-stage {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  text-align: left;
  margin: 48px auto 0;
  overflow: hidden;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    inset 0 1px 2px var(--preview-shine),
    0 28px 70px #00000012;
}
.download-hero {
  padding-top: 64px;
}
.download-hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
}
.release-art {
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 26px;
  overflow: hidden;
  background: #d6d7d9;
  color: #45494d;
}
.release-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 510px;
  object-fit: cover;
}
.release-edition,
.release-build {
  position: absolute;
  z-index: 1;
  left: 26px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.release-edition {
  top: 24px;
}
.release-build {
  bottom: 24px;
  right: 26px;
  display: flex;
  justify-content: space-between;
}
.release-build span {
  color: #537d24;
}
.release-stage .platform-card {
  padding: clamp(24px, 4vw, 58px);
  background: transparent;
  border: 0;
  box-shadow: none;
  justify-content: center;
}
.release-stage .platform-top {
  margin-bottom: 36px;
}
.release-stage h2 {
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.045em;
}
.release-stage .platform-card p {
  font-size: 15px;
  flex: 0;
  max-width: 330px;
}
.release-stage .button {
  font-size: 14px;
  min-height: 54px;
  border-radius: 18px;
}
.release-stage .platform-footnote {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 16px;
}
.small-badge {
  font-size: 10px;
  border-radius: 20px;
  padding: 7px 11px;
}
.upcoming-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-bottom: 32px;
}
.upcoming-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px;
}
.upcoming-platform + .upcoming-platform {
  border-left: 1px solid var(--line);
}
.upcoming-platform h2 {
  font-size: 17px;
  order: -1;
}
.upcoming-platform .platform-top {
  margin: 0;
}
.source-card {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 20px 12px;
}
@media (max-width: 700px) {
  .hero {
    padding-top: 35px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero .product-stage {
    margin-top: 36px;
  }
  .screenshot-slot {
    border-radius: 15px;
  }
  .real-dock {
    margin-top: 20px;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 23px;
  }
  .dock-item img {
    width: 32px;
    height: 32px;
  }
  .feature-shot {
    margin: auto 20px 20px;
  }
  .achievement-card .card-copy {
    padding: 25px;
  }
  .release-stage {
    grid-template-columns: 1fr;
    border-radius: 28px;
    margin-top: 32px;
  }
  .release-art {
    aspect-ratio: 1.25;
    border-radius: 20px;
  }
  .release-art img {
    width: 100%;
  }
  .release-stage .platform-card {
    padding: 28px 16px;
  }
  .release-stage .platform-top {
    margin-bottom: 20px;
  }
  .upcoming-platforms {
    padding: 20px 0;
  }
  .upcoming-platform {
    flex-direction: column;
    gap: 9px;
  }
  .upcoming-platform h2 {
    font-size: 15px;
  }
  .upcoming-platform .small-badge {
    font-size: 9px;
    padding: 5px 8px;
  }
}
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1040px, calc(100% - 48px));
  padding: 10px 14px 10px 22px;
  min-height: 76px;
  gap: 20px;
  border-radius: 38px;
  border: 1px solid var(--preview-edge);
  background: color-mix(in srgb, var(--header) 88%, transparent);
  box-shadow:
    inset 0 1px 2px var(--preview-shine),
    var(--nav-shadow);
  backdrop-filter: blur(28px) saturate(1.3);
}
.site-header .brand {
  width: fit-content;
}
.site-header .brand img {
  width: 136px;
  height: auto;
}
.site-header nav {
  padding: 5px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
}
.site-header nav > a,
.site-header .nav-disabled {
  padding: 10px 17px;
  border-radius: 22px;
  font-size: 12px;
  white-space: nowrap;
}
.site-header nav > a[aria-current="page"] {
  background: var(--surface);
  box-shadow:
    inset 0 1px 1px var(--preview-shine),
    0 2px 6px #0000000a;
  color: var(--accent);
}
.site-header .nav-disabled small {
  display: none;
}
.header-controls {
  justify-self: end;
  gap: 8px;
  margin: 0;
}
.header-github {
  display: none;
}
.language-menu {
  position: static;
  border: 0;
  padding: 0;
}
.language-menu summary::after,
.language-menu[open] summary::after {
  content: none;
}
.language-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
}
.language-menu summary::-webkit-details-marker {
  display: none;
}
.language-menu summary:hover,
.language-menu[open] summary {
  background: var(--surface-solid);
}
.language-menu svg,
#theme svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.language-menu .chevron {
  width: 14px;
  transition: transform 0.2s;
}
.language-menu[open] .chevron {
  transform: rotate(180deg);
}
.language-options {
  position: absolute;
  right: 14px;
  top: calc(100% + 12px);
  width: min(280px, calc(100% - 28px));
  padding: 12px;
  border: 1px solid var(--preview-edge);
  border-radius: 23px;
  background: var(--surface-solid);
  backdrop-filter: blur(28px);
  box-shadow:
    inset 0 1px 2px var(--preview-shine),
    0 18px 50px #0003;
  z-index: 30;
  animation: menu-appear 0.18s ease-out;
}
.language-options button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 16px;
  min-height: 72px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font:
    800 15px Nunito,
    sans-serif;
}
.language-options button:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  transform: translateX(2px);
}
.language-options button {
  transition:
    background 0.18s,
    transform 0.18s;
}
.language-options button[aria-pressed="true"]:hover {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
}
.footer-brands {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-brands .brand img {
  width: 138px;
  height: auto;
}
.brand-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
}
.godot-brand {
  display: block;
  width: 146px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
}
.godot-brand img {
  display: block;
  width: 160px;
  height: 90px;
  max-width: none;
  transform: translate(-7px, -20px);
  object-fit: contain;
}
.footer-top {
  border-bottom: 0;
}
.site-footer {
  padding-bottom: 38px;
}
@media (max-width: 700px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-brands {
    gap: 14px;
  }
  .footer-brands .brand img {
    width: 112px;
  }
  .godot-brand {
    width: 125px;
    height: 42px;
  }
  .godot-brand img {
    width: 138px;
    height: 77.6px;
    transform: translate(-6px, -17px);
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
}
.language-options button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent);
}
.language-options small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 3px;
}
.language-code {
  font-size: 10px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
#theme {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px var(--preview-shine);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
#theme:hover {
  transform: rotate(-12deg);
  box-shadow:
    inset 0 1px 2px var(--preview-shine),
    0 0 18px #b8e87822;
}
#theme svg {
  position: absolute;
  width: 25px;
  height: 25px;
}
.theme-sun {
  display: block;
}
.theme-moon {
  display: none;
}
[data-theme="light"] .theme-sun {
  display: none;
}
[data-theme="light"] .theme-moon {
  display: block;
}
.language-menu summary:focus-visible,
.language-options button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@keyframes menu-appear {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.theme-reveal {
  position: fixed;
  z-index: 10000;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  box-shadow: 0 0 60px 12px #8ca36c20;
  animation: theme-bloom 600ms cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
.theme-reveal.theme-reveal-out {
  transform: scale(1);
  animation: theme-clear 240ms ease-out forwards;
}
@keyframes theme-bloom {
  to {
    transform: scale(1);
  }
}
@keyframes theme-clear {
  to {
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
    gap: 8px;
    padding: 10px 12px;
    border-radius: 28px;
    top: 10px;
  }
  .site-header .brand img {
    width: 124px;
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    margin: 0;
    padding: 4px;
  }
  .site-header nav > a,
  .site-header .nav-disabled {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 9px 12px;
  }
  .header-controls {
    grid-column: 2;
    grid-row: 1;
    gap: 3px;
  }
  .language-menu summary {
    gap: 5px;
    padding: 0 8px;
    height: 42px;
  }
  .language-menu summary > svg:first-child {
    display: none;
  }
  #theme {
    width: 42px;
    height: 42px;
  }
  .language-options {
    right: 12px;
    top: calc(100% + 12px);
    width: calc(100% - 24px);
    max-width: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-options {
    animation: none;
  }
  #theme,
  .language-menu .chevron {
    transition: none;
  }
}
