@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400&family=Sora:wght@100;200;300;400;500;600;700;800&display=swap");

:root {
  --bg: #000000;
  --green: #00ce07;
  --green-dark: #0c9229;
  --green-muted: #3fa154;
  --white: #ffffff;
  --muted: #bbbbbb;
  --border: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
}

.page {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.gutter {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  padding: 18px 60px;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s ease;
  max-width: 240px;
}

.btn:hover {
  filter: brightness(1.1);
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 26.667px;
  line-height: 40px;
  letter-spacing: -0.2667px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.brand__name .thin {
  font-weight: 100;
}

.main-nav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 43px;
}

.main-nav a {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.42px;
  color: var(--white);
}

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

.nav-toggle {
  display: none;
  width: 22px;
  height: 9px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle img {
  width: 22px;
  height: 9px;
}

.ribbon {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 60px;
  padding: 2px 31px;
  white-space: nowrap;
}

.ribbon--green {
  background: var(--green);
}

.ribbon--muted {
  background: var(--green-muted);
}

.ribbon__text {
  font-family: "Sora", sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.3;
  color: var(--white);
}

.ribbon__icon {
  width: 67px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  width: 894px;
  height: 894px;
  left: 50%;
  transform: translateX(-50%);
  top: 37px;
  pointer-events: none;
  z-index: 0;
}

.footer-float {
  position: absolute;
  left: auto;
  right: 60px;
  top: 416px;
  width: 191px;
  height: 191px;
  transform: rotate(-22.05deg);
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.footer-brand {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 100px;
  line-height: 0.9;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  transform: rotate(-0.48deg);
}

.footer-brand .thin {
  font-weight: 100;
}

.footer-contacts {
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  color: var(--white);
  width: 100%;
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.footer-socials {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.footer-socials a {
  display: block;
  width: 44px;
  height: 43px;
}

.footer-socials img {
  width: 44px;
  height: 43px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 120px;
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  color: var(--white);
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copyright {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  color: var(--white);
}

@media (max-width: 768px) {
  .page {
    max-width: 100%;
  }

  .gutter {
    padding: 0 20px;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 20px;
  }

  .brand {
    justify-content: flex-start;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #050505;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 30;
  }

  .site-header.nav-open .main-nav {
    max-height: 260px;
    padding: 24px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-footer {
    padding: 80px 0;
  }

  .footer-glow {
    width: 668px;
    height: 668px;
    left: 50%;
    margin-left: -180px;
    transform: translateX(-50%);
    top: 124px;
  }

  .footer-float {
    left: 50%;
    right: auto;
    margin-left: 25px;
    top: 470px;
    width: 162px;
    height: 162px;
    transform: rotate(157.95deg) scaleY(-1);
  }

  .footer-inner {
    padding: 0 20px;
    gap: 27px;
  }

  .footer-brand {
    font-size: 50px;
    overflow-wrap: break-word;
  }

  .footer-contacts {
    text-align: center;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .footer-copyright {
    padding: 0 20px;
  }
}

/* ===========================================================
   Cookie consent banner
   =========================================================== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(24px);
  z-index: 200;
  width: calc(100% - 40px);
  max-width: 900px;
  background: var(--green-muted);
  padding: 44px 60px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.cookie.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.cookie__title {
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}

.cookie__text {
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  color: var(--white);
}

.cookie__actions {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.cookie__btn {
  min-width: 190px;
  background: var(--white);
  color: #000;
  border: none;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  padding: 18px 44px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cookie__btn:hover {
  filter: brightness(0.92);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cookie {
    bottom: 16px;
    padding: 30px 24px;
  }

  .cookie__title {
    font-size: 34px;
  }

  .cookie__actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cookie__btn {
    width: 100%;
  }
}

/* ===========================================================
   Hover effects
   =========================================================== */
.btn {
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 206, 7, 0.35);
}

.brand__logo {
  transition: transform 0.35s ease;
}

.brand:hover .brand__logo {
  transform: rotate(-10deg) scale(1.1);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.footer-socials a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

.footer-links a {
  transition: color 0.2s ease;
}

/* ===========================================================
   Motion: scroll reveal + ambient animation
   =========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
  }

  .reveal--fade {
    transform: none;
    transition: opacity 0.8s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero-glow,
  .footer-glow,
  .catalog__glow,
  .why__glow {
    animation: glowPulse 7s ease-in-out infinite;
  }

  @keyframes glowPulse {
    0%,
    100% {
      opacity: 0.8;
    }
    50% {
      opacity: 1;
    }
  }
}

/* ===========================================================
   Image hover zoom
   =========================================================== */
.about__img,
.discover__img,
.game-panel__landscape,
.catalog-row__thumb {
  transition: transform 0.5s ease;
}

.testimonial__img {
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.about:hover .about__img,
.discover:hover .discover__img,
.testimonial__card:hover .testimonial__img,
.game-panel:hover .game-panel__landscape {
  transform: scale(1.04);
}

.catalog-row:hover .catalog-row__thumb {
  transform: scale(1.08);
}

.hero-card img {
  transition: filter 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:hover img {
  filter: brightness(1.12);
  box-shadow: 0 14px 44px rgba(0, 206, 7, 0.35);
}

/* ===========================================================
   Testimonial slider
   =========================================================== */
.testimonial__arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.testimonial__arrow:hover:not(:disabled) {
  transform: scale(1.12);
}

.testimonial__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.testimonial__quote-block {
  transition: opacity 0.3s ease;
}

.testimonial__card.is-switching .testimonial__img,
.testimonial__card.is-switching .testimonial__quote-block {
  opacity: 0;
}

/* ===========================================================
   Infinite scrolling ribbons (marquee)
   =========================================================== */
.ribbon--scroll {
  overflow: hidden;
}

.ribbon__track {
  display: flex;
  align-items: center;
  width: max-content;
  flex-shrink: 0;
  animation: ribbonScroll 30s linear infinite;
  will-change: transform;
}

.ribbon__track--reverse {
  animation-direction: reverse;
}

.ribbon__group {
  display: flex;
  align-items: center;
  gap: var(--ribbon-gap, 48px);
  padding-right: var(--ribbon-gap, 48px);
  flex-shrink: 0;
}

@keyframes ribbonScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .community__marquee .ribbon--scroll {
    --ribbon-gap: 24px;
  }
}

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