/* =========================================================
   Lightning Link Review Site – Stylesheet
   Palette: #0B0B0F (base), #0A1428 (alt), #FFD400 (accent), #F527CC (pink accent)
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  background-color: #0B0B0F;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 800px;
  margin-bottom: 40px;
}

.subsection-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background-color: #FFD400;
  color: #0B0B0F;
  height: 48px;
  padding: 0 32px;
}

.btn-accent:hover {
  background-color: #ffe033;
  box-shadow: 0 4px 20px rgba(255, 212, 0, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: #FFD400;
  border: 2px solid #FFD400;
  height: 44px;
  padding: 0 32px;
}

.btn-outline:hover {
  background-color: rgba(255, 212, 0, 0.1);
}

/* ---------- 1. Sticky Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background-color: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 212, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
  position: relative;
}

.nav-link:hover {
  color: #FFD400;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFD400;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}


/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 2. Hero ---------- */
.hero {
  padding-top: 128px;
  padding-bottom: 64px;
  background: linear-gradient(170deg, #0A1428 0%, #0B0B0F 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFFFFF 60%, #FFD400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.hero-cta {
  height: 52px;
  padding: 0 36px;
  font-size: 17px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* ---------- 3. Game Grid ---------- */
.game-grid-section {
  background-color: #0A1428;
  overflow-x: hidden;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 212, 0, 0.12);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  min-width: 0;
}

.game-card:hover {
  border-color: rgba(255, 212, 0, 0.35);
  transform: translateY(-2px);
}

.game-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.06) 0%, rgba(10, 20, 40, 0.8) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.game-name {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.game-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 212, 0, 0.08);
}

.game-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-play {
  height: 44px;
  width: 100%;
  font-size: 16px;
}

.btn-demo {
  height: 44px;
  width: 100%;
  font-size: 16px;
}

/* ---------- 4. Overview Section ---------- */
.overview-section {
  background-color: #0B0B0F;
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 720px;
}

.spec-list li {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 24px;
  position: relative;
}

.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FFD400;
}

.spec-list li strong {
  color: #FFD400;
  font-weight: 600;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #FFD400;
  color: #0B0B0F;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card-icon {
  flex-shrink: 0;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 11, 15, 0.78);
}

/* ---------- 5. Other Games Section ---------- */
.other-games-section {
  background-color: #0A1428;
}

/* ---------- Conclusion Card ---------- */
.conclusion-section {
  background-color: #0B0B0F;
}

.conclusion-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 212, 0, 0.15);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.conclusion-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.conclusion-card p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.conclusion-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .conclusion-card {
    padding: 32px 24px;
  }
}

/* ---------- 6. Footer ---------- */
.site-footer {
  background-color: #060609;
  border-top: 1px solid rgba(255, 212, 0, 0.1);
  padding: 48px 0 32px;
}

.footer-licenses {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.license-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.license-badge img {
  height: 48px;
  width: auto;
}

.license-badge:hover {
  opacity: 1;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-disclaimer p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copy {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 13px;
  }

  .header-cta {
    padding: 0 16px;
    font-size: 13px;
    height: 38px;
  }

  .logo-img {
    height: 32px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .subsection-title {
    font-size: 20px;
  }

  /* Header mobile */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 11, 15, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 16px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
  }


  .header-cta {
    padding: 0 16px;
    font-size: 13px;
    height: 36px;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-image {
    order: -1;
  }

  .hero-img {
    max-width: 100%;
  }

  /* Game grid mobile */
  .game-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-card {
    padding: 20px;
  }

  .game-actions {
    flex-direction: column;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-licenses {
    gap: 16px;
  }
}

/* Large Desktop */
@media (min-width: 769px) {
  .game-actions {
    flex-direction: row;
    gap: 12px;
  }

  .btn-play,
  .btn-demo {
    width: auto;
    min-width: 160px;
  }
}

/* ---------- Entrance Animations ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-card.animate-in:nth-child(2) { transition-delay: 0.07s; }
.game-card.animate-in:nth-child(3) { transition-delay: 0.14s; }
.game-card.animate-in:nth-child(4) { transition-delay: 0.21s; }

.feature-card.animate-in:nth-child(2) { transition-delay: 0.07s; }
.feature-card.animate-in:nth-child(3) { transition-delay: 0.14s; }
.feature-card.animate-in:nth-child(4) { transition-delay: 0.21s; }
.feature-card.animate-in:nth-child(5) { transition-delay: 0.28s; }
.feature-card.animate-in:nth-child(6) { transition-delay: 0.35s; }

/* Focus visible */
:focus-visible {
  outline: 2px solid #FFD400;
  outline-offset: 2px;
}

/* Skip to content (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
