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

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tech-stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Extension Mockup */
.hero-image {
    position: relative;
}

.extension-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.extension-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.browser-chrome {
    background: #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #d1d5db;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-title {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.extension-preview {
    padding: 24px;
    background: white;
}

.extension-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.leaf-icon {
    font-size: 2rem;
}

.extension-header h2 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.carbon-display {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.carbon-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.carbon-label {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 4px;
}

.comparison {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 16px;
}

.comparison-icon {
    font-size: 1.5rem;
}

.comparison-text {
    color: var(--text-dark);
    font-weight: 500;
}

.intensity-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.intensity-badge.green {
    background: #d1fae5;
    color: #065f46;
}

.top-sites h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.site-item:last-child {
    border-bottom: none;
}

.site-name {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.site-emissions {
    color: var(--text-light);
    font-size: 0.875rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

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

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

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

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

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    position: relative;
    padding-left: 80px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Privacy Section */
.privacy {
    padding: 60px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.privacy-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.privacy-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Tech Section */
.tech-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.tech-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tech-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--bg-light);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.download-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.download-info p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.browser-support {
    margin-bottom: 32px;
}

.browser-support h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.browser-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.browser-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-download {
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    font-size: 1.25rem;
}

.coming-soon {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.installation-steps h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.installation-steps ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.installation-steps li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.installation-steps code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

.detailed-instructions {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detailed-instructions:hover {
    color: var(--primary-dark);
}

.detailed-instructions-panel {
    margin-top: 40px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    grid-column: 1 / -1;
}

.instructions-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.browser-instructions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.browser-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.browser-section ol {
    margin-left: 20px;
}

.browser-section li {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.browser-section ul {
    margin-left: 20px;
    margin-top: 8px;
}

.browser-section ul li {
    list-style-type: circle;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.contact-placeholder {
    color: var(--primary-color);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .download-content {
        grid-template-columns: 1fr;
    }

    .browser-instructions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .features,
    .how-it-works,
    .tech-section,
    .download {
        padding: 60px 0;
    }

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

    .privacy-content {
        flex-direction: column;
        text-align: center;
    }
}
