/* ==========================================================================
   SUBARA — main.css
   Plain modern CSS, mobile-first. No frameworks.
   Breakpoints (min-width): 460px, 600px, 700px, 900px, 1000px, 1100px
   ========================================================================== */

/* ---- Fonts ---- */
@font-face {
  font-family: "Maax";
  src: url("../fonts/Maax/Maax.woff") format("woff"),
    url("../fonts/Maax/Maax.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Maax";
  src: url("../fonts/Maax/Maax-Medium.woff") format("woff"),
    url("../fonts/Maax/Maax-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Maax";
  src: url("../fonts/Maax/Maax-Bold.woff") format("woff"),
    url("../fonts/Maax/Maax-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Custom properties ---- */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-bg: #f1f3f4;
  --color-gray-text: #898989;
  --color-gray-copy: #717171;
  --color-pink: #ff51af;
  --color-red: #ff4040;
  --gradient-brand: linear-gradient(297.53deg, #fff230 12.21%, #47da93 91.81%);
  --gradient-card-blue: linear-gradient(180deg, rgba(1, 183, 236, 0) 54.69%, #01b7ec 92.71%);
  --gradient-card-purple: linear-gradient(180deg, rgba(86, 57, 255, 0) 54.69%, #5639ff 92.71%);
  --gradient-hero-blue: radial-gradient(65% 80% at 50% 50%, #01b7ec 20%, #0086ec 90%);
  --gradient-hero-purple: radial-gradient(65% 80% at 50% 50%, #844aff 20%, #5a0cff 90%);
  --radius-card: 20px;
  --header-height: 90px;
}

@media (min-width: 600px) {
  :root {
    --header-height: 100px;
  }
}

@media (min-width: 1000px) {
  :root {
    --header-height: 110px;
  }
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Maax", sans-serif;
  font-feature-settings: "ss02" on;
  -webkit-font-smoothing: antialiased;
  color: var(--color-black);
  background: var(--color-white);
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  /* The width/height attributes only set the aspect ratio (for CLS);
     the rendered size comes from CSS, so images never distort. */
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 44px;
  border: 2px solid var(--color-black);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--dark:hover {
  background: transparent;
  color: var(--color-black);
}

.btn--outlined {
  background: transparent;
  color: var(--color-black);
}

.btn--outlined:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--light-outlined {
  border-color: var(--color-white);
  border-radius: 16px;
  background: transparent;
  color: var(--color-white);
}

.btn--light-outlined:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* ---- Store buttons (App Store / Google Play / Amazon) ---- */
.store-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (min-width: 600px) {
  .store-buttons {
    flex-direction: row;
    gap: 15px;
  }
}

.store-btn {
  display: flex;
  align-items: center;
  width: 140px;
  height: 36px;
  background: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 40px;
  color: var(--color-black);
  padding-left: 12px;
  transition: background 0.25s, color 0.25s;
}

.store-btn:hover {
  background: transparent;
  color: var(--color-white);
}

.store-btn:hover .store-btn__icon--apple path {
  fill: var(--color-white);
}

.store-btn__icon {
  flex-shrink: 0;
  margin-right: 7px;
  display: flex;
  align-items: center;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn__label {
  font-size: 9px;
  font-weight: 400;
  line-height: 10px;
}

.store-btn__store {
  font-size: 13px;
  font-weight: 700;
  line-height: 15px;
}

/* ---- Store card ("Available on" box) ---- */
.store-card {
  display: flex;
  align-items: stretch;
  background: var(--color-black);
  border-radius: 20px;
  padding: 34px 45px 33px;
}

@media (max-width: 613px) {
  .store-card {
    width: 100%;
    justify-content: center;
  }
}

.store-card__icon,
.store-card__divider {
  display: none;
}

.store-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store-card__title {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  margin-bottom: 21px;
}

@media (max-width: 613px) {
  .store-card__title {
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .store-card {
    border-radius: 32px;
    padding: 15px 26px 15px 15px;
  }

  .store-card__icon {
    display: block;
    width: 100px;
    height: 100px;
    margin-right: 14px;
  }

  .store-card__icon img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .store-card__divider {
    display: block;
    width: 1px;
    background: var(--color-white);
    opacity: 0.4;
  }

  .store-card__content {
    margin-left: 24px;
  }
}

/* Translucent variant used on game page headers */
.store-card--glass {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 200;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo svg {
  display: block;
  width: 40px;
  height: 40px;
}

@media (min-width: 600px) {
  .site-header__logo svg {
    width: 50px;
    height: 50px;
  }
}

/* Desktop nav */
.site-nav {
  display: none;
}

@media (min-width: 1000px) {
  .site-nav {
    display: flex;
    height: 100%;
    margin: 0 auto;
  }
}

/* The dropdown bar is anchored to .site-header (the nearest positioned
   ancestor), so items must NOT create their own positioning context. */
.site-nav__item {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav__link,
.site-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 100%;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Item highlight: black background while hovered or while its menu is open
   (:focus-within keeps it usable by keyboard and on touch screens). */
.site-nav__item:hover .site-nav__link,
.site-nav__item:focus-within .site-nav__link,
.site-nav__item:hover .site-nav__toggle,
.site-nav__item:focus-within .site-nav__toggle {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Full-width black bar that slides open under the header. Collapsed via
   max-height so it can animate without any JS; it stays in the DOM, so
   moving the pointer from the item down into the bar keeps :hover alive. */
.site-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  column-gap: 105px;
  background: var(--color-black);
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__item:hover .site-nav__menu,
.site-nav__item:focus-within .site-nav__menu {
  /* 15px line + 2 × 42px padding = the bar's natural height */
  max-height: 99px;
}

.site-nav__menu a {
  padding: 42px 0;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 15px;
  white-space: nowrap;
  transition: all 0.25s ease-out;
}

.site-nav__menu a:hover {
  background: var(--gradient-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 2s ease-in-out infinite;
}

@keyframes rainbow {
  0% {
    background-position: left;
  }
  50% {
    background-position: right;
  }
  100% {
    background-position: left;
  }
}

/* Burger button (mobile) */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  z-index: 220;
}

.burger span {
  display: block;
  height: 2px;
  width: 26px;
  margin: 0 auto;
  background: var(--color-black);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

@media (min-width: 1000px) {
  .burger {
    display: none;
  }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  color: var(--color-white);
  z-index: 210;
  padding: 25px 0 40px;
  overflow-y: auto;
  display: none;
}

.mobile-menu__top {
  margin-bottom: 40px;
}

.mobile-menu__top svg {
  width: 40px;
  height: 40px;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-menu__list > li > a {
  font-size: 24px;
  font-weight: 500;
}

.mobile-menu__group-title {
  color: #808080;
  font-size: 24px;
  font-weight: 500;
}

.mobile-menu__sublist {
  margin: 18px 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu__sublist a {
  font-size: 18px;
  font-weight: 500;
}

.mobile-menu__sublist a::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 2px;
  background: var(--color-white);
  margin-right: 9px;
}

/* Open state (toggled by js on <body>) */
body.menu-open .mobile-menu {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .burger span {
  background: var(--color-white);
}

body.menu-open .burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Positioned above the home page's fixed hero banner */
footer {
  position: relative;
  z-index: 10;
}

.footer-top {
  background: var(--color-black);
  color: var(--color-white);
  padding: 39px 0 30px;
}

@media (min-width: 600px) {
  .footer-top {
    padding: 55px 0;
  }
}

@media (min-width: 1000px) {
  .footer-top {
    padding: 67px 0;
  }
}

.footer-top__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

@media (min-width: 1000px) {
  .footer-top__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-top__tagline svg,
.footer-top__tagline img {
  width: 270px;
  height: auto;
}

@media (min-width: 600px) {
  .footer-top__tagline svg,
  .footer-top__tagline img {
    width: 334px;
  }
}

.footer-about {
  background: var(--color-black);
  color: var(--color-gray-text);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  padding: 0 0 30px;
}

.footer-about p {
  max-width: 620px;
  margin: 0 auto;
}

.footer-bottom {
  background: #131313;
  color: var(--color-white);
}

.footer-bottom__inner {
  display: flex;
  justify-content: center;
  padding: 23px 0;
}

@media (min-width: 1000px) {
  .footer-bottom__inner {
    justify-content: space-between;
    padding: 38px 0 22px;
  }
}

.footer-nav {
  display: none;
}

@media (min-width: 1000px) {
  .footer-nav {
    display: flex;
    width: 100%;
  }
}

.footer-nav__column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 165px;
  font-size: 14px;
  font-weight: 400;
}

.footer-nav__title {
  color: var(--color-gray-text);
  font-size: 14px;
  font-weight: 400;
}

.footer-nav a:hover,
.footer-legal a:hover {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 38px;
  height: 25px;
}

.footer-social svg {
  height: 25px;
  width: auto;
  display: block;
}

@media (min-width: 1000px) {
  .footer-social {
    gap: 22px;
    height: 20px;
  }

  .footer-social svg {
    height: 20px;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #383838;
  color: var(--color-gray-copy);
  font-size: 14px;
}

.footer-legal a {
  margin-left: 16px;
}

/* ==========================================================================
   Home page
   ========================================================================== */
.home-hero {
  position: relative;
}

/* The banner is fixed behind the page: .home-content (the white sheet) scrolls
   over it, which creates the parallax. --hero-scroll (0..1, set from main.js)
   drives the darkening cover and the logo lift. */
.home-hero__banner {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 480px;
  background-repeat: no-repeat;
  background-size: auto 570px;
  background-position: top center;
}

@media (min-width: 600px) {
  .home-hero__banner {
    height: 600px;
    background-size: auto 800px;
  }
}

@media (min-width: 1440px) {
  .home-hero__banner {
    height: 600px;
    background-size: cover;
  }
}

/* Black cover that fades in while scrolling; sits above the logo, like the
   original site. */
.home-hero__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-black);
  opacity: var(--hero-scroll, 0);
}

.home-hero__banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 270px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

@media (min-width: 900px) {
  .home-hero__banner::after {
    display: none;
  }
}

.home-hero__logo {
  position: absolute;
  top: 30px;
  left: 50%;
  /* The logo drifts up to 25% of the viewport height while scrolling */
  transform: translate(-50%, calc(var(--hero-scroll, 0) * -25vh));
  width: 190px;
  z-index: 1;
}

/* White sheets that slide over the fixed heroes; their top margin reserves
   the space of the hero (same heights as .home-hero__banner / .page-hero). */
.home-content,
.page-content {
  position: relative;
  z-index: 10;
  background: var(--color-white);
}

.home-content {
  margin-top: 480px;
}

.page-content {
  margin-top: 200px;
}

@media (min-width: 600px) {
  .home-content {
    margin-top: 600px;
  }

  .page-content {
    margin-top: 300px;
  }
}

@media (min-width: 1000px) {
  .page-content {
    margin-top: 400px;
  }
}

@media (min-width: 600px) {
  .home-hero__logo {
    width: 240px;
    top: 40px;
  }
}

@media (min-width: 1000px) {
  .home-hero__logo {
    width: 340px;
  }
}

/* Product info (featured game) */
.product-info {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
  min-height: 380px;
}

@media (min-width: 1000px) {
  .product-info {
    min-height: 580px;
  }
}

.product-info__main {
  display: flex;
  justify-content: center;
  padding-top: 35px;
}

@media (min-width: 900px) {
  .product-info__main {
    justify-content: flex-start;
    padding-top: 0;
  }
}

.product-info__character {
  display: none;
}

@media (min-width: 900px) {
  .product-info__character {
    display: flex;
    flex: 1;
    justify-content: center;
    align-self: start;
    position: relative;
    top: -50px;
  }

  .product-info__character img {
    height: 380px;
    width: auto;
  }
}

@media (min-width: 1000px) {
  .product-info__character img {
    height: 585px;
  }
}

.product-info__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding-bottom: 20px;
}

@media (min-width: 900px) {
  .product-info__details {
    align-items: flex-start;
    width: 65%;
  }
}

@media (min-width: 1000px) {
  .product-info__details {
    max-width: 648px;
    padding-bottom: 30px;
  }
}

.product-info__chip {
  display: none;
}

@media (min-width: 900px) {
  .product-info__chip {
    display: inline-block;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: 81px;
    padding: 8px 14px 7px;
    font-size: 14px;
    font-weight: 500;
    line-height: 15px;
    margin-bottom: 23px;
  }
}

.product-info__title {
  font-size: 50px;
  font-weight: 500;
  line-height: 50px;
  text-align: center;
  max-width: 280px;
  margin-bottom: 13px;
}

@media (min-width: 600px) {
  .product-info__title {
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .product-info__title {
    text-align: left;
    margin-bottom: 9px;
  }
}

.product-info__subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  margin-bottom: 39px;
}

@media (min-width: 900px) {
  .product-info__subtitle {
    text-align: left;
    line-height: 19px;
    margin-bottom: 42px;
  }
}

.product-info__store-desktop {
  display: none;
}

@media (min-width: 1000px) {
  .product-info__store-desktop {
    display: block;
    padding-top: 50px;
  }
}

.product-info__store-mobile {
  display: flex;
  justify-content: center;
}

@media (min-width: 1000px) {
  .product-info__store-mobile {
    display: none;
  }
}

/* Explore more games */
.explore-more {
  padding: 80px 0;
}

@media (min-width: 1000px) {
  .home .explore-more {
    padding: 125px 0 101px;
  }
}

.explore-more__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  margin-bottom: 43px;
}

@media (min-width: 460px) {
  .explore-more__title {
    font-size: 26px;
    line-height: 28px;
  }
}

@media (min-width: 600px) {
  .explore-more__title {
    font-size: 36px;
    line-height: 40px;
  }
}

@media (min-width: 600px) {
  .explore-more__title {
    margin-bottom: 56px;
  }
}

.explore-more__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (min-width: 700px) {
  .explore-more__cards {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  /* On tablets only two cards fit, as in the original layout */
  .explore-more__cards .game-card--small:nth-child(n + 3) {
    display: none;
  }
}

@media (min-width: 1000px) {
  .explore-more__cards .game-card--small:nth-child(n + 3) {
    display: flex;
  }
}

.explore-more__actions {
  display: flex;
  justify-content: center;
  margin-top: 43px;
}

@media (min-width: 600px) {
  .explore-more__actions {
    margin-top: 56px;
  }
}

/* Small game card */
.game-card--small {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 344px;
  border-radius: var(--radius-card);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1), box-shadow 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.game-card--small:hover {
  transform: translateY(-6px);
  box-shadow: 0 4rem 8rem rgb(0 0 0 / 20%);
}

@media (min-width: 460px) {
  .game-card--small {
    height: 420px;
  }
}

@media (min-width: 700px) {
  .game-card--small {
    width: calc(50% - 20px);
  }
}

@media (min-width: 1000px) {
  .game-card--small {
    width: calc(33% - 24px);
  }
}

@media (min-width: 1200px) {
  .game-card--small {
    height: 480px;
  }
}

.game-card--small::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.game-card--small.gradient-blue::before {
  background: var(--gradient-card-blue);
}

.game-card--small.gradient-purple::before {
  background: var(--gradient-card-purple);
}

.game-card--small .game-card__title {
  position: relative;
  width: 100%;
  margin-bottom: 35px;
  color: var(--color-white);
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 29px;
}

/* ---- "You play, we plant" card ---- */
.trees-plant {
  padding-bottom: 80px;
}

@media (min-width: 600px) {
  .trees-plant {
    padding-bottom: 100px;
  }
}

.trees-plant__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-card);
  background-image: url("../images/cards/Trees.webp");
  background-size: cover;
  background-position: center;
  padding: 50px 0 41px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1), box-shadow 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.trees-plant__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4rem 8rem rgb(0 0 0 / 20%);
}

@media (min-width: 460px) {
  .trees-plant__card {
    padding: 70px 80px 56px;
  }
}

@media (min-width: 700px) {
  .trees-plant__card {
    display: block;
    padding: 72px 80px;
  }
}

.trees-plant__title {
  color: var(--color-white);
  font-size: 36px;
  font-weight: 500;
  line-height: 39px;
  max-width: 170px;
  text-align: center;
}

@media (min-width: 900px) {
  .trees-plant__title {
    font-size: 60px;
    font-weight: 700;
    line-height: 60px;
    max-width: 278px;
    text-align: left;
  }
}

.trees-plant__title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trees-plant__counter {
  display: flex;
  flex-direction: column;
  padding: 42px 0 35px;
}

@media (min-width: 460px) {
  .trees-plant__counter {
    padding: 60px 0 82px;
  }
}

@media (min-width: 700px) {
  .trees-plant__counter {
    padding: 70px 0 82px;
  }
}

.trees-plant__number {
  color: var(--color-white);
  font-size: 46px;
  font-weight: 500;
  line-height: 50px;
  text-align: center;
}

@media (min-width: 700px) {
  .trees-plant__number {
    font-size: 60px;
    line-height: 60px;
    text-align: left;
  }
}

.trees-plant__subtitle {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 17px;
}

@media (min-width: 700px) {
  .trees-plant__subtitle {
    font-size: 18px;
    line-height: 23px;
  }
}

.trees-plant__tree {
  display: none;
}

@media (min-width: 700px) {
  .trees-plant__tree {
    display: block;
    position: absolute;
    right: 51px;
    bottom: -120px;
    width: 380px;
  }
}

/* ==========================================================================
   Page hero (games index + secondary pages)
   Like the home banner, the hero is fixed behind the page and .page-content
   scrolls over it; --hero-scroll darkens it and lifts the centered text.
   ========================================================================== */
.page-hero {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-image: url("../images/bg/hero-light.webp");
  background-size: cover;
  background-position: center;
}

/* Black cover that fades in while scrolling; sits above the hero text, like
   the original site. */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-black);
  opacity: var(--hero-scroll, 0);
}

.page-hero__inner {
  height: 200px;
}

@media (min-width: 600px) {
  .page-hero__inner {
    height: 300px;
  }
}

@media (min-width: 1000px) {
  .page-hero__inner {
    height: 400px;
  }
}

/* Starts vertically centered (top 50% minus half its height) and drifts to
   the top of the band as --hero-scroll goes from 0 to 1 */
.page-hero__text {
  position: relative;
  top: calc((1 - var(--hero-scroll, 0)) * 50%);
  transform: translateY(calc((1 - var(--hero-scroll, 0)) * -50%));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (min-width: 600px) {
  .page-hero__text {
    gap: 10px;
  }
}

.page-hero__title {
  font-size: 30px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
}

@media (min-width: 600px) {
  .page-hero__title {
    font-size: 44px;
    line-height: 48px;
  }
}

@media (min-width: 1000px) {
  .page-hero__title {
    font-size: 60px;
    line-height: 50px;
  }
}

.page-hero__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 17px;
  text-align: center;
}

@media (min-width: 600px) {
  .page-hero__subtitle {
    font-size: 20px;
    line-height: 22px;
  }
}

@media (min-width: 1000px) {
  .page-hero__subtitle {
    font-size: 26px;
    line-height: 28px;
  }
}

.games-cards {
  position: relative;
  padding: 100px 0 80px;
}

.games-cards::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, white 100%),
    linear-gradient(90deg, #ff7dfe 0%, #ffd67c 100%);
}

@media (min-width: 1000px) {
  .games-cards {
    padding: 130px 0 100px;
  }
}

.games-cards__grid {
  position: relative;
  display: grid;
  row-gap: 40px;
}

.games-cards__small {
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 40px;
}

/* Large game card */
.game-card--large {
  position: relative;
  display: block;
  height: 344px;
  border-radius: var(--radius-card);
  background-size: cover;
  background-position: center;
  padding: 14px 10px 0;
  overflow: hidden;
  box-shadow: 0 2rem 4rem rgb(0 0 0 / 10%);
  transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1), box-shadow 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.game-card--large:hover {
  transform: translateY(-6px);
  box-shadow: 0 4rem 8rem rgb(0 0 0 / 20%);
}

@media (min-width: 460px) {
  .game-card--large {
    height: 480px;
    padding: 20px 20px 0;
  }
}

@media (min-width: 900px) {
  .game-card--large {
    padding: 40px 50px 85px;
  }
}

@media (min-width: 1200px) {
  .game-card--large {
    padding: 50px 60px 115px;
  }
}

.game-card--large::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--gradient-card-purple);
}

@media (min-width: 900px) {
  .game-card--large::before {
    background-image: linear-gradient(90deg, #5639ff 8%, rgba(86, 57, 255, 0) 70%);
  }
}

.game-card--large .game-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  color: var(--color-white);
}

@media (min-width: 900px) {
  .game-card--large .game-card__content {
    justify-content: flex-start;
  }
}

.game-card__chip {
  display: inline-flex;
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 30px;
  padding: 8px 14px 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 15px;
}

.game-card--large .game-card__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  max-width: 250px;
  margin: 0 auto 35px;
}

@media (min-width: 900px) {
  .game-card--large .game-card__title {
    font-size: 60px;
    line-height: 60px;
    text-align: left;
    max-width: 556px;
    margin: 0 0 17px;
    padding-top: 60px;
  }
}

.game-card__subtitle {
  display: none;
}

@media (min-width: 900px) {
  .game-card__subtitle {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 17px;
    max-width: 400px;
  }
}

/* ==========================================================================
   Game detail page
   ========================================================================== */
.game-hero {
  position: relative;
  padding: 80px 0 100px;
  color: var(--color-white);
  overflow: hidden;
}

.game-hero--blue {
  background: var(--gradient-hero-blue);
}

.game-hero--purple {
  background: var(--gradient-hero-purple);
}

.game-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  /* Fixed band behind the page, like the other heroes: .game-content scrolls
     over it, --hero-scroll darkens it (fully black at 800px of scroll) and
     drifts the centered content upwards. Below 900px the hero stays in the
     normal flow with no parallax, like the original site. */
  .game-hero {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 500px;
    padding: 0;
  }

  .game-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--color-black);
    opacity: var(--hero-scroll, 0);
    pointer-events: none;
  }

  .game-hero > .container {
    width: 1200px;
    /* Starts vertically centered, drifts up while scrolling (50% at rest,
       ~-17% once the cover is fully dark — the original's formula) */
    position: relative;
    top: calc(50% - var(--hero-scroll, 0) * 66.667%);
    transform: translateY(calc(-50% + var(--hero-scroll, 0) * 66.667%));
  }

  .game-hero__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

@media (min-width: 1000px) {
  .game-hero {
    height: 600px;
  }
}

.game-hero__info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 900px) {
  .game-hero__info {
    align-items: flex-start;
  }
}

.game-hero__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
}

@media (min-width: 600px) {
  .game-hero__title {
    font-size: 60px;
    line-height: 60px;
  }
}

.game-hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
  max-width: 400px;
  padding: 20px 0 40px;
}

@media (min-width: 900px) {
  .game-hero__subtitle {
    line-height: 19px;
    padding: 20px 0 31px;
  }
}

@media (min-width: 1000px) {
  .game-hero__subtitle {
    padding: 20px 0 75px;
  }
}

.game-hero__character {
  margin-top: 35px;
  width: 300px;
}

@media (min-width: 900px) {
  /* Out of the flow so the band keeps its 500/600px height; it pokes out of
     the band and gets cropped by the header above / the sheet below,
     like the original site. */
  .game-hero__character {
    position: absolute;
    right: 0;
    margin-top: 0;
    transform: translateY(-70px);
    width: 400px;
  }
}

@media (min-width: 1000px) {
  .game-hero__character {
    transform: translateY(-100px);
    width: 450px;
  }
}

/* White sheet that slides over the fixed hero on desktop */
.game-content {
  position: relative;
  z-index: 10;
  background: var(--color-white);
  padding-top: 80px;
}

@media (min-width: 900px) {
  .game-content {
    margin-top: 500px;
  }
}

@media (min-width: 1000px) {
  .game-content {
    margin-top: 600px;
    padding-top: 100px;
  }
}

.game-feature-image {
  padding-bottom: 100px;
}

@media (min-width: 1000px) {
  .game-feature-image {
    padding-bottom: 120px;
  }
}

.game-feature-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* Description (two columns) */
.game-description {
  padding-bottom: 100px;
}

@media (min-width: 1000px) {
  .game-description {
    padding-bottom: 120px;
  }
}

.game-description__columns {
  display: flex;
  flex-flow: row wrap;
  column-gap: 100px;
  row-gap: 35px;
}

.game-description__column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 900px) {
  .game-description__column {
    width: calc(50% - 50px);
  }
}

