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

:root {
    --primary: #3b9eff;
    --primary-dark: #2a7fd4;
    --secondary: #2dd4a0;
    --bg-dark: #0a0a0f;
    --bg-light: #ffffff;
    --surface-dark: #131318;
    --surface-light: #f5f5f7;
    --text-dark: #f0eee8;
    --text-light: #111118;
    --text-secondary-dark: #a09eb0;
    --text-secondary-light: #555568;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

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

/* Navigation */
.navbar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 158, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 160, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary-dark);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

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

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 158, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 158, 255, 0.4);
}

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

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

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

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

/* Sections */
section {
    padding: 80px 0;
}

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

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

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

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

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

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

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

/* How It Works */
.how-it-works {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
}

.how-it-works .section-title {
    color: var(--text-dark);
}

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

.step {
    text-align: center;
}

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

.step h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary-dark);
    line-height: 1.7;
}

/* Privacy Section */
.privacy-section {
    background: var(--bg-light);
}

.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.privacy-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.privacy-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

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

.privacy-cta {
    text-align: center;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    text-align: center;
}

.download-section .section-title {
    color: var(--text-dark);
}

.download-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary-dark);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.chrome-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.version-info {
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    background: white;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--surface-light);
}

.faq-arrow {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary-light);
    line-height: 1.7;
}

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

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

.footer-section h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
}

/* Policy Pages */
.policy-section {
    background: var(--bg-light);
    padding: 100px 0 80px;
}

.policy-container {
    max-width: 900px;
}

.policy-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-light);
}

.policy-updated {
    color: var(--text-secondary-light);
    margin-bottom: 8px;
}

.policy-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-top: 32px;
}

.policy-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.policy-content p {
    margin-bottom: 16px;
    color: var(--text-secondary-light);
    line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary-light);
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.policy-content code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.policy-content strong {
    color: var(--text-light);
    font-weight: 600;
}

.policy-content a {
    color: var(--primary);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

.policy-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 40px 0;
}

.policy-summary {
    background: linear-gradient(135deg, rgba(59, 158, 255, 0.1), rgba(45, 212, 160, 0.1));
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 8px;
    margin-top: 32px;
}

.policy-summary h3 {
    margin-top: 0;
    color: var(--primary);
}

.contact-info {
    background: var(--surface-light);
    padding: 24px;
    border-radius: 8px;
    margin: 16px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

/* Permissions Table */
.permissions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.permissions-table th,
.permissions-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.permissions-table th {
    background: var(--surface-light);
    font-weight: 600;
    color: var(--text-light);
}

.permissions-table td {
    color: var(--text-secondary-light);
}

.permissions-table code {
    font-size: 0.85rem;
}

/* Support Page Styles */
.support-hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.support-hero h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.support-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary-dark);
}

.support-content {
    padding: 60px 0;
}

.support-section {
    margin-bottom: 48px;
}

.support-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-light);
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.support-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.support-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

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

.support-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.support-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.support-card li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

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

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

    .nav-links {
        gap: 16px;
        font-size: 0.85rem;
    }

    .features-grid,
    .steps,
    .privacy-content {
        grid-template-columns: 1fr;
    }

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

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

    .policy-content {
        padding: 32px 24px;
    }

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

    .permissions-table {
        font-size: 0.85rem;
    }

    .permissions-table th,
    .permissions-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 0 60px;
    }

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

    section {
        padding: 60px 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }
}

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

.hero-content,
.feature-card,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* =====================
   Screenshots Section
   ===================== */
.screenshots-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    padding: 80px 0;
}

.screenshots-section .section-title {
    color: var(--text-dark);
}

.screenshot-viewer {
    max-width: 900px;
    margin: 0 auto;
    user-select: none;
}

.screenshot-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.screenshot-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d14;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,158,255,0.08);
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.screenshot-img.transitioning {
    opacity: 0;
    transform: scale(0.97);
}

.screenshot-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 20, 0.75);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 2;
    opacity: 0;
}

.screenshot-main:hover .screenshot-arrow {
    opacity: 1;
}

.screenshot-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.screenshot-prev { left: 12px; }
.screenshot-next { right: 12px; }

/* Dots */
.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.screenshot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.screenshot-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.screenshot-dot:hover:not(.active) {
    background: rgba(255,255,255,0.45);
}

/* Thumbnails */
.screenshot-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-thumb {
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: #0d0d14;
    transition: all 0.2s ease;
    opacity: 0.5;
    flex-shrink: 0;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.screenshot-thumb.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 16px rgba(59, 158, 255, 0.3);
}

@media (max-width: 768px) {
    .screenshot-thumb {
        width: 80px;
    }

    .screenshot-arrow {
        opacity: 1;
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }

    .screenshot-frame {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    .screenshot-thumbs {
        gap: 8px;
    }

    .screenshot-thumb {
        width: 60px;
    }
}

/* =====================
   Screenshot Lightbox
   ===================== */
.screenshot-frame {
}

.screenshot-expand-hint {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.screenshot-frame:hover .screenshot-expand-hint {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    cursor: zoom-out;
    animation: lightboxFadeIn 0.2s ease;
}

.lightbox.open {
    display: flex;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-img-wrap {
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
}

.lightbox-img.transitioning {
    opacity: 0;
    transform: scale(0.96);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}