:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    --bg-card: #1f1f2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b2;
    --text-tertiary: #6b6b7f;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loader {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 3px solid transparent;
    border-top-color: var(--accent-secondary);
    border-right-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loader::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.3em;
    animation: pulse 2s ease-in-out infinite;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-full {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition-base);
}

.logo-full:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: 60%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    top: 50%;
    right: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
    position: relative;
}

.gradient-text::after {
    content: 'Tecnologia Inovadora';
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-secondary:hover .btn-icon {
    transform: scale(1.2);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.8),
                0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary span,
.btn-secondary::after {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: white;
}

.btn-secondary:hover::before {
    opacity: 0.15;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
    transition: var(--transition-base);
}

.mouse:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Section Styles */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.section-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-tag:hover::before {
    opacity: 0.2;
}

.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(0);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    background: var(--bg-secondary);
}

/* iPhone Mockup Showcase */
.iphone-showcase {
    margin-bottom: 6rem;
    padding: 4rem 0;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.iphone-showcase::-webkit-scrollbar {
    display: none;
}

.iphone-carousel {
    display: flex;
    gap: 2rem;
    animation: carousel-scroll 20s linear infinite;
    width: max-content;
}

.iphone-carousel:hover {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 6));
    }
}

/* App Group Container */
.app-group {
    flex-shrink: 0;
    position: relative;
    width: 300px;
    height: 610px;
    margin: 0 1rem;
    animation: float-group 4s ease-in-out infinite;
    animation-delay: var(--delay);
    perspective: 2000px;
    transform-style: preserve-3d;
}

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

/* iPhone Mockup */
.iphone-mockup {
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-index, 1);
    transform-style: preserve-3d;
}

/* Main Phone (primeiro) */
.iphone-mockup.main-phone {
    transform: translateZ(0) rotateY(0deg);
    filter: none;
}

