/* ============================================
   QX Trading Pro - Global Stylesheet
   Professional, Modern, Responsive Design
   ============================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-dark: #0a1929;
    --primary-blue: #1a3a5a;
    --accent-blue: #2d5a87;
    --accent-green: #4caf50;
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-gray: #b0b0b0;
    --bg-dark: #0f1b2e;
    --bg-light: #f5f5f5;
    --border-color: #2a3f5a;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Arial', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--accent-green);
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: var(--transition);
}

nav a:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #0a4d5c 0%, #0a1929 50%, #000000 100%);
    padding: var(--spacing-md) var(--spacing-sm);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 200, 255, 0.1) 0%, transparent 100%);
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 200, 255, 0.1) 2px,
            rgba(0, 200, 255, 0.1) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 200, 255, 0.05) 2px,
            rgba(0, 200, 255, 0.05) 4px
        );
    opacity: 0.6;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-devices {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-monitor {
    position: absolute;
    top: 20px;
    left: 0;
    width: 400px;
    height: 280px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    z-index: 3;
}

.device-monitor::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.monitor-screen {
    width: 100%;
    height: 100%;
    background: #0a1929;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    padding: 15px;
}

.chart-line {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #4caf50 20%, #4caf50 80%, transparent 100%);
    border-radius: 2px;
}

.chart-line::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(76, 175, 80, 0.3) 20%, rgba(76, 175, 80, 0.3) 80%, transparent 100%);
    border-radius: 2px;
}

.chart-dots {
    position: absolute;
    bottom: 38px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.chart-dots span {
    width: 4px;
    height: 20px;
    background: rgba(76, 175, 80, 0.6);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.chart-dots span:nth-child(1) { height: 15px; animation-delay: 0s; }
.chart-dots span:nth-child(2) { height: 25px; animation-delay: 0.2s; }
.chart-dots span:nth-child(3) { height: 18px; animation-delay: 0.4s; }
.chart-dots span:nth-child(4) { height: 22px; animation-delay: 0.6s; }
.chart-dots span:nth-child(5) { height: 16px; animation-delay: 0.8s; }

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.device-phone {
    position: absolute;
    bottom: 40px;
    left: 200px;
    width: 180px;
    height: 320px;
    background: linear-gradient(145deg, #c0c0c0, #808080);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: rotate(5deg);
    z-index: 4;
}

.device-phone::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0a1929;
    border-radius: 20px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-balance {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.phone-chart {
    flex: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(76, 175, 80, 0.2) 50%, rgba(76, 175, 80, 0.4) 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.phone-chart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #4caf50;
    transform: translateY(-50%);
}

.phone-buttons {
    display: flex;
    gap: 10px;
}

.btn-up, .btn-down {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.btn-up {
    background: #4caf50;
    color: var(--text-white);
}

.btn-down {
    background: #f44336;
    color: var(--text-white);
}

.hero-text {
    text-align: left;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-white);
    line-height: 1.1;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.disclaimer-banner {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    color: #ffc107;
    font-size: 0.9rem;
    text-align: left;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-green);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    color: var(--text-white);
}

.btn-secondary {
    background-color: var(--text-white);
    border: 2px solid var(--text-white);
    color: #000000;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, #0a1929 0%, #0f1b2e 50%, #0a1929 100%);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 200, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-white);
}

.section-alt {
    background: linear-gradient(180deg, #0f1b2e 0%, #1a2a3a 50%, #0f1b2e 100%);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 200, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section-alt > .container {
    position: relative;
    z-index: 1;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.card {
    background-color: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-green);
}

.card h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: var(--spacing-lg);
}

.content-section h2 {
    color: var(--accent-green);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-section h3 {
    color: var(--text-white);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.content-section ul,
.content-section ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.content-section li {
    margin-bottom: var(--spacing-xs);
}

/* ===== RISK WARNING ===== */
.risk-warning {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 4px;
}

.risk-warning h3 {
    color: #f44336;
    margin-bottom: var(--spacing-sm);
}

.risk-warning p {
    color: var(--text-light);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-white);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--text-gray);
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-disclaimer {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-green {
    color: var(--accent-green);
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        gap: var(--spacing-md);
    }
    
    .device-monitor {
        width: 320px;
        height: 220px;
    }
    
    .device-phone {
        width: 150px;
        height: 270px;
        left: 150px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-sm) var(--spacing-xs);
        margin-bottom: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-devices {
        height: 300px;
        order: 2;
    }
    
    .device-monitor {
        width: 250px;
        height: 180px;
        top: 10px;
        left: 50%;
        transform: translateX(-50%) rotate(-5deg);
    }
    
    .device-phone {
        width: 120px;
        height: 210px;
        bottom: 20px;
        left: 50%;
        transform: translateX(-20px) rotate(5deg);
    }
    
    .hero-text {
        text-align: center;
        order: 1;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        padding: var(--spacing-sm);
        border-top: 1px solid var(--border-color);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .hero {
        padding: var(--spacing-md) var(--spacing-xs);
    }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-green);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

