/* ========================================
   MOBILE-FIRST RESPONSIVE CSS
   Base styles are for mobile, then scale up
   ======================================== */

:root {
    color-scheme: light dark;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f9ff;
    --bg-tertiary: #e0f2fe;
    --bg-card: #ffffff;
    --text-primary: #0c1929;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent: #067EF0;
    --accent-light: #38bdf8;
    --accent-dark: #0369a1;
    --telegram: #0088cc;
    --discord: #5865F2;
    --success: #10b981;
    --gradient-start: #067EF0;
    --gradient-end: #6FDCE9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* JS-controlled dark mode */
[data-theme="dark"] {
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --accent: #067EF0;
    --accent-light: #38bdf8;
    --accent-dark: #0369a1;
    --gradient-start: #067EF0;
    --gradient-end: #6FDCE9;
}

/* CSS-only fallback for when JS is blocked (privacy browsers) */
/* Applies dark mode based on system preference when data-theme isn't set */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-primary: #0a0f1a;
        --bg-secondary: #0f172a;
        --bg-tertiary: #1e293b;
        --bg-card: #0f172a;
        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --border-color: #1e293b;
        --accent: #067EF0;
        --accent-light: #38bdf8;
        --accent-dark: #0369a1;
        --gradient-start: #067EF0;
        --gradient-end: #6FDCE9;
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Container - Mobile first */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Animations - Handled by GSAP ScrollTrigger */
/* Initial hidden state set by GSAP fromTo, these classes are just selectors */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    will-change: opacity, transform;
}

/* Animated Background */
.bg-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; animation: floatShape 20s ease-in-out infinite; }
.bg-shape--1 { width: 300px; height: 300px; background: var(--gradient-start); top: -100px; right: -100px; }
.bg-shape--2 { width: 200px; height: 200px; background: var(--gradient-end); bottom: 20%; left: -100px; animation-delay: -7s; }
.bg-shape--3 { width: 150px; height: 150px; background: var(--discord); top: 50%; right: 5%; animation-delay: -14s; }

@media (min-width: 768px) {
    .bg-shape--1 { width: 600px; height: 600px; top: -200px; right: -200px; }
    .bg-shape--2 { width: 400px; height: 400px; left: -150px; }
    .bg-shape--3 { width: 300px; height: 300px; right: 10%; }
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* ========================================
   NAVIGATION - Mobile First
   ======================================== */
.nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    padding: 12px 0; 
    transition: all 0.3s ease; 
}
.nav.scrolled { 
    background: var(--bg-primary); 
    border-bottom: 1px solid var(--border-color); 
    backdrop-filter: blur(20px); 
}
[data-theme="dark"] .nav.scrolled { background: rgba(10,15,26,0.9); }

.nav__inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px; 
}