/* Stacked Phones (empilhados atrás) */
.iphone-mockup.stacked-phone {
    transform: translateZ(calc(var(--offset) * -2px)) translateX(calc(var(--offset) * 1px)) translateY(calc(var(--offset) * 0.5px)) scale(var(--scale)) rotateY(calc(var(--offset) * -0.5deg));
    opacity: var(--opacity);
    filter: brightness(0.85);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-group:hover .iphone-mockup.stacked-phone {
    transform: translateZ(calc(var(--offset) * -3px)) translateX(calc(var(--offset) * 2px)) translateY(calc(var(--offset) * 1px)) scale(var(--scale)) rotateY(calc(var(--offset) * -1deg));
    opacity: calc(var(--opacity) + 0.1);
}

@keyframes float-phone {
    0%, 100% {
        transform: translateY(0px) rotateZ(-2deg);
    }
    50% {
        transform: translateY(-20px) rotateZ(2deg);
    }
}

.iphone-frame {
    width: 280px;
    height: 590px;
    background:
        linear-gradient(145deg, rgba(42, 42, 52, 0.95), rgba(26, 26, 36, 0.95)),
        linear-gradient(to right, #3a3a44 0%, #2a2a34 50%, #3a3a44 100%);
    border-radius: 48px;
    padding: 10px;
    position: relative;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5),
        inset 1px 0 1px rgba(255, 255, 255, 0.1),
        inset -1px 0 1px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(60, 60, 70, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iphone-mockup:hover .iphone-frame {
    transform: scale(1.05);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 0 3px rgba(255, 255, 255, 0.25),
        inset 0 0 0 1px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(99, 102, 241, 0.5);
}

/* Dynamic Island - Removida */
.iphone-notch {
    display: none;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* iPhone Buttons */
.iphone-frame::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 120px;
    width: 4px;
    height: 50px;
    background: linear-gradient(180deg, #1a1a24, #0a0a0f);
    border-radius: 2px 0 0 2px;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.5);
}

/* Volume buttons */
.iphone-mockup::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 180px;
    width: 4px;
    height: 35px;
    background: linear-gradient(180deg, #1a1a24, #0a0a0f);
    border-radius: 2px 0 0 2px;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.5);
    z-index: 11;
}

.iphone-mockup::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 225px;
    width: 4px;
    height: 35px;
    background: linear-gradient(180deg, #1a1a24, #0a0a0f);
    border-radius: 2px 0 0 2px;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.5);
    z-index: 11;
}

/* App Screenshots */
.app-screenshot {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* CSS antigo removido - agora usa sistema automático */

.app-screenshot::before {
    display: none;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.status-bar {
    display: none;
}

.status-icons {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
}

.app-content {
    display: none;
}

.app-content h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-feature {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.app-feature p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 20px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.product-card:hover .card-glow {
    opacity: 0.6;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% {
        filter: blur(20px) hue-rotate(0deg);
    }
    100% {
        filter: blur(20px) hue-rotate(360deg);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

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

.product-card:hover {
    transform: translateY(-16px) scale(1.03) rotateX(2deg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7),
                0 0 100px rgba(99, 102, 241, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.8);
}

.product-card.featured {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.product-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.product-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.product-link:hover {
    color: var(--accent-secondary);
    gap: 0.75rem;
}

/* Vision Section */
.vision-section {
    background: var(--bg-primary);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.vision-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.stat-item:hover::before {
    opacity: 0.1;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    padding: 0.25rem 0;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.vision-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.vision-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.vision-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4),
                0 0 50px rgba(99, 102, 241, 0.3);
}

.vision-card:hover::before {
    transform: scaleX(1);
}

.vision-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.vision-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Meteors Animation */
.meteors-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.meteor {
    position: absolute;
    top: -10%;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, transparent);
    border-radius: 50%;
    box-shadow:
        0 0 10px 2px rgba(99, 102, 241, 0.8),
        0 0 20px 4px rgba(99, 102, 241, 0.5),
        0 0 30px 6px rgba(99, 102, 241, 0.3);
    animation: meteor-fall linear infinite;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0) 0%,
        rgba(99, 102, 241, 0.4) 30%,
        rgba(99, 102, 241, 0.9) 60%,
        rgba(168, 85, 247, 1) 100%
    );
    box-shadow:
        0 0 10px rgba(99, 102, 241, 0.9),
        0 0 20px rgba(168, 85, 247, 0.6);
    border-radius: 50%;
}

.meteor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0) 0%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(168, 85, 247, 0) 100%
    );
    filter: blur(5px);
    opacity: 0.8;
}

@keyframes meteor-fall {
    0% {
        transform: translateY(0) translateX(0) rotate(-45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-100vh) rotate(-45deg);
        opacity: 0;
    }
}

/* Individual meteor variations */
.meteor:nth-child(1) {
    left: 10%;
    animation-duration: 3s;
    animation-delay: 0s;
    width: 3px;
    height: 3px;
}

.meteor:nth-child(2) {
    left: 25%;
    animation-duration: 2.5s;
    animation-delay: 0.5s;
    width: 2px;
    height: 2px;
}

.meteor:nth-child(3) {
    left: 40%;
    animation-duration: 3.5s;
    animation-delay: 1s;
    width: 2.5px;
    height: 2.5px;
}

.meteor:nth-child(4) {
    left: 55%;
    animation-duration: 2.8s;
    animation-delay: 0.3s;
    width: 3px;
    height: 3px;
}

.meteor:nth-child(5) {
    left: 70%;
    animation-duration: 3.2s;
    animation-delay: 1.5s;
    width: 2px;
    height: 2px;
}

.meteor:nth-child(6) {
    left: 85%;
    animation-duration: 2.6s;
    animation-delay: 0.8s;
    width: 2.5px;
    height: 2.5px;
}

.meteor:nth-child(7) {
    left: 15%;
    animation-duration: 3.8s;
    animation-delay: 2s;
    width: 2px;
    height: 2px;
}

.meteor:nth-child(8) {
    left: 30%;
    animation-duration: 2.4s;
    animation-delay: 1.2s;
    width: 3px;
    height: 3px;
}

.meteor:nth-child(9) {
    left: 45%;
    animation-duration: 3.1s;
    animation-delay: 0.6s;
    width: 2.5px;
    height: 2.5px;
}

.meteor:nth-child(10) {
    left: 60%;
    animation-duration: 2.9s;
    animation-delay: 1.8s;
    width: 2px;
    height: 2px;
}

.meteor:nth-child(11) {
    left: 75%;
    animation-duration: 3.3s;
    animation-delay: 0.4s;
    width: 3px;
    height: 3px;
}

.meteor:nth-child(12) {
    left: 90%;
    animation-duration: 2.7s;
    animation-delay: 1.3s;
    width: 2.5px;
    height: 2.5px;
}

.meteor:nth-child(13) {
    left: 20%;
    animation-duration: 3.6s;
    animation-delay: 0.9s;
    width: 2px;
    height: 2px;
}

.meteor:nth-child(14) {
    left: 50%;
    animation-duration: 2.5s;
    animation-delay: 1.6s;
    width: 3px;
    height: 3px;
}

.meteor:nth-child(15) {
    left: 80%;
    animation-duration: 3.4s;
    animation-delay: 0.7s;
    width: 2.5px;
    height: 2.5px;
}

/* Contact Title Animation */
.contact-title {
    position: relative;
    z-index: 1;
}

.title-word {
    display: inline-block;
    margin: 0 0.3rem;
    animation: fadeInWord 0.8s ease-out backwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.3s; }
.title-word:nth-child(4) { animation-delay: 0.4s; }
.title-word:nth-child(5) { animation-delay: 0.5s; }

.title-word.highlighted {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: fadeInWord 0.8s ease-out 0.5s backwards, glowPulse 2s ease-in-out 1s infinite;
}

.title-word.highlighted::after {
    content: 'Juntos';
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes fadeInWord {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: blur(15px);
        opacity: 0.6;
    }
    50% {
        filter: blur(20px);
        opacity: 0.9;
    }
}

/* Sparkles Effect */
.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(99, 102, 241, 0.6),
        0 0 15px rgba(168, 85, 247, 0.4);
    animation: sparkle-twinkle 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.method-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.method-content a,
.method-content p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.method-content a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1),
                0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

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

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

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .vision-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .vision-visual {
        grid-template-columns: 1fr;
    }

    .vision-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(99, 102, 241, 0.2);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Hero animations */