.game-description h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

@media (min-width: 460px) {
  .game-description h2 {
    font-size: 30px;
  }
}

@media (min-width: 1000px) {
  .game-description h2 {
    font-size: 40px;
    line-height: 35px;
  }
}

.game-description p {
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.game-description .arrow {
  color: var(--color-pink);
  font-weight: 700;
  font-style: normal;
}

/* Screenshots carousel */
.game-screenshots {
  padding-bottom: 100px;
  overflow: hidden;
}

@media (min-width: 1000px) {
  .game-screenshots {
    padding-bottom: 120px;
  }
}

.game-screenshots__track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 5%;
  scrollbar-width: none;
}

.game-screenshots__track::-webkit-scrollbar {
  display: none;
}

.game-screenshots__track img {
  height: 180px;
  width: auto;
  max-width: none;
  border-radius: var(--radius-card);
  scroll-snap-align: center;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .game-screenshots__track img {
    height: 256px;
  }
}

.game-screenshots__nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.game-screenshots__nav button {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-black);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}

.game-screenshots__nav button:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* Explore more on game pages (gray band) */
.game-page .explore-more {
  background: var(--color-gray-bg);
  padding: 80px 0;
}

@media (min-width: 1000px) {
  .game-page .explore-more {
    padding: 100px 0;
  }
}

