/* EcoCode Promotional Site - Modern Glassmorphism Design with Theme Support */

:root {
    /* ECO THEME - LIGHT */
    --bg: #f8fafc;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;
    --text-main: #0f172a;
    --text-soft: #64748b;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(16, 185, 129, 0.2);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --secondary: #3b82f6;
}

[data-theme="dark"] {
    /* DARK ECO GLASS THEME */
    --bg: #0f172a;
    --accent: #34d399;
    --accent-dark: #10b981;
    --accent-light: #6ee7b7;
    --text-main: #f8fafc;
    --text-soft: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(52, 211, 153, 0.15);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --secondary: #2563eb;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 40%), 
        radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.05) 0px, transparent 40%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    min-height: 600px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.eco-icon {
    font-size: 12rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
    background-color: white;
    color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--accent);
    transform: translateY(-3px);
}

.btn-android {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-android:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
}

.btn-web {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-web:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--accent);
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

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

/* Download Section */
.download {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 5rem 2rem;
    text-align: center;
    margin: 3rem auto;
    max-width: 1200px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.download h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.download > p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 3rem;
}

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

.download-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.05) 100%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.download-card p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.qr-placeholder {
    background-color: rgba(16, 185, 129, 0.05);
    border: 2px dashed var(--accent);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    border-radius: 12px;
    color: var(--text-soft);
    font-weight: 700;
}

.qr-text, .web-text {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.stat-item {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    text-align: center;
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-soft);
    font-size: 1.05rem;
}

/* EULA Section */
.eula-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.eula-container {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: var(--shadow);
    position: relative;
}

.eula-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.eula-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.eula-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.eula-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.eula-item h3::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
}

.eula-item p {
    color: var(--text-soft);
    line-height: 1.8;
}

.eula-item strong {
    color: var(--text-main);
}

.eula-item h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.eula-item ul {
    list-style-position: inside;
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-soft);
}

.eula-item ul li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.eula-main {
    flex: 1;
}

.last-updated {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2rem;
}

.intro-text {
    color: var(--text-soft);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.eula-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.eula-footer p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.eula-footer strong {
    color: var(--accent);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: rgba(15, 23, 42, 0.9);
    color: white;
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .nav-menu a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .theme-toggle {
        font-size: 1.1rem;
        padding: 6px 10px;
    }

    .eco-icon {
        font-size: 6rem;
    }

    .features-grid,
    .download-options {
        grid-template-columns: 1fr;
    }

    .features h2,
    .download h2,
    .contact h2,
    .eula-section h2 {
        font-size: 2rem;
    }

    .eula-container {
        padding: 2rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .nav-right {
        gap: 0.3rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav-menu a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .theme-toggle {
        font-size: 1rem;
        padding: 6px 8px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features h2,
    .download h2,
    .contact h2,
    .eula-section h2 {
        font-size: 1.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .feature-card h3,
    .download-card h3,
    .eula-item h3 {
        font-size: 1.1rem;
    }

    .eula-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .contact-info {
        padding: 1.5rem;
    }
}