.hero-title {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar slide in */
.navbar {
    animation: slideInFromTop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reveal Text Animation */
.reveal-text {
    display: inline-block;
    overflow: hidden;
}

.reveal-text::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    transform: translateX(-100%);
}

/* Typing Effect */
.typing-effect {
    position: relative;
    display: inline-block;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Text Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 0.3s infinite;
    color: rgba(99, 102, 241, 0.8);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite;
    color: rgba(168, 85, 247, 0.8);
    z-index: -2;
}

@keyframes glitch-1 {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, -2px);
    }
    40% {
        transform: translate(2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Floating Animation for Vision Cards */
.vision-card {
    animation: float-card 6s ease-in-out infinite;
}

.vision-card:nth-child(1) {
    animation-delay: 0s;
}

.vision-card:nth-child(2) {
    animation-delay: 1.5s;
}

.vision-card:nth-child(3) {
    animation-delay: 3s;
}

.vision-card:nth-child(4) {
    animation-delay: 4.5s;
}

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

/* FORÇA O BACKGROUND NOS IPHONES AUTOMÁTICOS */
.iphone-carousel .app-screenshot {
    background: none !important;
}

.iphone-carousel .app-screenshot::before,
.iphone-carousel .app-screenshot::after {
    display: none !important;
}

.iphone-carousel .status-bar,
.iphone-carousel .app-content {
    display: none !important;
}

/* CARROSSEL IPHONES - SISTEMA NOVO LIMPO */
.iphone-device {
    width: 280px;
    height: 590px;
    background: linear-gradient(145deg, rgba(42, 42, 52, 0.95), rgba(26, 26, 36, 0.95));
    border-radius: 48px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.iphone-screen-container {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    z-index: 20;
    display: none;
}

/* EFEITO DE EXPANSÃO NO HOVER */
.app-stack:hover {
    width: auto !important;
}

.app-stack:hover .iphone-wrapper.iphone-2 {
    left: 70px !important;
}

.app-stack:hover .iphone-wrapper.iphone-3 {
    left: 140px !important;
}

.app-stack:hover .iphone-wrapper.iphone-4 {
    left: 210px !important;
}

.app-stack:hover .iphone-wrapper.iphone-5 {
    left: 280px !important;
}

.app-stack:hover .iphone-wrapper.iphone-6 {
    left: 350px !important;
}

.app-stack:hover .iphone-wrapper.iphone-7 {
    left: 420px !important;
}

.app-stack:hover .iphone-wrapper.iphone-8 {
    left: 490px !important;
}

/* SUBSTITUIR EFEITO HOVER - DIREÇÕES ALTERNADAS */
.app-stack {
    perspective: 2000px;
}

.app-stack:hover .iphone-wrapper.iphone-1 {
    transform: translateX(0) rotateY(0deg) !important;
}

.app-stack:hover .iphone-wrapper.iphone-2 {
    left: 90px !important;
    transform: translateX(0) rotateY(-15deg) !important;
}

.app-stack:hover .iphone-wrapper.iphone-3 {
    left: -90px !important;
    transform: translateX(0) rotateY(15deg) !important;
}

.app-stack:hover .iphone-wrapper.iphone-4 {
    left: 180px !important;
    transform: translateX(0) rotateY(-20deg) !important;
}

.app-stack:hover .iphone-wrapper.iphone-5 {
    left: -180px !important;
    transform: translateX(0) rotateY(20deg) !important;
}

.app-stack:hover .iphone-wrapper.iphone-6 {
    left: 270px !important;
    transform: translateX(0) rotateY(-25deg) !important;
}

.app-stack:hover .iphone-wrapper.iphone-7 {
    left: -270px !important;
    transform: translateX(0) rotateY(25deg) !important;
}

.app-stack:hover .iphone-wrapper.iphone-8 {
    left: 360px !important;
    transform: translateX(0) rotateY(-30deg) !important;
}

/* TRANSIÇÃO SUAVE PARA APP-STACK */
.app-stack {
    transition: width 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Pausa a animação quando hover em qualquer app-stack */
.iphone-carousel:has(.app-stack:hover) {
    animation-play-state: paused !important;
}

/* FIX - REMOVE TRANSIÇÃO DO WIDTH E AJUSTA OVERFLOW */
.app-stack {
    transition: none !important;
    overflow: visible !important;
    width: 280px !important;
}

/* Remove a transição bugada anterior */
.app-stack:hover {
    width: 280px !important;
}

/* EMPURRA OS APP-STACKS VIZINHOS QUANDO HOVER */
.app-stack:hover ~ .app-stack {
    transform: translateX(300px);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.app-stack {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* EMPURRA AMBOS OS LADOS - MELHORADO */
.iphone-carousel {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Quando hover em um app-stack, empurra todos à direita */
.app-stack:hover ~ .app-stack {
    transform: translateX(350px) !important;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Quando hover, move o carrossel inteiro para a esquerda para centralizar */
.iphone-carousel:has(.app-stack:hover) {
    transform: translateX(-175px);
}

.app-stack {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* LIMPAR E REFAZER - EMPURRA SUAVE DOS 2 LADOS */
.app-stack {
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: visible !important;
    width: 280px !important;
}

/* Remove duplicações anteriores */
.app-stack:hover {
    width: 280px !important;
}

/* Empurra à direita com mais suavidade */
.app-stack:hover ~ .app-stack {
    transform: translateX(400px) !important;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Move carrossel para esquerda para centralizar e criar espaço à esquerda */
.iphone-carousel:has(.app-stack:hover) {
    transform: translateX(-200px) !important;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* OTIMIZAÇÃO - TRANSIÇÕES RÁPIDAS E SUAVES */
.app-stack {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.iphone-wrapper {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* FIX Z-INDEX - iPhone 1 sempre na frente */
.iphone-wrapper.iphone-1 {
    z-index: 100 !important;
}

.iphone-wrapper.iphone-2 {
    z-index: 90 !important;
}

.iphone-wrapper.iphone-3 {
    z-index: 80 !important;
}

.iphone-wrapper.iphone-4 {
    z-index: 70 !important;
}

.iphone-wrapper.iphone-5 {
    z-index: 60 !important;
}

.iphone-wrapper.iphone-6 {
    z-index: 50 !important;
}

.iphone-wrapper.iphone-7 {
    z-index: 40 !important;
}

.iphone-wrapper.iphone-8 {
    z-index: 30 !important;
}
