:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
    --shadow-hover: 0 4px 12px rgba(32, 33, 36, 0.15);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark Mode Variables */
body.dark-mode {
    --dark-color: #e8eaed;
    --light-color: #202124;
    --gray-color: #9aa0a6;
    --border-color: #5f6368;
    --shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .features {
    background: #292a2d;
}

body.dark-mode .how-it-works {
    background: #202124;
}

body.dark-mode .screenshots {
    background: #292a2d;
}

body.dark-mode .video-demo {
    background: #202124;
}

body.dark-mode .compatibility {
    background: #292a2d;
}

body.dark-mode .permissions {
    background: #202124;
}

body.dark-mode .feature-card {
    background: #292a2d;
    border: 1px solid #5f6368;
}

body.dark-mode .screenshot-item {
    background: #292a2d;
}

body.dark-mode .permissions-box {
    background: #292a2d;
    border-color: #5f6368;
}

body.dark-mode .permission-content code {
    background: #202124;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
}

.dark-mode-toggle .sun-icon {
    display: block;
}

.dark-mode-toggle .moon-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: block;
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 64px 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
        url('../images/extension-preview.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 19px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 13px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 19px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Section Styles */
section {
    padding: 40px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 13px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 48px;
}

/* Features Section */
.features {
    background: var(--light-color);
}

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

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 19px;
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* How It Works Section */
.how-it-works {
    background: white;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.work-item {
    display: flex;
    gap: 20px;
}

.work-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.work-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.work-content h3 .icon {
    display: inline-block;
}

.work-content p,
.work-content ul {
    color: var(--gray-color);
    line-height: 1.7;
}

.work-content ul {
    list-style: none;
    margin-top: 10px;
}

.work-content ul li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    padding-left: 30px;
}

.indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-left: -30px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.indicator.blue {
    background: var(--primary-color);
}

.indicator.gray {
    background: #9aa0a6;
}

.indicator.yellow {
    background: #fbbc04;
}

.indicator.disabled {
    background: #dadce0;
}

/* Screenshots Section */
.screenshots {
    background: var(--light-color);
}

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

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: white;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.screenshot-item img:hover {
    opacity: 0.9;
}

.lightbox-trigger {
    display: block;
    text-decoration: none;
}

/* Video Demo Section */
.video-demo {
    background: white;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Compatibility Section */
.compatibility {
    background: var(--light-color);
}

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

.compatibility-item {
    text-align: center;
}

.compat-icon {
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.compatibility-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.compatibility-item p {
    color: var(--gray-color);
}

/* Permissions Section */
.permissions {
    background: white;
}

.permissions-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.permission-icon {
    flex-shrink: 0;
}

.permission-icon .lock-icon {
    font-size: 3rem;
}

.permission-content h3 {
    font-size: 1.5rem;
    margin-bottom: 13px;
}

.permission-content p {
    color: var(--gray-color);
    margin-bottom: 13px;
}

.permission-content code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
}

.permission-content ul {
    list-style: none;
}

.permission-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-color);
}

.permission-content ul li .check {
    color: var(--secondary-color);
    font-size: 1.125rem;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 13px;
}

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

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 32px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 6px;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #5a9aff;
}

.footer-copyright {
    margin-top: 13px;
    opacity: 0.7;
    font-size: 0.875rem;
}

body.dark-mode .footer {
    color: #202124;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

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

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

    .section-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 32px 20px;
    }

    .features-grid,
    .how-it-works-grid,
    .screenshots-grid,
    .compatibility-grid {
        grid-template-columns: 1fr;
    }

    .permissions-box {
        flex-direction: column;
        padding: 24px 20px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}