/*
================================================================================
| ROOBUX - NEW DESIGN SYSTEM v3.0 | home.css (Desktop-Only)
================================================================================
| Styles for the homepage (index.html).
| All mobile-specific @media queries have been removed as requested.
================================================================================
*/

/*
 * -----------------------------------------------------------------
 * [FIX 1] GLOBAL HOVER GLOW OVERRIDE
 * This fixes the issue where the glow effect from main.css
 * would cover the text. We disable the '::before' pseudo-element
 * and apply the glow as a box-shadow.
 * -----------------------------------------------------------------
 */
.card::before,
.timeline-item::before,
.calculator-wrapper::before {
    display: none; /* Disable the background glow */
}
.card:hover,
.timeline-item:hover,
.calculator-wrapper:hover {
    border-color: var(--color-primary) !important; /* Add border highlight */
    box-shadow: var(--shadow-glow-primary) !important; /* Use the glow shadow */
    transform: translateY(-5px);
}
/* ----------------------------------------------------------------- */


/* --- 1. HERO SECTION --- */
#hero {
    position: relative;
    padding: var(--space-xxxl) 0;
    min-height: calc(90vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background Grid + Glow */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, white 0%, transparent 70%);
    animation: pan-grid 60s linear infinite;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    background: linear-gradient(90deg, var(--color-text-primary), var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 10s ease-in-out infinite;
    text-shadow: 0 0 20px var(--color-primary-glow);
}

.hero-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: var(--color-text-secondary);
    margin: 0 auto var(--space-xl);
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xxxl);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-xl);
}

.trust-item {
    text-align: center;
}

.trust-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.trust-item span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- 2. CRYPTO TICKER STRIP (STICKY "TRAIL") --- */
#ticker {
    position: sticky;
    /* MODIFICATION: Changed to 0 to stick to the very top */
    top: 0; 
    /* MODIFICATION: z-index must be higher than header to stick *over* it */
    z-index: 1001; /* 999 */
    width: 100%;
    padding: var(--space-md) 0;
    background-color: var(--color-bg-main);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: flex;
    gap: var(--space-xl);
    animation: scroll-ticker 40s linear infinite;
    width: max-content; /* Critical for seamless loop */
}

@keyframes scroll-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Scrolls exactly one copy of the content */
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.ticker-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.ticker-item strong {
    color: var(--color-text-primary);
    font-size: 1rem;
}
.ticker-price {
    font-weight: 500;
}
.ticker-change {
    font-weight: 600;
}
.ticker-change.text-success {
    color: var(--color-success) !important;
}
.ticker-change.text-error {
    color: var(--color-error) !important;
}

/* --- 3. SECTION STYLING --- */
.section {
    padding: var(--space-xxxl) 0;
    position: relative;
}
.section.bg-dark {
    background-color: var(--color-bg-main);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    max-width: 800px;
    margin: 0 auto var(--space-xxl);
    text-align: center;
}
.section-header .subtitle {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.section-header h2 {
    margin-bottom: var(--space-md);
}
.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* --- 4. PACKAGES GRID --- */
#packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.package-card {
    /* Use the .card styles from main.css */
    display: flex;
    flex-direction: column;
}
.package-card.popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-primary);
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: var(--space-xl);
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 2;
}

.package-card h3 {
    font-size: 1.75rem;
    color: var(--color-text-primary);
}
.package-price {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}
.package-return {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    line-height: 1;
    text-shadow: 0 0 15px var(--color-accent-glow);
}
.package-return span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}
.package-features {
    list-style: none;
    padding: var(--space-lg) 0;
    margin: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    flex-grow: 1;
}
.package-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}
.package-features li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 800;
    font-size: 1.25rem;
}
.mt-auto {
    margin-top: auto;
}

/* --- 5. ROI CALCULATOR --- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.calculator-form {
    padding: var(--space-xxl);
}
.calculator-form .section-header {
    text-align: left;
    margin-bottom: var(--space-xl);
}
.calculator-results {
    background-color: var(--color-bg-main);
    border-left: 1px solid var(--color-border);
    padding: var(--space-xxl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
}
.calculator-results h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-top: 0;
}
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding-bottom: var(--space-md);
    border-bottom: 1px dashed var(--color-border);
}
.result-item.total {
    border-bottom: none;
    padding-top: var(--space-md);
}
.result-item strong {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-success);
    text-shadow: 0 0 10px var(--color-success-glow);
}
.result-item.total strong {
    font-size: 2.5rem;
}

/* --- 6. FEATURES GRID (4-COLUMN ALIGNMENT FIX) --- */
#features-grid {
    display: grid;
    /* 4-column layout as requested */
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}
.feature-card {
    /* Use the .card styles from main.css */
    text-align: left;
    padding: var(--space-xl);
    /* Ensure all cards are same height */
    display: flex;
    flex-direction: column;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    line-height: 1;
}
.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}
.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1; /* Makes p fill space, pushing link down */
}

