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

:root {
    /* Design System - Shadcn inspired */
    --background: 0 0% 100%;
    --foreground: 0 0% 9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;
    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 9%;
    --border: 0 0% 90%;
    --ring: 0 0% 9%;
    --radius: 0.5rem;
    
    /* Theme Colors for Browser UI - Cross-browser compatible */
    --theme-color: #000000;
    --theme-color-light: #ffffff;
    
    /* Spacing System - 8px grid */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark mode support for theme colors */
@media (prefers-color-scheme: dark) {
    :root {
        --theme-color: #ffffff;
        --theme-color-light: #000000;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    font-feature-settings: "rlig" 1, "calt" 1;
}



/* Main Container - Single Compact Section */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.content-section {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: var(--space-16);
    box-shadow: var(--shadow-lg);
}

/* Hero Actions Section */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

/* Product Hunt Badge */
.producthunt-badge {
    transition: transform 0.2s ease;
}

.producthunt-badge:hover {
    transform: scale(1.05);
}

.producthunt-image {
    height: 54px;
    width: auto;
}

/* Install Button */
.install-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: all 0.2s ease;
    border: 1px solid hsl(var(--primary));
    box-shadow: var(--shadow);
}

.install-button:hover {
    background: hsl(var(--primary-foreground));
    color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.chrome-logo {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero-section {
    margin-bottom: var(--space-16);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-8);
}

.hero-logo {
    width: auto;
    height: 4rem;
    max-width: 300px;
}

.hero-headline {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
}

.accent-text {
    color: hsl(var(--primary));
}

.hero-description {
    font-size: var(--font-size-xl);
    color: hsl(var(--muted-foreground));
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}



/* Section Titles */
.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-8);
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
}

/* Features Section */
.features-section {
    margin-bottom: var(--space-16);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.2s ease;
}

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

.feature-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-3);
    display: block;
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: hsl(var(--foreground));
}

.feature-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

/* Screenshots Section */
.screenshots-section {
    margin-top: var(--space-20);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.screenshot-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot {
    transform: scale(1.02);
}

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-caption {
    transform: translateY(0);
}

/* Content Styles Section */
.styles-section {
    margin-bottom: var(--space-16);
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.style-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: hsl(var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.style-card:hover::before {
    transform: scaleX(1);
}

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

.style-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: hsl(var(--foreground));
    position: relative;
    z-index: 1;
}

.style-card p {
    color: hsl(var(--muted-foreground));
    font-size: var(--font-size-sm);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Quick Start Section */
.quick-start-section {
    margin-bottom: var(--space-16);
}

.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0 auto var(--space-4);
}

.step-card h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: hsl(var(--foreground));
}

.step-card p {
    color: hsl(var(--muted-foreground));
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s ease;
}

.close:hover {
    color: #bbb;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: var(--space-4);
    font-size: var(--font-size-lg);
}

/* Screenshot hover effects */
.screenshot {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius);
    overflow: hidden;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Tech Stack Section */
.tech-section {
    margin-bottom: var(--space-16);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.tech-card {
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.2s ease;
}

.tech-card:hover {
    border-color: hsl(var(--ring));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: hsl(var(--foreground));
}

.tech-card p {
    color: hsl(var(--muted-foreground));
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    border-top: 1px solid hsl(var(--border));
    padding-top: var(--space-8);
}

.cta-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
    color: hsl(var(--foreground));
}

.cta-section p {
    font-size: var(--font-size-base);
    color: hsl(var(--muted-foreground));
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
}

.social-link:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent));
    transform: translateY(-1px);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Button System */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
    min-width: 160px;
}

.cta-button.primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.cta-button.primary:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cta-button.secondary {
    background: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.cta-button.secondary:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--ring));
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: hsl(var(--muted));
    border-top: 1px solid hsl(var(--border));
    margin-top: var(--space-20);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-8);
}

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

.footer-section h3 {
    color: hsl(var(--foreground));
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-section p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.footer-bottom a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .content-section {
        max-width: 1000px;
        padding: var(--space-12);
    }
    
    .features-grid,
    .screenshots-grid,
    .styles-grid,
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-start-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

@media (max-width: 1024px) {
    .features-grid,
    .screenshots-grid,
    .styles-grid,
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .quick-start-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-headline {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: var(--space-4);
    }
    
    .content-section {
        padding: var(--space-8);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid,
    .screenshots-grid,
    .styles-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .quick-start-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .feature-card,
    .style-card,
    .tech-card {
        padding: var(--space-4);
    }
    
    .producthunt-badge img {
        width: 200px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .cta-section h2 {
        font-size: var(--font-size-xl);
    }
    
    .cta-section p {
        font-size: var(--font-size-sm);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .producthunt-badge img {
        width: 180px;
        height: auto;
    }
}
