/* =========================================================
       RESET
    ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;

  background:
    radial-gradient(
      circle at top right,
      rgba(255, 190, 0, 0.08),
      transparent 30%
    ),
    #090909;

  color: #f5f5f5;

  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

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

/* =========================================================
       VARIÁVEIS
    ========================================================= */

:root {
  --yellow: #ffc400;
  --yellow-light: #ffe071;
  --orange: #ff8a00;

  --black: #090909;
  --black-2: #101010;
  --black-3: #171717;
  --black-4: #222222;

  --white: #ffffff;
  --gray: #999999;
  --gray-light: #cfcfcf;

  --border: rgba(255, 255, 255, 0.08);

  --shadow-yellow: 0 0 30px rgba(255, 196, 0, 0.18);
}

/* =========================================================
       UTILITÁRIOS
    ========================================================= */

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.section-label {
  color: var(--yellow);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  max-width: 700px;
}

.section-description {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 670px;
  margin-top: 18px;
}

.highlight {
  color: var(--yellow);
}

/* =========================================================
       HEADER
    ========================================================= */

header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  height: 76px;

  z-index: 999;

  border-bottom: 1px solid transparent;

  transition: 0.3s;
}

header.scrolled {
  background: rgba(9, 9, 9, 0.92);

  backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--border);
}

.navbar {
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 1.2rem;
  font-weight: 900;

  letter-spacing: 0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;

  border-radius: 12px;

  background: linear-gradient(135deg, var(--yellow), var(--orange));

  display: flex;
  align-items: center;
  justify-content: center;

  color: #111;

  font-size: 1.35rem;

  box-shadow: 0 0 22px rgba(255, 196, 0, 0.25);
}

.logo span {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;

  list-style: none;
}

.nav-links a {
  color: #c4c4c4;

  font-size: 0.92rem;
  font-weight: 600;

  transition: 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-button {
  padding: 11px 18px;

  border-radius: 10px;

  color: var(--white);

  font-weight: 600;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.03);
}

.create-button {
  padding: 11px 20px;

  border-radius: 10px;

  background: var(--yellow);

  color: #111;

  font-weight: 800;

  transition: 0.2s;
}

.create-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 25px rgba(255, 196, 0, 0.25);
}

.menu-button {
  display: none;

  background: transparent;
  border: none;

  color: white;

  font-size: 1.7rem;

  cursor: pointer;
}

/* =========================================================
       HERO
    ========================================================= */

.hero {
  min-height: max-content;

  padding-top: 80px;
  padding-bottom: 80px;
    margin: 0px auto;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::after {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  background: var(--yellow);

  filter: blur(180px);

  opacity: 0.055;

  right: -200px;
  top: 100px;

  pointer-events: none;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 80px;

  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;

  border-radius: 999px;

  border: 1px solid rgba(255, 196, 0, 0.2);

  background: rgba(255, 196, 0, 0.06);

  color: var(--yellow);

  font-size: 0.82rem;
  font-weight: 700;

  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);

  line-height: 0.92;

  letter-spacing: -4px;

  margin-bottom: 28px;
}

.hero h1 span {
  display: block;

  background: linear-gradient(
    90deg,
    var(--yellow),
    var(--yellow-light),
    var(--orange)
  );

  background-clip: text;

  -webkit-background-clip: text;

  color: transparent;
}

.hero p {
  color: var(--gray);

  max-width: 630px;

  font-size: 1.08rem;

  line-height: 1.8;
}

.hero-buttons {
  margin-top: 36px;

  display: flex;
  gap: 14px;

  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  padding: 15px 24px;

  border-radius: 12px;

  font-weight: 800;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  cursor: pointer;

  transition: 0.25s;
}

.button-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));

  color: #111;
}

.button-primary:hover {
  transform: translateY(-3px);

  box-shadow: var(--shadow-yellow);
}

.button-secondary {
  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.025);

  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hero-small-text {
  margin-top: 20px;

  font-size: 0.83rem !important;

  color: #666 !important;
}

/* =========================================================
       HERO GAME WINDOW
    ========================================================= */

.game-window {
  border: 1px solid var(--border);

  border-radius: 22px;

  background: linear-gradient(160deg, #161616, #0c0c0c);

  overflow: hidden;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);

  position: relative;
}

.game-window::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  box-shadow: inset 0 0 50px rgba(255, 196, 0, 0.03);
}

.window-header {
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;

  border-bottom: 1px solid var(--border);

  background: #111;
}

.window-points {
  display: flex;
  gap: 7px;
}

.window-point {
  width: 9px;
  height: 9px;
  border-radius: 50%;

  background: #333;
}

.window-point.yellow {
  background: var(--yellow);
}

.window-title {
  font-size: 0.72rem;
  color: #777;

  text-transform: uppercase;

  letter-spacing: 2px;
}

