/**
 * METATRIBES - Custom Styling
 *
 * This file provides easy customization for your website.
 * Simply edit the CSS variables below to change colors, fonts, and more.
 */

:root {
  /* Brand Colors */
  --brand-primary: #C2FE0C;      /* Main accent color (lime green) */
  --brand-bg: #000000;            /* Background color (black) */
  --brand-text: #FFFFFF;          /* Main text color (white) */
  --brand-text-secondary: #999999; /* Secondary text color (gray) */

  /* Custom Fonts */
  --font-primary: 'Nyxerin', sans-serif;
  --font-menu: 'TT Interphases Pro', sans-serif;

  /* Override theme max-width to make site full width */
  --theme-page-max-width: 100vw !important;
}

/* Force all containers to be full width */
.container.responsivegrid,
.cmp-container_animated-block,
.cmp-container_animated-block .cmp-container,
.container.responsivegrid .cmp-container {
  max-width: 100vw !important;
  width: 100% !important;
}

/**
 * CUSTOM CURSOR - JavaScript-based cursor follower
 */

/* Hide default cursor */
body, * {
  cursor: none !important;
}

/* Prevent text selection (no blue highlight when clicking/dragging) */
body, * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Custom cursor element styling */
#custom-cursor {
  position: fixed;
  width: 40px;
  height: 37px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 1))
          drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)); /* Black outline + subtle white glow for visibility on all backgrounds */
}

#custom-cursor img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Cursor click animation */
#custom-cursor.clicking {
  width: 60px;
  height: 55.5px;
  animation: cursorFlash 0.4s ease;
}

@keyframes cursorFlash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/**
 * FONT LOADING
 */

/* Nyxerin Font */
@font-face {
  font-family: 'Nyxerin';
  src: url('../fonts/NYXERIN.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block; /* Block rendering until font loads - prevents flash */
}

/* TT Interphases Pro Mono Font */
@font-face {
  font-family: 'TT Interphases Pro';
  src: url('../fonts/tt_interphases_pro/TT%20Interphases%20Pro%20Mono%20Trial%20Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block; /* Block rendering until font loads - prevents flash */
}

@font-face {
  font-family: 'TT Interphases Pro';
  src: url('../fonts/tt_interphases_pro/TT%20Interphases%20Pro%20Mono%20Trial%20Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block; /* Block rendering until font loads - prevents flash */
}

/**
 * APPLY CUSTOM COLORS
 * These rules override the default site styling
 */

/* Override primary accent color throughout the site */
.theme--metatribes {
  --color-primary: var(--brand-primary) !important;
}

/* Custom background colors */
body {
  background-color: var(--brand-bg);
}

/* Custom text colors */
body,
.cmp-text,
.cmp-title,
p {
  color: var(--brand-text);
}

/* Apply NYXERIN font to navigation with green color */
.cmp-metatribesheader__navigation-internal_link,
.cmp-metatribesheader__navigation-external_link {
  font-family: var(--font-primary) !important;
  letter-spacing: 0.05em;
  color: #D8FD5B !important;
}

/* Hide JOIN DISCORD button */
.cmp-metatribesheader__calltoaction {
  display: none !important;
}

/* Hide language selector that causes white squares on mobile */
.cmp-metatribesheader__language,
.cmp-languagenavigation,
.cmp-metatribeslanguagenavigation,
.cmp-languagenavigation__dropdown,
.cmp-languagenavigation__button,
.cmp-metatribesheader__language img,
.cmp-metatribesheader__language-icon {
  display: none !important;
}

/* Remove white line/border under the header menu */
.cmp-metatribesheader,
.header,
.cmp-metatribesheader__navigation-container {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* ===== HIDE ALL OLD HEADERS ===== */

.header-desktop-only,
.header-mobile-only,
.cmp-metatribesheader {
  display: none !important;
}

/* ===== NEW CUSTOM MENU ===== */

#metatribes-menu {
  background-color: transparent; /* Transparent outer wrapper */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 50px;
  transition: background-color 0.3s ease;
}

/* When scroll animation is active, make menu background transparent */
#metatribes-menu.cmp-metatribesheader__background-on-animation,
#metatribes-menu.custom-header__background-on-animation {
  background-color: transparent !important;
}

.menu-container {
  display: flex;
  align-items: center;
  max-width: none;
  width: 100%;
  padding: 0 30px; /* Add side padding to respect margins */
  position: relative;
  height: 100%;
  background-color: #000000; /* Black background */
  border-bottom: 1px solid #D8FD5B; /* Green line at bottom - thin */
}

.menu-logo {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  margin-left: -30px; /* Compensate for container padding to align with page margins */
  position: relative; /* Changed from absolute */
  height: 100%;
  margin-right: auto; /* Push content to the right */
}

.menu-logo a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  margin: 0;
}

.menu-logo img {
  height: 40px !important;
  width: auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.menu-links {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex: 1; /* Take available space */
}

.menu-links a {
  font-family: var(--font-menu) !important;
  font-size: 16px;
  color: #D8FD5B !important; /* Green text */
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  text-transform: lowercase;
  white-space: nowrap; /* Prevent link text from wrapping to two lines */
}

.menu-links a::before {
  content: '[';
  margin-right: -0.1em;
}

.menu-links a::after {
  content: ']';
  margin-left: -0.1em;
}

.menu-links a:hover {
  color: #FFFFFF !important; /* White on hover */
}

/* Add top padding to body content to account for fixed menu */
.root.container {
  padding-top: 50px;
}

/* Make METATRIBES brand clickable */
.menu-brand {
  cursor: pointer;
  transition: color 0.3s ease;
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: inherit;
  padding: 0;
}

.menu-brand:hover {
  color: #FFFFFF !important;
}

/* Full Menu Overlay */
.full-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.98);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-menu.active {
  opacity: 1;
  pointer-events: all;
}

.full-menu__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  padding: 80px 60px 40px;
  max-width: 600px;
}

.full-menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 35px;
  width: 100%;
}

.full-menu__link {
  font-family: var(--font-menu) !important;
  font-size: 32px;
  color: #D8FD5B !important;
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

.full-menu__link::before {
  content: '[';
  margin-right: -0.1em;
}

.full-menu__link::after {
  content: ']';
  margin-left: -0.1em;
}

.full-menu__link:hover {
  color: #FFFFFF !important;
}

/* Full menu social links */
.full-menu__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  margin-top: 20px;
  width: 100%;
}

.full-menu__social a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.full-menu__social a:hover {
  transform: translateY(-2px);
}

.full-menu__social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: none !important;
}

.full-menu__social span {
  font-family: var(--font-menu) !important;
  font-size: 18px;
  color: #D8FD5B !important;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

.full-menu__social span::before {
  content: '[';
  margin-right: -0.1em;
}

.full-menu__social span::after {
  content: ']';
  margin-left: -0.1em;
}

.full-menu__social a:hover span {
  color: #FFFFFF !important;
}

/* Responsive - Mobile */
@media (max-width: 1024px) {
  .menu-container {
    padding: 0 20px; /* Smaller side padding on mobile */
  }

  .menu-logo {
    margin-left: -20px; /* Compensate for smaller padding on mobile */
  }

  .menu-links {
    display: none !important; /* Hide desktop menu on mobile */
  }

  .full-menu__link {
    font-size: 24px;
  }

  .full-menu__content {
    gap: 50px;
    padding: 80px 40px 40px;
  }

  .full-menu__links {
    gap: 30px;
  }

  .full-menu__social img {
    width: 36px;
    height: 36px;
  }

  .full-menu__social span {
    font-size: 16px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .menu-container {
    padding: 0 15px; /* Even smaller side padding */
  }

  .menu-logo {
    margin-left: -15px; /* Compensate for smaller padding on small mobile */
  }

  .full-menu__link {
    font-size: 20px;
  }

  .full-menu__content {
    gap: 40px;
    padding: 80px 30px 40px;
  }

  .full-menu__links {
    gap: 25px;
  }

  .full-menu__social {
    gap: 20px;
  }
}

/* AGGRESSIVELY hide all instances of the awakening begins button/text */
.cmp-video__button,
button.cmp-video__button,
.cmp-video__button *,
.cmp-video__text,
h1.cmp-video__text,
.js-play-video,
h1.js-play-video,
.cmp-video__container button,
.cmp-video__container h1 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
}

.video__modal {
  display: none !important;
}

/* Hide video play/pause toggle buttons */
.cmp-video__video-toggle,
.cmp-video__play-background,
.cmp-video__pause-background {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/**
 * BUTTON CUSTOMIZATION
 */
.cmp-button--primary,
button.cmp-button--primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-bg) !important;
}

