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

:root {
    --primary-color: #10b981;
    --secondary-color: #2db89e;
    --teal-light: #34d399;
    --teal-dark: #059669;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-radius: 12px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    background: var(--bg-primary);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 85px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

body:has(.warning-banner) .navbar {
    top: 85px;
}

body:not(:has(.warning-banner)) .navbar {
    top: 45px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand i {
    font-size: 2.25rem;
    color: var(--primary-color);
}

.nav-search {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.nav-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.nav-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--dark-border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--dark-bg);
}

.search-result-symbol {
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-result-price {
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    min-width: 200px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--dark-bg);
    color: var(--primary-color);
}

.language-selector {
    position: relative;
    margin-right: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--dark-bg);
    border-color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius);
    min-width: 150px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
}

.lang-dropdown a:hover {
    background: var(--dark-bg);
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.15);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
    background: transparent;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.btn-register {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-register:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(19, 24, 41, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
    background: var(--dark-card);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--dark-border);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.stat-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info p {
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--dark-bg);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--dark-border);
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.25rem;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Market Overview */
.market-overview {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.market-table {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.market-table table {
    width: 100%;
    border-collapse: collapse;
}

.market-table thead {
    background: rgba(19, 24, 41, 0.8);
    border-bottom: 2px solid var(--dark-border);
}

.market-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
}

.market-table td {
    padding: 1rem;
    border-top: 1px solid var(--dark-border);
    transition: background 0.2s;
}

.market-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
    cursor: pointer;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}

.btn-trade {
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    display: inline-block;
}

.btn-trade:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(19, 24, 41, 0.8) 0%, var(--dark-bg) 100%);
    text-align: center;
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.25rem 3.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.3);
}

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

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

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

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .nav-search {
        max-width: 300px;
        margin: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-search {
        display: none;
    }
    
    .nav-menu,
    .nav-auth {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .language-selector {
        display: none;
    }
    
    .market-table {
        font-size: 0.875rem;
    }
    
    .market-table th,
    .market-table td {
        padding: 0.75rem 0.5rem;
    }
}