/* ==========================================================================
   Page hero variants (secondary pages)
   ========================================================================== */
.page-hero--dark {
  background-image: url("../images/bg/hero-dark.webp");
  color: var(--color-white);
}

.page-hero--garden {
  background-image: url("../images/bg/GardenBackground.webp");
  color: var(--color-white);
}

.page-hero__title .gradient-text,
.gradient-text {
  background: linear-gradient(90deg, #00fff0 0%, #fff230 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- "Content not available" placeholder ---- */
.content-not-available {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 60px 5%;
}

.content-not-available img {
  width: 220px;
  max-width: 60%;
}

.content-not-available__title {
  font-size: 28px;
  font-weight: 500;
}

@media (min-width: 600px) {
  .content-not-available__title {
    font-size: 36px;
  }
}

.content-not-available__subtitle {
  font-size: 18px;
  line-height: 24px;
}

/* ==========================================================================
   About Us
   ========================================================================== */
.about-strip {
  overflow: hidden;
  background: var(--color-white);
}

.about-strip__image {
  width: 100%;
  height: 50vw;
  max-height: 800px;
  background-image: url("../images/about-us/headerAboutUs.webp");
  background-size: auto 60%;
  /* The character parade drifts sideways while scrolling (--scroll-y in px) */
  background-position: calc(41% + 0.1% * var(--scroll-y, 0)) center;
  background-repeat: repeat-x;
}

.about-story {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  padding: 68px 0 0;
  overflow: hidden;
}

.about-story__text {
  display: flex;
  flex-direction: column;
  row-gap: 31px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 24px;
}

@media (min-width: 600px) {
  .about-story__text {
    font-size: 26px;
    line-height: 28px;
  }
}

.about-story__image {
  display: block;
  margin: 60px auto 0;
  max-height: 703px;
  width: auto;
  max-width: 100%;
}

.why-how-what {
  background: var(--color-black);
  color: var(--color-white);
  padding: 90px 0;
}

.why-how-what__grid {
  display: grid;
  gap: 56px;
  max-width: 800px;
  margin: 0 auto;
}

.why-how-what__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  background: linear-gradient(300deg, #fff230 10%, #00fff0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-how-what__text {
  font-size: 20px;
  line-height: 28px;
}

@media (min-width: 600px) {
  .why-how-what__text {
    font-size: 26px;
    line-height: 32px;
  }
}

.values {
  background: var(--color-white);
  padding: 100px 0;
}

.values__header {
  max-width: 700px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  row-gap: 25px;
  text-align: center;
}

.values__title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .values__title {
    font-size: 60px;
    line-height: 65px;
  }
}

.values__subtitle {
  font-size: 20px;
  line-height: 24px;
}

@media (min-width: 600px) {
  .values__subtitle {
    font-size: 26px;
    line-height: 29px;
  }
}

.values__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 39px;
}