.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img { 
    height: 24px; 
    width: auto; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Hide nav links on mobile */
.nav__links { display: none; }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__actions .btn--ghost { display: none; }
.nav__actions .btn--primary { display: none; }

/* Mobile menu button - visible by default */
.mobile-menu-btn { 
    display: flex; 
    width: 40px; 
    height: 40px; 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    cursor: pointer; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 5px; 
}
.mobile-menu-btn span { width: 18px; height: 2px; background: var(--text-primary); border-radius: 1px; }

@media (min-width: 480px) {
    .nav__logo img { height: 28px; }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}
.mobile-menu__links a {
    display: block;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s ease;
}
.mobile-menu__links a:hover {
    background: var(--bg-secondary);
}
.mobile-menu__cta {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.btn--full {
    width: 100%;
    justify-content: center;
}
/* Hamburger animation when open */
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-menu-btn span {
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .nav { padding: 16px 0; }
    .nav__logo img { height: 32px; }
    .nav__inner { gap: 32px; }
    .nav__links { 
        display: flex; 
        align-items: center; 
        gap: 8px; 
    }
    .nav__links a { 
        color: var(--text-secondary); 
        text-decoration: none; 
        font-size: 14px; 
        font-weight: 500; 
        padding: 8px 14px;
        border-radius: 8px;
        transition: all 0.2s ease; 
    }
    .nav__links a:hover { 
        color: var(--text-primary); 
        background: var(--bg-secondary);
    }
    .nav__actions { gap: 12px; }
    .nav__actions .btn--ghost { display: inline-flex; }
    .nav__actions .btn--primary { display: inline-flex; }
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none; }
}

@media (min-width: 1024px) {
    .nav__links { gap: 8px; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 10px 16px; 
    border-radius: 10px; 
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none; 
    cursor: pointer; 
    border: none; 
    transition: all 0.2s ease; 
    white-space: nowrap;
}
.btn--primary { 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    color: white; 
    box-shadow: 0 4px 15px rgba(6,126,240,0.3); 
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,126,240,0.4); }
.btn--ghost { 
    background: transparent; 
    color: var(--text-primary); 
    border: 1px solid var(--border-color); 
}
.btn--ghost:hover { background: var(--bg-secondary); border-color: var(--accent); }
.btn--icon { 
    width: 40px; 
    height: 40px; 
    padding: 0; 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.btn--icon svg { 
    width: 20px; 
    height: 20px; 
    display: block;
}
.btn--icon:hover {
    background: var(--bg-tertiary);
}

@media (min-width: 768px) {
    .btn { padding: 10px 20px; }
    .btn--icon { padding: 0; }
}

/* ========================================
   HERO SECTION - Mobile First
   ======================================== */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    position: relative; 
    padding: 100px 0 60px; 
    overflow: hidden; 
}

.hero__content { 
    display: flex;
    flex-direction: column;
    gap: 40px; 
    text-align: center;
}

.hero__text { 
    max-width: 100%;
}

.hero__badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 6px 12px; 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: 100px; 
    font-size: 12px; 
    font-weight: 500; 
    color: var(--text-secondary); 
    margin-bottom: 20px; 
    animation: fadeInUp 0.6s ease forwards; 
}
.hero__badge::before { 
    content: ''; 
    width: 8px; 
    height: 8px; 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    border-radius: 50%; 
    animation: pulse 2s infinite; 
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }

.hero__title { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 32px; 
    font-weight: 700; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    letter-spacing: -0.02em; 
    animation: fadeInUp 0.6s ease 0.1s forwards; 
    opacity: 0; 
}

.hero__subtitle { 
    font-size: 16px; 
    color: var(--text-secondary); 
    margin-bottom: 28px; 
    line-height: 1.7; 
    animation: fadeInUp 0.6s ease 0.2s forwards; 
    opacity: 0; 
}

.hero__ctas { 
    display: flex; 
    flex-direction: column;
    gap: 12px; 
    margin-bottom: 40px; 
    animation: fadeInUp 0.6s ease 0.3s forwards; 
    opacity: 0; 
    justify-content: center;
}

.hero__stats { 
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px; 
    animation: fadeInUp 0.6s ease 0.4s forwards; 
    opacity: 0; 
}

.stat { text-align: center; }
.stat__value { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 28px; 
    font-weight: 700; 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.stat__label { font-size: 12px; color: var(--text-muted); }

/* Globe Visual - Hidden on mobile */
.hero__visual { display: none; }

@media (min-width: 480px) {
    .hero__title { font-size: 38px; }
    .hero__ctas { flex-direction: row; }
    .hero__stats { gap: 32px; }
    .stat__value { font-size: 32px; }
}

@media (min-width: 768px) {
    .hero { padding: 120px 0 80px; }
    .hero__badge { font-size: 13px; padding: 6px 14px; margin-bottom: 24px; }
    .hero__title { font-size: 48px; margin-bottom: 24px; }
    .hero__subtitle { font-size: 18px; margin-bottom: 32px; }
    .hero__stats { gap: 40px; }
    .stat { text-align: left; }
}

@media (min-width: 1024px) {
    .hero__content { 
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 60px; 
        align-items: center;
        text-align: left;
    }
    .hero__text { max-width: 560px; }
    .hero__title { font-size: clamp(40px, 5vw, 64px); }
    .hero__ctas { justify-content: flex-start; }
    .hero__stats { justify-content: flex-start; }
    
    /* Show globe on large screens */
    .hero__visual { 
        display: flex; 
        position: relative; 
        align-items: center; 
        justify-content: center; 
        animation: fadeIn 1s ease 0.5s forwards; 
        opacity: 0; 
        min-height: 580px;
        min-width: 580px;
    }
}

@keyframes fadeIn { to { opacity: 1; } }

/* Globe styles (only visible on desktop) */
.globe-wrapper { 
    position: relative; 
    width: 500px; 
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
}

.globe-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(6,126,240,0.3);
}

