:root {
  --bg: #1b0f23;
  --bg-deep: #09050d;
  --panel: rgba(20, 15, 24, 0.84);
  --panel-solid: #17101c;
  --text: #ffffff;
  --muted: #c9bed4;
  --muted-2: #93869e;
  --cyan: #1ed5c3;
  --yellow: #fff500;
  --green: #05ff00;
  --red: #ff005d;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  letter-spacing: 0;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(30, 213, 195, 0.08), transparent 32%),
    linear-gradient(280deg, rgba(255, 0, 93, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(9, 5, 13, 0.08), rgba(9, 5, 13, 0.78));
  z-index: -3;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-130%);
  padding: 10px 14px;
  color: var(--bg-deep);
  background: var(--yellow);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0.42;
  filter: drop-shadow(0 0 12px rgba(30, 213, 195, 0.46)) drop-shadow(5px 0 0 rgba(255, 0, 93, 0.6));
}

.shape-triangle {
  clip-path: polygon(50% 0, 100% 88%, 0 88%);
  border: 3px solid var(--text);
  background: transparent;
}

.shape-circle {
  border: 3px solid var(--text);
  border-radius: 50%;
}

.shape-square {
  border: 3px solid var(--text);
  transform: rotate(12deg);
}

.shape-cross::before,
.shape-cross::after {
  content: "";
  position: absolute;
  inset: 16px 0 auto 0;
  height: 3px;
  background: var(--text);
}

.shape-cross::after {
  transform: rotate(90deg);
}

.shape-a {
  top: 18%;
  left: 7%;
  transform: rotate(-12deg);
}

.shape-b {
  top: 16%;
  right: 18%;
}

.shape-c {
  top: 73%;
  left: 35%;
}

.shape-d {
  top: 76%;
  right: 7%;
  transform: rotate(18deg);
}

.shape-e {
  bottom: 12%;
  left: 52%;
  transform: rotate(180deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 20px 0;
}

main,
.footer {
  position: relative;
  z-index: 2;
}

.nav {
  width: min(var(--max), 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(11, 8, 14, 0.72);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 38px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.mark-text {
  position: relative;
  text-shadow:
    -2px 0 0 rgba(30, 213, 195, 0.78),
    2px 0 0 rgba(255, 0, 93, 0.78),
    0 0 18px rgba(255, 255, 255, 0.3);
}

.mark-bracket {
  color: var(--cyan);
  font-size: 1.6rem;
  line-height: 1;
  text-shadow: 5px 0 0 var(--red);
}

.mark-bracket-right {
  color: var(--text);
  text-shadow: -5px 0 0 var(--cyan), 5px 0 0 var(--red);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex: 1 1 auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 245, 0, 0.45);
  border-radius: 8px;
  color: var(--bg-deep);
  background: var(--yellow);
  font-weight: 900;
  cursor: pointer;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  width: min(1340px, calc(100% - 40px));
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 44px;
  padding-top: 48px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: 5.6rem;
  line-height: 0.92;
  font-weight: 900;
  text-wrap: balance;
}

h1::first-line {
  text-shadow:
    -3px 0 0 rgba(30, 213, 195, 0.74),
    3px 0 0 rgba(255, 0, 93, 0.62);
}

h2 {
  margin-bottom: 18px;
  font-size: 3.7rem;
  line-height: 0.98;
  font-weight: 900;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.38rem;
  line-height: 1.08;
  font-weight: 900;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 1.06rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::after {
  content: " ->";
}

.button-primary {
  color: var(--bg-deep);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 30px rgba(255, 245, 0, 0.16);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.handle-line {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.handle-line button {
  padding: 0;
  color: var(--cyan);
  background: transparent;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.hero-collage {
  position: relative;
  min-height: 640px;
}

.collage-card {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
}

.collage-card::after,
.game-media::after,
.image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 5, 13, 0.38));
}

.collage-card img,
.game-media img,
.image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-card:hover {
  border-color: rgba(255, 245, 0, 0.7);
  transform: translateY(-6px) rotate(0deg);
}

.collage-a {
  width: 420px;
  aspect-ratio: 16 / 9;
  top: 56px;
  left: 18px;
  transform: rotate(-4deg);
}

.collage-b {
  width: 360px;
  aspect-ratio: 16 / 9;
  top: 0;
  right: 50px;
  transform: rotate(5deg);
}

.collage-c {
  width: 430px;
  aspect-ratio: 16 / 9;
  top: 260px;
  right: 0;
  transform: rotate(-3deg);
}

.collage-d {
  width: 345px;
  aspect-ratio: 16 / 9;
  left: 0;
  bottom: 64px;
  transform: rotate(5deg);
}

.collage-e {
  width: 310px;
  aspect-ratio: 16 / 9;
  left: 280px;
  bottom: 0;
  transform: rotate(-2deg);
}

.stats {
  padding-top: 56px;
}

.stats h2 {
  max-width: 760px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.stat-card,
.game-card,
.feature-card,
.client-card,
.craft-card,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stat-card {
  min-height: 152px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
}

.stat-card:nth-child(2) strong {
  color: var(--yellow);
}

.stat-card:nth-child(3) strong {
  color: var(--cyan);
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.clients {
  padding-top: 52px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-card {
  min-height: 320px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 245, 0, 0.55);
  background: rgba(28, 19, 35, 0.92);
}

.client-logo {
  min-height: 70px;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 1.38rem;
  line-height: 0.96;
  font-weight: 900;
}

.client-logo-baron {
  color: var(--yellow);
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 245, 0, 0.22);
}

.client-logo-increates {
  text-shadow:
    -2px 0 0 rgba(30, 213, 195, 0.75),
    2px 0 0 rgba(255, 0, 93, 0.62);
}

.client-logo-blackleaf::before {
  content: "";
  width: 18px;
  height: 28px;
  margin-right: 10px;
  display: inline-block;
  background: var(--text);
  border-radius: 18px 18px 18px 2px;
  transform: rotate(28deg);
}

.client-logo-stella img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.client-tag {
  width: fit-content;
  min-height: 28px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--bg-deep);
  background: var(--cyan);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-card:nth-child(1) .client-tag {
  background: var(--yellow);
}

.client-card:nth-child(3) .client-tag {
  color: var(--text);
  background: var(--red);
}

.client-card:nth-child(4) .client-tag {
  background: var(--green);
}

.client-card h3 {
  margin-bottom: 10px;
}

.client-card p {
  margin-bottom: 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  gap: 16px;
}

.shipped-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  overflow: hidden;
  min-width: 0;
}

.game-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-deep);
}

.game-body {
  padding: 20px;
}

.game-topline {
  min-height: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-topline img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.game-body p,
.feature-copy p,
.craft-card p,
.contact-panel p {
  margin-bottom: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  content: " ->";
}

.text-link:hover {
  color: var(--yellow);
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: 18px;
}

.feature-card-alt {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.video-shell,
.video-mosaic,
.image-link {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-deep);
}

.video-shell,
.image-link {
  aspect-ratio: 16 / 9;
}

.video-shell video,
.video-shell img,
.video-mosaic video,
.video-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  padding: 16px 12px;
}

.feature-copy h3 {
  font-size: 2rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.video-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
}

.video-mosaic .mosaic-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--bg-deep);
}

