:root {
  --bg: #050505;
  --panel: #111111;
  --text: #ffffff;
  --muted: #d8d8d8;
  --line: rgba(255, 255, 255, 0.38);
  --green: #18e08d;
  --purple: #9b5cff;
  --cyan: #19d7ff;
  --header-h: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 52px;
  padding: 0 88px;
  background: linear-gradient(90deg, rgba(5, 5, 6, 0.94), rgba(35, 24, 30, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: height 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  height: 78px;
  background: rgba(5, 5, 6, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-title-img {
  display: block;
  width: clamp(76px, 6vw, 105px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

.brand-title,
.stack-logo,
.mini-logo {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow:
    3px 3px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    0 0 14px rgba(25, 215, 255, 0.25);
  -webkit-text-stroke: 1px #000;
}

.gta-title {
  font-family: Impact, Haettenschweiler, "Arial Black", "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: 0;
  paint-order: stroke fill;
  text-shadow:
    2px 0 0 #000,
    -2px 0 0 #000,
    0 2px 0 #000,
    0 -2px 0 #000,
    4px 4px 0 #000,
    5px 5px 0 rgba(255, 255, 255, 0.82);
  -webkit-text-stroke: 2px #000;
}

.brand-title {
  font-size: clamp(1.45rem, 2vw, 2.4rem);
  line-height: 0.82;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  color: rgba(255, 255, 255, 0.76);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pill-button,
.outline-button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pill-button {
  min-width: 122px;
  border-radius: 999px;
  text-transform: none;
}

.outline-button {
  width: min(100%, 360px);
  min-height: 74px;
  padding: 0 24px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(3px);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.2rem, 1.35vw, 1.55rem);
  letter-spacing: 0;
}

.pill-button:hover,
.outline-button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.icon-button,
.menu-toggle {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-h) + 80px) 7vw 88px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/web2.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.54) 30%, rgba(0, 0, 0, 0.08) 68%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 34%);
}

.hero-content {
  width: min(680px, 100%);
}

.hero-badges {
  display: flex;
  align-items: flex-end;
  gap: clamp(22px, 4vw, 54px);
  margin-bottom: 54px;
}

.hero-logo-img {
  display: block;
  width: clamp(150px, 13vw, 230px);
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.65));
}

.stack-logo {
  display: inline-block;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.7;
}

.stack-logo-accent {
  color: #f20000;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.65rem, 3vw, 3rem);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  max-width: 620px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.7rem, 3.4vw, 4rem);
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.hero p,
.section-copy p,
.feature-copy p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.25rem, 1.35vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero p {
  max-width: 560px;
  margin-top: 20px;
}

.hero-buttons {
  display: grid;
  gap: 18px;
  margin-top: 38px;
}

.contract-box {
  display: grid;
  gap: 8px;
  width: min(100%, 620px);
  margin-top: 22px;
  padding: 20px 26px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.contract-box span {
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-box strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.45rem, 1.7vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.story-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: 8vw;
  min-height: 100vh;
  padding: 120px 9vw 80px;
  overflow: hidden;
  background: #080808;
}

.section-anchor {
  position: absolute;
  top: calc(var(--header-h) * -1);
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.story-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)),
    url("images/web2.png") center / cover;
  filter: grayscale(1);
  opacity: 0.28;
}

.section-art,
.section-copy {
  position: relative;
  z-index: 1;
}

.section-art img {
  display: block;
  width: min(100%, 620px);
  margin-inline: auto;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.6));
}

.section-copy {
  max-width: 740px;
}

.mini-logo {
  display: inline-block;
  margin-bottom: 48px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.84;
}

.section-copy h2 {
  max-width: 14ch;
  margin-bottom: 24px;
}

.section-copy p + p {
  margin-top: 28px;
}

.feature-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: 7vw;
  min-height: 78vh;
  padding: 110px 7vw;
  background: #111111;
}

.feature-copy {
  max-width: 720px;
}

.feature-copy h2 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 3.2vw, 4rem);
  line-height: 1.06;
}

.feature-copy p {
  max-width: 720px;
}

.feature-copy p + p {
  margin-top: 28px;
}

.feature-media {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  justify-self: end;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.community-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 110px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.92), rgba(0, 0, 0, 0.98)),
    #070707;
}

.community-pattern {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  grid-auto-rows: 104px;
  align-items: center;
  justify-items: center;
  opacity: 0.1;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.community-pattern img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.community-pattern img:nth-child(2n) {
  transform: translateY(34px) rotate(-10deg);
}

.community-pattern img:nth-child(3n) {
  width: 44px;
  height: 44px;
  transform: translateY(-24px) rotate(8deg);
}

.community-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(760px, 100%);
  text-align: center;
}

.community-emblem {
  width: 78px;
  height: 78px;
  margin-bottom: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 22px 55px rgba(0, 0, 0, 0.55);
}

.community-content h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 3vw, 3.8rem);
  line-height: 1;
}

.community-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.18rem, 1.45vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.community-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.community-link:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.community-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 56px 24px 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-brand img:first-child {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand img:last-child {
  width: min(220px, 52vw);
  height: auto;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer-socials {
  gap: 12px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-socials a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 68px 4.5vw;
}

.trailer-modal.is-open {
  display: flex;
}

.trailer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(4px);
}

.trailer-dialog {
  position: relative;
  width: min(100%, 1740px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.7);
}

.trailer-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
  pointer-events: none;
}

.trailer-title {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  font-weight: 800;
}

.trailer-title img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.trailer-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trailer-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1;
  pointer-events: auto;
}

.trailer-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 136px);
  background: #000;
  object-fit: contain;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .site-header {
    padding: 0 28px;
    gap: 24px;
  }

  .brand {
    gap: 34px;
  }

  .main-nav {
    gap: 20px;
    font-size: 0.78rem;
  }

  .story-section,
  .feature-section {
    grid-template-columns: 1fr;
  }

  .section-art {
    order: 2;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 74px;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: var(--header-h);
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .brand-title-img {
    width: 58px;
    max-height: 40px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 14px 28px 26px;
    background: rgba(5, 5, 6, 0.98);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 16px 0;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 58px) 24px 48px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 45%);
  }

  .hero-badges {
    margin-bottom: 34px;
  }

  h1,
  h2 {
    font-size: clamp(3rem, 16vw, 5.6rem);
  }

  .outline-button {
    width: 100%;
    min-height: 64px;
  }

  .story-section,
  .feature-section {
    padding: 80px 24px;
  }

  .community-section {
    min-height: 520px;
    padding: 86px 24px;
  }

  .community-pattern {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .trailer-modal {
    padding: 18px;
  }

  .trailer-topbar {
    padding: 14px;
  }

  .trailer-title {
    gap: 10px;
  }

  .trailer-title img {
    width: 36px;
    height: 36px;
  }

  .trailer-close {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .mini-logo {
    margin-bottom: 32px;
  }

  .section-copy p + p {
    margin-top: 32px;
  }

  .feature-media {
    justify-self: stretch;
    width: min(100%, 520px);
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 12px;
  }

  .site-header {
    padding-inline: 28px;
  }

  .brand-title-img {
    width: 52px;
    max-height: 36px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .menu-toggle span {
    margin: 5px 0;
  }

  .hero-badges {
    align-items: flex-start;
    flex-direction: column;
  }
}
