:root {
    --primary-color: #27ae60;
    --primary-dark: #219150;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --container-width: 1200px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

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

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

.btn-store {
    background-color: #1a1a1a;
    color: var(--white);
    border: 2px solid #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.btn-store:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

header nav[data-account-header="true"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.logo {
    justify-self: start;
}

.nav-links {
    display: flex;
    gap: 30px;
}

nav>.btn {
    justify-self: end;
    color: #ffffff !important;
}

.header-account-actions {
    justify-self: end;
    display: flex;
    align-items: center;
}

.account-signout-btn {
    background-color: #27ae60;
    border-color: #27ae60;
    color: #ffffff;
    padding: 10px 18px;
}

.account-signout-btn:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: #ffffff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
}

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

.nav-links.account-nav-links {
    gap: 20px;
}

@media (min-width: 769px) {
    header nav[data-account-header="true"] .nav-links.account-nav-links {
        justify-content: center;
        width: 100%;
    }
}

.nav-links.account-nav-links .account-nav-link {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links.account-nav-links .account-nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    text-align: center;
}

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

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #eee;
    background: white;
    padding: 10px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

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

.feature-card {
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #e8f8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

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

/* Social Proof */
.social-proof {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.social-proof h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

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

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

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.cta-section .btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

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

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Fix anchor scroll offset for fixed header */
#features,
#how-it-works,
#reviews {
    scroll-margin-top: 100px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    justify-self: end;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
}

/* Header button container */
header nav > div:last-child {
    justify-self: end;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }

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

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    /* Mobile menu overlay */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 250px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* On mobile, adjust button sizes */
    header nav > div:last-child {
        gap: 8px;
    }
    
    header nav > div:last-child .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .social-proof {
        padding: 50px 0;
    }

    .social-proof h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .stats-grid {
        flex-direction: column;
        gap: 25px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        width: 100%;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .footer-links ul li {
        margin-bottom: 0;
    }

    .review-card {
        width: 300px !important;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        word-break: break-word;
        white-space: normal;
    }

    .hero h1 br {
        display: none;
    }

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

    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hero-image {
        padding: 5px;
        border-radius: 8px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .features {
        padding: 40px 0;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .social-proof {
        padding: 40px 0;
    }

    .social-proof h2 {
        font-size: 1.3rem;
        padding: 0 10px;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        font-size: 1.2rem !important;
    }

    .review-card {
        width: 280px !important;
        padding: 20px !important;
    }

    .review-card p {
        font-size: 1rem !important;
    }

    /* Improve logo scaling on small screens */
    .logo img {
        height: 50px !important;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 6 - 30px * 6));
    }
}

/* Fix anchor scroll offset for fixed header */
#features,
#how-it-works,
#reviews {
    scroll-margin-top: 100px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(39, 174, 96, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Blog Search */
.blog-search-container {
    max-width: 600px;
    margin: -40px auto 40px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.search-input {
    width: 100%;
    padding: 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
    border-color: var(--primary-color);
}

.blog-hero {
    padding-bottom: 80px; /* Increased to accommodate search overlap */
}

/* Utility for search logic */
.hidden {
    display: none !important;
}

/* Extension Install Banner */
.extension-install-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.extension-install-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.extension-install-banner .banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.extension-install-banner .banner-text strong {
    font-size: 1.05rem;
}

.extension-install-banner .banner-text span {
    font-size: 0.9rem;
    opacity: 0.95;
}

.extension-install-banner .banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.extension-install-banner .btn-dismiss {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.extension-install-banner .btn-dismiss:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .extension-install-banner .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .extension-install-banner .banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .extension-install-banner .btn {
        width: 100%;
    }
}

/* Blog article responsive styles */
@media (max-width: 768px) {
    .article-header {
        padding: 70px 0 40px !important;
    }

    .article-header h1 {
        font-size: 1.8rem !important;
    }

    .article-content {
        padding: 40px 20px !important;
    }

    .article-content h2 {
        font-size: 1.5rem !important;
        margin: 35px 0 15px !important;
    }

    .article-content p,
    .article-content ul,
    .article-content ol {
        font-size: 1.05rem !important;
    }

    .article-cta {
        padding: 25px !important;
        margin: 35px 0 !important;
    }

    .author-bio {
        padding: 20px !important;
        margin: 35px 0 !important;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 50px 0 30px !important;
    }

    .article-header h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .article-meta {
        font-size: 0.85rem !important;
        gap: 10px !important;
    }

    .article-content {
        padding: 30px 15px !important;
    }

    .article-content h2 {
        font-size: 1.3rem !important;
        margin: 30px 0 12px !important;
    }

    .article-content p,
    .article-content ul,
    .article-content ol {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .article-content ul,
    .article-content ol {
        margin-left: 20px !important;
    }

    .article-cta {
        padding: 20px !important;
        margin: 25px 0 !important;
    }

    .article-cta h3 {
        font-size: 1.2rem;
    }

    .author-bio {
        padding: 15px !important;
        margin: 25px 0 !important;
    }

    .category-badge {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }
}