/* ===== Root Variables ===== */
:root {
    /* Light Theme (White Mode) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    
    /* Green Accent Colors */
    --green-primary: #10b981;
    --green-secondary: #059669;
    --green-tertiary: #047857;
    --green-light: #d1fae5;
    --green-dark: #065f46;
    
    /* Additional Colors */
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Code Colors */
    --code-bg: #1e293b;
    --code-keyword: #c678dd;
    --code-string: #98c379;
    --code-function: #61afef;
    --code-number: #d19a66;
    --code-comment: #5c6370;
}

/* Dark Theme (Green Mode) */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    
    --green-primary: #22c55e;
    --green-secondary: #16a34a;
    --green-tertiary: #15803d;
    --green-light: #052e16;
    --green-dark: #bbf7d0;
    
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    --code-bg: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--green-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green-primary);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--green-light);
    color: var(--green-primary);
    border-color: var(--green-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--green-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

/* ===== Hero Section ===== */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-width: 0;
}

.hero-image {
    min-width: 0;
    max-width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Code Window */
.code-window {
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.code-window-header {
    background: #1a202c;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.code-window-dots {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.code-window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.code-window-dots span:nth-child(1) { background: #ff5f56; }
.code-window-dots span:nth-child(2) { background: #ffbd2e; }
.code-window-dots span:nth-child(3) { background: #27c93f; }

.code-window-title {
    color: #94a3b8;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-window-content {
    padding: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.code-window-content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
    max-width: 100%;
}

.code-window-content pre code {
    display: block;
}

.code-keyword { color: var(--code-keyword); }
.code-string { color: var(--code-string); }
.code-function { color: var(--code-function); }
.code-number { color: var(--code-number); }
.code-comment { color: var(--code-comment); font-style: italic; }

/* ===== Features Section ===== */
.features {
    padding: 5rem 0;
    background: var(--bg-primary);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--green-light);
    color: var(--green-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Sponsors Section ===== */
.sponsors {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.sponsor-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-primary);
}

.sponsor-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-tertiary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-lg);
}

.sponsor-logo-img {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.sponsor-logo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 3rem;
    font-weight: 900;
    color: white;
}

.sponsor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sponsor-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sponsor-link {
    color: var(--green-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.sponsor-link:hover {
    gap: 1rem;
}

/* ===== Pricing Section ===== */
.pricing-preview {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--green-primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--green-light) 100%);
}

.pricing-badge {
    background: var(--green-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-old {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--text-tertiary);
    margin-right: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--green-primary);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.pricing-features i {
    color: var(--green-primary);
}

.pricing-features .fa-times {
    color: var(--text-tertiary);
}

.pricing-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== CTA Section ===== */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-tertiary) 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

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

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--green-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--green-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-right: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .code-window {
        max-width: 100%;
        overflow: hidden;
    }
    
    .code-window-content {
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .code-window-content pre {
        font-size: 0.8rem;
        min-width: 100%;
        width: max-content;
        max-width: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .nav-actions .btn-primary {
        display: inline-flex;
    }
    
    .code-window {
        border-radius: 8px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .code-window-header {
        padding: 0.5rem 0.75rem;
    }
    
    .code-window-dots span {
        width: 8px;
        height: 8px;
    }
    
    .code-window-title {
        font-size: 0.75rem;
    }
    
    .code-window-content {
        padding: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .code-window-content pre {
        font-size: 0.7rem;
        line-height: 1.4;
        min-width: 100%;
        width: max-content;
        max-width: none;
    }
}
