:root {
    --primary: #0A2540;
    --primary-light: #1A3A5A;
    --accent: #064E3B;
    --accent-light: #059669;
    --text-main: #1F2937;
    --text-muted: #64748B;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
    text-decoration: none;
}

.logo span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid rgba(10, 37, 64, 0.15);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

/* Hero Section */
.hero {
    padding: 200px 0 120px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 78, 59, 0.1);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 120px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.chapter {
    display: block;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.feature-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

.feature-visual {
    flex: 1;
    background: var(--bg-light);
    border-radius: 20px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

/* Mockups */
.code-mockup {
    background: #1e1e2e;
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    font-family: 'Courier New', Courier, monospace;
}

.code-mockup pre { color: #cdd6f4; font-size: 0.9rem; }
.keyword { color: #cba6f7; }
.title { color: #89b4fa; }
.built_in { color: #fab387; }
.string { color: #a6e3a1; }
.comment { color: #6c7086; font-style: italic; }

.trading-mockup {
    width: 80%;
    height: 60%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #eee;
}

.chart-line {
    position: absolute;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.1), transparent);
    border-top: 2px solid #10b981;
}

.signal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--accent-light);
}

/* Footer */
footer {
    padding: 60px 0;
    background: var(--primary);
    color: rgba(255,255,255,0.7);
}

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

footer .logo {
    color: white;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

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

/* Responsive */
@media (max-width: 992px) {
    .feature-item, .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .feature-list li {
        display: inline-block;
        margin: 0 10px;
    }
    .feature-visual {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .nav-links {
        display: none;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