.game-screen {
  min-height: 410px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  overflow: hidden;

  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.015) 4px,
      rgba(255, 255, 255, 0.015) 5px
    );
}

.game-screen::before {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  border: 1px solid rgba(255, 196, 0, 0.15);

  border-radius: 50%;

  box-shadow: 0 0 80px rgba(255, 196, 0, 0.08);

  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.badger {
  font-size: 7rem;

  position: relative;

  filter: drop-shadow(0 0 30px rgba(255, 196, 0, 0.2));

  animation: badgerFloat 4s ease-in-out infinite;
}

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

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

.game-tag {
  position: absolute;

  bottom: 26px;
  left: 26px;

  padding: 8px 12px;

  background: rgba(0, 0, 0, 0.55);

  backdrop-filter: blur(10px);

  border: 1px solid var(--border);

  border-radius: 8px;

  color: var(--yellow);

  font-size: 0.75rem;
  font-weight: 700;
}

.game-stats {
  padding: 16px 20px;

  display: flex;
  justify-content: space-between;

  color: #777;

  font-size: 0.78rem;

  border-top: 1px solid var(--border);
}

/* =========================================================
       STATS
    ========================================================= */

.stats {
  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.012);
}

.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  padding: 40px 0;
}

.stat {
  text-align: center;

  border-right: 1px solid var(--border);
}

.stat:last-child {
  border: none;
}

.stat strong {
  display: block;

  font-size: 2rem;

  color: var(--yellow);
}

.stat span {
  font-size: 0.78rem;

  text-transform: uppercase;

  color: #777;

  letter-spacing: 1.5px;
}

/* =========================================================
       SOBRE
    ========================================================= */

.about {
  padding: 130px 0;
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: center;
}

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

.feature {
  padding: 22px;

  border: 1px solid var(--border);

  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent);

  border-radius: 14px;

  display: flex;
  gap: 16px;

  transition: 0.25s;
}

.feature:hover {
  transform: translateX(8px);

  border-color: rgba(255, 196, 0, 0.25);
}

.feature-icon {
  min-width: 46px;
  height: 46px;

  border-radius: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 196, 0, 0.1);

  color: var(--yellow);

  font-size: 1.3rem;
}

.feature h3 {
  font-size: 1rem;

  margin-bottom: 5px;
}

.feature p {
  color: #777;

  font-size: 0.86rem;

  line-height: 1.5;
}

/* =========================================================
       GAMES
    ========================================================= */

.games {
  padding: 120px 0;

  background: #0d0d0d;

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);
}

.games-header {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;

  margin-bottom: 50px;
}

.games-link {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9rem;
}

