:root {
  --bg-dark: #07080a;
  --text-main: #f0f2f5;
  --text-muted: #d1d5db;
  --gold-accent: #c8aa6e;
}

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

/* ROOT OVERFLOW FIX: Avoid 100vw which causes horizontal scrollbar when vertical scrollbar appears */
html, body {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

/* Scroll Container Snap Engine */
#app-container {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.page {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  overflow: hidden;
}

/* Fixed Navigation Dots */
.nav-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(200, 170, 110, 0.8);
}

/* Inline Dynamic Hyperlinks */
.inline-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.inline-link:hover {
  opacity: 0.8;
}

/* DESKTOP LAYOUT (2-Column Grid) */
.manager-card {
  width: 82vw;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem 4rem;
  align-items: center;
  position: relative;
  z-index: 4;
}

.manager-info {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 4;
}

/* BRAND HEADER & ALIGNED CREATOR ANNOTATION */
.brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0.8rem;
}

.brand-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-title-group h2 {
  font-size: 4.05rem; /* Scaled down to 0.9x (from 4.5rem) */
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.creator-annotation {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--theme-color, var(--gold-accent));
  opacity: 0.9;
  margin-top: 0rem;
  margin-left: 0.4rem; /* Offsets "by" slightly to the right */
  letter-spacing: 0.3px;
}

.creator-annotation span {
  font-weight: 700;
  margin-left: 0.15rem;
}

.manager-info .tagline {
  font-size: 1.4rem;
  margin-bottom: 2.2rem;
  font-weight: 600;
}

.features-list {
  list-style: none;
  margin-bottom: 1rem;
}

.features-list li {
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.2rem;
}

.feature-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--theme-color, currentColor);
}

/* GALLERY CONTAINER */
.gallery-carousel-container {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 483px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 4;
}

.action-buttons-row {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-asset-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin: 0;
  display: block;
}

.btn-gold {
  background: var(--gold-accent);
  color: #000;
  box-shadow: 0 4px 15px rgba(200, 170, 110, 0.35);
}

