@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;900&display=swap');

/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --gradient: linear-gradient(90deg, #F84A00 0%, #DA1C98 100%);
  --gradient-bg: linear-gradient(90deg, rgba(248, 74, 0, 0.1) 0%, rgba(218, 28, 152, 0.1) 100%);
  --color-text: #010101;
  --color-text-muted: rgba(1, 1, 1, 0.6);
  --card-border: rgba(62, 0, 185, 0.05);
  --card-shadow: 0px 4px 20px 0px rgba(62, 0, 185, 0.1);
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: #ffffff;
}

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

img {
  display: block;
}

/* ============================
   UTILITY
   ============================ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   CONTAINER
   ============================ */
.container {
  max-width: 1368px;
  margin: 0 auto;
  padding: 0 84px;
  box-sizing: border-box;
}

/* ============================
   BUTTON
   ============================ */
.btn-gradient {
  display: inline-block;
  background: var(--gradient);
  padding: 24px 50px;
  border-radius: 60px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  line-height: normal;
}

/* ============================
   LOGO
   ============================ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo__text {
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
  line-height: normal;
}

/* ============================
   SITE HEADER
   ============================ */
.site-header {
  padding: 20px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
  font-weight: 400;
  line-height: normal;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  padding: 0 0 60px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.hero__image {
  width: 968px;
  max-width: 100%;
  height: 355px;
  border-radius: 40px;
  object-fit: cover;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__title {
  font-weight: 900;
  font-size: 52px;
  line-height: normal;
  max-width: 1012px;
}

.hero__body {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  max-width: 871px;
  text-align: center;
}

/* ============================
   OUR GENESIS SECTION
   ============================ */
.genesis {
  background: var(--gradient-bg);
  padding: 60px 0;
  overflow: hidden;
}

.genesis .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.genesis__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
}

.genesis__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  width: 100%;
}

.section-title-lg {
  font-weight: 900;
  font-size: 50px;
  line-height: normal;
  color: var(--color-text);
}

