:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --primary: #42a5f5;
    --primary-gradient: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
    --accent-glow: rgba(66, 165, 245, 0.4);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    font-display: swap;
}

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

.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-main);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.github-link {
    display: flex;
    align-items: center;
}

.hero {
    padding: 100px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 0.1em;
    letter-spacing: -0.03em;
    overflow: visible;
}

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

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(66, 165, 245, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(66, 165, 245, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
}

.btn svg {
    width: 24px;
    height: 24px;
}

.btn-chrome {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(66, 165, 245, 0.3);
}

.btn-chrome:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(66, 165, 245, 0.5);
}

.btn-firefox {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border);
}

.btn-firefox:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.shield-container {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    animation: floatShield 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes floatShield {
    0%, 100% { transform: translateY(0) rotateY(0); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

.shield-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(66, 165, 245, 0.5));
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(66, 165, 245, 0.5)); }
    50% { filter: drop-shadow(0 0 50px rgba(66, 165, 245, 0.8)); }
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

section {
    font-size: 1rem;
}

.section-padding {
    padding: 100px 0;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(250px, auto);
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(66, 165, 245, 0.3);
}

.large {
    grid-column: span 2;
    background: linear-gradient(145deg, rgba(66,165,245,0.1) 0%, var(--bg-card) 100%);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.large:hover {
    background: linear-gradient(145deg, rgba(66,165,245,0.15) 0%, var(--bg-card-hover) 100%);
    border-color: rgba(66, 165, 245, 0.3);
}

.medium {
    grid-column: span 2;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.speed-visual {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 60px;
    margin-top: auto;
}

.speed-bar {
    width: 20px;
    background: var(--primary);
    border-radius: 4px;
    animation: speedBar 2s infinite ease-in-out;
}

.speed-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.speed-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.speed-bar:nth-child(3) { height: 60%; animation-delay: 0.4s; }

@keyframes speedBar {
    0%, 100% { transform: scaleY(1); opacity: 0.8; }
    50% { transform: scaleY(1.2); opacity: 1; }
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(66, 165, 245, 0.2);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 50%, transparent 50%);
    background-size: 20px 100%;
    margin-top: 30px;
    opacity: 0.3;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.faq-item.active {
    background: var(--bg-card-hover);
    border-color: rgba(66, 165, 245, 0.3);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}

.faq-item.active .toggle {
    transform: rotate(45deg);
}

footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
    background: #050505;
}

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

.footer-logo img {
    width: 177px;
    height: 48px;
    margin-bottom: 16px;
    display: block;
    object-fit: contain;
}

.footer-logo p {
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h3 {
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.copyright a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(66, 165, 245, 0.5);
    text-underline-offset: 2px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.copyright a:hover {
    color: var(--text-main);
    text-decoration-color: var(--primary);
}

.footer-link {
    text-decoration: underline;
    text-decoration-color: rgba(66, 165, 245, 0.5);
    text-underline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Mobile Navigation */
@media (max-width: 968px) {
    .desktop-nav {
        gap: 20px;
    }
    
    .desktop-nav a {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        margin: 0 auto 40px;
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .shield-container {
        width: 250px;
        height: 250px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bento-card {
        padding: 24px;
    }
    
    .large, .medium {
        grid-column: span 1;
    }
    
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-connector {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
        width: 100%;
    }
    
    .footer-logo p {
        max-width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .glass-header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .desktop-nav {
        gap: 12px;
    }
    
    .desktop-nav a {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 70px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .bento-card h3 {
        font-size: 1.25rem;
    }
    
    .bento-card {
        padding: 20px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
        font-size: 0.9rem;
    }
    
    .footer-logo img {
        width: 120px;
        height: auto;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 20px;
    }
}