/* 
  SCPlayer - CloudConvert Style Dark Theme
*/

:root {
    /* Colors based on CloudConvert dark mode */
    --bg-dark: #1b1b1e; /* Very dark matte gray */
    --bg-surface: #222226; /* Slightly lighter for cards */
    --bg-surface-hover: #2a2a2f;
    
    --primary-red: #e91b38; /* Soft, modern red like CC */
    --primary-red-glow: rgba(234, 67, 53, 0.2);
    --secondary-red: #d33c2f;
    
    --text-main: #ffffff;
    --text-muted: #9aa0a6;
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(234, 67, 53, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* GRID PATTERN do CloudConvert */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Background Ambient Glow */
.bg-glow, .bg-glow-2 {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

/* O brilho do topo */
.bg-glow {
    width: 150vw;
    height: 800px;
    background: radial-gradient(ellipse at top center, rgba(234, 67, 53, 0.12) 0%, transparent 60%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(60px);
}

.bg-glow-2 {
    display: none;
}

/* Typography */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-red {
    color: var(--primary-red);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ff8b97 40%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(27, 27, 30, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

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

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

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

[data-pwa-install][hidden],
.mobile-menu[hidden] {
    display: none !important;
}

.pwa-status-toast {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 3000;
    max-width: min(92vw, 360px);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(27, 27, 30, 0.96);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pwa-status-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px; /* CloudConvert square corners */
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background: var(--secondary-red);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-glow {
    box-shadow: 0 0 15px var(--primary-red-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    z-index: -1;
    pointer-events: none;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-red);
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.trusted-by p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.format-icons {
    display: flex;
    gap: 12px;
}

.format-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Radar Rings Effect from CloudConvert */
.radar-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.ring-1 { width: 300px; height: 300px; }
.ring-2 { width: 450px; height: 450px; }
.ring-3 { width: 600px; height: 600px; border-color: rgba(255, 255, 255, 0.02); }

.radar-rings::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    right: -20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateY(-50%);
}

.glass-mockup {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    padding: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-normal);
}

.glass-mockup:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-red-glow);
    transform: translateY(-5px);
}

.hero-mockup {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Features */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
    background: rgba(234, 67, 53, 0.1);
    color: var(--primary-red);
    border-color: var(--border-highlight);
    box-shadow: 0 0 15px var(--primary-red-glow);
}

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

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

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 60px;
    background: #161619;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
}

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

.link-group h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-main);
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .format-icons {
        justify-content: center;
    }
    
    .glass-mockup {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .navbar {
        padding-top: max(14px, env(safe-area-inset-top));
    }

    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
    }

    .mobile-menu {
        width: calc(100% - 36px);
        margin: 12px auto 0;
        padding: 14px;
        display: grid;
        gap: 10px;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        background: rgba(27, 27, 30, 0.98);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    }

    .mobile-menu a {
        min-height: 42px;
        display: flex;
        align-items: center;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 600;
    }

    .mobile-menu .btn {
        width: 100%;
        min-height: 44px;
    }

    .hero {
        min-height: auto;
        padding: 118px 0 64px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        max-width: none;
        font-size: 1rem;
    }

    .hero-actions,
    .cta-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-actions .btn,
    .cta-buttons .btn {
        width: 100%;
        min-height: 48px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .glass-card,
    .cta-box {
        border-radius: 10px;
        padding: 24px;
    }

    .contact-cards {
        grid-template-columns: 1fr !important;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}
