:root {
  --bg: #090b16;
  --bg-2: #12172b;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --panel-light: #fff8e8;
  --text: #ffffff;
  --muted: #c6cee7;
  --ink: #172033;
  --accent: #7cf34f;
  --accent-2: #ffce3d;
  --danger: #ff5353;
  --radius-lg: 34px;
  --radius-md: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Nunito", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(124, 243, 79, 0.2), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(255, 206, 61, 0.16), transparent 24rem),
    linear-gradient(180deg, #070913 0%, var(--bg) 42%, #101529 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("njama/assets/images/bg2.jpg") center top / cover no-repeat;
  opacity: 0.18;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
}

.brand__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 11, 22, 0.66);
}

.nav a {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 78px);
  padding-top: 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(19px, 2vw, 23px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 900;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.button--primary {
  color: #12210d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__art {
  position: relative;
  min-height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 55% 35%, rgba(124, 243, 79, 0.22), transparent 18rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__art::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 26px;
}

.hero__nyama {
  position: absolute;
  right: 12%;
  bottom: 24%;
  width: min(42%, 220px);
  filter: drop-shadow(0 24px 20px rgba(0, 0, 0, 0.38));
  animation: hover 3.8s ease-in-out infinite;
}

.hero__rat {
  position: absolute;
  left: 10%;
  bottom: 14%;
  width: min(46%, 240px);
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.35));
}

.float {
  position: absolute;
  z-index: 2;
  width: 66px;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.32));
  animation: float 5s ease-in-out infinite;
}

.float--cake {
  top: 18%;
  left: 14%;
}

.float--bomb {
  top: 18%;
  right: 18%;
  animation-delay: -1.8s;
}

.float--candy {
  top: 44%;
  left: 50%;
  animation-delay: -3s;
}

.section__heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section__heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.85fr;
  gap: 18px;
}

.card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.card--light {
  color: var(--ink);
  background: var(--panel-light);
}

.card--light p {
  color: #475064;
}

.card--accent {
  color: #17210f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.card--accent p {
  color: rgba(23, 33, 15, 0.82);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tags span {
  padding: 9px 13px;
  color: var(--text);
  font-weight: 900;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.game {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.game__preview,
.video-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game__preview {
  padding: 18px;
}

.game__preview img {
  width: 100%;
  border-radius: 22px;
}

.game__content p {
  max-width: 620px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 30px;
}

.feature {
  min-height: 122px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
}

.feature img {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.feature span {
  display: block;
  font-weight: 900;
}

.video-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.video-card__screen {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  border-radius: 24px;
  background: #050711;
  overflow: hidden;
}

.video-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050711;
}

.play-button {
  position: absolute;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 50px rgba(124, 243, 79, 0.28);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #17210f;
}

.video-card p {
  margin: 18px 8px 4px;
}

.hobby {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 64px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(124, 243, 79, 0.18), rgba(255, 206, 61, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.hobby img {
  width: 120px;
  opacity: 0.9;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--muted);
  font-weight: 800;
}

.footer a {
  color: var(--accent-2);
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-18px) rotate(10deg);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .game,
  .about__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__art {
    min-height: 390px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 24px, 1120px);
    padding: 56px 0;
  }

  .brand {
    font-size: 18px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero__art {
    min-height: 310px;
  }

  .video-card__screen {
    min-height: 260px;
  }

  .hobby {
    align-items: flex-start;
    flex-direction: column;
  }
}
