:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #d0d0d0;
  --accent: #5e17eb;
}

/* FAQ Container - Desktop (75% Width & Centered) */
.faq-container {
    width: 75%;            /* Restrict width on desktop */
    max-width: 1440px;
    margin: 0 auto;        /* Center the container */
    padding: 60px 0;       /* Vertical padding only, let width handle sides */
}

/* FAQ Item Styling (Keep this the same) */
.faq-item {
    border-bottom: 1px solid rgba(94, 23, 235, 0.3);
    padding: 24px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faq-icon {
    color: var(--accent);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
    padding-top: 16px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Mobile Adjustments (100% Width) */
@media (max-width: 768px) {
    .faq-container {
        width: 100%;        /* Reset to full width on mobile */
        padding: 40px 24px; /* Add side padding so text doesn't hit screen edges */
    }
    
    .faq-question h3 { 
        font-size: 1rem; 
        padding-right: 10px; /* Prevent text overlapping icon */
    }
}

/* button anim join waitlist + - FIXED HOVER BOUNCE */
.bottom-hero-button {
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  will-change: transform;
}

.bottom-hero-button:hover {
  background: #fff;
  color: #000;
  border: none;
  animation: bounceUpDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Gif feature card borders */
img[src="images/knowledge_demo.webp"].cast-card {
    border-radius: 5px;
    border: 1px solid rgba(94, 23, 235, 0.5);
    transition: border-color 0.25s ease-out;
}

img[src="images/knowledge_demo.webp"].cast-card:hover {
    border-color: #fff;
}

/* Mobile: 95% width */
@media (max-width: 767px) {
    .mob-demo-image {
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 auto;
    }
}

/* Desktop/Tablet: 70% max width */
@media (min-width: 768px) {
    .desk-demo-image {
        max-width: 45% !important;
        width: 45% !important;
        margin: 0 auto;
    }
}

/* Page wrapper styles */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper main {
    flex: 1;
}

.page-active .site-footer {
    display: none !important;
}

.hero-video {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin: 18px auto 40px;
  border-radius: 5px;
  border-style: solid;
  border-color: rgba(94, 23, 235, 0.5);
  object-fit: cover;
}

/* base: hide on mobile/tablet */
.hero-wallet-link {
  display: none;
}

/* desktop only */
@media (min-width: 1024px) {
  .hero-wallet-link {
    display: block;
    margin-top: 20px;
  }

  .hero-wallet-link a {
    color: #fab515;
    text-decoration: none;
    font-weight: 500;
    font-size: 9px;
    position: relative;
  }

  .hero-wallet-link a::after {
    content: "›";
    margin-left: 6px;
    color: inherit;
    font-size: 0.95em;
  }

  .hero-wallet-link a:hover {
    text-decoration: underline;
  }
}

.solana-text {
  color: #5e17eb;
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@font-face {
  font-family: "CloneCast";
  src: url(clonecastfont.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.demo-image {
  width: 80%;
  max-width: 80%;
  display: block;
  margin: 10px auto;
}

@media (max-width: 768px) {
  .demo-image {
    width: 100%;
    max-width: 100%;
  }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-family: "CloneCast", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.header-cta:hover {
  background: #fff;
  color: #000;
  border: none;
  transform: translateY(-1px);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ANIMATED UNDERLAYER - BREATHING EFFECT */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(images/underlayer.png);
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  animation: underlayerBreath 5s ease-in-out infinite;
}

@keyframes underlayerBreath {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.75; }
}

/* HEADER - TRANSPARENT → BLACK ON SCROLL */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
  z-index: 1000;
}

.site-header.scrolled {
  background: #000000 !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #181818;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 16px 48px;
}

/* Mobile header adjustments */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
  }
  .site-header.scrolled {
    padding: 14px 20px;
  }

  .header-cta {
    font-size: 8px;
  }
}

.site-logo img {
  height: 26px;
  width: auto;
}

.site-logo-link {
  display: contents;
  text-decoration: none;
}

.site-logo-link:hover .site-logo {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader-logo {
  width: 400px;
  height: 400px;
}

@media (max-width: 768px) {
  .loader-logo {
    width: 250px;
    height: 250px;
  }
  
.site-logo img {
  height: 26px;
  top-margin: 10px;
  width: auto;
}
}

main {
  width: 100%;
  min-width: 1200px;
  flex: 1;
  position: relative;
  z-index: 2;
}

@media (max-width: 1200px) {
  main {
    min-width: 0;
  }
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-heading {
  font-family: "CloneCast", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 150px 48px 108px;
  text-align: center;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.08;
}

.hero-vision {
  color: #5e17eb;
}

.hero-anytime {
  color: #5e17eb;
}

.hero-anywhere {
  color: #fff;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero-subtitle {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: .85rem;
    line-height: 1.6;
    color: var(--muted);
  }
}

.hero-casts {
  margin-top: 16px;
}

.hero-img-desktop, .hero-img-mobile {
  width: 100%;
  max-width: 1440px;
  height: auto;
  display: block;
  margin: 8px auto 40px;
  border-radius: 8px;
}

.hero-img-mobile { display: none; }

.section { width: 100%; }

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 96px;
  display: flex;
  gap: 48px;
  align-items: center;
}

.section-image {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.section-image img.bg-card {
  width: 100%;
  min-height: 340px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(94, 23, 235, 0.5);
  transition: border-color 0.2s ease;
}

.section-image img.cast-card {
  position: absolute;
  max-height: 290px;
  max-width: 70%;
  width: auto;
  height: auto;
  display: block;
  pointer-events: none;
  transition: transform 0.25s ease-out;
}

@media (min-width: 769px) {
  .section-image:hover img.cast-card {
    transform: scale(1.1);
  }
}

.section-image img.bg-card:hover {
  border-color: #fff;
}

.section-text {
  flex: 1 1 50%;
}

.section-heading {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-body {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .section-body {
    font-size: 0.90rem;
  }
}

.bottom-hero {
  max-width: 1440px;
  margin: 0 auto 60px;
  padding: 60px 24px 60px;
  text-align: center;
}

.bottom-hero-title {
  font-family: "CloneCast", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 800;
  text-transform: none;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.bottom-hero-subtitle {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--muted);
}

.bottom-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-family: "CloneCast", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
}

.bottom-hero-button:hover {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
  animation: bounceUpDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  transform: none !important; /* Clears any conflicting transforms */
}

.back-to-top {
  position: fixed;
  bottom: 72px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.back-to-top .caret-up {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #fff;
}

.back-to-top:hover {
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 92px;
  }
}

.site-footer {
  width: 100%;
  height: 50px;
  background-color: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  font-family: "CloneCast", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 8px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left { font-size: 8px; }

.footer-right a {
  color: #fff;
  text-decoration: none;
  font-size: 8px;
}

.footer-right a:hover { text-decoration: underline; }

.footer-separator { margin: 0 6px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { padding: 124px 32px 90px; }
  .hero-title { font-size: 2.4rem; }
  .section-inner { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 140px 15px 86px; }
  .hero-title { font-size: 32px; }

  .hero-img-desktop { display: none; }
  .hero-img-mobile { display: block; }

  .section-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 15px 56px;
    gap: 8px;
  }

  .section-text, .section-image { width: 100%; }
  .section-text { order: 1; }
  .section-image { order: 2; }
  
  .section-image img.bg-card { 
    transform: scale(0.9); 
    transform-origin: center; 
    margin-top: 6px; 
  }
  
  .section-image img.cast-card { max-height: 250px; }

  .footer-inner {
    padding: 0 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .site-footer {
    height: 90px;
  }

  .footer-left { font-size: 10px; }
  .bottom-hero-title { font-size: 24px; }
  .section-heading { font-size: 24px; }
}

@media (max-width: 768px) {
  .hero-anytime { color: #ffffff !important; }
  .hero-anywhere { color: #5e17eb !important; }
}

@media (max-width: 767px) {
  .solana-text { display: none !important; }
}
