/* Bad Lemon Studios — landing page. Colours from the brand e-mail; Outfit (OFL) self-hosted. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --yellow: #f6d51c;
  --yellow-deep: #e9b911;
  --bg: #080909;
  --panel: #111210;
  --panel-2: #161713;
  --line: #262622;
  --text: #f5f5f3;
  --text-2: #d4d4d2;
  --muted: #a8a8a6;
  --radius: 18px;
  --container: 1200px;
  --header-h: 76px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill,
.btn .icon--fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--yellow);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: #0b0b0b;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--yellow);
  color: #0b0b0b;
  box-shadow: 0 10px 30px -12px rgba(246, 213, 28, 0.55);
}
.btn--primary:hover {
  background: #ffe24a;
  box-shadow: 0 14px 36px -12px rgba(246, 213, 28, 0.7);
}
.btn .icon {
  stroke-width: 2.4;
}
.btn--ghost {
  border-color: rgba(246, 213, 28, 0.8);
  color: var(--yellow);
  background: rgba(8, 9, 9, 0.35);
}
.btn--ghost:hover {
  background: rgba(246, 213, 28, 0.1);
  border-color: var(--yellow);
}
.btn--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header::before {
  /* keeps the navigation readable over the bright top of the hero art */
  content: '';
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 9, 9, 0.88), rgba(8, 9, 9, 0.55) 60%, rgba(8, 9, 9, 0));
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.site-header.is-scrolled::before {
  opacity: 0;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 9, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  flex: none;
}
.brand img {
  width: 172px;
  height: auto;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--yellow);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav a:hover {
  border-bottom-color: var(--yellow);
}
.site-nav__sep {
  color: rgba(246, 213, 28, 0.55);
}
.site-header__cta {
  flex: none;
}
.site-header__cta .icon {
  width: 0.95em;
  height: 0.95em;
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(860px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* a warm glow behind the art */
  content: '';
  position: absolute;
  z-index: -2;
  right: -10%;
  top: 10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(246, 186, 28, 0.18), transparent 70%);
}
.hero__art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero__art::after {
  /* darkens the art's left part, where the headline stands over it */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 9, 9, 0.82) 0%, rgba(8, 9, 9, 0.45) 24%, transparent 46%);
}
.hero__inner {
  position: relative;
}
.hero__copy {
  max-width: 600px;
}
.pill {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(8, 9, 9, 0.55);
}
.hero__title {
  margin-top: 28px;
  font-size: clamp(52px, 7.4vw, 104px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title span {
  display: block;
}
.hero__lead {
  margin-top: 28px;
  max-width: 520px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-2);
  line-height: 1.55;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── sections ────────────────────────────────────────────────────────────── */
.section {
  padding: 104px 0;
  border-top: 1px solid #161614;
}
.section--demos {
  background: radial-gradient(1200px 520px at 50% 0%, rgba(246, 213, 28, 0.07), transparent 70%), #0a0b0a;
}
.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}
.eyebrow {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section__title {
  margin-top: 14px;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.section__lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-2);
}

/* features: four columns with thin dividers, as in the design */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature {
  padding: 8px 32px 8px 0;
}
.feature + .feature {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid var(--yellow);
  border-radius: 14px;
  color: var(--yellow);
}
.feature__icon .icon {
  width: 30px;
  height: 30px;
}
.feature__title {
  margin-top: 22px;
  color: var(--yellow);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.feature p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

/* games */
.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.game {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.game:hover {
  border-color: rgba(246, 213, 28, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(246, 213, 28, 0.35);
}
.game__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.game__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.game:hover .game__media img {
  transform: scale(1.04);
}
.game__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(8, 9, 9, 0.55), rgba(8, 9, 9, 0.1));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.game__play .icon {
  width: 68px;
  height: 68px;
  padding: 20px 18px 20px 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0b0b;
  fill: currentColor;
  stroke-width: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.game__media:hover .game__play,
.game__media:focus-visible .game__play {
  opacity: 1;
}
.game__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  padding: 4px 11px;
  border: 1px solid #34342e;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  background: var(--panel-2);
}
.tags li:first-child {
  border-color: rgba(246, 213, 28, 0.6);
  color: var(--yellow);
}
.game__title {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.game__text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.game__actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.link-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.link-external:hover {
  color: var(--text);
}
.link-external .icon {
  width: 15px;
  height: 15px;
}

/* partnership */
.partner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 40px 44px;
  border: 1.5px solid rgba(246, 213, 28, 0.75);
  border-radius: 22px;
  background: radial-gradient(600px 240px at 0% 50%, rgba(246, 213, 28, 0.08), transparent 70%), #0e0f0c;
}
.partner__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2.5px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
}
.partner__icon .icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.8;
}
.partner__title {
  color: var(--yellow);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.partner__copy p {
  margin-top: 10px;
  max-width: 520px;
  color: var(--text-2);
  font-size: 18px;
}
.partner__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-left: 36px;
  border-left: 1px solid rgba(246, 213, 28, 0.35);
}
.partner__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.partner__mail:hover {
  color: var(--text);
}

/* footer */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid #161614;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand--footer img {
  width: 200px;
}
.site-footer__domain {
  position: relative;
  padding-top: 18px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}