.globe-glow { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 520px; 
    height: 520px; 
    background: radial-gradient(circle, rgba(6,126,240,0.2) 0%, rgba(111,220,233,0.1) 40%, transparent 70%); 
    border-radius: 50%; 
    animation: pulseGlow 4s ease-in-out infinite; 
    pointer-events: none;
}
@keyframes pulseGlow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }

#globe-container {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

#globe-container canvas { border-radius: 50%; }

/* Globe Icons */
.globe-icons-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.globe-icon {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform, left, top;
}

.globe-icon svg { 
    width: 26px; 
    height: 26px; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.globe-icon--telegram { 
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    box-shadow: 0 4px 20px rgba(0,136,204,0.5), 0 0 40px rgba(0,136,204,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.globe-icon--telegram svg { color: white; }

.globe-icon--discord { 
    background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
    box-shadow: 0 4px 20px rgba(88,101,242,0.5), 0 0 40px rgba(88,101,242,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.globe-icon--discord svg { color: white; }

.globe-icon.jumping { filter: brightness(1.2); }
.globe-icon.hidden { opacity: 0; }

.globe-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid currentColor;
    opacity: 0;
    animation: iconPulse 2.5s ease-out infinite;
}

.globe-icon--telegram::before { border-color: #0088cc; }
.globe-icon--discord::before { border-color: #5865F2; }

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.globe-icon::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.3); opacity: 0.25; }
}

/* ========================================
   TRUST BANNER - Mobile First
   ======================================== */
.trust-banner { 
    padding: 32px 0; 
    background: linear-gradient(135deg, rgba(6,126,240,0.05), rgba(111,220,233,0.05)); 
    border-bottom: 1px solid var(--border-color); 
}

.trust-banner__inner { 
    display: flex; 
    flex-direction: column;
    align-items: flex-start; 
    justify-content: center; 
    gap: 12px; 
}

.trust-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    font-size: 13px; 
    color: var(--text-secondary); 
    text-align: left;
    line-height: 1.4;
}
.trust-item svg { 
    width: 20px; 
    height: 20px; 
    min-width: 20px;
    color: var(--success); 
    flex-shrink: 0; 
    margin-top: 1px;
}
.trust-item span {
    display: inline;
}
.trust-item strong { color: var(--text-primary); }

@media (min-width: 480px) {
    .trust-banner__inner { 
        align-items: center;
    }
    .trust-item { 
        align-items: center;
        font-size: 14px; 
    }
    .trust-item svg { margin-top: 0; }
}

@media (min-width: 768px) {
    .trust-banner { padding: 48px 0; }
    .trust-banner__inner { 
        flex-direction: row;
        flex-wrap: wrap;
        gap: 32px; 
    }
    .trust-item { font-size: 15px; }
    .trust-item svg { width: 24px; height: 24px; min-width: 24px; }
}

@media (min-width: 1024px) {
    .trust-banner__inner { gap: 48px; flex-wrap: nowrap; }
}

/* ========================================
   LOGOS SECTION - Mobile First
   ======================================== */
.logos { 
    padding: 40px 0; 
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color); 
    background: var(--bg-secondary); 
}

.logos__label { 
    text-align: center; 
    font-size: 12px; 
    font-weight: 500; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 24px; 
}

.logos__slider {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logos__track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: logos-scroll 20s linear infinite;
}
.logos__track span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.7;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}
.logos__track span:hover { opacity: 1; }

@keyframes logos-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover */
.logos__slider:hover .logos__track {
    animation-play-state: paused;
}

@media (min-width: 768px) {
    .logos { padding: 60px 0; }
    .logos__label { font-size: 13px; margin-bottom: 32px; }
    .logos__track { gap: 48px; }
    .logos__track span { font-size: 18px; }
}

/* ========================================
   FEATURES SECTION - Mobile First
   ======================================== */
.features { padding: 60px 0; }

.section__header { 
    text-align: center; 
    max-width: 100%; 
    margin: 0 auto 40px; 
}
.section__title { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 12px; 
    letter-spacing: -0.02em; 
}
.section__subtitle { 
    font-size: 16px; 
    color: var(--text-secondary); 
}

.features__grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 16px; 
}

