:root {
  --bg: #f7f7f7;
  --ink: #161719;
  --muted: #6d7077;
  --dark: #24262b;
  --panel: #ffffff;
  --line: #dedfe3;
  --red: rgb(100, 200, 0);
  --red-dark: #3f7f00;
  --shadow: 0 22px 70px rgba(22, 23, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 40px;
  background: rgba(247, 247, 247, 0.88);
  border-bottom: 1px solid rgba(222, 223, 227, 0.8);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(22, 23, 25, 0.08);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
}

.brand span:last-child {
  min-width: 0;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 58px;
  height: auto;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  transition: color 160ms ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.menu-toggle img {
  width: 26px;
  height: 26px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px 7vw 92px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.82), rgba(12, 14, 13, 0.46)),
    url("public/assets/welcome_bg.png") center / cover no-repeat;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
  max-width: 100%;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 14px;
  font-size: 28px;
}

.hero-text {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.section {
  padding: 84px 7vw;
}

.section-heading {
  margin-bottom: 36px;
}

.about {
  color: #ffffff;
  background: var(--dark);
}

.about-grid {
  max-width: 1100px;
}

.about-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.about-grid p {
  color: rgba(255, 255, 255, 0.74);
}

.game-card {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(520px, 1fr) auto;
  overflow: hidden;
  background: #17181b;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-visual {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(17, 18, 20, 0.02) 64%, rgba(17, 18, 20, 0.34) 100%),
    url("public/assets/game1_aerokai.png") center center / cover no-repeat;
}

.game-logo {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(58vw, 650px);
  max-width: 70%;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
}

.game-info {
  display: grid;
  min-width: 0;
  width: 100%;
  grid-template-columns: max-content minmax(280px, 560px) auto;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 42px 46px;
  color: #ffffff;
  background: rgba(17, 18, 20, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.game-info p {
  min-width: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 21px;
  line-height: 1.65;
}

.game-info h3 {
  color: var(--red);
  font-size: clamp(42px, 4.4vw, 72px);
  line-height: 0.9;
  min-width: 0;
  white-space: nowrap;
}

.demo-button {
  display: inline-flex;
  width: fit-content;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0 28px;
  color: #111214;
  background: var(--red);
  border-radius: 7px;
  font-size: 18px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.demo-button-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-left: 12px;
  object-fit: contain;
}

.demo-button:hover,
.demo-button:focus-visible {
  background: #7ceb12;
  transform: translateY(-2px);
}

.contact {
  color: #ffffff;
  background: var(--dark);
}

.contact .eyebrow {
  color: var(--red);
}

.contact a {
  display: inline-block;
  margin-top: 24px;
  color: var(--red);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer {
  padding: 26px 7vw;
  color: rgba(255, 255, 255, 0.7);
  background: #17181b;
  font-size: 14px;
}

@keyframes reelPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
    align-items: center;
    padding: 14px 18px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    display: grid;
    min-width: 190px;
    gap: 4px;
    padding: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(22, 23, 25, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 6px;
  }

  .nav a:hover {
    color: var(--ink);
    background: rgba(100, 200, 0, 0.14);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero,
  .about-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
    padding: 42px 18px 52px;
  }

  .section {
    padding: 46px 18px;
  }

  .game-card {
    grid-template-rows: minmax(365px, 1fr) auto;
  }

  .game-visual {
    min-height: 365px;
  }

  .game-logo {
    bottom: 18px;
    width: min(78vw, 560px);
    max-width: 70%;
  }

  .game-info {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 34px 30px;
  }

  .footer {
    padding: 22px 18px;
  }
}

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

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 50px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(34px, 12vw, 68px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.05;
  }

  h3 {
    font-size: 24px;
  }

  .hero {
    gap: 26px;
    padding: 34px 14px 42px;
  }

  .hero-text {
    font-size: 17px;
    line-height: 1.55;
  }

  .section {
    padding: 42px 14px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .about-grid {
    gap: 18px;
  }

  .about-grid p,
  .game-info p {
    font-size: 18px;
    line-height: 1.6;
  }

  .game-card {
    grid-template-rows: minmax(290px, 1fr) auto;
  }

  .game-visual {
    min-height: 290px;
    background:
      linear-gradient(180deg, rgba(17, 18, 20, 0.02) 58%, rgba(17, 18, 20, 0.34) 100%),
      url("public/assets/game1_aerokai.png") center center / cover no-repeat;
  }

  .game-logo {
    bottom: 14px;
    width: min(86vw, 430px);
    max-width: 70%;
  }

  .game-info {
    padding: 28px 22px;
  }

  .demo-button {
    min-height: 54px;
    padding: 0 24px;
    font-size: 17px;
  }

  .demo-button-icon {
    width: 28px;
    height: 28px;
  }

  .footer {
    padding: 20px 14px;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 9px;
    font-size: 15px;
  }

  h1 {
    font-size: 32px;
  }

}
