/* 
 * TRADERFRE.io - Masterpiece Design System - Elite Edition
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --background: #020203;
    --card-bg: rgba(10, 10, 12, 0.7);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #10b981;
    --accent: #f59e0b;
    --white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mesh Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #020203;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 40%;
    left: 50%;
    opacity: 0.05;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.w-full {
    width: 100%;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

@media (min-width: 768px) {
    .md-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md-flex-row {
        flex-direction: row !important;
    }

    .md-text-7xl {
        font-size: 5.5rem;
        letter-spacing: -3px;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 900;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #34d399, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(2, 2, 3, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    z-index: 1000;
    transition: 0.4s;
}

.nav.scrolled {
    padding: 0.8rem 0;
    background: rgba(2, 2, 3, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lang-selector {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: flex;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.4;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.15) !important;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Components */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 3rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.1);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: 0.4s;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.6);
}

.btn-premium:hover::after {
    opacity: 1;
}

.input-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.2rem 1.8rem;
    color: white;
    width: 100%;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

.input-premium:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Hero */
.hero {
    padding: 14rem 0 10rem;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
}

.hero-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 10rem 0;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5rem;
    text-align: center;
    letter-spacing: -1px;
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 2rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.faq-header {
    padding: 1.8rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 2.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-icon {
    transition: 0.4s;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Social */
.social-card {
    padding: 1.5rem 2rem !important;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.social-card i {
    font-size: 2.2rem;
    transition: 0.4s;
    color: white;
    /* Full visibility */
    opacity: 1;
    display: inline-block;
}

.social-card span {
    color: white;
    opacity: 0.9;
    font-size: 1rem;
}

.social-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.insta-glow:hover {
    box-shadow: 0 0 40px rgba(225, 48, 108, 0.4);
    border-color: rgba(225, 48, 108, 0.8) !important;
    background: rgba(225, 48, 108, 0.1);
}

.x-glow:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Animation Utils */
.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.hidden {
    display: none;
}

@media (max-width: 992px) {
    .hidden-mobile {
        display: none !important;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Fixes Elite */
@media (max-width: 480px) {
    .hero {
        padding-top: 10rem;
    }

    .nav .logo {
        font-size: 1.1rem !important;
    }

    .btn-premium {
        width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        white-space: normal !important;
        text-align: center;
        border-radius: 1.25rem !important;
    }

    .input-premium {
        margin-bottom: 1rem;
        text-align: center;
        padding: 1.1rem !important;
    }

    .glass-card {
        padding: 2.5rem 1.5rem !important;
        border-radius: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .hero-badge {
        margin-bottom: 1.5rem;
    }

    body {
        font-size: 0.95rem;
    }
}

/* Success Modal - Elite Edition */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 2, 3, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.modal-overlay.flex {
    display: flex;
}

.modal-content {
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: modalExplosion 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.modal-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
    animation: iconPulse 2s infinite;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    opacity: 0.5;
    cursor: pointer;
    font-size: 1.25rem;
    transition: 0.3s;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#modalTitle {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#modalBody {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalExplosion {
    0% {
        transform: scale(0.5);
        opacity: 0;
        filter: blur(10px);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 3rem 2rem !important;
        border-radius: 2rem !important;
    }

    #modalTitle {
        font-size: 1.8rem;
    }
}