.feature-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 24px; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden; 
}
.feature-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 3px; 
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 0.3s ease; 
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--accent); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon { 
    width: 44px; 
    height: 44px; 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 16px; 
    transition: transform 0.3s ease; 
}
.feature-card:hover .feature-card__icon { transform: scale(1.1) rotate(5deg); }
.feature-card__icon svg { width: 22px; height: 22px; color: white; }
.feature-card__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (min-width: 480px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .features { padding: 100px 0; }
    .section__header { max-width: 700px; margin-bottom: 64px; }
    .section__title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
    .section__subtitle { font-size: 18px; }
    .features__grid { gap: 24px; }
    .feature-card { padding: 32px; }
    .feature-card__icon { width: 48px; height: 48px; margin-bottom: 20px; }
    .feature-card__icon svg { width: 24px; height: 24px; }
    .feature-card__title { font-size: 18px; }
}

@media (min-width: 1024px) {
    .features { padding: 120px 0; }
    .features__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   PLATFORMS SECTION - Mobile First
   ======================================== */
.platforms { padding: 60px 0; background: var(--bg-secondary); }

.platforms__grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px; 
}

.platform-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    padding: 28px; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s ease; 
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.platform-card__glow { 
    position: absolute; 
    top: -50px; 
    right: -50px; 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    filter: blur(60px); 
    opacity: 0.15; 
    transition: opacity 0.3s ease; 
}
.platform-card:hover .platform-card__glow { opacity: 0.25; }
.platform-card--telegram .platform-card__glow { background: var(--telegram); }
.platform-card--discord .platform-card__glow { background: var(--discord); }

.platform-card__icon { width: 48px; height: 48px; margin-bottom: 20px; transition: transform 0.3s ease; }
.platform-card:hover .platform-card__icon { transform: scale(1.1); }
.platform-card__icon--telegram { color: var(--telegram); }
.platform-card__icon--discord { color: var(--discord); }

.platform-card__title { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 10px; 
}
.platform-card__desc { 
    font-size: 15px; 
    color: var(--text-secondary); 
    margin-bottom: 20px; 
    line-height: 1.7; 
}

.platform-card__features { list-style: none; margin-bottom: 24px; }
.platform-card__features li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 6px 0; 
    font-size: 14px; 
    color: var(--text-secondary); 
}
.platform-card__features li svg { width: 18px; height: 18px; flex-shrink: 0; }
.platform-card--telegram .platform-card__features li svg { color: var(--telegram); }
.platform-card--discord .platform-card__features li svg { color: var(--discord); }

@media (min-width: 768px) {
    .platforms { padding: 100px 0; }
    .platforms__grid { gap: 32px; }
    .platform-card { padding: 40px; border-radius: 24px; }
    .platform-card__glow { top: -100px; right: -100px; width: 250px; height: 250px; filter: blur(80px); }
    .platform-card__icon { width: 64px; height: 64px; margin-bottom: 24px; }
    .platform-card__title { font-size: 28px; margin-bottom: 12px; }
    .platform-card__desc { font-size: 16px; margin-bottom: 24px; }
    .platform-card__features { margin-bottom: 32px; }
    .platform-card__features li { padding: 8px 0; font-size: 15px; gap: 12px; }
    .platform-card__features li svg { width: 20px; height: 20px; }
}

@media (min-width: 1024px) {
    .platforms { padding: 120px 0; }
    .platforms__grid { grid-template-columns: 1fr 1fr; }
    .platform-card { padding: 48px; }
}

/* ========================================
   PRICING SECTION - Mobile First
   ======================================== */
.pricing { padding: 60px 0; }

.pricing__content { 
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.pricing__info { 
    text-align: center;
}
.pricing__info h2 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 12px; 
    letter-spacing: -0.02em; 
}
.pricing__info p { 
    font-size: 16px; 
    color: var(--text-secondary); 
    margin-bottom: 24px; 
    line-height: 1.7; 
}

.pricing__highlights { list-style: none; margin-bottom: 24px; text-align: left; }
.pricing__highlights li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 0; 
    font-size: 14px; 
    border-bottom: 1px solid var(--border-color); 
}
.pricing__highlights li:last-child { border-bottom: none; }
.pricing__highlights svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

/* Calculator */
.calculator { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 16px; 
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .calculator { padding: 24px; border-radius: 20px; }
}

