/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  /* Background colors */
  --bg-primary:    #0A0A0F;
  --bg-secondary:  #131318;
  --bg-elevated:   #1C1C24;

  /* Accent colors */
  --accent-primary:   #FF3B7A;
  --accent-secondary: #FF6B5B;
  --accent-glow:      rgba(255, 59, 122, 0.25);

  /* Rank badges — ONLY used on achievement pills, never as global decoration */
  --rank-pro:    #4ADE80;
  --rank-master: #FACC15;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #A0A0B0;
  --text-muted:     #6B6B7A;

  /* Borders */
  --border-subtle: #2A2A35;

  /* Layout */
  --section-padding-desktop: 96px;
  --section-padding-mobile:  56px;
  --container-max:  1200px;
  --container-pad:  24px;

  /* Border radii */
  --radius-card: 16px;
  --radius-btn:  12px;
  --radius-pill: 999px;

  /* Global transition */
  --transition: 200ms ease-out;

  /* Hero mobile watermark — change this single value to adjust opacity */
  --hero-mobile-watermark-opacity: 0.18;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

.icon {
  flex-shrink: 0;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.65;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 14px;
}


/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
}


/* ============================================================
   COMPONENTS — BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Primary — fuchsia filled */
.btn--primary {
  background: var(--accent-primary);
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 44px rgba(255, 59, 122, 0.5);
}

/* Outline — fuchsia border */
.btn--outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
  padding: 10px 20px;
  font-size: 14px;
}
.btn--outline:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* Ghost — transparent, secondary text */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 8px;
  font-size: 16px;
}
.btn--ghost:hover {
  color: var(--text-primary);
}

/* Size modifiers */
.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}


/* ============================================================
   COMPONENTS — PILLS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 59, 122, 0.08);
  border: 1px solid rgba(255, 59, 122, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Pulsing green online dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rank-pro);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

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


/* ============================================================
   COMPONENTS — BADGES (rank certifications only)
   ============================================================ */
.badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge--pro {
  background: rgba(74, 222, 128, 0.12);
  color: var(--rank-pro);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.badge--master {
  background: rgba(250, 204, 21, 0.12);
  color: var(--rank-master);
  border: 1px solid rgba(250, 204, 21, 0.28);
}


/* ============================================================
   COMPONENTS — PLACEHOLDER IMAGES
   These are replaced with real assets by dropping files into /assets/
   ============================================================ */
.placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  padding: 16px;
}

.placeholder-img.tall {
  aspect-ratio: 4 / 5;
}


/* ============================================================
   ANIMATIONS — SCROLL-TRIGGERED FADE-UP
   Elements start hidden; JS adds .visible when they enter the viewport.
   --delay CSS variable (set inline) staggers children.
   ============================================================ */
/* Default: fully visible — no-JS fallback. If JS never runs, nothing stays hidden. */
.animate-fade-up {
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
  transition-delay: var(--delay, 0s);
}

/* JS is active — hide elements until IntersectionObserver reveals them */
html.js-ready .animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
}

html.js-ready .animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   SECTION DIVIDER — separates Featured from Gallery in Results
   ============================================================ */
.section-divider {
  height: 1px;
  background: var(--border-subtle);
  max-width: 120px;
  margin: 64px auto;
}


/* ============================================================
   1. NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 300ms ease-out;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo-link {
  display: flex;
  align-items: center;
}

.nav__logo {
  height: 72px;
  width: auto;
}


/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Desktop video layer */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay for text legibility over video */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.92);
  z-index: 1;
}

/* Mobile fallback: hidden on desktop, shown via media query */
.hero__mobile-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 59, 122, 0.15) 0%, var(--bg-primary) 65%);
}

/* .hero__mobile-watermark removed — watermark eliminated per design iteration */

/* Two-column layout: text 60% (3fr) + character image 40% (2fr) */
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: 48px;
  padding-top: 136px;
  padding-bottom: 80px;
}

