/* ==========================================================================
   HOME PAGE SPECIFIC STYLES - COMPLETE REDESIGN
   ========================================================================== */

/* ==========================================================================
   PAGE LOADER
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.loader-inner {
    text-align: center;
}

.loader-chart {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.loader-path {
    fill: none;
    stroke: #667eea;
    stroke-width: 2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: dash 2s ease-in-out infinite;
}

@keyframes dash {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

.loader-text {
    color: var(--color-gray);
    font-size: 0.875rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================================================
   STICKY QUIZ BAR
   ========================================================================== */
.sticky-quiz-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.3);
    padding: 1rem 2rem;
    z-index: 998;
    transition: bottom 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.sticky-quiz-bar.visible {
    bottom: 0;
}

.sticky-quiz-text {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--color-light);
    font-weight: 500;
    text-align: center;
}

.sticky-quiz-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sticky-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   HERO SECTION - PROPERLY STRUCTURED
   ========================================================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--dark-gradient);
    overflow: hidden;
    padding: 120px 20px 60px; /* Top padding accounts for nav */
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: min(600px, 50vw);
    height: min(600px, 50vw);
    background: var(--primary-gradient);
    top: -20%;
    left: -10%;
    animation: float 25s ease-in-out infinite;
}

.orb-2 {
    width: min(500px, 45vw);
    height: min(500px, 45vw);
    background: var(--secondary-gradient);
    bottom: -20%;
    right: -10%;
    animation: float 30s ease-in-out infinite reverse;
}

.orb-3 {
    width: min(400px, 40vw);
    height: min(400px, 40vw);
    background: var(--accent-gradient);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 35s ease-in-out infinite;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease-out;
}

.badge-icon {
    width: 16px;
    height: 16px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 1s ease-out 0.4s both;
    line-height: 1.5;
    margin: 0;
    padding: 0 20px;
    max-width: 800px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-gradient);
    color: var(--color-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.8s both;
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    margin-top: 1rem;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta:hover::before {
    width: 400px;
    height: 400px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
}

.cta-icon {
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-icon {
    transform: translateX(5px);
}

/* Trust Indicators - Fixed spacing */
.trust-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    width: 100%;
    padding: 0 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.trust-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-purple);
}

/* Chart Container - Responsive and centered */
.chart-container {
    width: min(90vw, 500px);
    height: min(90vw, 500px);
    margin: 3rem auto;
    position: relative;
}

.chart-3d {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.chart-face {
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 35, 0.3);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

/* Chart tooltip - properly positioned */
.chart-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(164, 85, 247, 0.95));
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 250px;
    line-height: 1.4;
}

.chart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 15px;
}

.tooltip-description {
    opacity: 0.95;
    font-size: 13px;
}

/* ==========================================================================
   STATS SECTION - Properly spaced
   ========================================================================== */
.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
    width: 100%;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    flex: 0 1 auto;
    min-width: 120px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.4));
}

.stat-label {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   TRUST BAR - Fixed positioning
   ========================================================================== */
.trust-bar {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 20px 2rem;
    position: relative;
    overflow: hidden;
    margin-top: -2rem; /* Pull up slightly to connect with hero */
}

.trust-bar-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.trust-label-fixed {
    position: absolute;
    left: 50%;
    top: 1rem;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(8, 8, 8, 0.95);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.trust-logos-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 40px;
    margin-top: 3rem;
}

.trust-logos-scroll {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
}

.trust-logos-group {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
}

.trust-logo {
    display: flex;
    align-items: center;
    height: 30px;
    filter: brightness(0) invert(0.6);
    opacity: 0.8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.trust-logo img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.trust-logo:hover {
    filter: brightness(0) invert(0.8);
    opacity: 1;
    transform: scale(1.05);
}

.logo-fallback {
    color: #999;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   MAIN SECTIONS - Consistent spacing
   ========================================================================== */
.section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.section-gradient {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
}

.section-dark {
    background: var(--color-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   CURIOSITY STATS - Better grid
   ========================================================================== */
.curiosity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5;
}

/* ==========================================================================
   FAQ SECTION - Clean layout
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.faq-question {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-light);
    padding: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-purple);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.faq-answer p {
    margin: 0;
}

/* ==========================================================================
   SOCIAL PROOF TICKER
   ========================================================================== */
.social-proof-ticker {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    display: inline-flex;
    align-items: center;
}

.ticker-item strong {
    color: var(--color-light);
    margin-right: 0.25rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   FOOTER - Proper structure
   ========================================================================== */
.footer {
    padding: 60px 20px 30px;
    background: var(--color-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--color-gray);
    line-height: 1.6;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--color-light);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* ==========================================================================
   MOBILE RESPONSIVE - Clean breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.25rem);
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .sticky-quiz-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .chart-container {
        width: 85vw;
        height: 85vw;
        max-width: 350px;
        max-height: 350px;
    }

    .section {
        padding: 60px 20px;
    }

    .curiosity-stats {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .trust-bar {
        padding: 3rem 20px 1.5rem;
    }

    .trust-label-fixed {
        font-size: 0.75rem;
        padding: 0.4rem 1.5rem;
    }

    .trust-logos-wrapper {
        height: 30px;
        margin-top: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .chart-svg text {
        font-size: 11px !important;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1) rotate(120deg); 
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9) rotate(240deg); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}