:root {
    --primary: #4A6CF7;
    --primary-hover: #3251d4;
    --accent: #F43F5E;
    --bg: #0B1220;
    --panel: #111828;
    --panel-border: #1F2937;
    --text: #E5E7EB;
    --text-muted: #9CA3AF;
    --ok: #22C55E;
    --glow-primary: rgba(74, 108, 247, 0.5);
    --glow-ok: rgba(34, 197, 94, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4B5563; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--panel-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--text);
    text-shadow: 0 0 10px var(--glow-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--glow-primary);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(74, 108, 247, 0.3);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(74, 108, 247, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top center, #1a2438 0%, var(--bg) 70%);
    overflow: hidden;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(74, 108, 247, 0.3);
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-image {
    margin-top: 60px;
    perspective: 1000px;
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: #111828;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.mockup-header {
    background: #1F2937;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #374151;
}

.mockup-dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4B5563;
}

.mockup-dots span:nth-child(1) { background-color: #EF4444; }
.mockup-dots span:nth-child(2) { background-color: #F59E0B; }
.mockup-dots span:nth-child(3) { background-color: #10B981; }

.mockup-title {
    color: #9CA3AF;
    font-size: 14px;
    font-family: monospace;
}

.mockup-content {
    display: flex;
    height: 400px;
}

.chart-area {
    flex: 2;
    border-right: 1px solid #374151;
    padding: 20px;
    position: relative;
    background: linear-gradient(180deg, rgba(17,24,40,1) 0%, rgba(17,24,40,0.8) 100%);
}

.price-header { margin-bottom: 20px; }

.coin-pair {
    font-size: 24px;
    font-weight: bold;
    color: #E5E7EB;
    font-family: monospace;
}

.price-current {
    font-size: 32px;
    font-weight: bold;
    color: #22C55E;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    text-shadow: 0 0 10px var(--glow-ok);
}

.price-current .positive {
    font-size: 16px;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.candles {
    height: 250px;
    position: relative;
    border-bottom: 1px solid #374151;
    border-left: 1px solid #374151;
}

.candle {
    width: 20px;
    position: absolute;
    border-radius: 2px;
}

.candle::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -10px;
    bottom: -10px;
    width: 1px;
    background: inherit;
    transform: translateX(-50%);
    z-index: -1;
}

.candle.green {
    background: #22C55E;
    box-shadow: 0 0 5px var(--glow-ok);
}

.candle.red {
    background: #EF4444;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

.sidebar-area {
    flex: 1;
    padding: 20px;
    background: #0f1623;
}

.alert-item {
    background: #1F2937;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid transparent;
    transition: transform 0.2s;
}

.alert-item:hover { transform: translateX(5px); }
.alert-item.warning { border-left-color: #F59E0B; }
.alert-item.success { border-left-color: #22C55E; }
.alert-item.info { border-left-color: #4A6CF7; }

.alert-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5E7EB;
}

.alert-info { flex: 1; }
.alert-title { font-weight: 600; font-size: 14px; color: #E5E7EB; }
.alert-desc { font-size: 12px; color: #9CA3AF; }
.alert-time { font-size: 12px; color: #6B7280; }

/* Features */
.features { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 32px; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(74, 108, 247, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 15px; font-size: 20px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }
.feature-card strong {
    color: #fff;
    font-family: monospace;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Algorithm Section */
.algorithm { padding: 100px 0; background: #0f1623; }
.algo-content { display: flex; align-items: center; gap: 60px; }
.algo-text { flex: 1; }
.algo-visual {
    flex: 1;
    background: var(--panel);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.algo-list li {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.check-icon {
    color: var(--ok);
    font-weight: bold;
    text-shadow: 0 0 5px var(--glow-ok);
}

/* Security Section */
.security-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg) 0%, #0f1623 100%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.security-card {
    background: rgba(17, 24, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 108, 247, 0.2);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.security-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.1);
}

.sec-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--glow-primary));
}

.security-card h3 { margin-bottom: 15px; font-size: 22px; }
.security-card p { color: var(--text-muted); font-size: 15px; }

/* Screenshot Carousel */
.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-container {
    position: relative;
    height: 500px; /* Adjust based on image aspect ratio */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    width: 70%;
    height: auto;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(0) scale(0.8);
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--panel-border);
    background: var(--panel);
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(74, 108, 247, 0.2);
}

.carousel-slide.prev {
    opacity: 0.6;
    transform: translateX(-50%) scale(0.8) rotateY(15deg);
    z-index: 1;
    filter: blur(2px);
}

.carousel-slide.next {
    opacity: 0.6;
    transform: translateX(50%) scale(0.8) rotateY(-15deg);
    z-index: 1;
    filter: blur(2px);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.9);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    border-top: 1px solid var(--panel-border);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 108, 247, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--glow-primary);
}

.carousel-btn.prev-btn { left: -20px; }
.carousel-btn.next-btn { right: -20px; }

/* Crypto Ticker */
.crypto-ticker-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ticker-item {
    background: rgba(17, 24, 40, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--panel-border);
    padding: 12px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.ticker-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.ticker-item i {
    font-size: 20px;
}

.ticker-item .symbol {
    font-weight: bold;
    color: var(--text-muted);
}

.ticker-item .price {
    font-weight: bold;
    color: var(--text);
    min-width: 80px;
}

.ticker-item .price.up { color: var(--ok); text-shadow: 0 0 5px var(--glow-ok); }
.ticker-item .price.down { color: var(--accent); text-shadow: 0 0 5px rgba(244, 63, 94, 0.5); }

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--panel-border);
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover { color: var(--primary); }

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin: 15px 0;
    }
    
    .nav-links a { font-size: 14px; }
    
    .mockup-content {
        flex-direction: column;
        height: auto;
    }
    
    .chart-area {
        border-right: none;
        border-bottom: 1px solid #374151;
        height: 300px;
    }
    
    .sidebar-area { padding: 15px; }

    .algo-content { flex-direction: column; }

    .feature-grid, .screenshot-grid, .security-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo { margin-bottom: 5px; }

    /* Mobile Carousel */
    .carousel-container {
        height: 300px;
    }
    .carousel-slide {
        width: 90%;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .carousel-btn.prev-btn { left: 0; }
    .carousel-btn.next-btn { right: 0; }
}
