/* CRYPTO AGGREGATOR - Modern Horizontal Layout with Floating Cards + Theme System */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Performance optimizations */
    text-rendering: optimizeSpeed;
    -webkit-tap-highlight-color: transparent;
}

/* Performance: GPU acceleration for animated elements */
.platform-card,
.premium-hero-banner,
.header,
.horizontal-cards-grid {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* CSS Custom Properties for Theme System */
:root {
    /* Dark Theme (Default) */
    --bg-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    --bg-secondary: rgba(0, 0, 0, 0.5);
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-modal: rgba(20, 20, 20, 0.95);
    --bg-header: rgba(10, 10, 10, 0.95);
    --bg-header-scroll: rgba(10, 10, 10, 0.98);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.7);
    --text-quaternary: rgba(255, 255, 255, 0.6);

    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.2);
    --border-accent: rgba(247, 147, 26, 0.1);
    --border-accent-hover: rgba(247, 147, 26, 0.3);

    --accent-primary: #f7931a;
    --accent-secondary: #ffb347;
    --accent-gradient: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);

    --shadow-card: 0 25px 50px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(247, 147, 26, 0.2);
    --shadow-button: 0 10px 30px rgba(247, 147, 26, 0.3);
    --shadow-button-hover: 0 15px 40px rgba(247, 147, 26, 0.4);
}