.cmp-button--primary:hover,
button.cmp-button--primary:hover {
  opacity: 0.9;
}

/**
 * LINK CUSTOMIZATION
 */
a {
  color: var(--brand-primary);
}

a:hover {
  opacity: 0.8;
}

/**
 * NAVIGATION CUSTOMIZATION
 */
.cmp-header__title {
  color: var(--brand-text) !important;
}

/* Logo background - Grey instead of green */
.cmp-metatribesheader__logo-container {
  background-color: #9F9F9F !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

/* Fix missing burger menu icon with CSS hamburger */
.cmp-metatribesheader__link_closed,
.cmp-metatribesheader__link_opened {
  width: 24px;
  height: 24px;
  position: relative;
  display: block !important;
}

.cmp-metatribesheader__link_closed::before,
.cmp-metatribesheader__link_closed::after,
.cmp-metatribesheader__link_opened::before,
.cmp-metatribesheader__link_opened::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
  left: 0;
  transition: all 0.3s;
}

.cmp-metatribesheader__link_closed::before {
  top: 6px;
  box-shadow: 0 9px 0 var(--brand-primary);
}

.cmp-metatribesheader__link_closed::after {
  bottom: 6px;
}

/* X icon when menu is open */
.cmp-metatribesheader__link_opened::before {
  top: 50%;
  transform: rotate(45deg);
}

.cmp-metatribesheader__link_opened::after {
  top: 50%;
  transform: rotate(-45deg);
}

/**
 * CUSTOM STYLING FOR SPECIFIC SECTIONS
 * Add your own custom CSS rules below this line
 */

/* Change banner background areas to black */
.cmp-video__strip-left,
.cmp-video__strip-bottom {
  background-color: #000000 !important;
}

/* Hide left banner on all screen sizes (desktop and tablet) */
@media (min-width: 481px) {
  .cmp-video__strip-left {
    display: none !important;
  }
}

/* Mobile only: Hide bottom banner */
@media (max-width: 768px) {
  .cmp-video__strip-bottom {
    display: none !important;
  }
}

/* Apply TT Interphases Pro to JOIN DISCORD button */
.cmp-metatribesheader__calltoaction_area {
  font-family: var(--font-menu) !important;
  font-weight: 700;
}