.games-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.game-card {
  background: #141414;

  border: 1px solid var(--border);

  border-radius: 16px;

  overflow: hidden;

  transition: 0.3s;

  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-9px);

  border-color: rgba(255, 196, 0, 0.3);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.game-cover {
  height: 210px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.cover-one {
  background: radial-gradient(circle, #3447ff, #111741 60%, #070a1a);
}

.cover-two {
  background: radial-gradient(circle, #d81443, #39101d 60%, #14060a);
}

.cover-three {
  background: radial-gradient(circle, #18bd7b, #113a2b 60%, #06150f);
}

.game-cover span {
  font-size: 4rem;

  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

.play-icon {
  position: absolute;

  width: 52px;
  height: 52px;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.72);

  border: 1px solid rgba(255, 255, 255, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;

  transform: scale(0.7);

  transition: 0.25s;
}

.game-card:hover .play-icon {
  opacity: 1;

  transform: scale(1);
}

.game-info {
  padding: 20px;
}

.game-category {
  color: var(--yellow);

  font-size: 0.7rem;

  text-transform: uppercase;

  font-weight: 800;

  letter-spacing: 1.5px;
}

.game-info h3 {
  margin: 8px 0;

  font-size: 1.15rem;
}

.game-info p {
  color: #777;

  font-size: 0.85rem;

  line-height: 1.5;
}

.game-meta {
  display: flex;

  justify-content: space-between;

  margin-top: 18px;

  color: #666;

  font-size: 0.75rem;
}

/* =========================================================
       STUDIO
    ========================================================= */

.studio {
  padding: 140px 0;
}

.studio-grid {
  display: grid;

  grid-template-columns: 0.85fr 1.15fr;

  align-items: center;

  gap: 70px;
}

.studio-list {
  margin-top: 32px;

  display: grid;

  gap: 14px;
}

.studio-item {
  display: flex;

  align-items: center;

  gap: 12px;

  color: #bbb;
}

.studio-check {
  width: 26px;
  height: 26px;

  border-radius: 50%;

  background: rgba(255, 196, 0, 0.1);

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--yellow);

  font-weight: bold;
}

/* =========================================================
       EDITOR MOCKUP
    ========================================================= */

.editor {
  border: 1px solid var(--border);

  border-radius: 18px;

  background: #101010;

  overflow: hidden;

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.editor-header {
  padding: 13px 18px;

  border-bottom: 1px solid var(--border);

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.editor-name {
  font-size: 0.82rem;

  color: #888;
}

.run-button {
  background: var(--yellow);

  color: #111;

  border: none;

  padding: 7px 13px;

  border-radius: 7px;

  font-weight: 800;

  cursor: pointer;
}

.editor-body {
  display: grid;

  grid-template-columns: 130px 1fr;
}

.files {
  border-right: 1px solid var(--border);

  padding: 20px 14px;

  min-height: 310px;

  color: #666;

  font-size: 0.75rem;
}

.files strong {
  color: #bbb;

  display: block;

  margin-bottom: 15px;
}

.file {
  margin: 9px 0;

  cursor: pointer;
}

.file.active {
  color: var(--yellow);
}

.code {
  padding: 22px;

  font-family: Consolas, Monaco, monospace;

  font-size: 0.78rem;

  line-height: 1.7;

  color: #929292;

  overflow: hidden;
}

.code-yellow {
  color: var(--yellow);
}

.code-blue {
  color: #69a7ff;
}

.code-pink {
  color: #ff6d96;
}

.code-green {
  color: #65d69c;
}

/* =========================================================
       COMO FUNCIONA
    ========================================================= */

.how {
  padding: 120px 0;

  background: #0d0d0d;

  border-top: 1px solid var(--border);
}

.steps {
  margin-top: 55px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.step {
  position: relative;

  border: 1px solid var(--border);

  border-radius: 15px;

  padding: 30px;

  background: rgba(255, 255, 255, 0.015);
}

.step-number {
  font-size: 3.5rem;

  font-weight: 900;

  color: rgba(255, 196, 0, 0.12);

  line-height: 1;
}

.step h3 {
  margin: 15px 0 10px;

  font-size: 1.2rem;
}

.step p {
  color: #777;

  font-size: 0.88rem;

  line-height: 1.6;
}

/* =========================================================
       CTA
    ========================================================= */

.cta {
  padding: 130px 0;
}

.cta-box {
  border: 1px solid rgba(255, 196, 0, 0.2);

  background: linear-gradient(
    135deg,
    rgba(255, 196, 0, 0.12),
    rgba(255, 138, 0, 0.03),
    #111
  );

  border-radius: 24px;

  padding: 80px 30px;

  text-align: center;

  position: relative;

  overflow: hidden;
}

.cta-box::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  background: var(--yellow);

  filter: blur(130px);

  opacity: 0.08;

  right: -100px;
  top: -100px;
}

.cta-box h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);

  max-width: 750px;

  margin: auto auto 20px;
}

.cta-box p {
  color: #888;

  max-width: 600px;

  margin: auto auto 32px;

  line-height: 1.7;
}

/* =========================================================
       FOOTER
    ========================================================= */

footer {
  border-top: 1px solid var(--border);

  padding: 55px 0 25px;

  background: #080808;
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr;

  gap: 60px;
}

.footer-about {
  color: #666;

  margin-top: 18px;

  max-width: 370px;

  line-height: 1.6;

  font-size: 0.85rem;
}

.footer-title {
  margin-bottom: 18px;

  font-size: 0.88rem;
}

.footer-links {
  list-style: none;

  display: grid;

  gap: 10px;
}

.footer-links a {
  color: #666;

  font-size: 0.82rem;

  transition: 0.2s;
}

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

.footer-bottom {
  margin-top: 50px;

  padding-top: 20px;

  border-top: 1px solid var(--border);

  display: flex;

  justify-content: space-between;

  color: #4d4d4d;

  font-size: 0.75rem;
}

/* =========================================================
       ANIMAÇÕES
    ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.7s,
    transform 0.7s;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
       RESPONSIVO
    ========================================================= */

@media (max-width: 950px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav-links.mobile {
    position: absolute;

    top: 76px;
    left: 0;

    width: 100%;

    padding: 25px;

    display: flex;

    flex-direction: column;

    background: rgba(9, 9, 9, 0.98);

    border-bottom: 1px solid var(--border);
  }

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

    gap: 55px;
  }

  .hero {
    padding-top: 130px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .game-window {
    max-width: 650px;

    margin: auto;
  }

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

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

@media (max-width: 650px) {
  .hero {
    min-height: auto;

    padding-bottom: 100px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;

    justify-content: center;
  }

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

  .stat {
    border: none;

    padding: 20px;
  }

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

  .games-header {
    align-items: start;

    flex-direction: column;
  }

  .editor-body {
    grid-template-columns: 90px 1fr;
  }

  .code {
    font-size: 0.65rem;

    padding: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 10px;
  }
}