.explore-btn-pos {
  margin-top: 7vh;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-discord {
  background: #5865F2;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background: #4752C4;
}

/* TITLE PAGE */
/* TITLE PAGE & CROSS-FADE OVERLAY */
#title-page {
  background-color: var(--bg-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dark Tint Overlay (z-index: 2) */
#title-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.40) 0%, rgba(6, 7, 10, 0.60) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Dynamic Fade Overlay (z-index: 1 - sits directly above base image, below dark tint) */
#title-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* Hero Content (z-index: 3 - sits above all background layers) */
.title-content, .scroll-hint {
  position: relative;
  z-index: 3;
}

.title-content {
  max-width: 1000px;
  margin-top: -13vh;
  position: relative;
  z-index: 2;
}

.title-content h1 {
  font-size: 5.5rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #f0e6d2 50%, #c8aa6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.title-content p {
  font-size: 1.7rem;
  color: #f0f2f5;
  max-width: 850px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  animation: bounce 2s infinite;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.mascot-bg-img {
  position: absolute;
  left: 6vw;
  bottom: 0;
  height: 87vh;
  max-width: 50vw;
  opacity: 0.13;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.08));
}

/* THEMES WITH LEFT-ANCHORED BACKGROUND SCALING */
.theme-cslolgo { 
  position: relative;
  background-image: url('assets/cslol-go_bg.png');
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
}

.theme-cslolgo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 2, 31, 0.85) 0%, rgba(6, 1, 14, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

.theme-cslolgo h2 { color: #d8b4fe; }
.theme-cslolgo .btn-main { background: #9d4edd; color: #fff; }

.theme-celestial { 
  position: relative;
  background-image: url('assets/celestial_bg.png');
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
}

.theme-celestial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 7, 20, 0.85) 0%, rgba(10, 5, 24, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

.celestial-glow-overlay {
  position: absolute;
  inset: 0;
  background: url('assets/celestial_glow.png') left center/cover no-repeat;
  opacity: 0.70;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.theme-celestial h2 { color: #c084fc; }
.theme-celestial .btn-main { background: linear-gradient(90deg, #9333ea, #c084fc); color: #fff; }

/* LTK MANAGER: SLIGHTLY LIGHTER BLUE RADIAL + SOFTENED DARK TINT OVERLAY */
.theme-ltk { 
  position: relative;
  /* Shifted inner glow from #024168 to a brighter #0284c7/cyan tint, and base from #01030d to #0a1128 */
  background: radial-gradient(circle at 80% 20%, #0369a1 0%, #071026 100%); 
}

.theme-ltk::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Reduced overlay dark opacity (from 0.75/0.90 down to 0.55/0.75) */
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(1, 3, 13, 0.75) 100%);
  z-index: 2;
  pointer-events: none;
}

.theme-ltk h2 { color: #38bdf8; }
.theme-ltk .btn-main { background: #0284c7; color: #fff; }

/* GALLERY CONTAINER */
.gallery-viewport {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide-img {
  height: 100%;
  width: auto;
  max-width: 48vw;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: none;
}

.gallery-slide-img.active {
  display: block;
}

.gallery-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.gallery-not-found svg {
  width: 64px;
  height: 64px;
  opacity: 0.35;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.carousel-indicators {
  position: absolute;
  bottom: -28px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: var(--text-main);
  transform: scale(1.3);
}

/* FEATURES PAGE */
#comparison-page { 
  position: relative;
  background-image: url('assets/features.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#comparison-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.88) 0%, rgba(6, 7, 10, 0.94) 100%);
  z-index: 1;
  pointer-events: none;
}

.matrix-content {
  width: 82vw;
  max-width: 1400px;
  position: relative;
  z-index: 2;
}

.matrix-content h2 { 
  font-size: 3.5rem; 
  margin-bottom: 2.5rem; 
  color: var(--gold-accent); 
  text-align: center; 
}

/* OPAQUE TABLE CONTAINER & HEADER */
.table-container { 
  width: 100%; 
  background-color: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.12); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

table { 
  width: 100%; 
  border-collapse: collapse; 
  text-align: left; 
}

th, td { 
  padding: 1.4rem 2rem; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); 
  font-size: 1.2rem; 
}

th { 
  background-color: #12141a;
  color: var(--gold-accent); 
  font-size: 1.35rem; 
}

.matrix-status-icon {
  width: 26px;
  height: 26px;
  display: inline-block;
  vertical-align: middle;
}

.matrix-status-icon.check-no {
  opacity: 0.35;
}

/* MATRIX STATUS TEXT & SOON™ IMAGE STYLING */
.matrix-status-text {
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: capitalize;
}

.matrix-status-soonsvg {
  height: 26px; /* Updated from 22px to 26px */
  width: auto;
  vertical-align: middle;
  display: inline-block;
  user-select: none;
  /* Matches Medium status yellow-orange (#f59e0b) color tint */
  filter: invert(62%) sepia(87%) saturate(1430%) hue-rotate(357deg) brightness(99%) contrast(97%);
}
/* ==================== MOBILE LAYOUT ==================== */
/* ==================== MOBILE LAYOUT ==================== */

.page {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 900px) {
  .page {
    padding: 0.5rem 0.5rem 1rem;
    justify-content: flex-start;
    align-items: center;
  }

  .title-content {
    margin: auto 0;
    text-align: center;
    width: 90%;
  }

  .title-content h1 {
    font-size: 2.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
  }

  .title-content p {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .explore-btn-pos {
    margin-top: 3vh;
  }

  /* MANAGER CARD: INCREASED TOP DISTANCE */
  .manager-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: auto;
    max-width: 540px;
    margin: 3.5rem auto 0; /* Pushes content noticeably lower from top edge */
    padding-bottom: 1rem;
    gap: 0.5rem;
  }

  .manager-info {
    width: 92%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .brand-header {
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 0.4rem;
  }
  .btn-secondary {
    display: none !important;
  }

  /* BRAND ICON ~2.5x LARGER */
  .brand-logo-img {
    width: 110px;
    height: 110px;
  }

  .brand-title-group {
    align-items: flex-start;
    text-align: left;
  }

  /* MANAGER NAME ~2.5x LARGER */
  .brand-title-group h2 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
  }

  .creator-annotation {
    font-size: 1.15rem;
    margin-top: 0.2rem;
    margin-left: 0.2rem;
  }

  .manager-info .tagline {
    font-size: 1rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .features-list {
    margin-bottom: 0.2rem;
    text-align: left;
    display: inline-block;
  }

  .features-list li {
    font-size: 0.95rem;
    gap: 8px;
    margin-bottom: 0.25rem;
  }

  /* LARGER GALLERY CONTAINER */
  .gallery-carousel-container {
    width: 100%;
    /* Allow the container height to adjust automatically based on the image bounds */
    height: auto;
    max-height: 34vh;
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-slide-img {
    /* Set maximum width constraint to 85% of screen width */
    max-width: 90vw;
    /* Allow height to scale down proportionally if 85vw is hit */
    max-height: 28vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
  }

  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  /* BUTTONS SHIFTED LOWER BELOW GALLERY */
  .action-buttons-row {
    width: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 3rem; /* Pushes buttons lower */
    margin-bottom: 0.5rem;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    justify-content: center;
    text-align: center;
  }

  .mascot-bg-img {
    left: 0;
    height: 35vh;
    max-width: 90vw;
    opacity: 0.08;
  }

  /* FEATURES COMPARISON PAGE - POSITIONED MUCH HIGHER */
  #comparison-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0rem;
  }

  .matrix-content {
    width: 95%;
    margin: -1.5rem auto 0; /* Negative top margin pulls features tab much higher */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .matrix-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    text-align: center;
  }

  .table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
    text-align: center;
  }

  th {
    font-size: 0.9rem;
  }

  .nav-dots {
    display: none;
  }
}

@media (max-width: 400px) {
  .brand-logo-img {
    width: 80px;
    height: 80px;
  }

  .brand-title-group h2 {
    font-size: 2.4rem;
  }

  .gallery-carousel-container {
    height: 210px;
  }

  .action-buttons-row {
    margin-top: 2.2rem;
  }

  th, td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
}