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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #ffffff;
}

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

/* Alert Banner */
.alert-banner {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1000;
}

.alert-content {
    animation: slideInDown 0.6s ease-out;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #e5e7eb;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #dc2626;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #dc2626;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    gap: 10px;
}

.btn-primary {
    background: #dc2626;
    color: white;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

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

.btn-outline:hover {
    background: transparent;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-github {
    background: #24292e;
    color: white;
}

.btn-github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 12px;
    background: #dc2626;
    color: white;
}

.btn-outline-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 12px;
    border: 2px solid #24292e;
    color: white;
    background: #24292e;
}

.btn-outline-large:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.3);
}

.github-icon {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
    position: relative;
    padding-left: 20px;
}

.hero-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    border-radius: 3px;
}

.highlight {
    color: #000000;
}

.hero-title .highlight {
    color: #dc2626;
    white-space: nowrap;
}

.hero-description {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

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

.floating-dots {
    display: none;
}

/* Installation Section */
.installation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1f2937;
}

.installation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.code-block-container {
    width: 100%;
    max-width: 600px;
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: #374151;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #4b5563;
}

.code-language {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
}

.code-language::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgb(109, 190, 234);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgb(109, 190, 234);
    transform: translateY(-1px);
}

.code-block {
    padding: 20px 24px;
    background: #111827;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
    line-height: 1.5;
}

.code-command {
    color: rgb(109, 190, 234);
    font-weight: 600;
}

.code-flag,
.code-option,
.code-package {
    color: white;
    font-weight: 500;
}

.installation-info {
    text-align: center;
    opacity: 0.9;
    margin-top: 20px;
}

.release-info {
    font-size: 14px;
    color: #6b7280;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1f2937;
}

.installation-text {
    text-align: left;
}

.installation-text .section-title {
    color: #dc2626;
    text-align: left;
    margin-bottom: 16px;
    font-size: 3rem;
}

.installation-text .section-subtitle {
    color: #6b7280;
    text-align: left;
    margin-bottom: 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Code Example Section */
.code-example-section {
    padding: 100px 0;
    background: white;
}

.code-example-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.code-example-header .section-title {
    margin-bottom: 24px;
    font-size: 2.5rem;
    color: #1f2937;
}

.code-example-header .section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 0;
}

.code-example-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.inline-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.inline-link:hover {
    text-decoration: underline;
}

.code-example-content .features-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 0;
}

.code-example-content .feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.code-example-content .feature-item p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1rem;
}

.code-example-demo {
    position: relative;
}

.demo-code-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.demo-code-header {
    background: #e2e8f0;
    padding: 12px 16px;
    border-bottom: 1px solid #cbd5e1;
}

.code-tabs {
    display: flex;
    gap: 8px;
}

.code-tab {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-tab.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demo-code-content {
    padding: 24px;
    background: #f8fafc;
    overflow-x: auto;
}

.demo-code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
}

.demo-code-content code {
    display: block;
    white-space: pre;
}

/* Syntax highlighting for light theme */
.keyword {
    color: #7c3aed;
    font-weight: 600;
}

.class-name {
    color: #059669;
    font-weight: 500;
}

.function {
    color: #dc2626;
    font-weight: 500;
}

.param {
    color: #0891b2;
}

.method {
    color: #dc2626;
}

.string {
    color: #16a34a;
}

.comment {
    color: #6b7280;
    font-style: italic;
}

.boolean {
    color: #7c3aed;
    font-weight: 500;
}

.builtin {
    color: #0891b2;
    font-weight: 500;
}

.constant {
    color: #dc2626;
    font-weight: 500;
}

.demo-caption {
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Exchanges Section */
.exchanges-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.exchanges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.exchange-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exchange-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.exchange-card:hover::before {
    left: 100%;
}

.exchange-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #dc2626;
}

.exchange-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
}

/* Specific logo adjustments */
.binance-logo {
    filter: none;
    background: white;
}

.okx-logo {
    filter: none;
    background: white;
}

.bybit-logo {
    filter: brightness(1.1);
    background: white;
}

.exchange-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.exchange-img.binance-logo {
    width: 50px;
    height: auto;
}

.exchange-img.okx-logo {
    width: 45px;
    height: 45px;
}

.exchange-img.bybit-logo {
    width: 55px;
    height: auto;
}

.exchange-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.exchange-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

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

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #f87171);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Documentation Section */
.documentation-section {
    padding: 100px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('bg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

.documentation-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.documentation-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.documentation-section h2,
.stat-label {
    color: white;
}

.documentation-section h2 {
    color: #dc2626;
}

.stat-label {
    color: #dc2626;
}

.documentation-section p {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 48px;
    line-height: 1.7;
}

.documentation-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 500;
}

.documentation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #dc2626;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: black;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #dc2626;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

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

@keyframes underlineExpand {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Removed 3D animations as we now use SVG background */

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }
    
    .nav-menu {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .exchanges-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .documentation-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .documentation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large,
    .btn-outline-large {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .code-block-container {
        max-width: 100%;
    }
    
    .code-block {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .code-header {
        padding: 8px 12px;
    }
    
    .installation-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .installation-text .section-title,
    .installation-text .section-subtitle {
        text-align: center;
    }
    
    .code-example-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .code-example-header {
        margin-bottom: 40px;
    }
    
    .code-example-content .features-list {
        padding-left: 0;
        gap: 32px;
    }
    
    .demo-code-content {
        padding: 16px;
    }
    
    .demo-code-content pre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .exchange-card,
    .feature-card {
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