/* --- 7. HOW IT WORKS (TIMELINE) --- */
.timeline-wrapper {
    display: grid;
    /* Tighter 2x2 grid to fill space */
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    /* Apply .card styles */
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-medium);
}
.timeline-step {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--color-primary-glow);
    z-index: 1;
}
.timeline-content {
    z-index: 1;
}
.timeline-content h3 {
    margin-top: 0;
    color: var(--color-text-primary);
    font-size: 1.5rem;
}
.timeline-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/*
 * -----------------------------------------------------------------
 * [FIX 2] TESTIMONIALS
 * Rebuilt as a CSS-only scrolling marquee that pauses on hover.
 * This revision (3.1) ensures all cards are equal height.
 * -----------------------------------------------------------------
 */
.testimonials-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Add a subtle fade on the edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.testimonials-track {
    display: flex;
    gap: var(--space-xl);
    width: max-content; /* Let it be as wide as its content */
    animation: scroll-testimonials 60s linear infinite;
}
.testimonials-wrapper:hover .testimonials-track {
    animation-play-state: paused;
}

@keyframes scroll-testimonials {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Scrolls one full copy */
}

.testimonial-card {
    width: 400px;
    flex-shrink: 0; /* Prevent cards from shrinking */
    display: flex; /* Make the wrapper a flex container */
    align-items: stretch; /* Make children stretch to full height */
}

/* THIS IS THE FIX: */
.testimonial-card .card {
    display: flex;
    flex-direction: column;
    width: 100%; /* Make card fill the wrapper */
    height: 100%; /* Make card fill the wrapper */
}
.testimonial-card .card-body {
    flex-grow: 1; /* This forces the text area to expand */
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding: var(--space-xl); /* Use card's default padding */
}
/* END OF FIX */

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    /* Remove default card padding from this element */
    margin-left: var(--space-xl);
    margin-right: var(--space-xl);
    margin-bottom: var(--space-xl);
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-author strong {
    display: block;
    color: var(--color-text-primary);
}
.testimonial-author span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
/* ----------------------------------------------------------------- */


/*
 * -----------------------------------------------------------------
 * [FIX 3 & 4] SUPPORTED CRYPTOS
 * Set to a 3-column grid.
 * Removed 'padding-bottom: 0' to fix spacing with CTA.
 * -----------------------------------------------------------------
 */
#supported-cryptos {
    /* padding-bottom: 0;  <-- REMOVED THIS LINE */
}
#cryptos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
/* ----------------------------------------------------------------- */

.crypto-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    /* Use card styles */
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-medium);
}
.crypto-card img {
    width: 48px;
    height: 48px;
    object-fit: contain; /* Fix aspect ratio */
}
.crypto-info {
    flex-grow: 1;
}
.crypto-info strong {
    display: block;
    font-size: 1.125rem;
    color: var(--color-text-primary);
}
.crypto-info span {
    color: var(--color-text-muted);
    font-weight: 500;
}
.crypto-price {
    text-align: right;
}
.crypto-price .price-val {
    display: block;
    font-size: 1.125rem;
    color: var(--color-text-primary);
}
.crypto-price .change-val {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- 10. FINAL CTA --- */
#final-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    text-align: center;
    padding: var(--space-xxxl) var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-primary);
}
#final-cta h2 {
    color: var(--color-text-inverted);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 var(--space-sm) 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#final-cta p {
    color: var(--color-text-inverted);
    opacity: 0.9;
    font-size: 1.25rem;
    margin: 0 0 var(--space-xl) 0;
}
#final-cta .btn {
    background-color: white;
    color: var(--color-primary);
    transform: scale(1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    font-weight: 700;
    border-color: white;
}
#final-cta .btn:hover {
    background-color: var(--color-text-primary);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: white;
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 1200px) {
    #features-grid {
        /* Stack to 2x2 on medium tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    .calculator-results {
        border-left: none;
        border-top: 1px solid var(--color-border);
    }
    #packages-grid {
        grid-template-columns: 1fr;
    }
    .timeline-wrapper {
        grid-template-columns: 1fr;
    }
    /* [FIX 3] Crypto grid stacks to 2 columns */
    #cryptos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}