:root {
    --primary-red: #dc2626;
    --primary-red-dark: #991b1b;
    --primary-red-light: #ef4444;
    --dark-bg: #0f0f0f;
    --dark-card: #1a1a1a;
    --dark-border: #2a2a2a;
    --text-primary: #f1f1f1;
    --text-secondary: #b0b7c3;
    --success-green: #10b981;
    --white: #ffffff;
    --gradient-red: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fonts will be preloaded in HTML head for better performance */

body {
    font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

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

/* Header */
.header {
    background: var(--dark-card);
    border-bottom: 1px solid var(--dark-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-section:hover {
    opacity: 0.8;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.brand h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.brand .tagline {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: var(--gradient-red);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    will-change: transform;
}

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

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

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

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

.stat {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.8px;
}

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

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

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

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--dark-card);
}

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

.step {
    text-align: center;
}

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

.step h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--white);
}

.step p {
    color: var(--text-secondary);
}

/* Install Section */
.install {
    padding: 100px 0;
    background: var(--dark-bg);
}

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

.install-option {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 40px;
}

.install-option h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--white);
}

.install-option ol {
    margin-left: 20px;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.install-option ol li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #d1d5db;
}

.install-option a:not(.btn) {
    color: #f87171;
    text-decoration: none;
}

.install-option a:not(.btn):hover {
    text-decoration: underline;
}

.install-option code {
    background: var(--dark-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--success-green);
}

/* Compatibility */
.compatibility {
    padding: 100px 0;
    background: var(--dark-card);
}

.browsers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 60px 0 40px;
}

.browser {
    text-align: center;
    padding: 32px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    transition: all 0.3s;
}

.browser:hover {
    border-color: var(--success-green);
    transform: translateY(-4px);
}

.browser-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.browser-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.browser-status {
    color: var(--success-green);
    font-size: 14px;
    font-weight: 500;
}

.compatibility-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Privacy Section */
.privacy {
    padding: 100px 0;
    background: var(--dark-bg);
}

.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin: 60px 0 40px;
}

.privacy-feature {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 32px;
}

.privacy-feature h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--white);
}

.privacy-feature p {
    color: var(--text-secondary);
}

/* Support Section */
.support {
    padding: 100px 0;
    background: var(--dark-card);
}

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

.support-card {
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.support-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
}

.support-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--white);
}

.support-card p {
    color: #d1d5db;
    margin-bottom: 20px;
}

.support-card a {
    color: #f87171;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.support-card a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient-red);
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .nav {
        display: none;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .install-content {
        grid-template-columns: 1fr;
    }
}
