/* ==========================================================================
   Gorillabyte Games — static stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — Space Grotesk (self-hosted woff2 subsets)
   -------------------------------------------------------------------------- */

/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --gb-bg: #08080A;
  --gb-fg: #E8E8EA;
  --gb-fg-strong: #F4F4F6;
  --gb-fg-muted: #96969E;
  --gb-fg-faint: #8A8A92;
  --gb-accent: #DA272E;
  --gb-accent-hover: #EE3A41;
  --gb-font: 'Space Grotesk', Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--gb-bg);
}

body {
  color: var(--gb-fg);
  font-family: var(--gb-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gb-fg);
}

a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--gb-accent-hover);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Hero — the whole page
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;      /* fallback for older browsers */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 44px);
  padding: clamp(28px, 5vh, 64px) 24px clamp(16px, 3vh, 32px);
  background: var(--gb-bg);
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 34%;
  left: 50%;
  width: min(120vw, 900px);
  height: min(120vw, 900px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.hero__logo {
  position: relative;
  width: auto;
  height: clamp(180px, 38vh, 380px);
  max-width: 78vw;
  object-fit: contain;
  animation: gb-rise 0.7s ease-out both;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.2vh, 22px);
  max-width: 560px;
  animation: gb-rise 0.7s ease-out 0.12s both;
}

.hero__title {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--gb-fg-strong);
  text-wrap: pretty;
}

.hero__text {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--gb-fg-muted);
  text-wrap: pretty;
}

.hero__cta {
  margin-top: clamp(6px, 1.4vh, 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 4px;
  background: var(--gb-accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--gb-accent-hover);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__footer {
  position: relative;
  padding-top: clamp(12px, 3vh, 28px);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gb-fg-faint);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes gb-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__content {
    animation: none;
  }

  .hero__cta {
    transition: none;
  }

  .hero__cta:hover,
  .hero__cta:focus-visible,
  .hero__cta:active {
    transform: none;
  }
}
