/* ========================================
   CASPERM LANDING PAGE - STYLES
   Ghost-fast TON Trading Bot
   ======================================== */

/* CSS Variables */
:root {
    --bg-dark: #0a0a1a;
    --bg-gradient-start: #0d0d2b;
    --bg-gradient-end: #050510;
    --accent-blue: #00d4ff;
    --accent-blue-dark: #0099cc;
    --accent-pink: #ff6b9d;
    --accent-pink-soft: rgba(255, 107, 157, 0.3);
    --text-white: #ffffff;
    --text-light: #b8c5d6;
    --text-muted: #6b7a8f;
    --glow-blue: rgba(0, 212, 255, 0.4);
    --glow-pink: rgba(255, 107, 157, 0.3);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ========================================
   BACKGROUND LAYERS
   ======================================== */

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#meteors-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, var(--accent-blue) 100%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(0.5px);
    box-shadow: 0 0 10px var(--accent-blue), 0 0 20px var(--glow-blue);
}

.meteor.left-to-right {
    animation: meteorLTR 1.5s ease-out forwards;
}

.meteor.right-to-left {
    animation: meteorRTL 1.5s ease-out forwards;
    background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, var(--accent-blue) 100%);
}

@keyframes meteorLTR {
    0% {
        transform: translateX(-100px) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(200px);
        opacity: 0;
    }
}

@keyframes meteorRTL {
    0% {
        transform: translateX(100vw) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(-200px) translateY(200px);
        opacity: 0;
    }
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.8) 0%, transparent 100%);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-light);
}

.lang-btn.active {
    color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 12px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    text-align: center;
}

.hero-headline {
    margin-bottom: 20px;
}

.title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-blue) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px var(--glow-blue);
    margin-bottom: 10px;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ========================================
   MASCOT & CALLOUTS
   ======================================== */

.mascot-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 20px auto 40px;
}

.mascot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.mascot-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.mascot-img {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 0 30px var(--glow-blue));
    transition: transform 0.3s ease;
}

.mascot:hover .mascot-img {
    transform: scale(1.05);
}

/* Callouts */
.callout {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 200px;
    backdrop-filter: blur(10px);
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.callout:hover {
    transform: scale(1.05) !important;
    border-color: var(--accent-blue);
    box-shadow: 0 8px 30px var(--glow-blue);
}

.callout-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.callout-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.callout-content strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
}

.callout-content span {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Callout positions - Desktop */
.callout-1 { top: 10%; left: 5%; }
.callout-2 { top: 10%; right: 5%; }
.callout-3 { top: 40%; left: 0; }
.callout-4 { top: 40%; right: 0; }
.callout-5 { bottom: 15%; left: 5%; }
.callout-6 { bottom: 15%; right: 5%; }
.callout-7 { bottom: 0; left: 50%; transform: translateX(-50%); }
.callout-8 { top: 0; left: 50%; transform: translateX(-50%); }

/* Atmosphere phrase */
.atmosphere-phrase {
    position: absolute;
    bottom: -40px;
    right: 10%;
    font-style: italic;
    color: var(--accent-pink);
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   FLOATING ANIMATIONS
   ======================================== */

.floating-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.floating-slow-2 {
    animation: floatSlow 7s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-mascot {
    animation: floatMascot 4s ease-in-out infinite;
}

.floating-1 { animation: float1 5s ease-in-out infinite; }
.floating-2 { animation: float2 5.5s ease-in-out infinite; }
.floating-3 { animation: float3 6s ease-in-out infinite; }
.floating-4 { animation: float4 5.2s ease-in-out infinite; }
.floating-5 { animation: float5 5.8s ease-in-out infinite; }
.floating-6 { animation: float6 5.3s ease-in-out infinite; }
.floating-7 { animation: float7 6.2s ease-in-out infinite; }
.floating-8 { animation: float8 5.7s ease-in-out infinite; }

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

@keyframes floatMascot {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
}

@keyframes float5 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

@keyframes float6 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-9px) rotate(0.5deg); }
}

