:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(20, 20, 20, 0.8);
    --primary-color: #ffcc00;
    --primary-hover: #e6b800;
    --accent-color: #ffaa00;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glow-color: rgba(255, 204, 0, 0.3);
}

/* removido html body e reset global para não interferir na página principal */

/* Background Animated Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f97316 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.9); }
}

/* App Container Layout */
.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 900px) {
    .app-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Content Section */
.download-section {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    width: 100%;
    animation: fadeIn 1s ease-out forwards;
    transform: translateY(20px);
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 1.5rem;
}

.app-logo {
    width: auto;
    max-width: 280px;
    height: auto;
    max-height: 80px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 10px 25px var(--glow-color);
}

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #fef08a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-title span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Features */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    font-weight: 400;
}

.feature-item svg {
    color: var(--primary-color);
}

/* Call to Action */
.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #1a1a1a;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -5px var(--glow-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary svg {
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(255, 204, 0, 0.7);
    filter: brightness(1.15);
}

.btn-primary.clicked {
    transform: scale(0.95);
}

.version-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Mockup Presentation */
.mockup-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    animation: slideInRight 1s ease-out forwards 0.2s;
    opacity: 0;
}

@media (min-width: 900px) {
    .mockup-container {
        margin-top: 0;
        margin-left: 3rem;
    }
}

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

.container-glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 0;
    filter: blur(50px);
}

.devices-group {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10;
}

.devices-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
    background: linear-gradient(to right, #ffffff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 20;
    letter-spacing: 0.5px;
    margin-left: 55px; /* Compensa o celular na direita para centralizar o texto no conjunto */
}

/* Base Shadow Mixin */
.premium-shadow {
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 1),
        0 15px 35px -5px rgba(255, 204, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* TV Styling */
.tv-mockup {
    width: 480px;
    height: 290px;
    background: #000;
    border-radius: 12px;
    padding: 6px;
    position: relative;
    transform: perspective(1200px) rotateY(-2deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.tv-bezel {
    border: 3px solid #1a1a24;
    border-bottom: 8px solid #0f0f15;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f1105, #000000);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-mockup:hover {
    transform: perspective(1200px) rotateY(0deg) translateY(-8px);
}

.tv-mockup::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 18px;
    background: linear-gradient(to bottom, #111, #050505);
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
}

.tv-mockup::before {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: #222;
    border-radius: 4px;
}

/* Phone Styling */
.phone-mockup-small {
    position: absolute;
    right: -60px;
    bottom: -20px;
    width: 150px;
    height: 300px;
    background: #222;
    border-radius: 32px;
    padding: 6px;
    z-index: 2;
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) rotateZ(0deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid #333;
}

.phone-bezel {
    border: 3px solid #000;
    border-radius: 26px;
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}

.dynamic-island {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 12px;
    background: #000;
    border-radius: 10px;
    z-index: 10;
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1f1105, #000000);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup-small:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-15px) rotateZ(0deg);
}

/* Shared glare effect */
.glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 5;
}

.splash-logo-small {
    width: 110px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

.screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo {
    width: 200px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

.loading-bar {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: var(--primary-color);
    border-radius: 4px;
    animation: load 2s infinite ease-in-out;
}

@keyframes load {
    0% { left: -40%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .app-container {
        padding: 1rem;
    }
    .mockup-container {
        margin-left: 0;
        margin-top: 3rem;
    }
    .devices-title {
        margin-left: 0;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 2.2rem;
    }
    .download-section {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    .btn-primary {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    /* Resize the mockups natively without transform: scale */
    .devices-group {
        transform: none;
        margin: 0;
    }
    
    .tv-mockup {
        width: 315px;
        height: 190px;
        transform: perspective(1200px) rotateY(-2deg) rotateX(2deg);
    }
    
    .tv-mockup::after {
        width: 90px;
        height: 12px;
        bottom: -12px;
    }
    
    .tv-mockup::before {
        width: 140px;
        bottom: -16px;
    }
    
    .phone-mockup-small {
        width: 110px;
        height: 220px;
        right: -10px;
        bottom: -20px;
        transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) rotateZ(0deg);
    }
    
    .phone-bezel {
        border-radius: 20px;
    }
    
    .splash-logo {
        width: 80px;
    }
    
    .splash-logo-small {
        width: 50px;
    }
}