.calculator__header { margin-bottom: 24px; }
.calculator__header h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.calculator__header p { font-size: 13px; color: var(--text-muted); }

.calculator__input-group { margin-bottom: 24px; }
.calculator__input-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 500; 
    margin-bottom: 10px; 
    color: var(--text-secondary); 
}

.calculator__amount-display { text-align: center; margin-bottom: 16px; }
.calculator__amount-value { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 36px; 
    font-weight: 700; 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.calculator__slider-container { position: relative; padding: 0 0 36px; }
.calculator__slider { 
    width: 100%; 
    height: 8px; 
    -webkit-appearance: none; 
    appearance: none; 
    background: var(--bg-tertiary); 
    border-radius: 4px; 
    outline: none; 
    cursor: pointer; 
}
.calculator__slider::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    appearance: none; 
    width: 24px; 
    height: 24px; 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    border-radius: 50%; 
    cursor: pointer; 
    border: 3px solid var(--bg-card); 
    box-shadow: 0 2px 10px rgba(6,126,240,0.4); 
    transition: transform 0.2s; 
}
.calculator__slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

.calculator__ticks { position: relative; height: 24px; margin-top: 10px; }
.calculator__tick {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
}
.calculator__tick::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--border-color);
}

.calculator__enterprise-message {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.calculator__enterprise-message p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}
.calculator__enterprise-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.calculator__enterprise-message .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calculator__results { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 12px; 
    margin-bottom: 24px; 
}

.result-box { 
    background: var(--bg-secondary); 
    border-radius: 12px; 
    padding: 16px; 
    text-align: center; 
    transition: transform 0.2s ease; 
}
.result-box:hover { transform: scale(1.02); }
.result-box--highlight { 
    background: linear-gradient(135deg, rgba(6,126,240,0.1), rgba(111,220,233,0.1)); 
    border: 1px solid rgba(6,126,240,0.2); 
}
.result-box__label { 
    font-size: 11px; 
    font-weight: 500; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin-bottom: 6px; 
}
.result-box__value { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 20px; 
    font-weight: 700; 
}
.result-box--highlight .result-box__value { 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.result-box--success .result-box__value { color: var(--success); }

/* Competitor Comparison */
.competitor-savings { 
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,126,240,0.1)); 
    border: 1px solid rgba(16,185,129,0.2); 
    border-radius: 12px; 
    padding: 12px; 
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .competitor-savings { padding: 16px; border-radius: 14px; margin-bottom: 20px; }
}

@media (min-width: 768px) {
    .competitor-savings { padding: 20px; }
}
.competitor-savings__title { 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--success); 
    margin-bottom: 14px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.competitor-savings__title svg { width: 16px; height: 16px; flex-shrink: 0; }
.competitor-savings__grid { 
    display: grid; 
    gap: 8px;
    width: 100%;
}

.competitor-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 12px; 
    background: var(--bg-card); 
    border-radius: 8px; 
    font-size: 12px; 
    transition: transform 0.2s ease;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.competitor-item:hover { transform: translateX(4px); }