@media (min-width: 840px) {
  .values__layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 70px;
  }
}

/* Masked photo window: the five value photos are stacked in a strip that
   scrolls to the open value's photo (main.js sets --value-open; back to the
   first one when everything is closed), behind the white SUBARA-swoosh
   mask — like the original site. */
.values__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

@media (min-width: 840px) {
  .values__media {
    width: 364px;
    max-width: 364px;
  }
}

.values__media-track {
  position: absolute;
  top: calc(var(--value-open, 0) * -100%);
  left: 0;
  width: 100%;
  transition: top 0.75s ease-in-out;
}

.values__media-track img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.values__media-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.values__list {
  max-width: 468px;
  width: 100%;
}

.values__list details {
  border-bottom: 1px solid #e2e2e2;
}

.values__list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
  transition: font-size 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.values__list summary::-webkit-details-marker {
  display: none;
}

.values__list details[open] summary {
  font-size: 34px;
  line-height: 38px;
  background: linear-gradient(300deg, #fff230 10%, #47da93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.values__item-subtitle {
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 10px;
}

.values__item-text {
  font-size: 18px;
  line-height: 23px;
  color: #919191;
  padding-bottom: 24px;
}

.about-cards {
  background: var(--color-white);
  padding: 0 0 100px;
}

.about-cards__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 259px;
  height: 344px;
  padding: 45px 0;
  border-radius: var(--radius-card);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1), box-shadow 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4rem 8rem rgb(0 0 0 / 20%);
}