@keyframes float7 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-8px) rotate(1deg); }
}

@keyframes float8 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-10px) rotate(-1deg); }
}

/* ========================================
   CTA BUTTONS
   ======================================== */

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px var(--glow-blue);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-white);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.telegram-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    position: relative;
    z-index: 10;
    padding: 80px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.feature-card .feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.bottom-cta {
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--card-border);
}

.disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   MOBILE FLOATING CTA
   ======================================== */

.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.btn-mobile {
    padding: 12px 24px;
    font-size: 14px;
    box-shadow: 0 4px 30px var(--glow-blue);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 900px) {
    .mascot-container {
        height: auto;
        min-height: 600px;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mascot {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        margin-bottom: 30px;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mascot-img {
        width: 180px;
    }

    .callout {
        position: relative;
        max-width: 100%;
        margin: 8px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .callouts-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 0 10px;
    }

    .atmosphere-phrase {
        position: relative;
        right: auto;
        bottom: auto;
        text-align: center;
        margin-top: 20px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 600px) {
    .header {
        padding: 15px 20px;
    }

    .hero {
        padding: 80px 15px 40px;
    }

    .title {
        letter-spacing: 0.05em;
    }

    .subtitle {
        letter-spacing: 0.1em;
    }

    .mascot-img {
        width: 150px;
    }

    .mascot-glow {
        width: 200px;
        height: 200px;
    }

    .callout {
        padding: 10px 14px;
    }

    .callout-icon {
        font-size: 20px;
    }

    .callout-content strong {
        font-size: 13px;
    }

    .callout-content span {
        font-size: 11px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .mobile-cta {
        display: block;
    }

    .features-section {
        padding: 60px 15px 120px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-card .feature-icon {
        font-size: 40px;
    }

    .bottom-cta {
        padding-bottom: 80px;
    }
}

/* ========================================
   MOBILE CALLOUTS CAROUSEL (optional swipe)
   ======================================== */

@media (max-width: 600px) {
    .mascot-container {
        min-height: auto;
        padding-top: 0;
    }

    .callout-1, .callout-2, .callout-3, .callout-4,
    .callout-5, .callout-6, .callout-7, .callout-8 {
        animation: none;
    }
}

/* ========================================
   VIGNETTE OVERLAY
   ======================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ========================================
   NETWORK BADGES
   ======================================== */

.network-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.network-ton:hover { border-color: #0098ea; box-shadow: 0 5px 20px rgba(0, 152, 234, 0.3); }
.network-bsc:hover { border-color: #f0b90b; box-shadow: 0 5px 20px rgba(240, 185, 11, 0.3); }
.network-base:hover { border-color: #0052ff; box-shadow: 0 5px 20px rgba(0, 82, 255, 0.3); }
.network-solana:hover { border-color: #9945ff; box-shadow: 0 5px 20px rgba(153, 69, 255, 0.3); }

/* ========================================
   NETWORKS SECTION
   ======================================== */

.networks-section {
    position: relative;
    z-index: 10;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.network-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.network-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.network-card[data-network="ton"]:hover { border-color: #0098ea; }
.network-card[data-network="bsc"]:hover { border-color: #f0b90b; }
.network-card[data-network="base"]:hover { border-color: #0052ff; }
.network-card[data-network="solana"]:hover { border-color: #9945ff; }

/* Recommended network card (Base) */
.network-card.recommended {
    border: 2px solid #0052ff;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.15) 0%, rgba(0, 82, 255, 0.05) 100%);
    box-shadow: 0 0 30px rgba(0, 82, 255, 0.2);
    position: relative;
}

.network-card.recommended::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0052ff 0%, #3b82f6 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.network-badge.recommended {
    border: 2px solid #0052ff;
    box-shadow: 0 0 15px rgba(0, 82, 255, 0.4);
    animation: recommendedGlow 2s ease-in-out infinite;
}

@keyframes recommendedGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 82, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 82, 255, 0.6); }
}

.network-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.network-card-header .network-icon {
    font-size: 36px;
}

.network-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    flex: 1;
}

.network-fee {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.network-card-body {
    flex: 1;
}

.network-card-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.network-features {
    list-style: none;
    margin-bottom: 20px;
}

.network-features li {
    font-size: 13px;
    color: var(--text-light);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.network-features li:last-child {
    border-bottom: none;
}

.network-features li::before {
    content: '✓ ';
    color: var(--accent-blue);
}

.network-details-btn {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.network-details-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(180deg, #1a1a3a 0%, #0d0d2b 100%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.network-icon-large {
    font-size: 48px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
}

.modal-body p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin: 24px 0 12px;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 16px;
}

.modal-body ul li {
    font-size: 14px;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-body ul li:last-child {
    border-bottom: none;
}

.modal-cta {
    margin-top: 30px;
    text-align: center;
}

/* ========================================
   RESPONSIVE NETWORKS & MODALS
   ======================================== */

@media (max-width: 900px) {
    .networks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

@media (max-width: 768px) {
    .network-badges {
        gap: 8px;
    }

    .network-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .networks-section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .networks-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .network-card {
        padding: 24px 20px;
    }

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

    .modal-header h2 {
        font-size: 24px;
    }

    .network-icon-large {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   QUICK TRADE SECTION
   ======================================== */

.quick-trade-section {
    position: relative;
    z-index: 10;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-light);
    max-width: 600px;
    margin: -30px auto 50px;
    line-height: 1.6;
}

.quick-trade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.quick-trade-step {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.quick-trade-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px var(--glow-blue);
}

.step-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.quick-trade-formats {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.quick-trade-formats h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.format-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.format-tag:hover {
    transform: translateY(-2px);
}

.format-tag[data-network="ton"]:hover { border-color: #0098ea; box-shadow: 0 5px 20px rgba(0, 152, 234, 0.3); }
.format-tag[data-network="bsc"]:hover { border-color: #f0b90b; box-shadow: 0 5px 20px rgba(240, 185, 11, 0.3); }
.format-tag[data-network="base"]:hover { border-color: #0052ff; box-shadow: 0 5px 20px rgba(0, 82, 255, 0.3); }
.format-tag[data-network="solana"]:hover { border-color: #9945ff; box-shadow: 0 5px 20px rgba(153, 69, 255, 0.3); }

/* ========================================
   TOOLS SECTION
   ======================================== */

.tools-section {
    position: relative;
    z-index: 10;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
    box-shadow: 0 10px 40px var(--glow-pink);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tool-icon {
    font-size: 32px;
}

.tool-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
}

.tool-features {
    list-style: none;
}

.tool-features li {
    font-size: 13px;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tool-features li:last-child {
    border-bottom: none;
}

.tool-features li::before {
    content: '→';
    color: var(--accent-pink);
    font-weight: bold;
}

.tool-network-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 152, 234, 0.2);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #0098ea;
    margin-left: 8px;
    vertical-align: middle;
}

/* ========================================
   BOTTOM CTA SECTION
   ======================================== */

.bottom-cta-section {
    position: relative;
    z-index: 10;
    padding: 60px 20px 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bottom-cta-section .section-title {
    margin-bottom: 20px;
}

.bottom-cta-section p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE - QUICK TRADE & TOOLS
   ======================================== */

@media (max-width: 900px) {
    .quick-trade-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-trade-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding: 24px;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .step-content {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .quick-trade-section,
    .tools-section {
        padding: 60px 15px;
    }

    .section-subtitle {
        font-size: 14px;
        margin: -20px auto 40px;
    }

    .quick-trade-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin: 0 auto 15px;
    }

    .format-tags {
        flex-direction: column;
        align-items: center;
    }

    .format-tag {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }

    .tool-card {
        padding: 24px 20px;
    }

    .bottom-cta-section {
        padding: 40px 15px 120px;
    }
}
