:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #d0d0d0;
  --accent: #5e17eb;
}
.hero-video {
  width: 100%;
  max-width: 1440px;       /* matches your hero width */
  aspect-ratio: 16 / 9;    /* 1920 x 1080 */
  height: auto;
  display: block;
  margin: 18px auto 40px;
  border-radius: 8px;
  border-style: solid;
  border-color: #5e17eb;
  object-fit: cover;       /* fills the box without distortion */
}


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

/* desktop only (adjust breakpoint if needed) */
@media (min-width: 1024px) {
  .hero-wallet-link {
    display: block;
    margin-top: 20px;      /* 10px under hero sub text */
  }

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

  .hero-wallet-link a::after {
    content: "›";          /* right caret-style arrow */
    margin-left: 6px;
    color: inherit;        /* same yellow as the text */
    font-size: 0.95em;
  }

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

.solana-text {
  color: #5e17eb; /* a nice purple */
}
.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: 12px 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-family: "CloneCast", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px; /* desktop + tablet */
  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;
  }

  /* Mobile CTA font size */
  .header-cta {
    font-size: 8px; /* mobile */
  }
}

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

.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;
  }
}

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: 170px 48px 48px; /* increased top padding because header is now fixed */
  text-align: center;
}
.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-vision {
  color: #5e17eb;
}
/* Desktop: ANYTIME purple, ANYWHERE white */
.hero-anytime {
  color: #5e17eb;
}
.hero-anywhere {
  color: #fff;
}
/* Desktop and Tablet */
.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Mobile */
@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; /* keep hover-zoomed image inside */
}
.section-image img.bg-card {
  width: 100%;
  min-height: 340px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--accent);
  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; /* smooth hover scale */
}

/* Desktop hover: scale cast image by 10% */
@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: .90rem;
  line-height: 1.7;
  color: var(--muted);
}

.bottom-hero {
  max-width: 1440px;
  margin: 0 auto 60px;
  padding: 40px 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: 14px 26px;
  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;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.bottom-hero-button:hover {
  background: #fff;
  color: #000;
  border: none;
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  bottom: 72px;          /* desktop & tablet */
  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);
}

/* Mobile: extra 20px from bottom (72 + 20 = 92) */
@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: 120px 32px 40px; }
  .hero-title { font-size: 2.2rem; }
  .section-inner { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 20px 32px; }
  .hero-title { font-size: 30px; }

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

  .section-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px 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.8); transform-origin: center; }
  .section-image img.cast-card { max-height: 200px; }

  .footer-inner {
    padding: 0 20px;
    flex-direction: column;
    gap: 16px;              /* increased gap for more space */
    text-align: center;
  }

  /* Mobile footer extra height (50px + 25px) */
  .site-footer {
    height: 90px;
  }

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

/* FINAL MOBILE COLOR OVERRIDE FOR HERO TEXT */
@media (max-width: 768px) {
  .hero-anytime { color: #ffffff !important; }
  .hero-anywhere { color: #5e17eb !important; }
}