@media (min-width: 900px) {
  .about-card {
    max-width: 373px;
    height: 429px;
    padding: 45px 62px 50px;
  }
}

.about-card--plant {
  background: var(--color-black);
}

.about-card--plant .about-card__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 45px;
  color: var(--color-white);
  margin-top: 40px;
}

@media (min-width: 900px) {
  .about-card--plant .about-card__title {
    font-size: 50px;
    line-height: 55px;
    margin-top: 72px;
  }
}

.about-card--plant .about-card__title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-card--jobs {
  display: none;
  background: var(--color-white);
  border: 1px solid #ececec;
}

@media (min-width: 1350px) {
  .about-card--jobs {
    display: flex;
  }
}

.about-card--jobs img {
  width: 100px;
}

.about-card--jobs .about-card__title {
  font-size: 37px;
  font-weight: 500;
  line-height: 40px;
  max-width: 150px;
  margin-bottom: 18px;
}

.about-card--creator {
  position: relative;
  background: linear-gradient(166.14deg, #1dffff 7.15%, #e7f9a3 77.9%, #f2ffc1 95.36%);
}

.about-card--creator .about-card__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  max-width: 210px;
}

@media (min-width: 900px) {
  .about-card--creator .about-card__title {
    font-size: 30px;
    line-height: 32px;
  }
}