.site-footer__domain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 2px;
  margin-left: -24px;
  background: var(--yellow);
}
.site-footer__mail {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 16px;
  text-decoration: none;
}
.site-footer__mail:hover {
  color: var(--yellow);
}
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.motto {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.motto strong {
  color: var(--text);
  font-weight: 800;
}
.motto__line {
  width: 64px;
  height: 1px;
  background: #4a4a44;
}
.site-footer__legal {
  color: #777775;
  font-size: 13.5px;
}

/* ── demo dialog ─────────────────────────────────────────────────────────── */
.demo {
  width: min(1280px, 94vw);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #2e2e29;
  border-radius: 18px;
  background: #050505;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.demo::backdrop {
  background: rgba(3, 3, 3, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 10px 0 22px;
  border-bottom: 1px solid #1f1f1c;
  background: #0c0d0b;
}
.demo__title {
  margin-right: auto;
  font-size: 17px;
  font-weight: 800;
}
.demo__action,
.demo__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #2e2e29;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.demo__action:hover,
.demo__close:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.demo__close {
  width: 40px;
  padding: 0;
  justify-content: center;
}
.demo__action .icon {
  width: 16px;
  height: 16px;
}
.demo__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(92vh - 56px);
  width: 100%;
  background: #000;
}
.demo__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}
.notfound__brand {
  justify-content: center;
}
.notfound__brand img {
  width: 240px;
}
.notfound__title {
  margin-top: 40px;
}
.notfound__action {
  margin-top: 32px;
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .feature:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .games {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner {
    grid-template-columns: auto 1fr;
  }
  .partner__cta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(246, 213, 28, 0.35);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
  .site-nav {
    display: none;
  }
  .site-header__cta {
    margin-left: auto;
  }
  .brand img {
    width: 138px;
  }
  .hero {
    min-height: 0;
    display: block;
    padding: var(--header-h) 0 56px;
  }
  .hero__art {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 70svh;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 34%);
    mask-image: linear-gradient(to top, transparent 0%, #000 34%);
  }
  .hero__art img {
    object-position: 70% 30%;
  }
  .hero__art::after {
    display: none;
  }
  .hero__copy {
    margin-top: -64px;
  }
  .hero__title {
    margin-top: 22px;
  }
  .section {
    padding: 80px 0;
  }
  .section__head {
    margin-bottom: 40px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .games {
    grid-template-columns: 1fr;
  }
  .partner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 24px;
  }
  .partner__icon {
    width: 72px;
    height: 72px;
  }
  .partner__icon .icon {
    width: 36px;
    height: 36px;
  }
  .partner__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .partner__cta .btn {
    padding: 0 18px;
    font-size: 15px;
    white-space: normal;
    text-align: center;
  }
  .partner__mail {
    justify-content: center;
  }
  .site-footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .site-footer__mail {
    justify-self: center;
  }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .motto {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.26em;
  }
  .motto__line {
    width: 40px;
  }
  /* the demo fills the phone's screen */
  .demo {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .demo[open] {
    display: flex;
    flex-direction: column;
  }
  .demo__frame {
    flex: 1;
    aspect-ratio: auto;
    max-height: none;
  }
  .demo__action span {
    display: none;
  }
  .demo__action {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }
  .features {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .feature,
  .feature + .feature,
  .feature:nth-child(3) {
    padding: 26px 0;
    border-left: 0;
  }
  .feature + .feature {
    border-top: 1px solid var(--line);
  }
  .site-header__cta {
    padding: 0 16px;
    font-size: 14px;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
