/*
  Gagalin is not a standard web font.
  Put your licensed font file at: assets/fonts/Gagalin-Regular.woff2
  The fallback stack keeps the design working until then.
*/
@font-face {
  font-family: "Gagalin";
  src: url("assets/fonts/Gagalin-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --header-bg: #ff8b2c;
  --accent: #fd5300;
  --ink: #252525;
  --paper: #fffaf5;
  --white: #ffffff;
  --line: rgba(37, 37, 37, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 20px;
}

.brand-name,
.main-nav a,
h1,
h2,
h3,
.section-kicker,
.eyebrow,
.hero-button,
.social-card span {
  font-family: "Gagalin", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.7px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #1c1c1c;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.75) 100%),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
}

.hero-copy {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}

.hero-copy > * {
  max-width: 660px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.95rem;
}

.hero .eyebrow {
  color: #ffd7bd;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-text {
  margin: 24px 0 0;
  font-size: 1.12rem;
  max-width: 580px;
}

.hero-button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 22px;
  color: var(--white);
  background: var(--accent);
  text-decoration: none;
  border-radius: 3px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* SECTIONS */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--paper);
}

h2 {
  margin: 0 0 38px;
  color: var(--accent);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  width: 100%;
}

.game-image {
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
}

.game-image-one {
  background-image:
    linear-gradient(135deg, rgba(253,83,0,.15), rgba(0,0,0,.45)),
    url("assets/game-1.jpg");
}

.game-image-two {
  background-image:
    linear-gradient(135deg, rgba(255,139,44,.12), rgba(0,0,0,.48)),
    url("assets/game-2.jpg");
}

.game-image-three {
  background-image:
    linear-gradient(135deg, rgba(253,83,0,.15), rgba(0,0,0,.52)),
    url("assets/game-3.jpg");
}

.game-card-copy {
  padding: 26px;
}

.game-card h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.75rem;
}

.game-card p {
  margin: 0 0 18px;
}

.game-card a,
.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}

.about-copy {
  padding-top: 42px;
  font-size: 1.08rem;
}

/* SOCIAL */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.social-card {
  min-height: 210px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.social-card svg {
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-card span {
  color: var(--accent);
  font-size: 1.5rem;
}

.social-card small {
  margin-top: 4px;
  opacity: 0.72;
}

/* FOOTER */
.site-footer {
  padding: 28px 0;
  color: var(--white);
  background: var(--ink);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-wrap p {
  margin: 0;
}

.footer-wrap a {
  color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-copy {
    padding-top: 0;
  }
}

/* =========================================================
   DIAI GAME FEATURE
   ========================================================= */

.game-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 37, 37, 0.1);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.035);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.07);
  border-color: rgba(253, 83, 0, 0.22);
}

.game-card-copy {
  padding: 38px 42px 40px 46px;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 26px !important;
  padding: 7px 12px;

  border: 1px solid rgba(34, 139, 94, 0.25);
  border-radius: 999px;

  color: #218c5a;
  background: rgba(34, 139, 94, 0.07);

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.game-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #218c5a;
  box-shadow: 0 0 0 4px rgba(34, 139, 94, 0.12);
}

.game-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.game-intro {
  max-width: 800px;
  font-size: 1.08rem;
  color: rgba(37, 37, 37, 0.82);
}

.game-card-copy > p:not(.game-status) {
  max-width: 1000px;
}

.game-card-copy strong {
  color: var(--ink);
}

.game-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 28px;
}

.game-details > div {
  min-width: 180px;
  padding: 15px 18px;
  border: 1px solid rgba(37, 37, 37, 0.1);
  background: var(--paper);
}

.game-details span {
  display: block;
  margin-bottom: 3px;
  color: rgba(37, 37, 37, 0.52);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.game-details strong {
  display: block;
  font-size: 0.92rem;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none !important;
}

.game-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 180ms ease;
}

.game-link:hover::after,
.game-link:focus-visible::after {
  transform: scaleX(1);
}


/* =========================================================
   OUR GAMES TITLE
   ========================================================= */

#games h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 46px;
}

#games h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 90px;
  height: 5px;
  background: var(--accent);
}


/* =========================================================
   WHAT WE CARE ABOUT
   ========================================================= */

.philosophy-section {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.philosophy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 40px), var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: var(--line);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.philosophy-grid > div {
  position: relative;
  min-height: 290px;
  padding: 42px 38px 38px 0;
  overflow: hidden;
}

.philosophy-grid > div:not(:last-child) {
  margin-right: 38px;
  border-right: 1px solid var(--line);
}

.philosophy-grid > div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: var(--accent);
  transition: width 260ms ease;
}

.philosophy-grid > div:hover::after {
  width: calc(100% - 38px);
}

.philosophy-grid span {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent);
  font-family: "Gagalin", Impact, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.philosophy-grid h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.philosophy-grid p {
  position: relative;
  z-index: 2;
  max-width: 320px;
  margin: 0;
  color: rgba(37, 37, 37, 0.72);
  line-height: 1.7;
}

.philosophy-grid > div::before {
  position: absolute;
  right: 28px;
  top: 18px;
  z-index: 0;
  color: rgba(253, 83, 0, 0.045);
  font-family: "Gagalin", Impact, sans-serif;
  font-size: 8rem;
  line-height: 1;
}

.philosophy-grid > div:nth-child(1)::before {
  content: "01";
}

.philosophy-grid > div:nth-child(2)::before {
  content: "02";
}

.philosophy-grid > div:nth-child(3)::before {
  content: "03";
}


/* =========================================================
   SECTION SPACING
   ========================================================= */

#games {
  padding-top: 110px;
  padding-bottom: 110px;
}

.philosophy-section {
  padding-top: 100px;
  padding-bottom: 110px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-grid > div {
    min-height: auto;
    padding: 34px 0;
  }

  .philosophy-grid > div:not(:last-child) {
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .philosophy-grid > div:hover::after {
    width: 100%;
  }

  .game-details {
    flex-direction: column;
  }

  .game-details > div {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .game-card-copy {
    padding: 30px 24px 30px 30px;
  }

  .game-card::before {
    width: 4px;
  }

  .philosophy-grid h3 {
    font-size: 1.5rem;
  }

  .philosophy-grid > div::before {
    right: 5px;
    font-size: 6rem;
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    min-height: 74px;
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px 30px;
    background: var(--header-bg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero,
  .hero-copy {
    min-height: 580px;
  }

  .hero-copy {
    justify-content: flex-end;
    padding-bottom: 64px;
  }

  .hero-photo {
    background-position: 42% center;
  }

  .section {
    padding: 72px 0;
  }

  .game-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
