/* -----------------------------------------
   FLAMENTRA DESIGN SYSTEM
   ----------------------------------------- */

:root {
    --cursor-size: 10px;
    --cursor-ring-size: 40px;
}

body {
    background-color: #000100; /* Black */
    cursor: none; /* Hide default cursor */
}

/* Custom Scrollbar override for clean look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #000100; 
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2); 
}

/* -----------------------------------------
   CUSTOM CURSOR
   ----------------------------------------- */
.custom-cursor-dot,
.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: white;
}

.custom-cursor-ring {
    width: var(--cursor-ring-size);
    height: var(--cursor-ring-size);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hover States for cursor */
.cursor-hover:hover ~ #cursor-ring,
.cursor-hover:hover * ~ #cursor-ring, /* Depending on DOM structure */
body.hovering .custom-cursor-ring {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}
body.hovering .custom-cursor-dot {
    opacity: 0;
}

/* -----------------------------------------
   LIQUID GLASS (GLASSMORPHISM)
   ----------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    /* Dynamic Specular highlight base */
    background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0.2), 
        transparent 40%, 
        transparent 60%, 
        rgba(255, 255, 255, 0.05)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* -----------------------------------------
   TYPOGRAPHY & CUSTOM ANIMATIONS
   ----------------------------------------- */
.text-glow {
    text-shadow: 0 0 20px rgba(180, 210, 231, 0.3); /* Pale Sky glow */
}

.hero-badge {
    animation: badge-pulse 4s infinite alternate;
}

@keyframes badge-pulse {
    0% { filter: drop-shadow(0 0 5px rgba(148, 197, 204, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(161, 166, 180, 0.5)); }
}

@keyframes dash {
    to {
        stroke-dashoffset: 24;
    }
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* -----------------------------------------
   GSAP SETUP CLASSES
   ----------------------------------------- */
.word {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.1em; /* Prevent clipping of descenders */
    padding-top: 0.1em;
}
.char {
    display: inline-block;
    will-change: transform, opacity;
}

/* -----------------------------------------
   MAGNETIC BUTTON
   ----------------------------------------- */
.magnetic-wrap {
    transform-style: preserve-3d;
    will-change: transform;
}
.button-fill {
    mix-blend-mode: color-burn; /* Gives it the ember intensive look */
}

/* Preloader Path drawing */
#logo-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

/* -----------------------------------------
   INFINITE MARQUEE
   ----------------------------------------- */
.marquee-track {
    animation: scroll-marquee 20s linear infinite;
    width: max-content;
}

@keyframes scroll-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* We translate 50% because we duplicated the item inside the flex container */
}

/* -----------------------------------------
   FAQ ACCORDION
   ----------------------------------------- */
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}
.faq-item.is-open .faq-content {
    grid-template-rows: 1fr !important;
}