.section-body {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.foundation__body {
  max-width: 871px;
}

.genesis__stats {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.stat-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.stat-card--wide {
  padding: 30px 23px;
}

.stat-number {
  font-weight: 900;
  font-size: 44px;
  line-height: normal;
  white-space: nowrap;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-text);
}

.genesis__character {
  width: 832px;
  max-width: 100%;
  height: 467px;
  border-radius: 40px;
  object-fit: cover;
  object-position: center 10%;
}

/* ============================
   WHY OUR FOUNDATION SECTION
   ============================ */
.foundation {
  padding: 60px 0;
}

.foundation .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.foundation__cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.feature-card {
  flex: 1;
  padding: 20px;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: #ffffff;
}

.feature-card--gradient {
  background: var(--gradient);
  border: none;
  box-shadow: none;
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-card__title {
  font-weight: 900;
  font-size: 30px;
  line-height: normal;
  text-align: center;
}

.feature-card:not(.feature-card--gradient) .feature-card__title {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card--gradient .feature-card__title {
  color: #ffffff;
}

.feature-card__body {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  color: var(--color-text);
}

.feature-card--gradient .feature-card__body {
  color: #ffffff;
}

/* ============================
   HALL OF FAME SECTION
   ============================ */
.hall-of-fame {
  background: var(--gradient-bg);
  padding: 60px 0;
  overflow: hidden;
}

.hall-of-fame .container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

.hall-of-fame__text {
  width: 560px;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hall-of-fame__text p {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.hall-of-fame__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 190px);
  gap: 20px;
  align-content: start;
}

.game-thumb {
  width: 190px;
  height: 190px;
  border-radius: 24px;
  object-fit: cover;
}

/* ============================
   CONNECT SECTION
   ============================ */
.connect {
  padding: 60px 0;
}

.connect .container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

.connect__text {
  width: 682px;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.connect__intro {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.connect__contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-line {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.6;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.connect__image {
  width: 488px;
  height: 338px;
  border-radius: 40px;
  object-fit: cover;
  flex-shrink: 1;
  min-width: 0;
}

/* ============================
   SITE FOOTER
   ============================ */
.site-footer {
  padding: 20px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  line-height: normal;
}

.social-icons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

.social-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.social-icon img {
  width: 40px;
  height: 40px;
}

.copyright {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
  line-height: normal;
}

/* ============================
   RESPONSIVE — MOBILE (≤768px)
   ============================ */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Header */
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .header-nav {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }

  /* Hero */
  .hero {
    padding: 0 0 40px;
  }

  .hero__image {
    width: 100%;
    height: 300px;
  }

  .hero__title {
    font-size: 34px;
    max-width: 100%;
  }

  .hero__body {
    max-width: 100%;
  }

  /* Genesis */
  .genesis__inner {
    max-width: 100%;
  }

  .section-title-lg {
    font-size: 30px;
    white-space: normal;
  }

  .genesis__stats {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-card,
  .stat-card--wide {
    flex: none;
    width: 100%;
  }

  .genesis__character {
    width: 100%;
    height: auto;
    aspect-ratio: 832 / 467;
  }

  /* Foundation */
  .foundation__cards {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-card {
    flex: none;
    width: 100%;
  }

  /* Hall of Fame */
  .hall-of-fame .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hall-of-fame__text {
    width: 100%;
  }

  .hall-of-fame__grid {
    width: 100%;
    grid-template-columns: repeat(2, 157px);
    gap: 15px;
  }

  .game-thumb {
    width: 157px;
    height: 157px;
  }

  /* Connect */
  .connect .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .connect__text {
    width: 100%;
  }

  .contact-line {
    font-size: 16px;
  }

  .connect__image {
    width: 100%;
    height: 230px;
    flex-shrink: 0;
  }

  /* Footer */
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .copyright {
    white-space: normal;
    text-align: center;
  }
}

/* ============================
   CATALOG PAGE
   ============================ */
.catalog-hero {
  background: var(--gradient-bg);
  padding: 60px 0;
  overflow: hidden;
}

.catalog-hero .container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

.catalog-hero__text {
  width: 560px;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.catalog-hero__text p {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.catalog-hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 190px);
  gap: 20px;
  align-content: start;
}

.catalog-game-card {
  display: block;
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 24px;
  overflow: hidden;
}

.catalog-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.catalog-game-card:hover img {
  transform: scale(1.04);
}

.catalog-game-card__name {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.catalog-game-card:hover .catalog-game-card__name {
  opacity: 1;
}

/* Game thumb card (Hall of Fame on main page) */
.game-thumb-card {
  display: block;
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 24px;
  overflow: hidden;
}

.game-thumb-card .game-thumb {
  transition: transform 0.2s ease;
}

.game-thumb-card:hover .game-thumb {
  transform: scale(1.04);
}

.game-thumb-card__name {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-thumb-card:hover .game-thumb-card__name {
  opacity: 1;
}

@media (max-width: 768px) {
  .catalog-hero .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-hero__text {
    width: 100%;
  }

  .catalog-hero__grid {
    width: 100%;
    grid-template-columns: repeat(2, 157px);
    gap: 15px;
  }

  .catalog-game-card {
    width: 157px;
    height: 157px;
  }
}

/* ============================
   GAME DETAIL PAGE
   ============================ */
.game-hero {
  background: var(--gradient-bg);
  padding: 60px 0;
  overflow: hidden;
}

.game-hero .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.game-hero__text {
  width: 900px;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.game-hero__body {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.game-hero__thumb {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-middle {
  padding: 60px 0;
}

.game-middle .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.game-middle__inner {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.game-middle__text {
  max-width: 984px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.game-middle__screenshot {
  width: 700px;
  max-width: 100%;
  height: 340px;
  border-radius: 24px;
  object-fit: cover;
}

/* ============================
   POLICY PAGES
   ============================ */
.policy {
  padding: 80px 0 120px;
}

.policy__title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 40px;
}

.policy__section {
  margin-bottom: 32px;
}

.policy__section-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.policy__section-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .policy {
    padding: 50px 0 80px;
  }

  .policy__title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .game-hero .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .game-hero__text {
    width: 100%;
  }

  .game-hero__thumb {
    width: 240px;
    height: 240px;
    align-self: flex-start;
  }

  .game-middle__screenshot {
    width: 100%;
    height: 260px;
  }
}

/* ============================
   COOKIE BANNER
   ============================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px 16px;
  display: none;
  justify-content: center;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__inner {
  background: #1c1c1e;
  border-radius: 20px;
  padding: 36px 48px 40px;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cookie-banner__icon {
  width: 64px;
  height: 64px;
}

.cookie-banner__title {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  line-height: 1.2;
}

.cookie-banner__text {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 680px;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.cookie-banner__accept {
  border: none;
  cursor: pointer;
  min-width: 280px;
}

.cookie-banner__manage {
  background: #ffffff;
  border: none;
  border-radius: 60px;
  padding: 24px 50px;
  min-width: 280px;
  color: #010101;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  line-height: normal;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    padding: 28px 20px 30px;
  }

  .cookie-banner__accept,
  .cookie-banner__manage {
    min-width: 0;
    width: 100%;
    padding: 18px 24px;
  }
}

/* ============================
   HOVER EFFECTS
   ============================ */

.btn-gradient {
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-gradient:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
}

.header-nav a {
  transition: opacity 0.18s ease;
}
.header-nav a:hover {
  opacity: 0.5;
}

.footer-nav a {
  transition: opacity 0.18s ease;
}
.footer-nav a:hover {
  opacity: 0.5;
}

.logo {
  transition: transform 0.2s ease;
}
.logo:hover {
  transform: scale(1.04);
}

.social-icon {
  transition: transform 0.2s ease;
}
.social-icon:hover {
  transform: translateY(-4px) scale(1.18);
}

.stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(62, 0, 185, 0.18);
}

.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:not(.feature-card--gradient):hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(62, 0, 185, 0.2);
}
.feature-card--gradient:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(248, 74, 0, 0.28);
}

.cookie-banner__manage {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cookie-banner__manage:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */

.js-animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-animate.is-inview {
  opacity: 1;
  transform: translateY(0);
}