.about-card--creator img {
  position: absolute;
  width: 99px;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 900px) {
  .about-card--creator img {
    width: 150px;
    top: 115px;
  }
}

/* ==========================================================================
   Social Impact
   ========================================================================== */
.garden {
  background: var(--color-gray-bg);
  padding: 102px 0 143px;
}

.garden__top,
.garden__bottom {
  display: flex;
  flex-direction: column;
  row-gap: 19px;
  text-align: center;
}

.garden__top-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 39px;
}

@media (min-width: 700px) {
  .garden__top-title {
    font-size: 80px;
    line-height: 87px;
  }
}

.garden__top-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
}

@media (min-width: 700px) {
  .garden__top-subtitle {
    font-size: 36px;
    line-height: 39px;
  }
}

.garden__cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 102px;
}

.garden__row {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 700px) {
  .garden__row {
    flex-direction: row;
  }

  .garden__row > .garden-card {
    width: calc(50% - 20px);
  }
}

.garden-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px;
  border-radius: var(--radius-card);
  height: 344px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1), box-shadow 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.garden-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4rem 8rem rgb(0 0 0 / 20%);
}

@media (min-width: 700px) {
  .garden-card {
    height: 600px;
  }
}

.garden-card--white {
  background-color: var(--color-white);
}

.garden-card--black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.garden-card__big-title {
  font-size: 60px;
  font-weight: 500;
  line-height: 66px;
  color: var(--color-white);
}

@media (min-width: 700px) {
  .garden-card__big-title {
    font-size: 70px;
    line-height: 76px;
  }
}

.garden-card__text {
  max-width: 240px;
  font-size: 28px;
  font-weight: 500;
  line-height: 38px;
}

@media (min-width: 700px) {
  .garden-card__text {
    font-size: 35px;
    line-height: 48px;
  }
}

.garden-card--black .garden-card__inner {
  display: flex;
  flex-direction: column;
  row-gap: 50px;
  max-width: 600px;
}

.garden-card--black .garden-card__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
}

@media (min-width: 700px) {
  .garden-card--black .garden-card__title {
    font-size: 36px;
    line-height: 40px;
  }
}

.garden-card--black .garden-card__subtitle {
  font-size: 28px;
  font-weight: 500;
  line-height: 31px;
}

@media (min-width: 700px) {
  .garden-card--black .garden-card__subtitle {
    font-size: 60px;
    line-height: 65px;
  }
}

.garden-card__counter {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  max-width: 250px;
  color: var(--color-white);
}

.garden-card__counter-number {
  font-size: 55px;
  font-weight: 700;
  line-height: 53px;
}

@media (min-width: 700px) {
  .garden-card__counter-number {
    font-size: 60px;
  }
}

