/* FILE: /public_html/assets/css/main.css | VERSION: v10-c (Section 3 Polish) */
/* This is the new base stylesheet based on the new screenshots. */
/* This file FIXES the cursor (Point #2) and full-width layout (Point #8). */

/* =============================================================
   ROOT VARIABLES (New Solana Theme)
   ============================================================= */
:root {
    --font-primary: 'Inter', sans-serif;
    --bg-color: #000000;
    --panel-color: #0c0c0d;
    --bg-color-light: #111111; /* Lighter panel for hover */

    /* FIX: ADDED THESE TWO MISSING VARIABLES */
    --bg-color-dark: #080808; /* Used by auth-modal and invest-page */
    --bg-color-blur: rgba(12, 12, 13, 0.7); /* Translucent panel-color for the header */

    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(255, 255, 255, 0.2);
    --text-color: #f8f8f8;
    --text-color-muted: #888888;

    /* Neon Accents from Screenshots */
    --neon-violet: #9945FF;
    --neon-magenta: #E43CFF;
    --neon-cyan: #00C6FF;
    --neon-green: #20f3a8;
    --neon-purple-glow: rgba(153, 69, 255, 0.3);
    --neon-cyan-glow: rgba(0, 198, 255, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, var(--neon-violet) 0%, var(--neon-magenta) 100%);
    --gradient-secondary: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-green) 100%);
    
    /* Neon Border for Cards */
    --gradient-border: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));

    --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
    --header-height: 70px;
}

/* =============================================================
   BASE & RESET
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-color);
}

body {
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* FIX: This makes the whole site use the custom cursor */
    cursor: none; 

    /* New background from screenshots */
    background-image: radial-gradient(at 0% 0%, rgba(153, 69, 255, 0.15) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(0, 198, 255, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* =============================================================
   FIX: NEON CURSOR (Point #2)
   ============================================================= */
.neon-cursor-dot, .neon-cursor-outline {
    /* FIX: Use fixed position and pointer-events: none */
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0; /* Hidden by default, made visible by JS */
    transition: opacity 0.3s ease;
}

.neon-cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    /* FIX: Add transition for smooth movement */
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, transform 0.05s linear;
}

.neon-cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-cyan);
    opacity: 0.5;
    /* FIX: Make outline transition smoother */
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, transform 0.1s linear, background-color 0.3s ease;
}

/* Hover state for links/buttons */
body.is-cursor-hover .neon-cursor-dot {
    opacity: 0;
}

body.is-cursor-hover .neon-cursor-outline {
    width: 60px;
    height: 60px;
    background-color: var(--neon-cyan-glow);
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .neon-cursor-dot, .neon-cursor-outline {
        display: none;
    }
    body {
        cursor: auto; /* Show default cursor on mobile */
    }
}

/* =============================================================
   GLOBAL STYLES (v10 REBUILD)
   ============================================================= */
main {
    overflow: hidden; 
}

/* FIX: This makes the layout full-width (Point #8) */
.container-fluid {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 768px) {
    .container-fluid {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.section {
    position: relative;
    overflow: hidden;
    
    /* FIX: Adds proper separation between sections (Point #3) */
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-top: 1px solid var(--border-color);
}

/* No border on the first section */
main > section:first-of-type {
    border-top: none;
    /* padding-top: 8rem; /* More space for hero - Handled by hero min-height now */
}

@media (max-width: 768px) {
    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    main > section:first-of-type {
        padding-top: 5rem;
    }
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    max-width: 15ch;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color-muted);
    max-width: 60ch;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.eyebrow-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--neon-violet);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* =============================================================
   GLOBAL BUTTONS (v10 REBUILD)
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: none; /* Use custom cursor */
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-color);
    box-shadow: 0 5px 20px -5px var(--neon-purple-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px var(--neon-purple-glow);
}

.btn-secondary {
    border-color: var(--border-color-light);
    color: var(--text-color);
}
.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* OLD .btn-arrow (re-styled in landing.css) */
.btn-arrow {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}
.btn-arrow::after {
    content: '→';
    transition: transform 0.3s ease;
}
.btn-arrow:hover {
    gap: 0.75rem;
    color: var(--neon-cyan);
}
.btn-arrow:hover::after {
    transform: translateX(4px);
}


/* NEW: Glowing Secondary Button (Your Suggestion) */
.btn-secondary-glow {
    border-color: var(--border-color-light);
    color: var(--text-color-muted);
    font-weight: 600;
    background: transparent;
    padding-left: 1rem; /* Adjust padding for arrow */
    padding-right: 1rem;
    gap: 0.25rem;
}
.btn-secondary-glow .arrow-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.btn-secondary-glow:hover {
    color: var(--text-color);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow), 0 0 25px var(--neon-cyan-glow) inset;
    background-color: rgba(0, 198, 255, 0.05);
    transform: translateY(-2px);
}
.btn-secondary-glow:hover .arrow-icon {
    transform: translateX(4px);
    color: var(--neon-cyan);
}
/* END: New Button */


/* =============================================================
   SCROLL REVEAL (Animation)
   ============================================================= */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children for grid items */
.card-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1) 0.1s, 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1) 0.1s;
}

.section-reveal.is-visible .card-reveal:nth-child(1) { transition-delay: 0.1s; }
.section-reveal.is-visible .card-reveal:nth-child(2) { transition-delay: 0.2s; }
.section-reveal.is-visible .card-reveal:nth-child(3) { transition-delay: 0.3s; }
.section-reveal.is-visible .card-reveal:nth-child(4) { transition-delay: 0.4s; }

.section-reveal.is-visible .card-reveal {
    opacity: 1;
    transform: translateY(0);
}