.competitor-item__left { 
    display: flex; 
    flex-direction: column; 
    gap: 2px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.competitor-item__name { 
    color: var(--text-primary); 
    font-weight: 500; 
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.competitor-item__fee { 
    color: var(--text-muted); 
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.competitor-item__right { 
    text-align: right; 
    flex-shrink: 0;
}
.competitor-item__savings-pct { font-weight: 700; color: var(--success); display: block; font-size: 12px; white-space: nowrap; }
.competitor-item__savings-pct.negative { color: #ef4444; }
.competitor-item__savings-amt { font-size: 9px; color: var(--text-muted); display: block; white-space: nowrap; }

/* Collapsible Tiers */
.calculator__tiers { margin-bottom: 20px; }
.tiers-toggle { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%; 
    padding: 10px 14px; 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 13px; 
    font-weight: 500; 
    color: var(--text-secondary); 
    transition: all 0.2s; 
}
.tiers-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.tiers-toggle svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.tiers-toggle.open svg { transform: rotate(180deg); }
.tiers-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.tiers-content.open { max-height: 500px; }
.tiers-visual { display: flex; gap: 3px; margin: 14px 0 10px; }
.tier-block { flex: 1; height: 6px; background: var(--bg-tertiary); border-radius: 3px; transition: all 0.3s; }
.tier-block.active { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); }
.tier-block.passed { background: var(--success); }
.calculator__tier-table { padding-top: 6px; }
.tier-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 8px 10px; 
    border-radius: 6px; 
    font-size: 12px; 
    transition: background 0.2s; 
}
.tier-row.active { background: linear-gradient(135deg, rgba(6,126,240,0.1), rgba(111,220,233,0.1)); }
.tier-row__range { font-weight: 500; }
.tier-row__rate { font-weight: 700; color: var(--accent); }

.calculator__note { font-size: 11px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
.calculator__note-currency { display: inline-flex; align-items: center; gap: 4px; opacity: 0.8; }
.calculator__note-currency .info-icon { flex-shrink: 0; opacity: 0.6; }

@media (min-width: 480px) {
    .calculator__results { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .pricing { padding: 100px 0; }
    .pricing__content { gap: 48px; }
    .pricing__info h2 { font-size: 36px; margin-bottom: 16px; }
    .pricing__info p { font-size: 18px; margin-bottom: 32px; }
    .pricing__highlights li { padding: 12px 0; font-size: 15px; gap: 12px; }
    .pricing__highlights svg { width: 20px; height: 20px; }
    
    .calculator { padding: 32px; border-radius: 24px; }
    .calculator__header { margin-bottom: 32px; }
    .calculator__header h3 { font-size: 20px; margin-bottom: 8px; }
    .calculator__header p { font-size: 14px; }
    .calculator__input-group { margin-bottom: 32px; }
    .calculator__input-group label { font-size: 14px; margin-bottom: 12px; }
    .calculator__amount-display { margin-bottom: 20px; }
    .calculator__amount-value { font-size: 48px; }
    .calculator__slider::-webkit-slider-thumb { width: 28px; height: 28px; border: 4px solid var(--bg-card); }
    .calculator__ticks { margin-top: 12px; }
    .calculator__tick { font-size: 11px; }
    .calculator__tick::before { top: -16px; height: 8px; }
    .calculator__results { gap: 16px; margin-bottom: 32px; }
    .result-box { padding: 20px; }
    .result-box__label { font-size: 12px; margin-bottom: 8px; }
    .result-box__value { font-size: 24px; }
    .competitor-savings { padding: 24px; border-radius: 16px; margin-bottom: 24px; }
    .competitor-savings__title { font-size: 14px; margin-bottom: 16px; }
    .competitor-savings__title svg { width: 18px; height: 18px; }
    .competitor-savings__grid { gap: 12px; width: 100%; }
    .competitor-item { padding: 12px 16px; font-size: 14px; gap: 12px; border-radius: 10px; }
    .competitor-item__name { font-size: 14px; }
    .competitor-item__fee { font-size: 11px; }
    .competitor-item__savings-pct { font-size: 14px; }
    .competitor-item__savings-amt { font-size: 11px; }
    .competitor-item__savings-pct { font-size: 15px; }
    .competitor-item__savings-amt { font-size: 12px; }
    .calculator__tiers { margin-bottom: 24px; }
    .tiers-toggle { padding: 12px 16px; font-size: 14px; }
    .tiers-toggle svg { width: 18px; height: 18px; }
    .tiers-visual { gap: 4px; margin: 16px 0 12px; }
    .tier-block { height: 8px; border-radius: 4px; }
    .tier-row { padding: 10px 12px; font-size: 13px; border-radius: 8px; }
    .calculator__note { font-size: 12px; margin-top: 16px; }
}

@media (min-width: 1024px) {
    .pricing { padding: 120px 0; }
    .pricing__content { 
        display: grid;
        grid-template-columns: 1fr 1.3fr; 
        gap: 64px; 
        align-items: start;
    }
    .pricing__info { 
        position: sticky; 
        top: 100px;
        text-align: left;
    }
    .pricing__info h2 { font-size: 40px; }
    .calculator { padding: 40px; }
}

/* ========================================
   CTA SECTION - Mobile First
   ======================================== */
.cta { padding: 60px 0; position: relative; overflow: hidden; }
/* Use explicit colors to ensure gradient always shows in all themes */
.cta__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #067EF0, #6FDCE9); z-index: -1; }
.cta__particles { position: absolute; inset: 0; overflow: hidden; }
.particle { 
    position: absolute; 
    width: 4px; 
    height: 4px; 
    background: rgba(255,255,255,0.3); 
    border-radius: 50%; 
    animation: rise 10s infinite; 
}
@keyframes rise { 
    0% { transform: translateY(100vh) scale(0); opacity: 0; } 
    10% { opacity: 1; } 
    90% { opacity: 1; } 
    100% { transform: translateY(-100px) scale(1); opacity: 0; } 
}

.cta__content { 
    text-align: center; 
    max-width: 100%; 
    margin: 0 auto; 
    position: relative; 
    z-index: 1; 
}
.cta__title { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 28px; 
    font-weight: 700; 
    color: white; 
    margin-bottom: 12px; 
    letter-spacing: -0.02em; 
}
.cta__subtitle { 
    font-size: 15px; 
    color: rgba(255,255,255,0.85); 
    margin-bottom: 24px; 
}
.cta__buttons { 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    gap: 12px; 
}
.cta .btn--primary { 
    background: white; 
    color: var(--accent); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}
.cta .btn--ghost { 
    background: rgba(255,255,255,0.15); 
    border-color: rgba(255,255,255,0.3); 
    color: white; 
}
.cta .btn--ghost:hover { background: rgba(255,255,255,0.25); }

@media (min-width: 480px) {
    .cta__buttons { flex-direction: row; }
}

@media (min-width: 768px) {
    .cta { padding: 100px 0; }
    .particle { width: 6px; height: 6px; }
    .cta__content { max-width: 640px; }
    .cta__title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
    .cta__subtitle { font-size: 18px; margin-bottom: 32px; }
    .cta__buttons { gap: 16px; }
}

@media (min-width: 1024px) {
    .cta { padding: 120px 0; }
}

/* ========================================
   FOOTER - Mobile First
   ======================================== */
.footer { 
    padding: 48px 0 32px; 
    background: var(--bg-secondary); 
    border-top: 1px solid var(--border-color); 
}

.footer__grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 32px; 
    margin-bottom: 32px; 
}

.footer__brand img { height: 24px; width: auto; margin-bottom: 12px; }
.footer__brand p { font-size: 13px; color: var(--text-secondary); max-width: 280px; margin-bottom: 20px; }

.footer__social { display: flex; gap: 10px; }
.footer__social a { 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-tertiary); 
    border-radius: 8px; 
    color: var(--text-secondary); 
    transition: all 0.2s; 
}
.footer__social a:hover { 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    color: white; 
    transform: translateY(-2px); 
}

.footer__col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom { 
    padding-top: 24px; 
    border-top: 1px solid var(--border-color); 
    display: flex; 
    flex-direction: column;
    gap: 12px;
    text-align: center;
}
.footer__bottom p { font-size: 12px; color: var(--text-muted); }

@media (min-width: 480px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .footer { padding: 64px 0 40px; }
    .footer__grid { 
        grid-template-columns: 2fr repeat(3, 1fr); 
        gap: 40px;
        margin-bottom: 48px; 
    }
    .footer__brand img { height: 28px; margin-bottom: 16px; }
    .footer__brand p { font-size: 14px; margin-bottom: 24px; }
    .footer__social { gap: 12px; }
    .footer__social a { width: 40px; height: 40px; border-radius: 10px; }
    .footer__col h4 { font-size: 14px; margin-bottom: 20px; }
    .footer__col li { margin-bottom: 12px; }
    .footer__col a { font-size: 14px; }
    .footer__bottom { 
        flex-direction: row;
        justify-content: space-between; 
        text-align: left;
        padding-top: 32px; 
    }
    .footer__bottom p { font-size: 13px; }
}

@media (min-width: 1024px) {
    .footer { padding: 80px 0 40px; }
    .footer__grid { 
        grid-template-columns: 2fr repeat(4, 1fr); 
        gap: 48px; 
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 44px; 
    height: 44px; 
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); 
    border: none; 
    border-radius: 12px; 
    color: white; 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px); 
    transition: all 0.3s ease; 
    z-index: 999; 
    box-shadow: 0 4px 15px rgba(6,126,240,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { 
    width: 18px; 
    height: 18px; 
    stroke: white;
    display: block;
}

@media (min-width: 768px) {
    .back-to-top { bottom: 32px; right: 32px; width: 48px; height: 48px; }
    .back-to-top svg { width: 20px; height: 20px; }
}