.garden-card__counter-label {
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

@media (min-width: 700px) {
  .garden-card__counter-label {
    font-size: 36px;
    line-height: 39px;
  }
}

.garden-card--acacia .garden-card__inner {
  display: flex;
  flex-direction: column;
  row-gap: 25px;
  max-width: 880px;
  align-items: center;
}

.garden-card--acacia img {
  width: 83px;
}

@media (min-width: 700px) {
  .garden-card--acacia .garden-card__inner {
    row-gap: 50px;
  }

  .garden-card--acacia img {
    width: 158px;
  }
}

.garden-card--acacia .garden-card__text {
  max-width: 880px;
  font-size: 26px;
  line-height: 31px;
}

@media (min-width: 700px) {
  .garden-card--acacia .garden-card__text {
    font-size: 36px;
    line-height: 39px;
  }
}

.garden__bottom {
  margin-top: 100px;
  row-gap: 29px;
}

@media (min-width: 700px) {
  .garden__bottom {
    margin-top: 176px;
  }
}

.garden__bottom-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 44px;
}

@media (min-width: 700px) {
  .garden__bottom-title {
    font-size: 60px;
    line-height: 65px;
  }
}

.garden__bottom-subtitle {
  font-size: 22px;
  line-height: 24px;
}

@media (min-width: 700px) {
  .garden__bottom-subtitle {
    font-size: 26px;
    line-height: 28px;
  }
}

/* ==========================================================================
   Positions
   ========================================================================== */
.positions-intro {
  background: var(--color-gray-bg);
  padding: 63px 0 106px;
}

@media (min-width: 700px) {
  .positions-intro {
    padding: 83px 0 106px;
  }
}

.positions-intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

@media (min-width: 700px) {
  .positions-intro__inner {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

@media (min-width: 1200px) {
  .positions-intro__inner {
    gap: 164px;
  }
}

.positions-intro__text {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  max-width: 560px;
}

.positions-intro__title {
  font-size: 36px;
  font-weight: 500;
  line-height: 36px;
}

@media (min-width: 1000px) {
  .positions-intro__title {
    font-size: 60px;
    line-height: 60px;
  }
}

.positions-intro__subtitle {
  font-size: 18px;
  line-height: 22px;
}

@media (min-width: 1000px) {
  .positions-intro__subtitle {
    font-size: 26px;
    line-height: 33px;
  }
}

.positions-intro__image {
  max-width: 280px;
}

@media (min-width: 1000px) {
  .positions-intro__image {
    max-width: 380px;
  }
}

@media (min-width: 1200px) {
  .positions-intro__image {
    max-width: 480px;
  }
}

.positions-list {
  background: var(--color-white);
  padding: 100px 0;
}

.positions-list__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  margin-bottom: 60px;
}

.positions-list__cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.position-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 40px;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius-card);
  position: relative;
  transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1), box-shadow 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.position-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2rem 4rem rgb(0 0 0 / 15%);
}

.position-card__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 30px;
}

.position-card__location {
  font-size: 18px;
  line-height: 22px;
}

.position-card__conditions {
  font-size: 16px;
  color: var(--color-gray-text);
}

.position-card__arrow {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}

/* ==========================================================================
   Job description page
   ========================================================================== */
.job-hero__title {
  font-size: 34px;
  font-weight: 500;
  line-height: 38px;
  text-align: center;
}

@media (min-width: 600px) {
  .job-hero__title {
    font-size: 50px;
    line-height: 54px;
  }
}

.job-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  flex-wrap: wrap;
}

.job-hero__meta img {
  width: 18px;
}

.job-hero__meta strong {
  font-weight: 500;
}

.job-content {
  background: var(--color-white);
  padding: 90px 0;
}

.job-content__row {
  display: flex;
  flex-direction: column-reverse;
  gap: 50px;
}

@media (min-width: 900px) {
  .job-content__row {
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
  }
}

.job-content__article {
  max-width: 720px;
}

.job-content__lead {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  margin-bottom: 50px;
}

@media (min-width: 700px) {
  .job-content__lead {
    font-size: 30px;
    line-height: 36px;
  }
}

.job-content__article h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 30px;
  margin: 50px 0 20px;
}

.job-content__article h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 35px 0 15px;
}

.job-content__article h2.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.job-content__article p {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 16px;
}

.job-content__aside {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (min-width: 900px) {
  .job-content__aside {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    align-self: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
}

.job-content__share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.job-content__share svg {
  height: 20px;
  width: auto;
}

.job-content__share svg path {
  fill: var(--color-black);
}

.btn--gradient {
  border: none;
  background: linear-gradient(110.5deg, #00ffe0 13.61%, #fff230 86.17%);
  color: var(--color-black);
}

.btn--gradient:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   Forms (job application / creators)
   ========================================================================== */
.apply-section {
  background: var(--color-gray-bg);
  padding: 100px 0;
}

.apply-section__inner {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

@media (min-width: 900px) {
  .apply-section__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
  }
}

.apply-section__intro {
  max-width: 380px;
}

.apply-section__title {
  font-size: 40px;
  font-weight: 500;
  line-height: 44px;
  margin-bottom: 20px;
}

@media (min-width: 700px) {
  .apply-section__title {
    font-size: 60px;
    line-height: 65px;
  }
}

.apply-section__subtitle {
  font-size: 18px;
  line-height: 22px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 560px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 14px;
  font-weight: 500;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="url"],
.form select,
.form textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: var(--color-white);
  width: 100%;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid #47da93;
  outline-offset: -1px;
}

.form__file {
  font-size: 15px;
}

.form__checkboxes {
  display: grid;
  gap: 10px;
}

@media (min-width: 600px) {
  .form__checkboxes {
    grid-template-columns: 1fr 1fr;
  }
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 20px;
}

.form__check input {
  margin-top: 3px;
}

.form__submit {
  align-self: flex-start;
}

.form__success {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.form__success--dark {
  color: var(--color-white);
}

/* ==========================================================================
   Support
   ========================================================================== */
.qa-section {
  position: relative;
  background: var(--color-white);
  padding: 105px 0 118px;
}

.qa-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 210px;
  background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, #f1ffcb 0%, #b5fffb 60.92%);
}

.qa-section .container {
  position: relative;
  width: 1078px;
}

.qa-section__top-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
}

@media (min-width: 600px) {
  .qa-section__top-title {
    font-size: 36px;
    line-height: 40px;
  }
}

.qa-section__subtitle {
  font-size: 45px;
  font-weight: 500;
  line-height: 44px;
  margin: 10px 0 50px;
}

@media (min-width: 600px) {
  .qa-section__subtitle {
    font-size: 60px;
    line-height: 65px;
  }
}

.qa-section__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.qa-section__accordions {
  max-width: 600px;
  width: 100%;
}

.qa-section__image {
  display: none;
}

@media (min-width: 1000px) {
  .qa-section__image {
    display: block;
    max-width: 320px;
  }
}

.qa-section details {
  border-bottom: 1px solid #e2e2e2;
}

.qa-section summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 26px;
  position: relative;
  padding-right: 40px;
}

