/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4285F4;
    --primary-dark: #3367D6;
    --secondary-color: #34A853;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E8EAED;
    --border-color: #DADCE0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 12px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo svg {
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.85;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Why Chrome Section */
.why-chrome {
    padding: 80px 0;
    background: white;
}

.why-chrome h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 18px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.version {
    color: var(--text-secondary);
    font-size: 16px;
}

.download-cta {
    text-align: center;
}

.download-note {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Compatibility Section */
.compatibility {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.compatibility h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.compatibility-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compat-item {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.compat-item strong {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-note {
    font-size: 14px;
    opacity: 0.7;
}

/* Download Page Styles */
.download-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.download-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-subtitle {
    font-size: 20px;
    opacity: 0.95;
}

.download-options {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.platform-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.platform-card p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.platform-version {
    font-weight: 600;
    color: var(--primary-color);
}

.platform-size {
    font-size: 14px;
}

.platform-requirement {
    font-size: 14px;
    margin-bottom: 24px;
}

.download-btn {
    width: 100%;
}

/* Install Guide */
.install-guide {
    padding: 80px 0;
    background: white;
}

.install-guide h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Requirements */
.requirements {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.requirements h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.requirements-grid {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.requirement-item {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.requirement-item strong {
    color: var(--primary-color);
    margin-right: 10px;
}

/* 404 Error Page */
.error-page {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-secondary);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 150px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.error-message {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.error-help {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.error-help h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.help-links {
    list-style: none;
    padding: 0;
}

.help-links li {
    margin-bottom: 12px;
}

.help-links a {
    color: var(--primary-color);
    font-size: 16px;
    transition: color 0.3s ease;
}

.help-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .why-content {
        grid-template-columns: 1fr;
    }

    .error-code {
        font-size: 100px;
    }

    .error-actions {
        flex-direction: column;
        gap: 15px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features-grid,
    .platform-cards {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}