/* Light Theme - Ultra Soft Eye Comfort */
[data-theme="light"] {
    /* Much softer background - warm cream tones that don't hurt eyes */
    --bg-primary: linear-gradient(135deg, #f8f6f3 0%, #f2efe9 50%, #f5f2ed 100%);
    --bg-secondary: rgba(248, 246, 243, 0.92);
    --bg-card: rgba(255, 254, 252, 0.96);
    --bg-card-hover: rgba(255, 254, 252, 1);
    --bg-modal: rgba(255, 254, 252, 0.98);
    --bg-header: rgba(252, 250, 247, 0.97);
    --bg-header-scroll: rgba(252, 250, 247, 0.98);

    /* High contrast text for perfect readability */
    --text-primary: #0f0f0f;
    --text-secondary: #2a2a2a;
    --text-tertiary: #4a4a4a;
    --text-quaternary: #7a7a7a;

    /* Softer borders with subtle warm tone */
    --border-primary: rgba(180, 160, 140, 0.12);
    --border-secondary: rgba(180, 160, 140, 0.22);
    --border-accent: rgba(232, 138, 26, 0.28);
    --border-accent-hover: rgba(232, 138, 26, 0.48);

    /* Warmer accent colors */
    --accent-primary: #e88a1a;
    --accent-secondary: #ff9f3a;
    --accent-gradient: linear-gradient(135deg, #e88a1a 0%, #ff9f3a 100%);

    /* Very soft shadows */
    --shadow-card: 0 6px 20px rgba(100, 85, 70, 0.08), 0 3px 10px rgba(232, 138, 26, 0.06);
    --shadow-button: 0 5px 18px rgba(232, 138, 26, 0.22);
    --shadow-button-hover: 0 8px 26px rgba(232, 138, 26, 0.32);
}

/* Light Theme Specific Adjustments for Better Visibility */
[data-theme="light"] .platform-logo {
    background: linear-gradient(135deg, rgba(232, 138, 26, 0.06) 0%, rgba(255, 159, 58, 0.04) 100%);
    border: 2px solid rgba(180, 160, 140, 0.18);
}

[data-theme="light"] .platform-logo img {
    filter: contrast(1.18) brightness(0.88) saturate(1.12);
}

[data-theme="light"] .platform-card {
    background: linear-gradient(135deg, rgba(255, 254, 252, 0.98) 0%, rgba(252, 250, 247, 0.96) 100%);
    border: 1.5px solid rgba(180, 160, 140, 0.18);
    box-shadow: 0 3px 14px rgba(100, 85, 70, 0.08), 0 2px 7px rgba(180, 160, 140, 0.06);
}

[data-theme="light"] .platform-card:hover {
    border-color: rgba(232, 138, 26, 0.48);
    box-shadow: 0 6px 24px rgba(100, 85, 70, 0.12), 0 3px 14px rgba(232, 138, 26, 0.22);
    transform: translateY(-4px);
}

[data-theme="light"] .platform-name {
    color: #0f0f0f;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .premium-hero-banner {
    background: linear-gradient(135deg, rgba(232, 138, 26, 0.1) 0%, rgba(255, 254, 252, 0.98) 100%);
    border: 2.5px solid rgba(232, 138, 26, 0.38);
    box-shadow: 0 10px 28px rgba(100, 85, 70, 0.14), 0 5px 14px rgba(232, 138, 26, 0.22);
}

[data-theme="light"] .premium-hero-logo {
    background: linear-gradient(135deg, rgba(232, 138, 26, 0.1) 0%, rgba(255, 159, 58, 0.06) 100%);
    border: 3px solid rgba(232, 138, 26, 0.42);
    box-shadow: 0 3px 10px rgba(232, 138, 26, 0.18);
}

[data-theme="light"] .premium-hero-logo img {
    filter: contrast(1.22) brightness(0.86) saturate(1.16);
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #d47c12 0%, #e88a1a 50%, #ff9f3a 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800;
    filter: drop-shadow(0 2px 3px rgba(212, 124, 18, 0.25));
}

[data-theme="light"] .hero-slogan,
[data-theme="light"] .hero-subtitle {
    color: #1a1a1a !important;
    text-shadow: none;
    font-weight: 600;
}

[data-theme="light"] .section-title {
    color: #0f0f0f !important;
    text-shadow: none;
    font-weight: 800;
}

[data-theme="light"] .section-subtitle {
    color: #1a1a1a !important;
    text-shadow: none;
    font-weight: 600;
}

[data-theme="light"] .modal-overlay {
    background: rgba(248, 246, 243, 0.93);
    backdrop-filter: blur(14px);
}

[data-theme="light"] .modal-content {
    background: linear-gradient(135deg, rgba(255, 254, 252, 0.98) 0%, rgba(252, 250, 247, 0.96) 100%);
    border: 2px solid rgba(180, 160, 140, 0.22);
    box-shadow: 0 20px 42px rgba(100, 85, 70, 0.16), 0 10px 20px rgba(180, 160, 140, 0.12);
}

[data-theme="light"] .modal-logo {
    background: linear-gradient(135deg, rgba(232, 138, 26, 0.1) 0%, rgba(255, 159, 58, 0.06) 100%);
    border: 3px solid rgba(232, 138, 26, 0.32);
    box-shadow: 0 5px 14px rgba(232, 138, 26, 0.18);
}

[data-theme="light"] .modal-logo img {
    filter: contrast(1.22) brightness(0.86) saturate(1.16);
}

[data-theme="light"] .modal-title {
    color: #0f0f0f;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .modal-description {
    color: #2a2a2a;
    line-height: 1.8;
}

[data-theme="light"] .modal-btn-primary {
    background: linear-gradient(135deg, #e88a1a 0%, #ff9f3a 100%);
    color: #0f0f0f;
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(232, 138, 26, 0.28);
}

[data-theme="light"] .modal-btn-primary:hover {
    box-shadow: 0 8px 26px rgba(232, 138, 26, 0.38);
}

[data-theme="light"] .modal-btn-twitter {
    background: rgba(29, 161, 242, 0.06);
    border: 2px solid rgba(29, 161, 242, 0.38);
    color: #0f0f0f;
}

[data-theme="light"] .modal-btn-twitter:hover {
    background: rgba(29, 161, 242, 0.12);
    border-color: rgba(29, 161, 242, 0.58);
}

[data-theme="light"] .modal-btn-secondary {
    background: transparent;
    border: 2px solid rgba(180, 160, 140, 0.28);
    color: #2a2a2a;
}

[data-theme="light"] .modal-btn-secondary:hover {
    background: rgba(180, 160, 140, 0.08);
    border-color: rgba(180, 160, 140, 0.38);
}

/* Light Theme - Navigation Menu with High Contrast */
[data-theme="light"] .nav-menu a {
    color: #0f0f0f !important;
    font-weight: 600;
    text-shadow: none;
}

[data-theme="light"] .nav-menu a:hover {
    color: #e88a1a !important;
    background: rgba(232, 138, 26, 0.06) !important;
}

[data-theme="light"] .nav-menu a::after {
    background: #e88a1a;
}

/* Light Theme - Header Background - FORCE Light Theme */
[data-theme="light"] .header {
    background: rgba(252, 250, 247, 0.97) !important;
    border-bottom: 1px solid rgba(180, 160, 140, 0.22) !important;
    backdrop-filter: blur(20px);
}

/* Light Theme - Header Logo - Golden Gradient */
[data-theme="light"] .logo h1 {
    background: linear-gradient(135deg, #d47c12 0%, #e88a1a 50%, #ff9f3a 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900;
    filter: drop-shadow(0 1px 2px rgba(212, 124, 18, 0.3));
}

[data-theme="light"] .logo-icon {
    color: #e88a1a;
    font-weight: bold;
    filter: drop-shadow(0 1px 2px rgba(232, 138, 26, 0.4));
}

/* Light Theme - Header Controls (Theme + Language buttons) */
[data-theme="light"] .theme-btn,
[data-theme="light"] .lang-btn {
    background: rgba(232, 138, 26, 0.08);
    border: 1.5px solid rgba(180, 160, 140, 0.22);
    color: #0f0f0f;
}

[data-theme="light"] .theme-btn:hover,
[data-theme="light"] .lang-btn:hover {
    background: rgba(232, 138, 26, 0.14);
    border-color: rgba(232, 138, 26, 0.38);
}

/* Light Theme - Footer */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #f8f6f3 0%, #f2efe9 100%);
    border-top: 1px solid rgba(180, 160, 140, 0.22);
}

[data-theme="light"] .footer-links a {
    color: #1a1a1a !important;
    font-weight: 600;
}

[data-theme="light"] .footer-links a:hover {
    color: #e88a1a !important;
}

[data-theme="light"] .footer-bottom p {
    color: #2a2a2a !important;
    font-weight: 500;
}

/* Light Theme - ALL TEXT ELEMENTS - Force Black for Visibility */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #0f0f0f !important;
}

[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] a {
    color: #1a1a1a !important;
}

/* Light Theme - Category Titles and Badges */
[data-theme="light"] .category-title,
[data-theme="light"] .category-badge,
[data-theme="light"] .badge {
    color: #0f0f0f !important;
    font-weight: 700;
}

/* Light Theme - Premium Hero Banner Text */
[data-theme="light"] .premium-hero-title {
    color: #0f0f0f !important;
    font-weight: 900;
    text-shadow: none;
}

[data-theme="light"] .premium-hero-subtitle,
[data-theme="light"] .premium-hero-description {
    color: #1a1a1a !important;
    font-weight: 600;
    text-shadow: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Optimize rendering performance */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    /* Prevent scroll jank */
    overscroll-behavior-y: none;
    /* Hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* FALLBACK: Ensure content starts below fixed header */
    padding-top: 0 !important;
}

/* Smooth scroll container optimization */
.horizontal-scroll-container,
.platform-card,
.premium-hero-banner {
    contain: layout style paint;
}

/* Optimize images for performance */
img {
    content-visibility: auto;
    contain-intrinsic-size: 100px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce repaints on hover */
.platform-card,
.nav-menu a,
.lang-btn,
.theme-btn {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop Layout Centering (768px and above) */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* Center header content */
    .header-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Center section content */
    .section-header {
        max-width: 800px;
        margin: 0 auto 3rem;
    }

    /* Center horizontal scroll containers */
    .horizontal-scroll-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0; /* Remove padding to show all items from start */
    }

    /* Desktop carousel alignment */
    .horizontal-cards-grid {
        /* Auto-center when content doesn't overflow, flex-start when it does */
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* Center carousels when they have few items that don't overflow */
    .horizontal-cards-grid:has(.platform-card:only-child),
    .horizontal-cards-grid:has(.platform-card:first-child:nth-last-child(-n+3)) {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    /* Ensure cards don't shrink on desktop */
    .platform-card {
        flex-shrink: 0;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-accent);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Top Row */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    animation: pulse 2s infinite;
}

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

/* Header Bottom Row - Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
    flex: 1;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #FDB813 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

/* Connect Button Container - Desktop Header */
.connect-container {
    position: relative;
    margin-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Connect Button - Desktop Header */
.connect-button {
    background: #F4B740;
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.connect-button:hover {
    background: #FFD166;
}

.connect-button:active {
    background: #E5A830;
}

/* "Todas as Plataformas" Button - Matches Connect Button */
.nav-menu a.all-platforms-button {
    background: #F4B740 !important;
    color: #1a1a1a !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-menu a.all-platforms-button:hover {
    background: #FFD166 !important;
    color: #1a1a1a !important;
}

.nav-menu a.all-platforms-button:active {
    background: #E5A830 !important;
}

.nav-menu a.all-platforms-button::after {
    display: none !important;
}

/* Connect Message - Appears below button */
.connect-message {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.connect-message.show {
    opacity: 1;
    visibility: visible;
}

/* Header Controls Container (Theme + Language) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Desktop Theme Toggle */
.desktop-theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000000;
    transform: scale(1.05);
}

.theme-btn .theme-icon {
    position: absolute;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Theme icon states for mobile menu */
.theme-icon {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-icon-light {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

.theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light theme icon states */
[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000000;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Menu Button Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-modal);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-primary);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.mobile-menu-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    user-select: none;
}

.mobile-menu-close:hover {
    background: var(--accent-primary);
    color: #000000;
    transform: scale(1.05);
}

/* Mobile Connect Button Container */
.mobile-connect-container {
    position: relative;
    width: calc(100% - 3rem);
    margin: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mobile Connect Button */
.mobile-connect-button {
    background: #F4B740;
    color: #1a1a1a;
    border: none;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
}

.mobile-connect-button:hover {
    background: #FFD166;
}

.mobile-connect-button:active {
    background: #E5A830;
}

/* Mobile Connect Message */
.mobile-connect-message {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 10px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    text-align: center;
    pointer-events: none;
}

.mobile-connect-message.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    padding: 1.5rem 1.5rem 1rem;
}

.mobile-theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    width: 100%;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.mobile-theme-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000000;
}

.mobile-theme-btn .theme-icon {
    position: relative;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 0.5rem;
}

.mobile-theme-btn .theme-text {
    font-weight: 500;
    font-size: 1rem;
}

.mobile-menu-separator {
    height: 1px;
    background: var(--border-primary);
    margin: 0 1.5rem 1rem;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-list a:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
    padding-left: 2rem;
}

.mobile-nav-list a:last-child {
    border-bottom: none;
}

/* Mobile "Todas as Plataformas" Special Styling */
.mobile-nav-list a.mobile-all-platforms-button {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(247, 147, 26, 0.1) !important;
    color: #f7931a !important;
    font-weight: 600 !important;
    border-left: 3px solid #f7931a !important;
    padding-left: 2rem !important;
}

/* Hero Section - CRITICAL: Must start below fixed header */
.hero {
    min-height: 60vh !important;
    display: flex !important;
    align-items: flex-start !important;
    position: relative !important;
    overflow: visible !important;
    background: radial-gradient(ellipse at top, rgba(247, 147, 26, 0.1) 0%, transparent 70%);
    padding-top: 10rem !important; /* Increased from 5rem to account for fixed header */
    padding-bottom: 4rem !important;
    margin-top: 0 !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 1200px !important;
}

.hero-content {
    /* animation: fadeInUp 1s ease-out; */ /* DISABLED: Can cause positioning issues */
    width: 100% !important;
    max-width: 900px !important;
    padding: 3rem 20px 0 !important;
    margin-top: 0 !important;
    opacity: 1 !important;
    transform: none !important;
}

.hero-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    padding-top: 0 !important;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* Center hero text on all devices */
.hero-title,
.hero-slogan,
.hero-subtitle {
    text-align: center;
}

.hero-content {
    text-align: center;
}

/* Ensure centering on desktop */
@media (min-width: 768px) {
    .hero-title,
    .hero-slogan,
    .hero-subtitle {
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
}

.cta-button {
    background: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(247, 147, 26, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.crypto-icons {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.crypto-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-secondary);
}

.crypto-icon.bitcoin {
    color: var(--accent-primary);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 3s ease-in-out infinite;
}

.crypto-icon.ethereum {
    color: #627eea;
    top: 120px;
    left: 0;
    animation: bounce 3s ease-in-out infinite 1s;
}

.crypto-icon.cardano {
    color: #0033ad;
    top: 120px;
    right: 0;
    animation: bounce 3s ease-in-out infinite 2s;
}

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

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

@keyframes bounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Section Styles */
.platform-section {
    padding: 6rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.platform-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Hero Banner Section */
.premium-hero-section {
    padding: 4rem 0 6rem;
    position: relative;
    background: linear-gradient(180deg, rgba(247, 147, 26, 0.08) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-hero-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.premium-hero-banner {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 450px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(247, 147, 26, 0.3);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 15px 40px rgba(247, 147, 26, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.premium-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.premium-hero-banner:hover::before {
    opacity: 1;
}

.premium-hero-banner:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(247, 147, 26, 0.5);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6),
                0 20px 50px rgba(247, 147, 26, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.premium-hero-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Side - Logo and Badge */
.premium-hero-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.premium-hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(247, 147, 26, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 10px 20px rgba(247, 147, 26, 0.2);
    transition: all 0.4s ease;
}

.premium-hero-banner:hover .premium-hero-logo {
    transform: scale(1.08) rotate(5deg);
    border-color: rgba(247, 147, 26, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                0 15px 30px rgba(247, 147, 26, 0.3);
}

.premium-hero-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 16px;
    filter: brightness(1.1);
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.premium-hero-logo img.loaded {
    opacity: 1;
}

.premium-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);
    color: #000000;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(247, 147, 26, 0.4);
    animation: pulse-badge-premium 2.5s infinite;
}

.badge-icon {
    font-size: 1.25rem;
    animation: rotate-badge 3s linear infinite;
}

@keyframes rotate-badge {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(10deg) scale(1); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

@keyframes pulse-badge-premium {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(247, 147, 26, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(247, 147, 26, 0.6); }
}

/* Right Side - Description and CTA */
.premium-hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.premium-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.02em;
}

.premium-hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.premium-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);
    color: #000000;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.4);
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(247, 147, 26, 0.6);
}

.cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.premium-cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.premium-hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    position: relative;
    width: 100%;
    overflow: visible; /* Changed from hidden to visible for desktop scrolling */
}

.horizontal-cards-grid {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity; /* Changed from mandatory to proximity for better desktop UX */
    scrollbar-width: none; /* Hide scrollbar completely */
    -ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
    /* Enable momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Ensure the container takes full width */
    width: 100%;
    /* Allow touch scrolling */
    touch-action: pan-x;
    /* Hardware acceleration for smooth scrolling */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
    /* Optimize rendering */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    /* Add padding for better edge visibility */
    padding-right: 2rem;
    /* Ensure carousel starts at beginning */
    padding-left: 0;
    margin-left: 0;
}

/* Hide scrollbar on all browsers */
.horizontal-cards-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Platform Card Styles - Floating Glassmorphism Design */
.platform-card {
    min-width: 280px;
    max-width: 320px;
    scroll-snap-align: start;
    background: var(--card-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    /* Hardware acceleration - optimized */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Performance optimization */
    contain: layout style paint;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f7931a, #ffb347);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.platform-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: var(--card-background-hover);
    border-color: var(--accent-primary-30);
    box-shadow: var(--shadow-large);
}

.featured-card {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(247, 147, 26, 0.2);
}

.featured-card:hover {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.card-content {
    text-align: center;
    position: relative;
}

.platform-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.platform-card:hover .platform-logo {
    transform: scale(1.1);
    background: rgba(247, 147, 26, 0.2);
    border-color: rgba(247, 147, 26, 0.3);
}

.platform-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Hardware acceleration for image rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.platform-logo img.loaded {
    opacity: 1;
}

.platform-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.platform-card:hover .platform-name {
    color: var(--accent-primary);
}

.platform-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);
    color: #000000;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Carousel Navigation Container */
.carousel-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    padding-bottom: 2rem;
    gap: 20px;
}

/* Carousel Arrow Buttons */
.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(247, 147, 26, 0.2);
    border: 2px solid rgba(247, 147, 26, 0.5);
    color: #f7931a;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-arrow:hover:not(:disabled) {
    transform: scale(1.1);
    background: rgba(247, 147, 26, 0.3);
    border-color: rgba(247, 147, 26, 0.8);
}

.carousel-arrow:active:not(:disabled) {
    transform: scale(1.05);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Scroll Indicators (Dots) */
.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: #f7931a;
    transform: scale(1.2);
}

.scroll-dot:hover {
    background: #f7931a;
}

/* Hide arrows on mobile, keep dots centered */
@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }

    .carousel-navigation {
        justify-content: center;
    }
}

/* ============================================
   MODAL SYSTEM - CLEAN IMPLEMENTATION
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

.modal-overlay.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    min-width: 400px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #ff4444;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.modal-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.2);
}

.modal-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.modal-description {
    color: #ccc;
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
    margin: 0 0 36px 0;
    padding: 0 10px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    padding: 18px 32px;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
}

.modal-btn-twitter {
    background: #000;
    color: #fff;
    border: 2px solid #1DA1F2;
}

.modal-btn-twitter:hover {
    background: #1DA1F2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.modal-btn-primary {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: #000;
    font-weight: 700;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #ffa500 0%, #ffb732 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.5);
}

.modal-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
        min-width: unset;
    }

    .modal-content {
        padding: 35px 25px;
        border-radius: 20px;
        min-width: unset;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .modal-logo {
        width: 90px;
        height: 90px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-description {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 5px;
    }

    .modal-btn {
        padding: 16px 24px;
        font-size: 16px;
    }

    .modal-btn-twitter svg {
        width: 19px;
        height: 19px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 96%;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-logo {
        width: 85px;
        height: 85px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-description {
        font-size: 14px;
    }

    .modal-btn {
        padding: 15px 22px;
        font-size: 15px;
    }
}

/* Footer */
.footer {
    background: var(--footer-background);
    border-top: 1px solid var(--border-primary);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        min-height: 50vh !important;
        padding-top: 8rem !important; /* Increased for better spacing */
        padding-bottom: 3rem !important;
        margin-top: 0 !important;
    }

    .hero .container {
        text-align: center !important;
    }

    .hero-content {
        max-width: 800px !important;
        padding-top: 2rem !important;
    }

    .hero-title {
        font-size: 3rem !important;
    }

    .hero-slogan {
        font-size: 1.3rem;
        padding: 0 20px;
    }

    .horizontal-cards-grid {
        padding: 1rem 20px;
    }

    .platform-card {
        min-width: 250px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Hide desktop navigation on mobile */
    .navigation {
        display: none;
    }

    /* Hide desktop connect button on mobile */
    .connect-container {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile header adjustments */
    .header {
        padding: 15px 20px;
    }

    .header-content {
        gap: 0;
    }

    .header-top-row {
        width: 100%;
    }

    /* Mobile logo - smaller font size to fit complete name */
    .logo h1 {
        font-size: 0.95rem;
        white-space: nowrap;
        letter-spacing: -0.03em;
    }

    .logo-icon {
        font-size: 1.1rem;
    }

    /* Premium Hero Banner Mobile */
    .premium-hero-section {
        padding: 3rem 0 4rem;
    }

    .premium-hero-banner {
        width: 95%;
        min-height: 350px;
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .premium-hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .premium-hero-left {
        flex: 1;
        width: 100%;
    }

    .premium-hero-logo {
        width: 140px;
        height: 140px;
    }

    .premium-hero-logo img {
        width: 90px;
        height: 90px;
    }

    .premium-partner-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    .premium-hero-right {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .premium-hero-title {
        font-size: 2rem;
    }

    .premium-hero-description {
        font-size: 1rem;
    }

    .premium-cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .premium-hero-features {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .feature-item {
        justify-content: center;
    }

    /* Mobile header spacing fixes */
    .header-content {
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .header-controls {
        gap: 0.75rem;
        flex-shrink: 0;
        align-items: center;
    }

    /* Hide desktop theme toggle on mobile */
    .desktop-theme-toggle {
        display: none;
    }

    .language-toggle {
        margin-left: 0;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        min-height: 45vh !important;
        padding-top: 4rem !important;
        padding-bottom: 2.5rem !important;
        margin-top: 100px !important; /* CRITICAL: Account for fixed header on mobile */
    }

    .hero-content {
        padding-top: 1.5rem !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-slogan {
        font-size: 1.2rem;
        padding: 0 16px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .featured-section,
    .platform-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.6rem;
    }

    /* Enhanced mobile horizontal scrolling */
    .horizontal-scroll-container {
        margin: 0 -15px; /* Extend to screen edges */
        padding: 0 15px;
    }

    .horizontal-cards-grid {
        padding: 1rem 15px;
        gap: 1.25rem;
        /* Ensure proper scrolling on mobile */
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Allow touch pan only horizontally */
        touch-action: pan-x;
        /* Prevent accidental vertical scroll */
        overscroll-behavior-x: contain;
        /* Hide scrollbar on mobile */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .horizontal-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .platform-card {
        /* Optimized mobile card size */
        min-width: 260px;
        max-width: 280px;
        padding: 1.5rem;
        /* Ensure cards snap properly */
        scroll-snap-align: start;
        /* Prevent card shrinking */
        flex-shrink: 0;
    }

    .platform-logo {
        width: 60px;
        height: 60px;
    }

    .platform-logo img {
        width: 36px;
        height: 36px;
    }

    /* Enhanced scroll indicators for mobile */
    .scroll-indicator {
        margin-top: 1.5rem;
        padding: 0 15px 2.5rem 15px;
    }

    .scroll-dot {
        width: 10px;
        height: 10px;
        /* Make dots more prominent on mobile */
        background: rgba(255, 255, 255, 0.4);
    }

    .scroll-dot.active {
        background: #f7931a;
        transform: scale(1.3);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .crypto-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .crypto-icon.ethereum {
        top: 90px;
    }

    .crypto-icon.cardano {
        top: 90px;
    }

}

@media (max-width: 480px) {
    .hero {
        min-height: 40vh !important;
        padding-top: 3.5rem !important;
        padding-bottom: 2rem !important;
        margin-top: 90px !important; /* CRITICAL: Account for fixed header on small mobile */
    }

    .hero-content {
        padding-top: 1rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-slogan {
        font-size: 1.1rem;
        padding: 0 12px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Extra small screens - ensure full logo text visible */
    .logo h1 {
        font-size: 0.85rem;
        letter-spacing: -0.04em;
    }

    .logo-icon {
        font-size: 1rem;
    }

    /* Small mobile optimized scrolling */
    .horizontal-scroll-container {
        margin: 0 -15px;
        padding: 0 10px;
    }

    .horizontal-cards-grid {
        padding: 1rem 10px;
        gap: 1rem;
        /* Force horizontal scroll on small screens */
        overflow-x: scroll !important;
        scroll-behavior: smooth;
    }

    .platform-card {
        /* Smaller cards for tiny screens but still swipeable */
        min-width: 240px;
        max-width: 260px;
        padding: 1.25rem;
        /* Critical: prevent shrinking */
        flex-shrink: 0;
        /* Ensure smooth snapping */
        scroll-snap-align: start;
    }

    .platform-logo {
        width: 50px;
        height: 50px;
    }

    .platform-logo img {
        width: 30px;
        height: 30px;
    }

    .section-title {
        font-size: 2.3rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-icon {
        font-size: 2rem;
    }

    /* More visible scroll indicators on small screens */
    .scroll-indicator {
        margin-top: 1.25rem;
        padding: 0 10px 2.5rem 10px;
    }

    .scroll-dot {
        width: 12px;
        height: 12px;
        background: rgba(255, 255, 255, 0.5);
    }

    .scroll-dot.active {
        background: #f7931a;
        transform: scale(1.4);
    }
}

/* Stop animations during resize */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

/* Optimize scrolling performance */
.is-scrolling .platform-card {
    pointer-events: none;
}

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

/* Focus states for keyboard navigation */
button:focus,
a:focus,
.platform-card:focus {
    outline: 2px solid #f7931a;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .platform-card {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .nav-menu a:hover {
        background: rgba(247, 147, 26, 0.3);
    }

    .modal-content {
        background: rgba(0, 0, 0, 0.95);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Touch optimization for mobile */
@media (hover: none) and (pointer: coarse) {
    .platform-card:hover {
        transform: none;
    }

    .platform-card:active {
        transform: scale(0.98);
    }

    /* Force horizontal scrolling on touch devices */
    .horizontal-cards-grid {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        touch-action: pan-x !important;
        /* Ensure content doesn't get cut off */
        padding-right: 20px !important;
    }

    /* Ensure cards are properly sized for touch scrolling */
    .platform-card {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
    }
}

/* Additional mobile scroll fixes */
@media (max-width: 768px) {
    /* Force mobile browsers to show scrollable content */
    .horizontal-cards-grid {
        /* Create enough width to force horizontal scroll */
        width: auto;
        min-width: 100%;
    }

    /* Ensure the last card is fully visible */
    .platform-card:last-child {
        margin-right: 20px;
    }

    /* Prevent iOS Safari from hiding content */
    .horizontal-scroll-container {
        position: relative;
        overflow: visible;
    }
}

/* Desktop Carousel Drag Cursor */
.horizontal-cards-grid {
    cursor: grab;
    user-select: none;
}

.horizontal-cards-grid.dragging {
    cursor: grabbing;
}

.horizontal-cards-grid:active {
    cursor: grabbing;
}