.qa-section summary::-webkit-details-marker {
  display: none;
}

.qa-section summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
}

.qa-section details[open] summary::after {
  content: "−";
}

.qa-section__answer {
  padding: 0 0 30px;
  font-size: 16px;
  line-height: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  white-space: pre-line;
}

.qa-section__answer h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.qa-section__answer .arrow-green {
  color: #47da93;
  font-weight: 700;
}

.contact-section {
  background: var(--color-white);
  padding: 40px 0 120px;
}

.contact-section .container {
  width: 1078px;
}

.contact-section__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .contact-section__title {
    font-size: 36px;
    line-height: 40px;
  }
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding: 23px 0;
  border-top: 1px solid #e2e2e2;
}

@media (min-width: 600px) {
  .contact-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    min-height: 200px;
  }
}

.contact-row__title {
  font-size: 30px;
  font-weight: 400;
  line-height: 34px;
}

.contact-row__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  font-size: 20px;
  line-height: 26px;
}

/* Fixed-width column (47% of the row, like the original site) so the three
   bodies share the same left edge regardless of how their text wraps */
@media (min-width: 600px) {
  .contact-row__body {
    max-width: 47%;
  }
}

.contact-row__body a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0, 163, 255, 0);
  transition: text-decoration-color 0.25s;
}

.contact-row__body a:hover {
  text-decoration-color: #00a3ff;
}

/* ==========================================================================
   Creators
   ========================================================================== */
.creators-page {
  background: #121212;
  color: #f6f6fb;
}

.creators-content {
  background: linear-gradient(180deg, #121212 0%, #0f1729 60%, #0b1222 100%);
  padding: 60px 0 80px;
}

.creators-content__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.creators-intro__title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.creators-intro__text {
  font-size: 16px;
  line-height: 1.8;
  color: #d5d8e8;
}

.creators-highlights {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .creators-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

.creators-highlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.creators-highlight h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.creators-highlight p {
  font-size: 15px;
  line-height: 1.6;
  color: #d5d8e8;
}

.creators-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
}

.creators-form__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.creators-form__subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: #d5d8e8;
  margin-bottom: 28px;
}

.creators-form .form {
  max-width: none;
}

.creators-form .form__grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .creators-form .form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.creators-form fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creators-form legend,
.creators-form .form__section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 4px;
}

.creators-form input[type="text"],
.creators-form input[type="email"],
.creators-form input[type="url"],
.creators-form select,
.creators-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f6f6fb;
}

.creators-form select option {
  color: var(--color-black);
}

.creators-form ::placeholder {
  color: #8b90a8;
}

/* ==========================================================================
   Legal pages (Terms / Privacy)
   ========================================================================== */
.legal-page {
  position: relative;
  padding: 120px 0;
}

.legal-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%),
    linear-gradient(90deg, #f1ffcb 0%, #b5fffb 60.92%);
}

.legal-page .container {
  position: relative;
  width: 600px;
}

.legal-header {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

@media (min-width: 700px) {
  .legal-header {
    flex-direction: row;
    align-items: center;
    gap: 52px;
    border-bottom: 1px solid #d1d1d1;
  }
}

.legal-header__left {
  display: flex;
  flex-direction: column;
  row-gap: 26px;
}

.legal-header__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 55px;
}

@media (min-width: 700px) {
  .legal-header__title {
    font-size: 60px;
    line-height: 65px;
  }
}

.legal-header__date {
  font-size: 18px;
  line-height: 16px;
}

.legal-header img {
  width: 226px;
}

@media (max-width: 699px) {
  .legal-header img {
    margin: 0 auto;
  }
}

.legal-intro {
  display: flex;
  flex-direction: column;
  row-gap: 18px;
  padding: 40px 0 0;
  font-size: 16px;
  line-height: 18px;
}

.legal-intro a {
  color: #00a3ff;
  font-weight: 500;
  text-decoration: underline;
}

.legal-section {
  display: flex;
  flex-direction: column;
  row-gap: 27px;
  margin-top: 80px;
}

.legal-section__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  text-transform: uppercase;
}

.legal-blocks {
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

.legal-block {
  display: flex;
  flex-direction: column;
  row-gap: 11px;
}

.legal-block__top {
  display: flex;
  column-gap: 14px;
  align-items: flex-start;
}

.legal-block__top img {
  width: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-block__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
}

.legal-block__body {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  font-size: 16px;
  line-height: 19px;
}

.legal-notice {
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  row-gap: 27px;
}

.legal-notice__blocks {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  font-size: 16px;
  line-height: 19px;
}

.legal-notice strong {
  font-weight: 500;
}

.legal-notice a {
  font-weight: 500;
  color: #00a3ff;
}
