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

:root {
    --background: #240847;
    --background-rgb: 36,8,71;
    --secondary: #a736ff;
    --secondary-rgb: 167,54,255;
    --main: #ffae34;
    --main-rgb: 255,174,52;
    --primary: #a736ff;
    --primary-dark: #9718ff;
    --green: #01b28b;
    --green-rgb: 1,178,139;
    --success: #01b28b;
    --danger: #f7495b;
    --error: #f7495b;
    --error-rgb: 247,73,91;
    --info: #5f9fff;
    --info-rgb: 95,159,255;
    --warn: #ffaf33;
    --warn-rgb: 255,175,51;
    --warning: #ffaf33;
    --font: #fff;
    --font-rgb: 255,255,255;
    --dark: #240847;
    --dark-light: #3a1766;
    --gray: #a8a8a8;
    --gray-light: #4a2980;
    --text: #ffffff;
    --text-secondary: #b8b8b8;
    --bg-main-rgb: 58,23,102;
    --bg-main: rgb(58, 23, 102);
    --bg-light-rgb: 82,18,163;
    --bg-light: rgb(82, 18, 163);
    --dropdown-rgb: 71,31,120;
    --dropdown: rgb(71, 31, 120);
    --btn-text: rgb(0, 0, 0);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(36, 8, 71, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(167, 54, 255, 0.2);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--font);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: var(--font);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--main);
    color: var(--btn-text);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 174, 52, 0.4);
    background: var(--main-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--font);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--font);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--main);
    bottom: -150px;
    left: -100px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--info);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--main) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(167, 54, 255, 0.15);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--main);
}

.feature-badge svg path {
    fill: var(--main);
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Login Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.login-card {
    background: rgba(71, 31, 120, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(167, 54, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--font);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--font);
    width: 100%;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--dropdown);
    color: var(--font);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(167, 54, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--main);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--warn);
}

.btn-full {
    width: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.signup-link {
    color: var(--main);
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
    color: var(--warn);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-light);
}

.divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.demo-btn {
    margin-top: 0;
}

.trading-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-weight: 600;
    color: var(--text-secondary);
}

.card-balance {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.chart-container {
    height: 200px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    position: relative;
}

#tradingChart {
    width: 100%;
    height: 100%;
}

.trade-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.asset-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.asset-name {
    font-weight: 700;
    font-size: 18px;
}

.asset-price {
    font-weight: 600;
}

.asset-price.up {
    color: var(--success);
}

.asset-price.down {
    color: var(--danger);
}

.asset-price small {
    font-size: 12px;
    margin-left: 4px;
}

.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.trade-btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.trade-btn.buy {
    background: var(--success);
    color: white;
}

.trade-btn.buy:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.trade-btn.sell {
    background: var(--danger);
    color: white;
}

.trade-btn.sell:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-light) 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--main) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.feature-card {
    padding: 32px;
    background: rgba(71, 31, 120, 0.3);
    border: 1px solid rgba(167, 54, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(167, 54, 255, 0.2);
    background: rgba(71, 31, 120, 0.5);
    border-color: var(--secondary);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Assets Section */
.assets {
    padding: 100px 0;
    background: var(--bg-main);
}

.assets-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.asset-tab {
    padding: 12px 24px;
    border: none;
    background: rgba(71, 31, 120, 0.5);
    color: var(--text);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.asset-tab:hover {
    background: var(--secondary);
    color: var(--font);
}

.asset-tab.active {
    background: var(--main);
    color: var(--btn-text);
}

.assets-content {
    position: relative;
}

.asset-list {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.asset-list.active {
    display: flex;
}

.asset-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(71, 31, 120, 0.4);
    border: 1px solid rgba(167, 54, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
}

.asset-item:hover {
    box-shadow: 0 8px 20px rgba(167, 54, 255, 0.3);
    background: rgba(71, 31, 120, 0.6);
    border-color: var(--secondary);
}

.asset-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-symbol {
    font-weight: 700;
    font-size: 16px;
}

.asset-fullname {
    font-size: 14px;
    color: var(--text-secondary);
}

.asset-change {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    width: fit-content;
}

.asset-change.up {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.asset-change.down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.asset-profit {
    font-weight: 600;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-warning {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .assets-tabs {
        flex-wrap: wrap;
    }

    .asset-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .asset-change {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .cta-title {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

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

.hero-content,
.feature-card,
.asset-item {
    animation: fadeIn 0.6s ease-out;
}
