/**
 * Opera GX Performance Landing Page - CRO Optimized
 * Font: Exo 2 | Theme: Opera GX Official Colors
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Opera GX Colors */
    --gx-red: #FF1B2D;
    --gx-red-dark: #D91424;
    --gx-red-glow: rgba(255, 27, 45, 0.4);
    --gx-cyan: #00E5FF;
    --gx-cyan-glow: rgba(0, 229, 255, 0.25);
    --gx-purple: #9147FF;
    
    /* Backgrounds */
    --gx-bg-darkest: #0A0A0A;
    --gx-bg-dark: #111111;
    --gx-bg-card: #181818;
    --gx-bg-elevated: #222222;
    
    /* Borders */
    --gx-border: #2A2A2A;
    --gx-border-light: #3A3A3A;
    
    /* Text */
    --gx-text: #FFFFFF;
    --gx-text-secondary: #B0B0B0;
    --gx-text-muted: #707070;
    
    /* Accents */
    --gx-green: #00FF7F;
    --gx-yellow: #FFD700;
    
    /* Font */
    --font: 'Exo 2', sans-serif;
    
    /* Effects */
    --transition: 0.2s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --glow-red: 0 0 25px var(--gx-red-glow);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 400;
    background: var(--gx-bg-darkest);
    color: var(--gx-text);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--gx-cyan);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gx-red);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gx-cyan);
    outline-offset: 3px;
}

ul {
    list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* ============================================
   HEADER (Sticky with CTA)
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gx-border);
    padding: 14px 0;
}

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

.logo {
    height: 32px;
    width: auto;
    color: var(--gx-text);
    transition: all var(--transition);
}

.logo:hover {
    color: var(--gx-red);
    filter: drop-shadow(0 0 10px var(--gx-red-glow));
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--gx-red);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--gx-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--glow-red);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 70px 0 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 27, 45, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

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

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 50px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Stats - Bottom placement */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 30px;
}

.hero-stat {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    background: var(--gx-bg-card);
    border: 1px solid var(--gx-border);
    border-radius: 4px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    display: block;
}

.headline-highlight {
    color: var(--gx-red);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--gx-text-secondary);
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero-proof {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gx-cyan);
    margin-top: 30px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.hero-microcopy {
    font-size: 0.8rem;
    color: var(--gx-text-muted);
    margin-top: 0;
}

.hero-image {
    position: relative;
}

@media (min-width: 900px) {
    .hero-image {
        max-width: 95%;
        margin-left: auto;
    }
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--gx-red), var(--gx-cyan));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.6;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    right: 10%;
    height: 30px;
    background: var(--gx-red);
    filter: blur(30px);
    opacity: 0.3;
    border-radius: 50%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 40px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gx-red);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--gx-text-secondary);
    max-width: 550px;
    margin: 0 auto 48px;
}

/* Section CTA */
.section-cta {
    margin-top: 48px;
}

/* ============================================
   FEATURES
   ============================================ */
.features-section {
    background: var(--gx-bg-darkest);
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 48px;
}

@media (min-width: 900px) {
    .features-layout {
        grid-template-columns: 1fr 1.2fr;
        gap: 50px;
        text-align: left;
    }
}

.features-image {
    position: relative;
}

.features-image img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.features-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 550px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--gx-bg-card);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
    padding: 24px;
    text-align: left;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gx-red);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gx-text-secondary);
    line-height: 1.7;
}

/* ============================================
   COMPARISON
   ============================================ */
.comparison-section {
    background: var(--gx-bg-dark);
}

.comparison-image-wrapper {
    margin: 0 auto 40px;
    max-width: 600px;
}

