/* styles.css */
:root {
    --primary: #97b002;
    --dark: #0b0b0b;
    --light: #ffffff;
    --gray: #e0e0e0;
    --text: #a0a0a0;
    --card-bg: #13131F;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Aldrich', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-family: 'Bayon', sans-serif;
    color: var(--light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(151, 176, 2, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-heading {
    font-family: 'Aldrich', sans-serif;
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-heading span {
    color: var(--primary);
}

.slogan {
    font-family: 'Bayon', sans-serif;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 1px;
}

.slogan-footer {
    font-family: 'Bayon', sans-serif;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-subheading {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background-color: #0F0F17;
}

.section-heading {
    font-family: 'Bayon', sans-serif;
    text-align: center;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subheading {
    text-align: center;
    color: var(--text);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--primary);
    height: 80px;
    width: 80px;
    line-height: 80px;
    background: rgba(151, 176, 2, 0.1);
    border-radius: 50%;
    margin: 0 auto 25px;
}

.feature-title {
    font-family: 'Bayon', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--light);
    font-weight: 400;
}

.feature-text {
    color: var(--text);
    line-height: 1.6;
}

/* Arbitrage Education Section */
.education {
    padding: var(--section-padding);
}

.education-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.education-column {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
}

.edu-heading {
    font-family: 'Bayon', sans-serif;
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 400;
}

.edu-text {
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

.edu-visual {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--light);
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding);
    background-color: #0F0F17;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--dark);
}

.step-title {
    font-family: 'Bayon', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--light);
    font-weight: 400;
}

.step-text {
    color: var(--text);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: var(--section-padding);
    text-align: center;
    background: linear-gradient(to bottom, #0F0F17 0%, var(--dark) 100%);
}

.cta-heading {
    font-family: 'Bayon', sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--light);
    font-weight: 400;
}

.cta-subheading {
    color: var(--text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-size: 18px;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background-color: #0A0A10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-family: 'Bayon', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light);
    font-weight: 400;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text);
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.disclaimer {
    background-color: rgba(255, 0, 0, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-top: 40px;
    border-left: 4px solid #ff4d4d;
}

.disclaimer-heading {
    font-family: 'Bayon', sans-serif;
    color: #ff4d4d;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 400;
}

.disclaimer-text {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* Learning Guide Specific Styles */
.guide-hero {
    padding: 160px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(151, 176, 2, 0.1) 0%, transparent 70%);
}

.guide-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-heading {
    font-family: 'Aldrich', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.guide-heading span {
    color: var(--primary);
}

.guide-subheading {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.guide-content {
    padding: 80px 0;
}

.guide-section {
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Bayon', sans-serif;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 400;
    border-bottom: 2px solid rgba(151, 176, 2, 0.3);
    padding-bottom: 10px;
}

.section-subtitle {
    font-family: 'Bayon', sans-serif;
    font-size: 24px;
    margin: 30px 0 20px;
    color: var(--light);
    font-weight: 400;
}

.guide-text {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 17px;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.card-title {
    font-family: 'Bayon', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--light);
    font-weight: 400;
}

.example {
    background-color: rgba(19, 19, 31, 0.6);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(151, 176, 2, 0.2);
}

.example-title {
    font-family: 'Bayon', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 400;
}

.visualization {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.vis-title {
    font-family: 'Bayon', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 400;
}

.arbitrage-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.path-node {
    background: var(--primary);
    color: var(--dark);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.path-arrow {
    color: var(--primary);
    font-size: 24px;
    z-index: 2;
}

.path-line {
    position: absolute;
    height: 2px;
    background: rgba(151, 176, 2, 0.3);
    width: 100%;
    top: 50%;
    z-index: 1;
}

.formula-box {
    background: rgba(19, 19, 31, 0.8);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(151, 176, 2, 0.3);
    text-align: center;
}

.formula {
    font-family: monospace;
    font-size: 18px;
    color: var(--primary);
    margin: 10px 0;
}

.risk-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.risk-item {
    background: rgba(255, 100, 100, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff6464;
}

.risk-title {
    font-family: 'Bayon', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #ff6464;
    font-weight: 400;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-grid,
    .education-columns,
    .steps,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .hero-heading,
    .guide-heading {
        font-size: 48px;
    }
    
    .section-heading,
    .cta-heading {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .arbitrage-path {
        flex-direction: column;
        height: auto;
    }
    
    .path-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .path-line {
        width: 2px;
        height: 100%;
        left: 50%;
    }
}

@media (max-width: 768px) {
    .hero-heading,
    .guide-heading {
        font-size: 36px;
    }
    
    .section-heading,
    .cta-heading {
        font-size: 30px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero,
    .guide-hero {
        padding: 120px 0 80px;
    }
    
    :root {
        --section-padding: 80px 0;
    }
}

// Set current year in footer
document.getElementById('current-year').textContent = new Date().getFullYear();

// Back to top button functionality (for learning.html)
const backToTopButton = document.querySelector('.back-to-top');
if (backToTopButton) {
    window.addEventListener('scroll', () => {
        if (window.pageYOffset > 300) {
            backToTopButton.style.display = 'flex';
        } else {
            backToTopButton.style.display = 'none';
        }
    });
    
    backToTopButton.addEventListener('click', (e) => {
        e.preventDefault();
        window.scrollTo({ top: 0, behavior: 'smooth' });
    });
}