/* Text column — width comes from grid, no max-width needed */
.hero__content {
  min-width: 0;
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.07;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Bouncing arrow on secondary CTA */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

.hero__arrow {
  animation: bounce-down 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* Right column: character image with ambient glow behind it */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse at center, rgba(255, 59, 122, 0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero__colt {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}


/* ============================================================
   3. STATS
   ============================================================ */
.stats {
  background: var(--bg-primary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat__number {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  color: var(--text-primary);
  text-shadow: 0 0 32px var(--accent-glow);
  line-height: 1;
  margin-bottom: 0;
}

.stat__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Fuchsia underline beneath each stat number */
.stat__number::after {
  content: '';
  display: block;
  height: 2px;
  width: 40%;
  background: var(--accent-primary);
  margin: 12px auto 8px;
  transition: width 200ms ease-out;
}

/* Expand underline on hover — only on hover-capable devices (not touch) */
@media (hover: hover) {
  .stat:hover .stat__number::after {
    width: 100%;
  }
}


/* ============================================================
   4 + 5. RESULTS (FEATURED + GALLERY — unified)
   ============================================================ */
.results {
  background: var(--bg-secondary);
}

/* Featured video player */
.featured-video {
  margin-bottom: 28px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  max-height: 480px;
}

.featured-video__player {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: contain;
  background: var(--bg-elevated);
}

.featured-video__meta {
  padding: 16px 20px;
  background: var(--bg-elevated);
}

.featured-video__caption {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.featured-video__muted {
  font-size: 13px;
  color: var(--text-muted);
}

/* Featured row: two evidence cards */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.evidence-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition);
}

.evidence-card:hover {
  border-color: rgba(255, 59, 122, 0.35);
}

.evidence-card__img-wrap {
  position: relative;
}

.evidence-card__img-wrap .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.evidence-card__img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.evidence-card__caption {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 14px 16px 4px;
}

.evidence-card__muted {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 16px 14px;
  line-height: 1.5;
}

/* Gallery tab navigation */
.tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs__nav::-webkit-scrollbar {
  display: none;
}

.tabs__tab {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
  font-family: 'Inter', sans-serif;
}

.tabs__tab:hover {
  color: var(--text-secondary);
}

.tabs__tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
}

.tabs__tab:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Contextual subtitle above each tab's grid */
.tabs__context {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.tabs__panel {
  display: block;
}

.tabs__panel[hidden] {
  display: none;
}

/* Gallery screenshot grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-card:hover {
  border-color: rgba(255, 59, 122, 0.35);
  transform: translateY(-2px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-card__caption {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 12px;
}


/* ============================================================
   6. COMMUNITY
   ============================================================ */
.community {
  background: var(--bg-primary);
}

/* Custom Discord widget card */
.discord-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.discord-widget__server {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-widget__logo {
  color: #5865F2;
  flex-shrink: 0;
}

.discord-widget__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.discord-widget__stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-widget__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.discord-widget__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Community screenshots below widget — 1/3 sidebar + 2/3 reviews */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.community-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.community-card__caption {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 16px;
}

.community-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: block;
  background: var(--bg-elevated);
}


/* ============================================================
   7. WHAT WE DO
   ============================================================ */
.services {
  background: var(--bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 59, 122, 0.1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 59, 122, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.service-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================================
   8. FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 59, 122, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.final-cta__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 52px);
  color: var(--text-primary);
  line-height: 1.12;
  max-width: 720px;
}

.final-cta__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 8px;
}

/* Colt mascot anchored bottom-right of the dark Final CTA section */
.final-cta__colt {
  position: absolute;
  bottom: 0;
  right: 64px;
  height: 280px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}


/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 24px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  height: 44px;
  width: auto;
  opacity: 0.8;
}

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__discord-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__discord-link:hover {
  color: var(--accent-primary);
}

.footer__disclaimer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.footer__disclaimer-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}


/* ============================================================
   RESPONSIVE — 1024px (tablet landscape)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}


/* ============================================================
   RESPONSIVE — 768px (tablet portrait)
   ============================================================ */
@media (max-width: 768px) {
  .featured-video,
  .featured-video__player {
    max-height: 280px;
  }

  .featured-row {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .discord-widget {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .discord-widget__count {
    font-size: 28px;
  }

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

  .community-card img {
    height: auto;
  }

  .final-cta__colt {
    height: 140px;
    right: 24px;
  }

  /* Hero mobile: block layout, Colt as ambient background behind text */
  .hero__inner {
    display: block;
    position: relative;
    padding-top: 116px;
    padding-bottom: 60px;
  }

  .hero__content {
    position: relative;
    z-index: 2;
  }

  .hero__visual {
    position: absolute;
    right: -24px;
    bottom: 0;
    height: 50vh;
    width: auto;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
  }

  .hero__visual-glow {
    display: none;
  }

  .hero__colt {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.3;
    filter: none;
  }

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

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


/* ============================================================
   RESPONSIVE — 640px (mobile)
   ============================================================ */
@media (max-width: 640px) {
  .final-cta__colt {
    height: 100px;
    right: 16px;
  }

  .section {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
  }

  /* Hide desktop video on mobile, show gradient + watermark */
  .hero__video,
  .hero__overlay {
    display: none;
  }

  .hero__mobile-bg {
    display: block;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }

  .stat {
    text-align: left;
  }

  .tabs__tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .final-cta {
    text-align: left;
  }

  .final-cta__content {
    align-items: flex-start;
  }

  .section-subtitle {
    margin-bottom: 40px;
  }
}
