/* ==========================================
   OPERA GX PRELANDER - STYLE.CSS
   Gaming Browser Landing Page Styles
   ========================================== */

/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Background Colors */
    --bg-dark: #050810;
    --bg-mid: #0d1224;
    --bg-accent: #1a0a1f;
    
    /* Primary Colors */
    --red-primary: #ff2d55;
    --red-secondary: #ff0844;
    --red-glow: rgba(255, 45, 85, 0.6);
    
    /* Accent Colors */
    --cyan-accent: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.3);
    --green-accent: #00ff88;
    --green-glow: rgba(0, 255, 136, 0.4);
    
    /* Text Colors */
    --text-primary: #fff;
    --text-secondary: #a8b2d1;
    --text-muted: #5a6789;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
}

/* ==========================================
   BACKGROUND EFFECTS
   ========================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 45, 85, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(26, 10, 31, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-accent) 100%);
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 45, 85, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 45, 85, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px var(--red-glow);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 15s; }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 11s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; transform: translateY(90vh) scale(1); }
    90% { opacity: 0.6; transform: translateY(10vh) scale(1); }
    100% { transform: translateY(0) scale(0); opacity: 0; }
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ==========================================
   LOGO
   ========================================== */
.logo-wrapper {
    position: absolute;
    top: 25px;
    left: 60px;
    z-index: 10;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--red-glow));
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   CONTENT SECTION
   ========================================== */
.content {
    padding-top: 70px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Headlines */
.headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(255, 45, 85, 0.3);
}

.headline .highlight {
    display: block;
    background: linear-gradient(90deg, var(--red-primary), #ff6b8a, var(--red-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheadline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.subheadline .accent {
    color: var(--cyan-accent);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 300;
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    margin-bottom: 32px;
    max-width: 420px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--green-accent), #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--green-glow);
}

.feature-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--bg-dark);
    stroke-width: 3;
    fill: none;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ==========================================
   CTA BUTTON
   ========================================== */
.cta-wrapper {
    margin-bottom: 28px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 44px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 40px rgba(255, 45, 85, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: cta-pulse 3s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(255, 45, 85, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow: 
            0 10px 60px rgba(255, 45, 85, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
            0 0 30px rgba(255, 45, 85, 0.3);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 80px rgba(255, 45, 85, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 100px rgba(255, 45, 85, 0.4);
    animation: none;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 14px;
}

.cta-subtext span {
    color: var(--green-accent);
    font-weight: 600;
}

.cta-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    opacity: 0.85;
}

/* ==========================================
   TRUST BADGES
   ========================================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trust-icon {
    width: 8px;
    height: 8px;
    background: var(--red-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--red-glow);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==========================================
   VISUAL SECTION
   ========================================== */
.visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.visual-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
    filter: blur(50px);
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.visual-glow-cyan {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse-cyan 5s ease-in-out infinite;
    filter: blur(50px);
    top: 10%;
    right: 5%;
}

@keyframes glow-pulse-cyan {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3) translate(15px, -15px); opacity: 0.6; }
}

/* Gamer Image */
.gamer-image {
    position: relative;
    z-index: 2;
    width: 130%;
    max-width: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(255, 45, 85, 0.5),
        0 0 120px rgba(255, 45, 85, 0.3),
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 45, 85, 0.3);
}

.gamer-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.1) contrast(1.05);
}

.gamer-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Floating Stats */
.floating-stat {
    position: absolute;
    background: rgba(13, 18, 36, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 45, 85, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 3;
    animation: float-stat 3s ease-in-out infinite;
}

.floating-stat.stat-1 {
    top: 8%;
    right: -2%;
    animation-delay: 0s;
}

.floating-stat.stat-2 {
    bottom: 28%;
    left: -8%;
    animation-delay: 1s;
}

.floating-stat.stat-3 {
    bottom: 5%;
    right: 8%;
    animation-delay: 2s;
}

@keyframes float-stat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red-primary);
}

.stat-value.cyan {
    color: var(--cyan-accent);
}

.stat-value.green {
    color: var(--green-accent);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(5, 8, 16, 0.95);
    border-top: 1px solid rgba(255, 45, 85, 0.2);
    padding: 16px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.partner-item:hover {
    opacity: 1;
}

.partner-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 40px;
        text-align: center;
    }
    
    .logo-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .content {
        padding-top: 100px;
        order: 1;
    }
    
    .visual {
        order: 2;
        justify-content: center;
    }
    
    .features-grid {
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .floating-stat {
        display: none;
    }
    
    .gamer-image {
        max-width: 600px;
        width: 100%;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
        gap: 30px;
    }
    
    .logo-wrapper {
        top: 20px;
    }
    
    .logo {
        width: 130px;
    }
    
    .content {
        padding-top: 90px;
    }
    
    .headline {
        font-size: 1.4rem;
    }
    
    .subheadline {
        font-size: 0.9rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px 20px;
        max-width: 300px;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        width: 20px;
        height: 20px;
    }
    
    .feature-icon svg {
        width: 10px;
        height: 10px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 320px;
        padding: 16px 32px;
        font-size: 0.95rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .visual {
        display: none;
    }
    
    .footer {
        padding: 14px 20px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .partner-item {
        font-size: 0.6rem;
    }
    
    .partner-icon {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE
   ========================================== */
@media (max-width: 380px) {
    .headline {
        font-size: 1.25rem;
    }
    
    .subheadline {
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 180px;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
}