/* Apply TT Interphases Pro to Discord sign-up button */
.cmp-text-block__button a,
.cmp-text-block__button span {
  font-family: var(--font-menu) !important;
  font-weight: 700;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

/* Waitlist trigger button styling */
.cmp-text-block__button.waitlist-trigger,
button.cmp-text-block__button.waitlist-trigger {
  background: #D8FD5B !important;
  border: 2px solid #D8FD5B !important;
  padding: 15px 30px !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  position: relative !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

.cmp-text-block__button.waitlist-trigger span,
.cmp-text-block__button.waitlist-trigger span.button-external,
button.cmp-text-block__button.waitlist-trigger span.button-external {
  color: #000 !important;
  text-transform: lowercase !important;
  font-family: var(--font-primary) !important; /* Nyxerin font */
  font-size: 16px !important;
  letter-spacing: 2px !important;
  display: block !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  pointer-events: none !important; /* Let button handle events */
}

.cmp-text-block__button.waitlist-trigger:hover,
button.cmp-text-block__button.waitlist-trigger:hover {
  background: #000 !important;
  border-color: #D8FD5B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(216, 253, 91, 0.4) !important;
}

.cmp-text-block__button.waitlist-trigger:hover span,
.cmp-text-block__button.waitlist-trigger:hover span.button-external,
button.cmp-text-block__button.waitlist-trigger:hover span.button-external {
  color: #D8FD5B !important;
}

/* Ensure "learn more" button in Choose Your Tribe is always visible */
.fullscreenpitchblock .cmp-text-block__button {
  position: relative !important;
  z-index: 100 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto !important; /* Override parent pointer-events: none */
}

/* Hover effect for "learn more" button in fullscreen pitch blocks */
.fullscreenpitchblock .cmp-text-block__button a {
  border: 2px solid #D8FD5B !important;
  background-color: #D8FD5B !important;
  color: #000000 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  position: relative !important;
  z-index: 100 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  pointer-events: auto !important; /* Override parent pointer-events: none */
}

.fullscreenpitchblock .cmp-text-block__button a:hover {
  background-color: #000000 !important;
  color: #D8FD5B !important;
  border-color: #D8FD5B !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 12px rgba(216, 253, 91, 0.4) !important;
}

/* Ensure hover takes precedence over all other states */
.fullscreenpitchblock:first-child .cmp-text-block__button a:hover,
.fullscreenpitchblock .cmp-fullscreen-pitchblock__pitch-block .cmp-text-block__button a:hover {
  background-color: #000000 !important;
  color: #D8FD5B !important;
  border-color: #D8FD5B !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 12px rgba(216, 253, 91, 0.4) !important;
}

/* Arrow icon turns green on hover for fullscreen pitch block buttons */
.fullscreenpitchblock .cmp-text-block__button a::after {
  transition: filter 0.3s ease !important;
}

.fullscreenpitchblock .cmp-text-block__button a:hover::after {
  filter: brightness(0) saturate(100%) invert(88%) sepia(98%) saturate(428%) hue-rotate(18deg) brightness(105%) contrast(99%) !important;
}

/* Ensure text block content is visible on Choose Your Tribe section */
.fullscreenpitchblock:first-child .cmp-fullscreen-pitchblock__pitch-block {
  position: relative !important;
  z-index: 10 !important;
}

/* Hover effect for "see the trailer" button in pitch block (Earth 2073) - Same as join waitlist */
.pitchblock .cmp-text-block__button a {
  background-color: #D8FD5B !important;
  color: #000000 !important;
  border: 2px solid #D8FD5B !important;
  transition: all 0.3s ease !important;
}

.pitchblock .cmp-text-block__button a:hover {
  background-color: #000000 !important;
  color: #D8FD5B !important;
  border-color: #D8FD5B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(216, 253, 91, 0.4) !important;
}

/* Arrow icon stays black by default */
.pitchblock .cmp-text-block__button a::after {
  filter: brightness(0) !important;
  transition: filter 0.3s ease !important;
}

/* Arrow icon turns green on hover for pitch block buttons */
.pitchblock .cmp-text-block__button a:hover::after {
  filter: brightness(0) saturate(100%) invert(88%) sepia(98%) saturate(428%) hue-rotate(18deg) brightness(105%) contrast(99%) !important;
}

/* SHAPE THE FUTURE OF METATRIBES section - Green background */
.cmp-cta-block-section .titleblock.textblock.cmp-textblock__bg-black {
  background-color: #D8FD5B !important;
  transform: translateZ(0);
  will-change: transform;
}

.cmp-cta-block-section .titleblock.textblock.cmp-textblock__bg-black .cmp-text-block {
  background-color: #D8FD5B !important;
}

/* SHAPE THE FUTURE OF METATRIBES section - Black text */
.cmp-cta-block-section .titleblock.textblock.cmp-textblock__bg-black .cmp-text-block__subtitle,
.cmp-cta-block-section .titleblock.textblock.cmp-textblock__bg-black .cmp-text-block__title,
.cmp-cta-block-section .titleblock.textblock.cmp-textblock__bg-black .cmp-text-block__text {
  color: #000000 !important;
}

/* WHITEPAPER button in SHAPE THE FUTURE OF METATRIBES section - Black background, green text, NYXERIN font */
.cmp-cta-block-section .cmp-text-block__button a {
  font-family: var(--font-primary) !important;
  background-color: #000000 !important;
  color: #D8FD5B !important;
  border: 2px solid #D8FD5B !important;
  font-weight: 400;
  transition: all 0.3s ease !important;
}

/* Hover effect for whitepaper button - Inverse colors */
.cmp-cta-block-section .cmp-text-block__button a:hover {
  background-color: #D8FD5B !important;
  color: #000000 !important;
  border-color: #D8FD5B !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(216, 253, 91, 0.3);
}

/* Arrow icon transitions for whitepaper button */
.cmp-cta-block-section .cmp-text-block__button a::after {
  transition: filter 0.3s ease !important;
}

.cmp-cta-block-section .cmp-text-block__button a:hover::after {
  filter: brightness(0) !important;
}

/* Apply NYXERIN to "join waitlist" button in Latest Updates section - Green background, black text */
.cmp-news__row.first .cmp-text-block__button a {
  font-family: var(--font-primary) !important;
  font-weight: 400;
  background-color: #D8FD5B !important;
  color: #000000 !important;
  border: 2px solid #D8FD5B !important;
  transition: all 0.3s ease !important;
}

/* Hover effect - Inverse colors */
.cmp-news__row.first .cmp-text-block__button a:hover {
  background-color: #000000 !important;
  color: #D8FD5B !important;
  border-color: #D8FD5B !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(216, 253, 91, 0.3);
}

/* Make sure arrow/icon on button is black */
.cmp-news__row.first .cmp-text-block__button a::after {
  filter: brightness(0) !important;
  transition: filter 0.3s ease !important;
}

/* Arrow icon turns green on hover */
.cmp-news__row.first .cmp-text-block__button a:hover::after {
  filter: brightness(0) saturate(100%) invert(88%) sepia(98%) saturate(428%) hue-rotate(18deg) brightness(105%) contrast(99%) !important;
}

/* Ensure the button itself has proper styling - Green background */
.cmp-news__row.first .cmp-text-block__button {
  background-color: #D8FD5B !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.cmp-news__row.first .cmp-text-block__button:hover,
.cmp-news__row.first .cmp-text-block__button:focus,
.cmp-news__row.first .cmp-text-block__button:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.cmp-news__row.first .cmp-text-block__button a:hover,
.cmp-news__row.first .cmp-text-block__button a:focus,
.cmp-news__row.first .cmp-text-block__button a:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Latest Updates Section - Apply NYXERIN font to title */
.cmp-text-block__title {
  font-family: var(--font-primary) !important;
  color: #D8FD5B !important;
}

/* Latest Updates Section - Color for subtitle "News" and description text */
.cmp-text-block__subtitle,
.cmp-text-block__text {
  color: #D8FD5B !important;
  font-family: var(--font-menu) !important;
}

/* Latest Updates Section - Full black background */
.cmp-news__text-block .textblock.cmp-textblock__bg-white .cmp-text-block {
  background-color: #000000 !important;
}

/* Also target the outer container */
.cmp-news__text-block .textblock.cmp-textblock__bg-white {
  background-color: #000000 !important;
}

/* Make Latest Updates cell black too */
.cmp-news__row.first .cmp-news__cell.cmp-news__text-block {
  background-color: #000000 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Add line.svg at the bottom of Latest Updates section - positioned to the left */
.cmp-news__row.first .cmp-news__cell.cmp-news__text-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 150px;
  background-image: url('../assets/images/line.svg');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
}

/* Keep fullscreen pitch blocks transparent */
.fullscreenpitchblock .textblock.cmp-textblock__bg-white .cmp-text-block,
.fullscreenpitchblock .textblock.cmp-textblock__bg-white {
  background-color: transparent !important;
}

/* Latest Updates text - green color for visibility on transition3.png background */
.cmp-news__text-block .cmp-text-block__subtitle,
.cmp-news__text-block .cmp-text-block__title,
.cmp-news__text-block .cmp-text-block__text {
  color: #D8FD5B !important;
}

/* Latest Updates button - green background with black text */
.cmp-news__text-block .cmp-text-block__button a {
  background-color: #D8FD5B !important;
  color: #000000 !important;
  border-color: #D8FD5B !important;
}

/* Fix the social links cell - remove green gap */
.cmp-news__cell.cmp-news__social-links {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-left: none !important;
}

/* Fix the social links background (right side) - Grey like pitchblock */
.cmp-news__social-links,
.cmp-news__social-links .social.sociallinks,
.cmp-news__social-links .cmp-sociallinks {
  background-color: #dcdcdc !important;
  max-width: 100% !important;
  position: relative !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Square SVG decorations removed per user request */

/* Social media icons - use original SVG colors - BIGGER - RESPONSIVE */
.cmp-sociallinks__link img {
  filter: none !important;
  transition: opacity 0.3s ease;
  width: clamp(48px, 6vw, 72px) !important; /* Responsive sizing */
  height: clamp(48px, 6vw, 72px) !important; /* Responsive sizing */
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.cmp-sociallinks_headimage {
  filter: brightness(0) saturate(100%) invert(89%) sepia(48%) saturate(1038%) hue-rotate(20deg) brightness(103%) contrast(98%) !important;
}

/* Social media links styling - no background, just logo + text - BIGGER GAP */
.cmp-sociallinks__link,
.cmp-sociallinks__link:active,
.cmp-sociallinks__link:focus,
.cmp-sociallinks__link:visited {
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 20px !important; /* Increased from 16px */
  max-width: 100% !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.cmp-sociallinks__link:hover {
  transform: translateY(-2px);
}

/* Make social media text black by default - Smaller size with square brackets */
.cmp-sociallinks__link span {
  color: #000000 !important;
  font-weight: 400;
  font-size: clamp(12px, 1.5vw, 18px) !important; /* Even smaller responsive sizing */
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap !important; /* Prevent text wrapping */
  overflow: visible !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  border: none !important;
  outline: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  letter-spacing: -0.02em !important; /* Tighter letter spacing for brackets */
  text-transform: none !important; /* Override uppercase transformation */
}

/* Add square brackets around social link text - very close to text */
.cmp-sociallinks__link span::before {
  content: '[';
  color: inherit;
  margin-right: -0.1em;
}

.cmp-sociallinks__link span::after {
  content: ']';
  color: inherit;
  position: static;
  width: auto;
  height: auto;
  bottom: auto;
  left: auto;
  background-color: transparent;
  margin-left: -0.1em;
}

/* Text turns green on hover */
.cmp-sociallinks__link:hover span {
  color: #D8FD5B !important;
}

/* Increase spacing between social links */
.cmp-sociallinks__item {
  margin: 0 30px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* Social links container spacing - LEFT ALIGNED - RESPONSIVE */
.cmp-sociallinks.metatribes {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important; /* Left aligned */
  justify-content: center !important;
  gap: clamp(30px, 5vw, 50px) !important; /* Responsive spacing */
  padding: 40px 20px !important; /* Keep original padding to maintain size */
  max-width: 100% !important;
  overflow: hidden !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* FOLLOW US heading */
.cmp-sociallinks__heading {
  color: #D8FD5B !important;
  font-family: var(--font-primary) !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Medium screen adjustments for social links */
@media (max-width: 1024px) {
  .cmp-sociallinks__link span {
    font-size: clamp(12px, 2vw, 24px) !important;
  }

  .cmp-sociallinks__link img {
    width: clamp(40px, 5vw, 64px) !important;
    height: clamp(40px, 5vw, 64px) !important;
  }

  .cmp-sociallinks__link {
    gap: 16px !important;
  }
}

/* Mobile adjustments for social links */
@media (max-width: 768px) {
  .cmp-sociallinks__link span {
    font-size: clamp(11px, 3.5vw, 18px) !important;
  }

  .cmp-sociallinks__link img {
    width: clamp(36px, 8vw, 52px) !important;
    height: clamp(36px, 8vw, 52px) !important;
  }

  .cmp-sociallinks__link {
    gap: 12px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    flex-direction: row !important; /* Ensure logo is on left, text on right */
  }

  .cmp-sociallinks.metatribes {
    padding: 30px 15px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .cmp-sociallinks__item {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .cmp-sociallinks__heading {
    font-size: clamp(20px, 5vw, 28px) !important;
    text-align: left !important;
  }

  /* Ensure social media container is left-aligned */
  .cmp-news__social-links,
  .cmp-news__social-links .social.sociallinks,
  .cmp-news__social-links .cmp-sociallinks {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border: none !important;
    outline: none !important;
  }

  /* Remove any borders from news cell on mobile */
  .cmp-news__cell.cmp-news__social-links {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Hide the old head image above social links */
.cmp-sociallinks_headimage {
  display: none !important;
}

/* New SVG container at top of social links section - full width with glitch effect */
.cmp-sociallinks__svg-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding: 0;
  position: relative;
}

.cmp-sociallinks__svg-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transform: scaleX(-1);
}

/* Glitch effect for SVG using pseudo-elements */
.cmp-sociallinks__svg-container::before,
.cmp-sociallinks__svg-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/line2.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.cmp-sociallinks__svg-container::before {
  left: 3px;
  filter: drop-shadow(-2px 0 #000000);
  animation: svg-glitch-1 8s infinite;
  opacity: 0;
}

.cmp-sociallinks__svg-container::after {
  left: -3px;
  filter: drop-shadow(2px 0 #D8FD5B);
  animation: svg-glitch-2 8s infinite;
  animation-delay: 2s;
  opacity: 0;
}

/* SVG Glitch animations - similar to text glitch with horizontal flip */
@keyframes svg-glitch-1 {
  0%, 1.5% {
    opacity: 1;
    clip: rect(42px, 9999px, 98px, 0);
    transform: scaleX(-1) translateX(-2px);
  }
  2%, 8% {
    opacity: 0;
  }
  9%, 10% {
    opacity: 1;
    clip: rect(70px, 9999px, 95px, 0);
    transform: scaleX(-1) translateX(3px);
  }
  10.5%, 15% {
    opacity: 0;
  }
  16%, 17% {
    opacity: 1;
    clip: rect(35px, 9999px, 65px, 0);
    transform: scaleX(-1) translateX(-2px);
  }
  17.5%, 27% {
    opacity: 0;
  }
  28%, 31% {
    opacity: 1;
    clip: rect(30px, 9999px, 100px, 0);
    transform: scaleX(-1) translateX(5px);
  }
  31.5%, 50% {
    opacity: 0;
  }
  51%, 54.5% {
    opacity: 1;
    clip: rect(10px, 9999px, 150px, 0);
    transform: scaleX(-1) translateX(-8px);
  }
  55%, 100% {
    opacity: 0;
  }
}

@keyframes svg-glitch-2 {
  0%, 1% {
    opacity: 1;
    clip: rect(65px, 9999px, 119px, 0);
    transform: scaleX(-1) translateX(3px);
  }
  1.5%, 6% {
    opacity: 0;
  }
  7%, 8% {
    opacity: 1;
    clip: rect(40px, 9999px, 68px, 0);
    transform: scaleX(-1) translateX(-2px);
  }
  8.5%, 32% {
    opacity: 0;
  }
  33%, 36% {
    opacity: 1;
    clip: rect(35px, 9999px, 120px, 0);
    transform: scaleX(-1) translateX(-6px);
  }
  36.5%, 57% {
    opacity: 0;
  }
  58%, 61.5% {
    opacity: 1;
    clip: rect(15px, 9999px, 165px, 0);
    transform: scaleX(-1) translateX(10px);
  }
  62%, 100% {
    opacity: 0;
  }
}

/* Responsive adjustments for SVG */
@media (max-width: 768px) {
  .cmp-sociallinks__svg-container {
    margin-bottom: 20px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }

  .cmp-sociallinks__svg-image {
    max-height: 120px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }
}

/* Steam/Social Highlights Zone - Background image with green fallback */
.cmp-news__social-highlights {
  background-color: #D8FD5B !important; /* Green fallback */
  background-image: url('../assets/images/bgtmt3.png') !important;
  background-size: 200% !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  z-index: 10 !important; /* Way above the pattern overlay */
  overflow: visible !important;
  border-bottom: none !important;
}

/* Hide social highlights section on mobile */
@media (max-width: 768px) {
  .cmp-news__social-highlights {
    display: none !important;
  }

  .social-highlights,
  .socialhighlights,
  .cmp-socialhighlights {
    display: none !important;
  }
}

/* Prevent pattern overlay from covering Steam section */
.cmp-news__row.first .cmp-news__social-highlights::before,
.cmp-news__row.first .cmp-news__social-highlights::after {
  display: none !important; /* Remove any overlay on Steam section */
}

/* Remove any bottom borders from news row */
.cmp-news__row.first,
.cmp-news__row {
  border-bottom: none !important;
}

.social-highlights,
.socialhighlights,
.cmp-socialhighlights {
  background-color: #D8FD5B !important; /* Green fallback */
  background-image: url('../assets/images/bgtmt3.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: none !important;
}

/* Hide all text content in Steam section - keep only green background */
.cmp-socialhighlights__head,
.cmp-socialhighlights__name,
.cmp-socialhighlights__label,
.cmp-socialhighlights__description,
.cmp-socialhighlights__button {
  display: none !important;
}

/* Fix parent row background to prevent white margins on mobile - ONLY first row */
.cmp-news__row.first {
  position: relative !important;
  background-color: #9F9F9F !important; /* Grey fallback */
}

/* 100% opacity overlay with transition3.png */
.cmp-news__row.first::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image: url('../assets/images/transition3.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Ensure cells don't block the background image - ONLY in first row */
.cmp-news__row.first .cmp-news__cell {
  background-color: transparent !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Social media and Steam sections - solid backgrounds */
.cmp-news__row.first .cmp-news__cell.cmp-news__social-links {
  background-color: #dcdcdc !important;
  z-index: 10 !important;
}

.cmp-news__row.first .cmp-news__cell.cmp-news__social-highlights {
  background-color: #D8FD5B !important;
  z-index: 10 !important;
}

/* News article cards (second row) - Image background showing between cards */
.cmp-news__row.second {
  background-image: url('../images/transition1.png') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #9F9F9F !important; /* Fallback color */
}

.cmp-news__row.second .cmp-news__cell {
  background-color: #000000 !important;
  border-color: #D8FD5B !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Prevent background from changing on hover - force solid backgrounds */
.cmp-news__row.second .cmp-news__cell:hover {
  background-color: #000000 !important;
  opacity: 1 !important;
  background-image: none !important;
  border-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell:hover::before,
.cmp-news__row.second .cmp-news__cell:hover::after {
  display: none !important;
  opacity: 0 !important;
}

/* First card (Apply Now) - Black background with green text */
.cmp-news__row.second .cmp-news__cell:first-child {
  background-color: #000000 !important;
  background-image: none !important;
  transition: background-color 0.3s ease !important;
  border-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell:first-child:hover {
  background-color: #D8FD5B !important;
  opacity: 1 !important;
  background-image: none !important;
  border-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell:first-child .cmp-news__cell-text {
  color: #D8FD5B !important;
  transition: color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:first-child .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell:first-child .cmp-news__cell-description {
  color: #D8FD5B !important;
  transition: color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:first-child:hover .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell:first-child:hover .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell:first-child:hover .cmp-news__cell-description {
  color: #000000 !important;
}

/* First card - Read More button with green background and black text */
.cmp-news__row.second .cmp-news__cell:first-child .cmp-news__cell-button {
  background-color: #D8FD5B !important;
  transition: background-color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:first-child .cmp-news__cell-button span {
  color: #000000 !important;
  transition: color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:first-child:hover .cmp-news__cell-button {
  background-color: #000000 !important;
}

.cmp-news__row.second .cmp-news__cell:first-child:hover .cmp-news__cell-button span {
  color: #D8FD5B !important;
}

/* Second card (Episode 1 - Year 2073) - Black background with green text */
.cmp-news__row.second .cmp-news__cell:nth-child(2) {
  background-color: #000000 !important;
  background-image: none !important;
  transition: background-color 0.3s ease !important;
  border-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(2):hover {
  background-color: #D8FD5B !important;
  opacity: 1 !important;
  background-image: none !important;
  border-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(2) .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell:nth-child(2) .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell:nth-child(2) .cmp-news__cell-description {
  color: #D8FD5B !important;
  transition: color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(2):hover .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell:nth-child(2):hover .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell:nth-child(2):hover .cmp-news__cell-description {
  color: #000000 !important;
}

/* Second card - Read More button with green background and black text */
.cmp-news__row.second .cmp-news__cell:nth-child(2) .cmp-news__cell-button {
  background-color: #D8FD5B !important;
  transition: background-color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(2) .cmp-news__cell-button span {
  color: #000000 !important;
  transition: color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(2):hover .cmp-news__cell-button {
  background-color: #000000 !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(2):hover .cmp-news__cell-button span {
  color: #D8FD5B !important;
}

/* Third card - Black background with green text */
.cmp-news__row.second .cmp-news__cell:nth-child(3) {
  background-color: #000000 !important;
  background-image: none !important;
  transition: background-color 0.3s ease !important;
  border-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(3):hover {
  background-color: #D8FD5B !important;
  opacity: 1 !important;
  background-image: none !important;
  border-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(3) .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell:nth-child(3) .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell:nth-child(3) .cmp-news__cell-description {
  color: #D8FD5B !important;
  transition: color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(3):hover .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell:nth-child(3):hover .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell:nth-child(3):hover .cmp-news__cell-description {
  color: #000000 !important;
}

/* Third card - Read More button with green background and black text */
.cmp-news__row.second .cmp-news__cell:nth-child(3) .cmp-news__cell-button {
  background-color: #D8FD5B !important;
  transition: background-color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(3) .cmp-news__cell-button span {
  color: #000000 !important;
  transition: color 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(3):hover .cmp-news__cell-button {
  background-color: #000000 !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(3):hover .cmp-news__cell-button span {
  color: #D8FD5B !important;
}

/* First card - Make arrow black on default, green on hover */
.cmp-news__row.second .cmp-news__cell:first-child .cmp-news__cell-button::after {
  filter: brightness(0) !important;
  transition: filter 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:first-child:hover .cmp-news__cell-button::after {
  filter: brightness(0) saturate(100%) invert(89%) sepia(48%) saturate(1038%) hue-rotate(20deg) brightness(103%) contrast(98%) !important;
}

/* Third card - Make arrow black on default, green on hover */
.cmp-news__row.second .cmp-news__cell:nth-child(3) .cmp-news__cell-button::after {
  filter: brightness(0) !important;
  transition: filter 0.3s ease !important;
}

.cmp-news__row.second .cmp-news__cell:nth-child(3):hover .cmp-news__cell-button::after {
  filter: brightness(0) saturate(100%) invert(89%) sepia(48%) saturate(1038%) hue-rotate(20deg) brightness(103%) contrast(98%) !important;
}

.cmp-news__row.second .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell-button span {
  color: #D8FD5B !important;
}

/* Hover effect - Keep green color on hover */
.cmp-news__row.second .cmp-news__cell:hover .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell:hover .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell:hover .cmp-news__cell-button span {
  color: #D8FD5B !important;
}

/* Apply NYXERIN to title, description text, and Read More button */
.cmp-news__row.second .cmp-news__cell-title,
.cmp-news__row.second .cmp-news__cell-text,
.cmp-news__row.second .cmp-news__cell-button span {
  font-family: var(--font-primary) !important;
}

/* Position title next to image */
.cmp-news__row.second .cmp-news__cell {
  display: flex !important;
  flex-direction: column !important;
}

/* Hide the title overlay on images */
.cmp-news__row.second .cmp-news__cell-title {
  display: none !important;
}

/* Style Read More button - Green background with black text */
.cmp-news__row.second .cmp-news__cell-button {
  background-color: #D8FD5B !important;
}

.cmp-news__row.second .cmp-news__cell-button span {
  color: #000000 !important;
}

/* Make arrow next to Read More button black */
.cmp-news__row.second .cmp-news__cell-button::after {
  filter: brightness(0) !important;
}

/* Example: Change the hero section styling */
/*
.cmp-video__hero {
  background-color: var(--brand-bg);
}
*/

/* Example: Custom heading styles */
/*
h1, h2, h3 {
  color: var(--brand-primary);
  font-family: var(--font-primary);
}
*/

/* Example: Custom spacing */
/*
.cmp-container {
  padding: 40px 20px;
}
*/

/**
 * TEAM-BASED EXTRACTION SHOOTER SECTION
 * Replace grey background with custom image
 */
/* Target the outer container */
.textblock.cmp-textblock__full-width.cmp-textblock__bg-white {
  background-image: url('../images/greenTMTbg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Also target the inner text block */
.textblock.cmp-textblock__full-width.cmp-textblock__bg-white .cmp-text-block {
  background-image: url('../images/greenTMTbg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

/* Make both subtitle and title black */
.textblock.cmp-textblock__full-width.cmp-textblock__bg-white .cmp-text-block__subtitle,
.textblock.cmp-textblock__full-width.cmp-textblock__bg-white .cmp-text-block__title {
  color: #000000 !important;
}

/**
 * RUNNER SECTION - "You are a Runner" pitchblock section
 */
.pitchblock,
.cmp-pitchblock {
  background-color: #dcdcdc !important;
  position: relative !important;
}

/* Add line2.svg decoration to the pitchblock grey area - at bottom - GREEN */
.cmp-pitchblock::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1095px;
  height: 247px;
  background-image: url('../assets/images/line2.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 10;
  /* Convert black SVG to exact green #D8FD5B (rgb(216, 253, 91)) */
  filter: invert(88%) sepia(98%) saturate(428%) hue-rotate(18deg) brightness(105%) contrast(99%);
}

/* EARTH 2073 text in green */
.cmp-pitchblock .earth-2073-green {
  color: #D8FD5B !important;
  font-weight: 400;
}

/* Make sure text color overrides any parent styles */
.cmp-text-block__text.earth-2073-green {
  color: #D8FD5B !important;
}

/* Anthrometa-v1 text in green */
.anthrometa-green {
  color: #D8FD5B !important;
}


/* Add decoration to entire CTA block section */
.cmp-cta-block-section {
  position: relative;
  background-color: #000000;
  overflow: visible;
}

/* Force root container to be full width at any size */
.root.container {
  max-width: none;
  width: 100%;
  overflow: hidden;
}


/* SVG decoration on top of cta2.png image */
.cmp-cta-block-section__column--version--img::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200%;
  height: 200%;
  background-image: url('../assets/images/line2-green.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  transform: rotate(90deg);
  transform-origin: top center;
  opacity: 0.6;
  pointer-events: none;
  z-index: 300;
}


/* Ensure content is above the decoration */
.cmp-pitchblock__text-box {
  position: relative;
  z-index: 20;
}

/* Keep image below the SVG decoration */
.cmp-pitchblock__image {
  position: relative;
  z-index: 1;
}

/* Make sure text remains visible on grey background */
.cmp-pitchblock .cmp-text,
.cmp-pitchblock p {
  color: #000000 !important;
}

/* EARTH 2073 card - Black background with green text */
.cmp-pitchblock__text-box__item .textblock.pitch-block-item {
  background-color: #000000 !important;
  padding: 30px !important;
  border: 1px solid #D8FD5B !important; /* Green border */
}

.cmp-pitchblock__text-box__item .textblock.pitch-block-item .cmp-text-block__subtitle,
.cmp-pitchblock__text-box__item .textblock.pitch-block-item .cmp-text-block__title,
.cmp-pitchblock__text-box__item .textblock.pitch-block-item .cmp-text-block__text {
  color: #D8FD5B !important; /* Green text */
}

/* EARTH 2073 button - Green background with black text */
.cmp-pitchblock__text-box__item .textblock.pitch-block-item .cmp-text-block__button a {
  font-family: var(--font-primary) !important;
  background-color: #D8FD5B !important; /* Green background */
  color: #000000 !important; /* Black text */
  border-color: #D8FD5B !important;
  font-weight: 400;
}

/* EXIL 0 / Discover More button - Green background with black text, NYXERIN font */
.cmp-pitchblock .cmp-text-block__button a {
  font-family: var(--font-primary) !important;
  background-color: #D8FD5B !important;
  color: #000000 !important;
  border-color: #D8FD5B !important;
  font-weight: 400;
}

/* CHOOSE YOUR TRIBE section (first video only) - Position on left bottom with transparent background and black text */
.fullscreenpitchblock:first-child .cmp-fullscreen-pitchblock__pitch-block {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  transform: none !important;
  max-width: 600px !important;
  padding: 60px !important;
  background-color: transparent !important;
  z-index: 10 !important;
}

.fullscreenpitchblock:first-child .cmp-fullscreen-pitchblock__pitch-block .cmp-text-block {
  background-color: transparent !important;
}

.fullscreenpitchblock:first-child .cmp-fullscreen-pitchblock__pitch-block .cmp-text-block__subtitle,
.fullscreenpitchblock:first-child .cmp-fullscreen-pitchblock__pitch-block .cmp-text-block__title,
.fullscreenpitchblock:first-child .cmp-fullscreen-pitchblock__pitch-block .cmp-text-block__text {
  color: #D8FD5B !important; /* Green text */
}

/* LET YOUR BODY DIE / BECOME A RUNNER - Learn More button - Green background, black text, NYXERIN font */
.cmp-fullscreen-pitchblock .cmp-text-block__button a {
  font-family: var(--font-primary) !important;
  background-color: #D8FD5B !important;
  color: #000000 !important;
  border-color: #D8FD5B !important;
  font-weight: 400;
}

/**
 * RESPONSIVE CUSTOMIZATIONS
 */

/* Mobile devices */
@media (max-width: 768px) {
  /* Add mobile-specific custom styles here */

  /* Mobile banner now handled via <picture> element in HTML */

  /* Fix: Enable pointer-events ONLY on buttons, not entire containers (preserves scroll behavior) */
  .fullscreenpitchblock .cmp-text-block__button {
    pointer-events: auto !important;
  }

  /* Move hero title higher on mobile so it's visible */
  .hero-title-glitch {
    bottom: 25% !important;
    font-size: clamp(28px, 9vw, 60px) !important;
  }

  /* Position subtitle above METATRIBES on mobile */
  .hero-subtitle {
    bottom: calc(25% + 9vw + 3vw) !important;
    font-size: 2.5vw !important;
  }

  /* Hide Battle for Supremacy section on mobile to fix scrolling bugs */
  .fullscreenpitchblock:nth-child(2),
  .fullscreenpitchblock .cmp-textblock__bg-white {
    display: none !important;
  }

  /* Ensure Learn More button is not cut off on Choose Your Tribe */
  .fullscreenpitchblock .cmp-fullscreen-pitchblock__pitch-block {
    padding-bottom: 80px !important;
  }

  .fullscreenpitchblock .cmp-text-block {
    padding: 15px !important;
    max-width: 85% !important;
  }
}


/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Add tablet-specific custom styles here */
}

/* Desktop */
@media (min-width: 1025px) {
  /* Add desktop-specific custom styles here */
}

/**
 * HIDE OLD FOOTER
 * Hide the old footer (desktop and mobile)
 */
.cmp-metatribesfooter.desktop-only,
.cmp-metatribesfooter.mobile-only {
  display: none !important;
}

/**
 * METATRIBES CUSTOM FOOTER
 * Minimal, clean, and responsive footer with background image
 */
.metatribes-footer {
  background-image: none;
  background-color: #D8FD5B; /* Plain green background */
  padding: 100px 10px 80px;
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.metatribes-footer__container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.metatribes-footer__title {
  font-family: var(--font-primary) !important;
  font-size: 9.5vw;
  font-weight: 400;
  color: #000000;
  text-align: center;
  letter-spacing: 0.05em;
  width: 100%;
  max-width: 95vw;
  margin: 0 auto;
  padding: 0 15px;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  animation: text-glitch-aggressive 2s infinite;
}

.metatribes-footer__title::before,
.metatribes-footer__title::after {
  content: 'METATRIBES';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  color: #000000;
}

.metatribes-footer__title::before {
  animation: glitch-top-aggressive 1.5s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.metatribes-footer__title::after {
  animation: glitch-bottom-aggressive 1.8s infinite linear alternate-reverse;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes text-glitch {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
  98% { opacity: 0.9; }
}

@keyframes text-glitch-aggressive {
  0%, 85%, 100% { opacity: 1; transform: translate(0); }
  86% { opacity: 0.7; transform: translate(-2px, 0); }
  87% { opacity: 1; transform: translate(2px, 0); }
  88% { opacity: 0.9; transform: translate(0); }
  89% { opacity: 0.8; transform: translate(-1px, 0); }
  90% { opacity: 1; transform: translate(0); }
  92% { opacity: 0.85; transform: translate(1px, 0); }
}

@keyframes glitch-top {
  0%, 94%, 100% { transform: translate(0); }
  95% { transform: translate(-3px, 0); }
  96% { transform: translate(3px, 0); }
  97% { transform: translate(0); }
  98% { transform: translate(2px, 0); }
}

@keyframes glitch-top-aggressive {
  0%, 80%, 100% { transform: translate(0); }
  81% { transform: translate(-5px, 0); }
  83% { transform: translate(6px, 0); }
  85% { transform: translate(-3px, 0); }
  87% { transform: translate(4px, 0); }
  90% { transform: translate(0); }
  92% { transform: translate(-2px, 0); }
}

@keyframes glitch-bottom {
  0%, 93%, 100% { transform: translate(0); }
  94% { transform: translate(2px, 0); }
  95% { transform: translate(-2px, 0); }
  96% { transform: translate(0); }
  97% { transform: translate(-3px, 0); }
}

@keyframes glitch-bottom-aggressive {
  0%, 78%, 100% { transform: translate(0); }
  79% { transform: translate(4px, 0); }
  82% { transform: translate(-6px, 0); }
  84% { transform: translate(3px, 0); }
  86% { transform: translate(-4px, 0); }
  89% { transform: translate(0); }
  91% { transform: translate(2px, 0); }
}

.metatribes-footer__social {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}

.metatribes-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.metatribes-footer__social a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.metatribes-footer__social img {
  height: 35px;
  width: 35px;
  object-fit: contain;
}

.metatribes-footer__links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 5px;
}

.metatribes-footer__links a {
  font-family: var(--font-menu);
  font-size: 14px;
  color: #000000 !important;
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: lowercase;
}

.metatribes-footer__links a::before {
  content: '[';
  margin-right: -0.1em;
}

.metatribes-footer__links a::after {
  content: ']';
  margin-left: -0.1em;
}

.metatribes-footer__links a:hover {
  color: #FFFFFF !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .metatribes-footer {
    padding: 30px 5px 20px;
  }

  .metatribes-footer__container {
    gap: 12px;
  }

  .metatribes-footer__title {
    padding: 0 5px;
    font-size: clamp(22px, 8vw, 50px);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .metatribes-footer__social {
    gap: 20px;
  }

  .metatribes-footer__social img {
    height: 30px;
    width: 30px;
  }

  .metatribes-footer__links {
    gap: 15px;
  }

  .metatribes-footer__links a {
    font-size: 12px;
  }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
  .metatribes-footer {
    padding: 35px 10px 25px;
  }

  .metatribes-footer__social img {
    height: 32px;
    width: 32px;
  }
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .metatribes-footer {
    padding: 50px 20px 35px;
  }

  .metatribes-footer__container {
    gap: 20px;
  }

  .metatribes-footer__social {
    gap: 30px;
  }

  .metatribes-footer__social img {
    height: 40px;
    width: 40px;
  }
}

/**
 * ANIMATION OVERRIDES
 * Uncomment to disable animations if needed
 */
/*
*, *::before, *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}
*/


/* Fix image distortion - ensure proper aspect ratios */

.cmp-pitchblock__image img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

.cmp-cta-block-section__img {
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
}

.cmp-cta-block-section__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: 2px solid #D8FD5B !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.cmp-cta-block-section__img video {
  border: 2px solid #D8FD5B !important;
}

/* Parent container for media (video or image) - media fills it completely */
.cmp-cta-block-section__column--version--img {
  overflow: hidden !important;
  position: relative !important;
  border: 2px solid #D8FD5B !important;
}

.cmp-cta-block-section__column--version--img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  display: block !important;
}

.cmp-cta-block-section__column--version--img video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Fill entire space, crop edges if needed */
  border: none !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Second row - video container with proper sizing */
.cmp-cta-block-section__row--second .cmp-cta-block-section__img {
  overflow: hidden !important;
  position: relative !important;
  border: 2px solid #D8FD5B !important;
  aspect-ratio: 1 / 1 !important; /* Square container */
  width: 100% !important;
}

.cmp-cta-block-section__row--second .cmp-cta-block-section__img video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Fill entire space, crop edges if needed */
  border: none !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Hide the logo image */
.cmp-video__hero-logo {
  display: none !important;
}

/* Hide the original "THE AWAKENING BEGINS" text */
.cmp-video__text {
  display: none !important;
}

/* Hide the original "REBORN" cursor element */
.cmp-video__cursor {
  display: none !important;
}

/* Ensure video container doesn't allow horizontal overflow */
.cmp-video__container {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* Ensure hero video section doesn't overflow */
.cmp-video.center-column-video {
  overflow: hidden !important;
  max-width: 100vw !important;
}

.cmp-video__wrap--main-page {
  overflow: hidden !important;
}

/* Hide CSS-generated title - using HTML element with VFX glitch instead */
.cmp-video__container::after {
  display: none;
}

/* Make hero video 20% more transparent */
.cmp-video__teaser {
  opacity: 0.8 !important;
}

/* Add 50% black overlay on hero video */
.cmp-video.center-column-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

/* Ensure video container content is above overlay */
.cmp-video__container {
  position: relative;
  z-index: 2;
}

/* DYSTOPIAN title container - ensure centered */
.textblock.cmp-textblock__full-width.cmp-textblock__bg-white .cmp-text-block {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* DYSTOPIAN title - centered, bold, bigger */
.cmp-text-block__subtitle.dystopian-title {
  display: block !important;
  text-align: center !important;
  font-family: var(--font-primary) !important;
  font-weight: 900 !important;
  font-size: clamp(40px, 8vw, 120px) !important;
  letter-spacing: 0.05em !important;
  padding: 0 !important;
  margin: 0 auto !important;
  color: #888888 !important;
  width: 100% !important;
}

span.dystopian-title {
  color: #888888 !important;
}

/* Hero Title with Glitch Effect */
.hero-title-glitch {
  font-family: var(--font-primary) !important; /* Nyxerin */
  font-size: 9.5vw;
  color: #D8FD5B !important; /* Green */
  text-align: center;
  letter-spacing: 0.02em;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  white-space: nowrap;
  z-index: 10;
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  white-space: nowrap;
  display: block !important;
  visibility: visible !important;
  max-width: 95vw;
  overflow: hidden;
  animation: text-glitch 4s infinite;
}

.hero-title-glitch::before,
.hero-title-glitch::after {
  content: 'METATRIBES';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  color: #D8FD5B;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title-glitch::before {
  animation: glitch-top 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.hero-title-glitch::after {
  animation: glitch-bottom 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

/* Hero Subtitle - "THE FIRST AAA BATTLE ROYALE ON-CHAIN" */
.hero-subtitle {
  font-family: var(--font-primary) !important; /* Nyxerin */
  font-size: 1.8vw;
  color: #D8FD5B !important; /* Green */
  text-align: center;
  letter-spacing: 0.1em;
  position: absolute;
  bottom: calc(10% + 9.5vw + 1vw);
  left: 50%;
  transform: translate(-50%, 0);
  white-space: nowrap;
  z-index: 10;
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
}

/* Glitch window overlay - Enhanced effect (works on all titles) */
.glitch-window {
  position: absolute;
  top: 0;
  left: -5px;
  width: 100%;
  color: inherit; /* Inherit color from parent */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-shadow: 5px 0 #000000, -3px 0 currentColor, -5px 0 #000000, 3px 0 rgba(216, 253, 91, 0.7);
  overflow: hidden;
  animation: crt-glitch-varied 8s infinite;
  white-space: nowrap;
  opacity: 0;
}

/* Secondary glitch layer with different timing */
.glitch-window-2 {
  text-shadow: -4px 0 #000000, 2px 0 currentColor, 4px 0 rgba(0, 0, 0, 0.8);
  animation: crt-glitch-varied-2 8s infinite;
  animation-delay: 2s;
}

/* Ensure glitch text elements have relative positioning for overlay */
.glitch-text {
  position: relative;
  display: inline-block;
}

/* Varied glitch pattern - multiple small glitches, medium, and big bursts */
@keyframes crt-glitch-varied {
  /* Small glitch burst 1 */
  0%, 1.5% {
    opacity: 1;
    clip: rect(45px, 9999px, 75px, 0);
    transform: translateX(2px);
  }
  2% {
    clip: rect(60px, 9999px, 85px, 0);
    transform: translateX(-2px);
  }
  2.5%, 8% {
    opacity: 0;
  }

  /* Small glitch burst 2 */
  9%, 10% {
    opacity: 1;
    clip: rect(70px, 9999px, 95px, 0);
    transform: translateX(-3px);
  }
  10.5%, 15% {
    opacity: 0;
  }

  /* Small glitch burst 3 */
  16%, 17% {
    opacity: 1;
    clip: rect(35px, 9999px, 65px, 0);
    transform: translateX(2px);
  }
  17.5%, 27% {
    opacity: 0;
  }

  /* Medium glitch burst */
  28%, 30% {
    opacity: 1;
    clip: rect(30px, 9999px, 100px, 0);
    transform: translateX(-5px);
  }
  30.5% {
    clip: rect(70px, 9999px, 130px, 0);
    transform: translateX(5px);
  }
  31% {
    clip: rect(50px, 9999px, 110px, 0);
    transform: translateX(-4px);
  }
  31.5%, 38% {
    opacity: 0;
  }

  /* Small glitch burst 4 */
  39%, 40% {
    opacity: 1;
    clip: rect(55px, 9999px, 80px, 0);
    transform: translateX(3px);
  }
  40.5%, 50% {
    opacity: 0;
  }

  /* BIG glitch burst */
  51%, 52% {
    opacity: 1;
    clip: rect(10px, 9999px, 150px, 0);
    transform: translateX(8px);
  }
  52.5% {
    clip: rect(80px, 9999px, 180px, 0);
    transform: translateX(-10px);
  }
  53% {
    clip: rect(20px, 9999px, 140px, 0);
    transform: translateX(7px);
  }
  53.5% {
    clip: rect(90px, 9999px, 170px, 0);
    transform: translateX(-9px);
  }
  54% {
    clip: rect(40px, 9999px, 160px, 0);
    transform: translateX(10px);
  }
  54.5% {
    clip: rect(60px, 9999px, 190px, 0);
    transform: translateX(-8px);
  }
  55%, 65% {
    opacity: 0;
  }

  /* Small glitch burst 5 */
  66%, 67% {
    opacity: 1;
    clip: rect(48px, 9999px, 72px, 0);
    transform: translateX(-2px);
  }
  67.5%, 100% {
    opacity: 0;
  }
}

/* Secondary varied pattern with different timing and more small glitches */
@keyframes crt-glitch-varied-2 {
  /* Small glitch 1 */
  0%, 1% {
    opacity: 1;
    clip: rect(55px, 9999px, 80px, 0);
    transform: translateX(-3px);
  }
  1.5%, 6% {
    opacity: 0;
  }

  /* Small glitch 2 */
  7%, 8% {
    opacity: 1;
    clip: rect(40px, 9999px, 68px, 0);
    transform: translateX(2px);
  }
  8.5%, 13% {
    opacity: 0;
  }

  /* Small glitch 3 */
  14%, 15% {
    opacity: 1;
    clip: rect(62px, 9999px, 88px, 0);
    transform: translateX(-2px);
  }
  15.5%, 22% {
    opacity: 0;
  }

  /* Small glitch 4 */
  23%, 24% {
    opacity: 1;
    clip: rect(50px, 9999px, 75px, 0);
    transform: translateX(3px);
  }
  24.5%, 32% {
    opacity: 0;
  }

  /* Medium glitch */
  33%, 35% {
    opacity: 1;
    clip: rect(35px, 9999px, 120px, 0);
    transform: translateX(6px);
  }
  35.5% {
    clip: rect(75px, 9999px, 140px, 0);
    transform: translateX(-6px);
  }
  36%, 44% {
    opacity: 0;
  }

  /* Small glitch 5 */
  45%, 46% {
    opacity: 1;
    clip: rect(58px, 9999px, 82px, 0);
    transform: translateX(-3px);
  }
  46.5%, 57% {
    opacity: 0;
  }

  /* Big intense glitch */
  58%, 60% {
    opacity: 1;
    clip: rect(15px, 9999px, 165px, 0);
    transform: translateX(-10px);
  }
  60.5% {
    clip: rect(85px, 9999px, 185px, 0);
    transform: translateX(11px);
  }
  61% {
    clip: rect(25px, 9999px, 155px, 0);
    transform: translateX(-9px);
  }
  61.5%, 72% {
    opacity: 0;
  }

  /* Small glitch 6 */
  73%, 74% {
    opacity: 1;
    clip: rect(44px, 9999px, 70px, 0);
    transform: translateX(2px);
  }
  74.5%, 100% {
    opacity: 0;
  }
}

/* Add "Genesium Studios presents" text at TOP */
.cmp-video__container::before {
  content: 'Genesium Studios presents';
  font-family: var(--font-primary) !important; /* Nyxerin */
  font-size: clamp(10px, 1.5vw, 25px);
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 0.1em;
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, 0);
  max-width: 95vw;
  z-index: 10;
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  white-space: nowrap;
}

/* Responsive adjustments for METATRIBES title on very small screens */
@media (max-width: 480px) {
  .hero-title-glitch {
    font-size: clamp(28px, 7vw, 160px); /* Even smaller on mobile */
    letter-spacing: 0.03em; /* Reduce letter spacing further */
  }

  .hero-subtitle {
    bottom: calc(25% + 7vw + 2vw) !important;
    font-size: 2.2vw !important;
  }

  .cmp-video__container::before {
    font-size: clamp(11px, 1.8vw, 36px); /* Smaller subtitle on mobile */
    letter-spacing: 0.03em;
    width: calc(clamp(28px, 7vw, 160px) * 10.3); /* Adjust for mobile METATRIBES width */
  }
}

/* Social media text - Use TT Interphases Pro font */
.cmp-sociallinks__link span {
  font-family: var(--font-menu) !important;
}

/* Pitch block annotation text - Use TT Interphases Pro Mono */
.cmp-pitchblock__text-box__annotation .cmp-text p {
  font-family: var(--font-menu) !important;
}

/* Hero text "THE AWAKENING BEGINS" - Nyxerin white */
.cmp-video__text {
  font-family: var(--font-primary) !important;
  color: #FFFFFF !important;
}

/* Menu links - Use TT Interphases Pro Mono (same as body text) */
.menu-links a {
  font-family: var(--font-menu) !important;
}

/* Menu brand text - Nyxerin green on top right */
.menu-brand {
  font-family: var(--font-primary) !important;
  color: #D8FD5B !important; /* Green text to match inverted menu */
  font-size: 18px;
  letter-spacing: 0.05em;
  position: relative; /* Changed from absolute */
  margin-left: auto; /* Push to right */
}

/* News card images - fill entire image container */
.cmp-news__cell-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  border: 2px solid #D8FD5B !important;
}

.cmp-news__cell-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmp-news__cell-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main layout - prevent horizontal scrolling */
html, body {
  background-color: #000000 !important;
}

/* Apply overflow-x: hidden to main element */
.theme--metatribes main,
main {
  overflow-x: hidden;
}

/* Keep root container background black */
.root.container {
  background-color: #000000 !important;
}

/* Let JavaScript handle animated block sizing dynamically - don't override! */

/* Social links responsive */
@media (max-width: 768px) {
  .cmp-sociallinks.metatribes {
    gap: 20px !important;
    padding: 30px 15px !important;
  }

  .cmp-sociallinks__link img {
    width: 36px !important;
    height: 36px !important;
  }

  .cmp-sociallinks__link span {
    font-size: 18px !important;
  }
}

/**
 * ============================================
 * FIX: Prevent horizontal shift during scroll (Large Screens Only)
 * ============================================
 *
 * Issue: On large desktop screens, scrolling through the fullscreen
 * pitch block section causes the page to shift right temporarily.
 * This happens because elements use width: 100vw, which includes the
 * scrollbar width, causing layout shift when scrollbar appears/disappears.
 *
 * Solution: Force scrollbar to always be visible on large screens
 * so 100vw calculates consistently.
 */

/* Apply fix on desktop screens (1920px and above) */
@media (min-width: 1920px) {
  html {
    overflow-y: scroll !important;
  }
}

/* Prevent horizontal scrolling on all screen sizes */
body {
  overflow-x: hidden !important;
}

/**
 * ============================================
 * FIGMA WHITEPAPER MODAL
 * ============================================
 */

/* Figma modal container - hidden by default */
.figma-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show modal when active */
.figma-modal.active {
  display: flex;
  opacity: 1;
}

/* Dark overlay background */
.figma-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

/* Figma container */
.figma-modal__container {
  position: relative;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  margin: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close button */
.figma-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: #D8FD5B;
  font-size: 48px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 3;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  width: 48px;
  height: 48px;
}

.figma-modal__close:hover {
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* Iframe wrapper */
.figma-modal__iframe-wrapper {
  width: 100%;
  height: 100%;
  border: 2px solid #D8FD5B;
  background-color: #000000;
  overflow: auto;
}

/* Custom scrollbar for PDF modal */
.figma-modal__iframe-wrapper::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.figma-modal__iframe-wrapper::-webkit-scrollbar-track {
  background: #000000;
  border-left: 1px solid #D8FD5B;
}

.figma-modal__iframe-wrapper::-webkit-scrollbar-thumb {
  background: #D8FD5B;
  border-radius: 0;
  border: 2px solid #000000;
}

.figma-modal__iframe-wrapper::-webkit-scrollbar-thumb:hover {
  background: #FFFFFF;
}

/* Firefox scrollbar */
.figma-modal__iframe-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #D8FD5B #000000;
}

/* Figma iframe */
.figma-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .figma-modal__container {
    width: 98%;
    height: 85vh;
  }

  .figma-modal__close {
    top: -40px;
    font-size: 36px;
    width: 36px;
    height: 36px;
  }
}

/**
 * ============================================
 * VIDEO MODAL - Popup video player
 * ============================================
 */

/* Modal container - hidden by default */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show modal when active */
.video-modal.active {
  display: flex;
  opacity: 1;
}

/* Dark overlay background */
.video-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

/* Video container */
.video-modal__container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close button */
.video-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: #D8FD5B;
  font-size: 48px;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 3;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  width: 48px;
  height: 48px;
}

.video-modal__close:hover {
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* Custom video player container */
.custom-video-player {
  position: relative;
  width: 100%;
  background-color: #000000;
  border: 2px solid #D8FD5B;
}

/* Video player */
.video-modal__player {
  width: 100%;
  height: auto;
  max-height: 80vh;
  background-color: #000000;
  display: block;
}

/* Custom video controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  padding: 20px 15px 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-video-player:hover .video-controls {
  opacity: 1;
}

/* Progress bar */
.video-controls__progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  cursor: pointer;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.video-controls__progress-filled {
  height: 100%;
  background-color: #D8FD5B;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.video-controls__progress-filled::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: #D8FD5B;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(216, 253, 91, 0.8);
}

/* Control buttons container */
.video-controls__buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-menu);
  color: #FFFFFF;
  font-size: 14px;
}

/* Play/Pause button */
.video-controls__play {
  background: transparent;
  border: 1px solid #D8FD5B;
  color: #D8FD5B;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  border-radius: 3px;
  min-width: 45px;
}

.video-controls__play:hover {
  background-color: #D8FD5B;
  color: #000000;
}

/* Time display */
.video-controls__time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #FFFFFF;
  font-size: 13px;
  min-width: 100px;
}

.video-controls__separator {
  color: #D8FD5B;
}

/* Volume controls - minimalistic green design */
.video-controls__volume {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.video-controls__mute {
  background: transparent;
  border: 1px solid #D8FD5B;
  color: #D8FD5B;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 8px;
  transition: all 0.3s ease;
  border-radius: 3px;
  font-family: var(--font-menu);
  min-width: 50px;
  text-align: center;
}

.video-controls__mute:hover {
  background-color: #D8FD5B;
  color: #000000;
}

.video-controls__volume-slider {
  width: 70px;
  height: 2px;
  background: rgba(216, 253, 91, 0.2);
  outline: none;
  border-radius: 1px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.video-controls__volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  background: #D8FD5B;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

.video-controls__volume-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: #D8FD5B;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

.video-controls__volume-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #D8FD5B 0%, #D8FD5B var(--volume-percent, 100%), rgba(216, 253, 91, 0.2) var(--volume-percent, 100%), rgba(216, 253, 91, 0.2) 100%);
  height: 2px;
  border-radius: 1px;
}

/* Fullscreen button */
.video-controls__fullscreen {
  background: transparent;
  border: 1px solid #D8FD5B;
  color: #D8FD5B;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  transition: all 0.3s ease;
  border-radius: 3px;
  font-family: var(--font-menu);
}

.video-controls__fullscreen:hover {
  background-color: #D8FD5B;
  color: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-modal__container {
    width: 95%;
  }

  .video-modal__close {
    top: -40px;
    font-size: 36px;
    width: 36px;
    height: 36px;
  }

  .video-modal__player {
    max-height: 70vh;
  }

  .video-controls {
    padding: 15px 10px 10px;
  }

  .video-controls__buttons {
    gap: 8px;
    font-size: 12px;
  }

  .video-controls__volume-slider {
    width: 50px;
  }

  .video-controls__mute {
    font-size: 10px;
    padding: 5px 6px;
    min-width: 40px;
  }

  .video-controls__time {
    font-size: 11px;
    min-width: 80px;
  }
}

/* ===================================
   WAITLIST MODAL STYLES
   =================================== */

.waitlist-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.waitlist-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.waitlist-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.waitlist-modal__container {
  position: relative;
  z-index: 10001;
  width: 90%;
  max-width: 500px;
  background: #000;
  border: 2px solid #D8FD5B;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 0 40px rgba(216, 253, 91, 0.3);
}

.waitlist-modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #D8FD5B;
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.waitlist-modal__close:hover {
  transform: scale(1.2);
}

.waitlist-modal__title {
  font-family: var(--font-primary);
  font-size: 36px;
  color: #D8FD5B;
  text-align: center;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.waitlist-modal__subtitle {
  font-family: var(--font-menu);
  font-size: 14px;
  color: #999;
  text-align: center;
  margin: 0 0 30px 0;
}

.waitlist-form__group {
  margin-bottom: 20px;
}

.waitlist-form__group label {
  display: block;
  font-family: var(--font-menu);
  font-size: 12px;
  color: #D8FD5B;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.waitlist-form__group input {
  width: 100%;
  padding: 15px;
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-menu);
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.waitlist-form__group input:focus {
  outline: none;
  border-color: #D8FD5B;
  box-shadow: 0 0 15px rgba(216, 253, 91, 0.2);
}

.waitlist-form__group input::placeholder {
  color: #666;
}

#waitlist-submit-btn {
  all: unset !important;
  width: 100% !important;
  padding: 20px !important;
  background: #D8FD5B !important;
  color: #000 !important;
  border: 2px solid #D8FD5B !important;
  border-radius: 8px !important;
  font-family: 'Nyxerin', sans-serif !important;
  font-size: 18px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-top: 10px !important;
  box-sizing: border-box !important;
  display: block !important;
  text-align: center !important;
  position: relative !important;
  line-height: 1.2 !important;
}

#waitlist-submit-btn:hover {
  background: #000 !important;
  color: #D8FD5B !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(216, 253, 91, 0.5) !important;
}

#waitlist-submit-btn:active {
  transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
  .waitlist-modal__container {
    padding: 30px 20px;
    width: 95%;
  }

  .waitlist-modal__title {
    font-size: 28px;
  }

  .waitlist-modal__subtitle {
    font-size: 12px;
  }
}
