/* ============================================
   TOS Network - Elite Enhancements
   Premium Financial Platform Design
   ============================================ */

/* ============================================
   TRUST SIGNALS - Stats Bar
   Real-time metrics for instant credibility
   ============================================ */

.stats-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 0;
    margin: 4rem 0;
    backdrop-filter: blur(20px);
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.3) 50%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel-blue, #8FA3BF);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-change {
    font-size: 0.75rem;
    color: #22c55e;
    margin-top: 0.25rem;
    font-weight: 600;
}

.stat-change.negative {
    color: #ef4444;
}

/* Animated counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value {
    animation: countUp 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   ENHANCED HERO - More Dramatic
   ============================================ */

.hero-title {
    font-size: 5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.05 !important;
    margin-bottom: 2rem !important;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

/* Animated underline */
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 2px;
    animation: slideIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.375rem !important;
    line-height: 1.85 !important;
    color: var(--silver-blue, #C5D3E8) !important;
    max-width: 800px !important;
    margin: 0 auto 3rem !important;
}

/* ============================================
   ELITE CTA BUTTONS - Clear Hierarchy
   ============================================ */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn-primary {
    padding: 1rem 3rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 12px 40px -8px rgba(102, 126, 234, 0.6),
                0 0 0 0 rgba(102, 126, 234, 0.4) !important;
    position: relative;
    overflow: hidden;
}

/* Pulse animation for primary CTA */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 12px 40px -8px rgba(102, 126, 234, 0.6),
                    0 0 0 0 rgba(102, 126, 234, 0);
    }
    50% {
        box-shadow: 0 12px 40px -8px rgba(102, 126, 234, 0.6),
                    0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.btn-primary {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 16px 56px -8px rgba(102, 126, 234, 0.8) !important;
}

/* ============================================
   SOCIAL PROOF SECTION
   Build trust immediately
   ============================================ */

.social-proof {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.social-proof-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--steel-blue, #8FA3BF);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
}

.social-proof-item {
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-proof-item:hover {
    opacity: 1;
}

.social-proof-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.social-proof-label {
    font-size: 0.75rem;
    color: var(--steel-blue, #8FA3BF);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ============================================
   ENHANCED FEATURE CARDS - More Premium
   ============================================ */

.feature-card {
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* Number badge for cards */
.feature-card::before {
    content: attr(data-index);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(102, 126, 234, 0.8);
    transition: all 0.4s ease;
}

.feature-card:hover::before {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1) rotate(360deg);
}

.card-icon {
    position: relative;
    margin-bottom: 2rem !important;
}

/* Icon glow effect */
.card-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.feature-card:hover .card-icon::after {
    opacity: 1;
}

/* ============================================
   FLOATING ACTION BADGE
   Persistent CTA for conversion
   ============================================ */

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 2s both;
}

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

.floating-cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 32px -4px rgba(102, 126, 234, 0.6),
                0 0 0 0 rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.floating-cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px -4px rgba(102, 126, 234, 0.8);
}

.floating-cta-icon {
    width: 20px;
    height: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* ============================================
   DOCUMENTATION ICON - Premium Visual Element
   ============================================ */

.docs-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.docs-icon {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 32px -8px rgba(16, 185, 129, 0.3);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.docs-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    border-radius: 24px;
}

.docs-card:hover .docs-icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 12px 48px -8px rgba(16, 185, 129, 0.5);
    border-color: rgba(16, 185, 129, 0.4);
}

.docs-card:hover .docs-icon::after {
    transform: translate(-50%, -50%) scale(1);
}

.docs-icon img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.3));
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.docs-card:hover .docs-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 24px rgba(16, 185, 129, 0.5));
}

/* ============================================
   WHITEPAPER ICON - Premium Visual Element
   ============================================ */

.whitepaper-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.whitepaper-icon {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.whitepaper-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    border-radius: 50%;
}

.whitepaper-card:hover .whitepaper-icon::before {
    width: 200%;
    height: 200%;
    opacity: 1;
}

.whitepaper-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(102, 126, 234, 0.4));
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: floatWallet 6s ease-in-out infinite;
}

@keyframes floatWallet {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(-3deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.whitepaper-card:hover .whitepaper-icon img {
    animation-play-state: paused;
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 16px 48px rgba(102, 126, 234, 0.6));
}

/* ============================================
   PERFORMANCE STATS SCROLL - Premium Style
   ============================================ */

.performance-stats-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.stats-scroll-container {
    margin-top: 4rem;
    overflow: hidden;
    position: relative;
}

/* Fade gradients on edges */
.stats-scroll-container::before,
.stats-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.stats-scroll-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--premium-black, #0B0D17) 0%, transparent 100%);
}

.stats-scroll-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--premium-black, #0B0D17) 0%, transparent 100%);
}

.stats-scroll-track {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 40s linear infinite;
    will-change: transform;
}

.stats-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 8 - 2rem * 8));
    }
}

/* Stat Card */
.stat-card {
    min-width: 280px;
    background: var(--premium-card, #1F2233);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 48px -8px rgba(102, 126, 234, 0.4);
    background: var(--premium-card-hover, #252938);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Stat Card Icon */
.stat-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.05);
}

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

/* Stat Card Value */
.stat-card-value {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

/* Stat Card Label */
.stat-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--platinum-blue, #E8EDF4);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Stat Card Description */
.stat-card-desc {
    font-size: 0.875rem;
    color: var(--steel-blue, #8FA3BF);
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .performance-stats-section {
        padding: 4rem 0;
    }

    .stats-scroll-container::before,
    .stats-scroll-container::after {
        width: 50px;
    }

    .stat-card {
        min-width: 240px;
        padding: 1.5rem;
    }

    .stat-card-value {
        font-size: 2rem;
    }

    .stat-card-icon {
        width: 56px;
        height: 56px;
    }

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

/* ============================================
   TRUST BADGES - Security & Compliance
   ============================================ */

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--steel-blue, #8FA3BF);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

.trust-badge-icon {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

/* ============================================
   RESPONSIVE - Mobile Optimization
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.125rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        padding: 1rem 2rem !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Documentation & Whitepaper Icons Mobile */
    .docs-card,
    .whitepaper-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .docs-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .docs-icon img {
        width: 64px;
        height: 64px;
    }

    .whitepaper-icon {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        order: -1; /* 在移动端，钱包图标显示在上方 */
    }

    .whitepaper-icon img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   Wall Street Elite Enhancement
   ============================================ */

/* Fade-in-up animation for cards */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Section title slide-in animation */
.animate-slide-in-prep {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-slide-in-prep.animate-slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* Performance section fade-in */
.section-fade-in {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-fade-in.section-visible {
    opacity: 1;
}

/* Enhanced navbar on scroll */
.navbar-scrolled {
    background: rgba(11, 13, 23, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.6);
}

/* ============================================
   PERFORMANCE - Hardware Acceleration
   ============================================ */

.stat-value,
.floating-cta-button,
.feature-card,
.btn-primary,
.trust-badge,
.animate-fade-in-up,
.animate-slide-in-prep {
    will-change: transform, opacity;
    transform: translateZ(0);
}
