/* Reset & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-red: #dc2626;
  --color-red-hover: #b91c1c;
  --color-red-dark: #991b1b;
  --color-neutral-950: #0a0a0a;
  --color-neutral-900: #171717;
  --color-neutral-800: #262626;
  --color-neutral-700: #404040;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-900: #111827;
  --max-width: 1280px;

  --font-sans: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'YouTube Sans', 'Roboto', sans-serif;
  --font-display: 'YouTube Display', 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: #000;
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
  font-family: var(--font-sans);
}

::selection {
  background-color: var(--color-red);
  color: #fff;
}

h1 {
  font-family: var(--font-heading);
}

h2, h3, p {
  font-family: var(--font-sans);
}

.landing-page-header,
.hero-title,
.section-title,
.sub-header {
  font-family: var(--font-display);
}

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

/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 1px solid transparent;
}


.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
  padding: 12px 32px;
  font-size: 1rem;
}

.btn-outline:hover {
  background-color: var(--color-neutral-700);
}


/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: transparent;
  padding: 8px 24px;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 24px;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Hero Section */
.hero-section {
  padding-top: 128px;
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
  }
}

.hero-content {
  flex: 1;
  z-index: 10;
}

.hero-badge {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 8rem;
  }
}

.hero-subtitle {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 1.125rem;
  max-width: 448px;
  line-height: 1.625;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  width: 100%;
  max-width: 576px;
}

.hero-visual-card {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}

.hero-card-accent {
  position: absolute;
  top: 32px;
  left: 16px;
  right: 0;
  bottom: 0;
  height: calc(100% - 20px);
  background-color: var(--color-red);
  border-radius: 24px;
  border: 1px solid var(--color-neutral-800);
  overflow: hidden;
}

.hero-card-inner {
  position: absolute;
  inset: 0;
  background-color: var(--color-neutral-900);
  background: linear-gradient(135deg, var(--color-gray-900) 0%, #000 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* Creators Section */
.creators-section {
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section-header {
  max-width: 896px;
  margin: 0 auto 48px auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 6rem;
  }
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--color-gray-300);
  max-width: 576px;
  margin: 0 auto;
}

/* Carousel */
.carousel-container {
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-top: 16px;
  padding-bottom: 32px;
  padding-left: 16px;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 360px;
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

@media (max-width: 768px) {
  .game-card {
    flex: 0 0 280px;
  }
}

.game-card:hover {
  transform: scale(1.02);
}

.game-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.game-card-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  text-align: left;
}

.game-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.05em;
  color: #fff;
  transform: rotate(-2deg);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: #fff;
  color: #000;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

/* Level Up Section */
.levelup-section {
  padding: 64px 24px;
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

.sub-header {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  padding-top: 32px;
  letter-spacing: 0.025em;
}

@media (min-width: 768px) {
  .sub-header {
    font-size: 3.75rem;
  }
}

/* Generation Methods Grid */
.grid-section {
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 96px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .methods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.method-card {
  background-color: rgba(23, 23, 23, 0.5);
  border-radius: 16px;
  padding: 24px;
  transition: background-color 0.3s ease;
}

.method-card:hover {
  background-color: var(--color-neutral-900);
}

.video-container {
  aspect-ratio: 1 / 1;
  background-color: #000;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 28px title size per Figma spec */
.method-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
  color: #fff;
}

.method-description {
  font-family: var(--font-sans);
  color: var(--color-gray-400);
  font-size: 1.125rem;
  line-height: 1.625;
}


/* Marquee Banner */
.marquee-banner {
  background-color: var(--color-red);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--color-red-dark);
  border-bottom: 1px solid var(--color-red-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.marquee-item {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.875rem;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.05em;
  color: #fff;
}

@media (min-width: 768px) {
  .marquee-item {
    font-size: 2.25rem;
  }
}

.marquee-emoji {
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  .marquee-emoji {
    font-size: 2.25rem;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero-container {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .btn {
    width: 100%;
  }
}