.video-mosaic img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--bg-deep);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.craft-card {
  min-height: 285px;
  padding: 22px;
}

.craft-card span {
  display: inline-flex;
  min-width: 36px;
  min-height: 32px;
  margin-bottom: 26px;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  background: var(--yellow);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.craft-card:nth-child(2) span {
  background: var(--cyan);
}

.craft-card:nth-child(3) span {
  color: var(--text);
  background: var(--red);
}

.craft-card:nth-child(4) span {
  background: var(--green);
}

.contact {
  padding-bottom: 70px;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 52px;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(30, 213, 195, 0.2), transparent),
    linear-gradient(45deg, transparent 32%, rgba(255, 0, 93, 0.2));
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.discord-pill {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(30, 213, 195, 0.45);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(30, 213, 195, 0.08);
  font-weight: 900;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.footer p,
.footer a {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.88rem;
  font-weight: 700;
}

.footer a {
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: min(360px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 245, 0, 0.38);
  border-radius: 8px;
  color: var(--bg-deep);
  background: var(--yellow);
  box-shadow: var(--shadow);
  font-weight: 900;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 74px;
  }

  .hero-collage {
    min-height: 520px;
    order: -1;
  }

  .collage-a {
    left: 3%;
  }

  .collage-b {
    right: 4%;
  }

  .collage-c {
    right: 2%;
  }

  .collage-d {
    left: 2%;
  }

  .collage-e {
    left: 34%;
  }

  .stat-grid,
  .client-grid,
  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shipped-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .nav {
    min-height: 58px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .section,
  .hero,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-collage {
    min-height: 420px;
  }

  .collage-card {
    width: 58%;
  }

  .collage-a {
    top: 34px;
    left: 0;
  }

  .collage-b {
    top: 0;
    right: 0;
  }

  .collage-c {
    top: 190px;
    right: 0;
  }

  .collage-d {
    bottom: 28px;
    left: 0;
  }

  .collage-e {
    width: 48%;
    left: 28%;
    bottom: 0;
  }

  .feature-card,
  .feature-card-alt {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card-alt .feature-copy {
    order: 2;
  }

  .feature-card-alt .video-mosaic {
    order: 1;
  }

  .contact-panel {
    padding: 32px;
  }

  .contact-panel::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .wordmark {
    font-size: 0.8rem;
  }

  .mark-bracket {
    font-size: 1.3rem;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 0.98;
  }

  h2 {
    font-size: 2.1rem;
    line-height: 1.05;
  }

  h3,
  .feature-copy h3 {
    font-size: 1.45rem;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-collage {
    min-height: 370px;
  }

  .collage-card {
    width: 68%;
  }

  .collage-b {
    width: 56%;
  }

  .collage-c {
    top: 168px;
  }

  .collage-d {
    bottom: 52px;
  }

  .collage-e {
    width: 52%;
  }

  .stat-grid,
  .shipped-grid,
  .client-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .client-card,
  .craft-card {
    min-height: 190px;
  }

  .game-body,
  .feature-copy {
    padding: 18px;
  }

  .feature-card {
    padding: 10px;
  }

  .video-mosaic {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 26px 18px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .wordmark {
    max-width: 150px;
  }

  .mark-text {
    white-space: normal;
  }

  .nav-cta {
    font-size: 0.74rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .button,
  .discord-pill {
    width: 100%;
  }
}