.comparison-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.comparison-table {
    background: var(--gx-bg-card);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    border-bottom: 1px solid var(--gx-border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    background: var(--gx-bg-elevated);
}

.comparison-cell {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.comparison-row.header .comparison-cell {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-cell.check {
    justify-content: center;
}

.brand-gx {
    color: var(--gx-red);
    font-weight: 700;
}

.brand-other {
    color: var(--gx-text-muted);
    font-size: 0.7rem;
}

.check-yes {
    color: var(--gx-green);
    font-size: 1.3rem;
    font-weight: 700;
}

.check-no {
    color: #FF4D4D;
    font-size: 1.2rem;
    opacity: 0.6;
}

.comparison-note {
    font-size: 0.95rem;
    color: var(--gx-text-secondary);
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (max-width: 550px) {
    .comparison-cell {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    .comparison-row.header .comparison-cell {
        font-size: 0.65rem;
    }
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits-section {
    background: var(--gx-bg-darkest);
}

.section-image-wrapper {
    margin: 0 auto 48px;
    max-width: 700px;
}

.section-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.benefits-grid {
    display: grid;
    gap: 20px;
    margin-top: 48px;
}

@media (min-width: 550px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background: var(--gx-bg-card);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
    padding: 24px;
    text-align: left;
    transition: all var(--transition);
}

.benefit-card:hover {
    border-color: var(--gx-cyan);
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--gx-text-secondary);
    line-height: 1.6;
}

/* Privacy Feature Section */
.privacy-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    margin-top: 48px;
    padding: 32px;
    background: var(--gx-bg-card);
    border: 1px solid var(--gx-border);
    border-radius: 12px;
}

@media (min-width: 700px) {
    .privacy-feature {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
        text-align: left;
    }
}

.privacy-image img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.privacy-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #00C8E0;
}

.privacy-content p {
    font-size: 1rem;
    color: var(--gx-text-secondary);
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--gx-bg-dark);
}

.testimonials-image-wrapper {
    margin: 24px auto 40px;
    max-width: 600px;
}

.testimonials-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.testimonials-grid {
    display: grid;
    gap: 20px;
    margin-top: 0;
}

@media (min-width: 700px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.testimonial-card {
    background: var(--gx-bg-card);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
    padding: 28px;
    text-align: left;
}

.testimonial-stars {
    color: var(--gx-yellow);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--gx-text);
    line-height: 1.7;
    margin-bottom: 18px;
}

.testimonial-text .highlight {
    color: var(--gx-cyan);
    font-weight: 600;
    font-style: normal;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--gx-text);
    margin-bottom: 4px;
}

.testimonial-author strong {
    font-weight: 700;
}

.testimonial-tag {
    font-size: 0.8rem;
    color: var(--gx-text-muted);
    font-weight: 500;
}

.testimonials-note {
    font-size: 0.8rem;
    color: var(--gx-text-muted);
    margin-top: 32px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    background: var(--gx-bg-darkest);
}

.faq-list {
    max-width: 680px;
    margin: 48px auto 0;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--gx-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--gx-text);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 22px 40px 22px 0;
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--gx-red);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gx-red);
    transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 22px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--gx-text-secondary);
    line-height: 1.7;
}

/* ============================================
   NO-RISK SWITCH SECTION
   ============================================ */
.switch-section {
    background: var(--gx-bg-dark);
    padding: 40px 0 50px;
    margin-top: -30px;
}

.switch-section .section-title {
    margin-bottom: 32px;
}

.switch-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
}

.switch-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.switch-check {
    color: var(--gx-green);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 70px 0 80px;
    text-align: center;
    position: relative;
    background: var(--gx-bg-darkest);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gx-red), transparent);
}

.final-cta-content {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--gx-text-secondary);
    margin-bottom: 28px;
}

.final-microcopy {
    font-size: 0.85rem;
    color: var(--gx-text-muted);
    margin-top: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gx-bg-darkest);
    border-top: 1px solid var(--gx-border);
    padding: 32px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-bottom: 16px;
}

.footer-links button {
    background: none;
    border: none;
    color: var(--gx-text-muted);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition);
}

.footer-links button:hover {
    color: var(--gx-red);
}

.copyright {
    font-size: 0.75rem;
    color: var(--gx-text-muted);
    opacity: 0.7;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--gx-bg-card);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gx-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--gx-red);
}

.modal h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-right: 40px;
    color: var(--gx-red);
}

.modal-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--gx-text);
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--gx-text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.modal-body ul {
    margin: 12px 0;
    padding-left: 20px;
}

.modal-body li {
    font-size: 0.9rem;
    color: var(--gx-text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
    list-style: disc;
}

.modal-body strong {
    color: var(--gx-text);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 899px) {
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-bullets {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        padding: 16px 24px;
    }
    
    .hero {
        padding: 40px 0 50px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-stats {
        gap: 6px 10px;
    }
    
    .hero-stat {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .switch-points {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
