/* =======================================================
   DESIGN TOKENS
   Update these variables to retheme the entire site.
   ======================================================= */
:root {
  --bg-dark:            #000000;
  --bg-gradient-start:  #000508;
  --bg-gradient-end:    #011e29;
  --bg-card:            #08121a;
  --accent-sage:        #b6bd97;
  --accent-glow:        rgba(182, 189, 151, 0.15);
}

/* =======================================================
   BASE
   ======================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(
    to bottom,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 100%
  );
  background-attachment: fixed;
  color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

/* =======================================================
   TYPOGRAPHY UTILITY
   ======================================================= */
.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* =======================================================
   LAYOUT HELPERS
   ======================================================= */
.grid-lines {
  background-image: linear-gradient(
    to right,
    rgba(182, 189, 151, 0.03) 1px,
    transparent 1px
  );
  background-size: 16.66% 100%;
}

/* Hide scrollbar — used on bento/carousel rows */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =======================================================
   GRADIENT BORDER UTILITY
   Used via inline style="--border-gradient: ..."
   ======================================================= */
[style*="--border-gradient"]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius-before, inherit);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}

/* =======================================================
   ANIMATIONS
   ======================================================= */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animation — JS adds .animate class via IntersectionObserver */
.animate-on-scroll {
  animation-play-state: paused !important;
}
.animate-on-scroll.animate {
  animation-play-state: running !important;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll.animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .animate-marquee,
  .shiny-cta,
  .shiny-cta::before {
    animation: none !important;
  }

  [data-element-id="aura-emje7jkby1ysdtt0r"]::after {
    animation: none !important;
  }
}

/* =======================================================
   SHINY / SPINNING BORDER CTA  (home hero card)
   ======================================================= */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 20%;
  inherits: false;
}
@property --gradient-shine {
  syntax: "<color>";
  initial-value: #b6bd97;
  inherits: false;
}

.shiny-cta {
  --gradient-angle: 0deg;
  --gradient-angle-offset: 0deg;
  --gradient-percent: 20%;
  --gradient-shine: #b6bd97;

  background:
    linear-gradient(#08121a, #08121a) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent 0%,
      #b6bd97 5%,
      var(--gradient-shine) 15%,
      #b6bd97 30%,
      transparent 40%,
      transparent 100%
    ) border-box;

  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(182, 189, 151, 0.1);
  animation: border-spin 3s linear infinite;
  cursor: pointer;
}

@keyframes border-spin {
  to { --gradient-angle: 360deg; }
}

.shiny-cta::before {
  content: '';
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 200%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, rgba(182, 189, 151, 0.2), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.5;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =======================================================
   SPINNING BORDER — Aura-style (bento card, home)
   ======================================================= */
@property --angle-aura-emje7jkby1ysdtt0r {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

[data-element-id="aura-emje7jkby1ysdtt0r"]::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 1.5rem;
  background: conic-gradient(
    from var(--angle-aura-emje7jkby1ysdtt0r),
    transparent 40%,
    #b6bd97 50%,
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 20;
  animation: spin-aura-emje7jkby1ysdtt0r 4s linear infinite;
  filter: drop-shadow(0 0 2px rgba(182, 189, 151, 0.5));
}

@keyframes spin-aura-emje7jkby1ysdtt0r {
  to { --angle-aura-emje7jkby1ysdtt0r: 360deg; }
}

/* =======================================================
   MARQUEE (sponsors / partners carousel)
   ======================================================= */
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee-left 60s linear infinite;
}

/* Pause marquee on hover of the wrapper group */
.group:hover .animate-marquee {
  animation-play-state: paused;
}

/* Keep individual items running even when hovered */
.animate-marquee:hover {
  animation-play-state: running !important;
}

/* Marquee edge fade */
.marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Force full colour/opacity on carousel items */
.group\/item {
  filter: grayscale(0) !important;
}
.group\/item img {
  opacity: 1 !important;
}

/* =======================================================
   CARD HOVER TRANSITION  (founding partners grid)
   ======================================================= */
.card-item {
  transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =======================================================
   SHIMMER GLOW TEXT  (contact page hero)
   ======================================================= */
.animate-shimmer-glow {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 40%,
    #b6bd97 50%,
    #ffffff 60%,
    #ffffff 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine-glow 3.5s linear infinite;
}

@keyframes shine-glow {
  to { background-position: 200% center; }
}

/* =======================================================
   UTILITY — force hidden visibility
   (used by Aura to hide original overlapping text)
   ======================================================= */
.invisible-aura {
  visibility: hidden !important;
}

/* =======================================================
   COMPONENT HELPERS
   Keeps repeated Tailwind class groups manageable.
   ======================================================= */

/* Primary button — inline variant */
.btn-primary-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--accent-sage);
  background: #011e29;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-inline:hover {
  background: var(--accent-sage);
  color: #011e29;
  box-shadow: 0 0 15px rgba(182, 189, 151, 0.3);
}

/* Shared card base */
.feature-panel,
.info-card,
.image-tile,
.showcase-card {
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(182, 189, 151, 0.10);
  background: var(--bg-card);
  border-radius: 1.5rem;
  transition: border-color 0.3s ease;
}

.feature-panel:hover,
.info-card:hover,
.image-tile:hover,
.showcase-card:hover {
  border-color: rgba(182, 189, 151, 0.30);
}

/* Info card */
.info-card {
  flex: 1 1 0%;
  padding: 1.5rem;
}

/* Image tile */
.image-tile {
  height: 280px;
}

@media (min-width: 768px) {
  .image-tile {
    height: 100%;
  }
}

/* Showcase card */
.showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 280px;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .showcase-card {
    height: 100%;
  }
}

.showcase-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
  transition: opacity 0.7s ease;
}

.showcase-card:hover .showcase-card-image {
  opacity: 1;
}


