/* ==========================================================================
   HOMEPAGE STYLES - Consolidated from home.css + hybrid-homepage.css
   ========================================================================== */

/* ==========================================================================
   HERO SECTION - Base Styles
   ========================================================================== */
.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;
}

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

/* Gradient Orbs */
.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 */
.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;
}

.live-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(102, 126, 234, 0);
    }
}

.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
   ========================================================================== */
.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-item.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* ==========================================================================
   CHART CONTAINER
   ========================================================================== */
.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;
    animation: chartEntrance 1s ease-out;
}

@keyframes chartEntrance {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.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 Quadrant Hover Effects */
.chart-quadrant {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.chart-quadrant:hover {
    opacity: 0.95;
    filter: brightness(1.2) saturate(1.2);
}

/* Chart Tooltip */
.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);
}

/* ==========================================================================
   CURIOSITY STATS SECTION
   ========================================================================== */
.curiosity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    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-wrapper {
    margin-bottom: 1rem;
}

.stat-icon-svg {
    width: 60px;
    height: 60px;
}

.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;
    background-clip: text;
    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
   ========================================================================== */
.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);
    animation: fadeInUp 0.3s ease;
}

.faq-answer p {
    margin: 0;
}

/* ==========================================================================
   ANIMATION UTILITIES
   ========================================================================== */
.fade-in,
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible,
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* ==========================================================================
   DESKTOP LAYOUT (1200px+)
   ========================================================================== */
@media (min-width: 1200px) {
    /* Hero Desktop Grid */
    .hero {
        padding: 100px 60px 30px;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .hero-content {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 40px;
        align-items: start;
    }
    
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .trust-indicators,
    .hero-cta,
    .stats-container {
        grid-column: 1;
        text-align: left;
        align-self: flex-start;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-badge {
        margin-right: auto;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 4vw, 4.5rem);
        margin-bottom: 1.25rem;
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 1.5vw, 1.5rem);
        margin-bottom: 1.25rem;
        max-width: 540px;
    }
    
    .trust-indicators {
        justify-content: flex-start;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .hero-cta {
        font-size: 1.25rem;
        padding: 1rem 2.5rem;
        margin: 0.5rem 0 0;
    }
    
    .hero-cta:hover::before {
        width: 700px;
        height: 600px;
    }
    
    /* Chart Desktop */
    .chart-container {
        grid-column: 2;
        grid-row: 1 / span 6;
        width: 500px;
        height: 500px;
        margin: 0;
        position: relative;
        transform: perspective(1200px) rotateY(-5deg);
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        align-self: center;
        margin-top: 0;
    }
    
    .chart-container:hover {
        transform: perspective(1200px) rotateY(0deg) scale(1.05);
        filter: drop-shadow(0 20px 60px rgba(102, 126, 234, 0.4));
    }
    
    .chart-container:hover .chart-3d {
        transform: rotateX(-5deg) rotateY(5deg) scale(1.02);
    }
    
    /* Orbs Desktop */
    .orb-1 {
        width: 800px;
        height: 800px;
        top: -10%;
        right: 80%;
    }
    
    .orb-2 {
        width: 700px;
        height: 700px;
        bottom: 20%;
        right: 80%;
    }
    
    .orb-3 {
        width: 600px;
        height: 600px;
        top: -10%;
        left: 80%;
    }
    
    /* Sections Desktop */
    .section {
        padding: 120px 60px;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
        max-width: 900px;
    }
    
    /* Nav Desktop */
    .nav {
        padding: 2rem 60px;
    }
    
    .nav.scrolled {
        padding: 1.25rem 60px;
    }
    
    .nav-container {
        max-width: 1600px;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .nav-links {
        gap: 4rem;
    }
    
    /* FAQ Desktop */
    .faq-container {
        max-width: 1000px;
    }
    
    .faq-question {
        font-size: 1.25rem;
        padding: 2rem;
    }
    
    .faq-answer {
        font-size: 1.125rem;
        padding: 0 2rem 2rem;
    }
    
    /* Footer Desktop */
    .footer {
        padding: 80px 60px 40px;
    }
    
    .footer-content {
        max-width: 1400px;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 4rem;
    }
}

/* ==========================================================================
   14" MACBOOK PRO (1400px - 1600px)
   ========================================================================== */
@media (min-width: 1400px) and (max-width: 1600px) {
    .hero-content {
        max-width: 1360px;
        gap: 60px;
    }
    
    .chart-container {
        width: 650px;
        height: 650px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
}

/* ==========================================================================
   ULTRA-WIDE SCREENS (1600px+)
   ========================================================================== */
@media (min-width: 1600px) {
    .hero {
        padding: 140px 80px 100px;
    }
    
    .hero-content {
        max-width: 1600px;
        gap: 100px;
    }
    
    .chart-container {
        width: 800px;
        height: 800px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
        max-width: 600px;
    }
}

/* ==========================================================================
   TABLET & MOBILE (below 1200px)
   ========================================================================== */
@media (max-width: 1199px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        max-width: 100%;
    }
    
    /* Reorder elements: badge → title → subtitle → chart → trust → CTA → stats */
    .hero-badge { order: 1; }
    .hero-title { order: 2; }
    .hero-subtitle { order: 3; }
    .chart-container { 
        order: 4;
        width: min(85vw, 500px);
        height: min(85vw, 500px);
        margin: 1rem auto;
    }
    .trust-indicators { 
        order: 5;
        margin-bottom: 0;
        justify-content: center;
        align-items: center;
    }
    .hero-cta { 
        order: 6;
        margin-top: 0.5rem;
    }
    .stats-container { order: 7; }
    
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .trust-indicators,
    .hero-cta,
    .stats-container {
        text-align: center;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
        min-height: auto;
    }

    .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;
    }

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

    .curiosity-stats {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }

    .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;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

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

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

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .trust-logos-scroll {
        animation: none;
    }
}