@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #FF9500; /* Orange/Gold from logo */
    --gold: #D4AF37;
    --secondary: #A1A1A6;
    --bg: #000000;
    --card-bg: #0A0A0A;
    --text: #FFFFFF;
    --border: #1C1C1E;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, .serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

header {
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
    margin-right: 5px;
}

.nav-links a {
    margin-left: 2.5rem;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
}

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

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Intro Section */
.intro-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('../img/intro_bg.png') center center / cover no-repeat;
    filter: blur(4px);
    opacity: 0.5;
    z-index: 0;
    animation: bgReveal 2s ease-out forwards;
}

.intro-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, var(--bg) 90%);
    z-index: 1;
}

@keyframes bgReveal {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 0.5; transform: scale(1); }
}

.intro-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.intro-line,
.intro-line-bottom {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto 3rem;
}

.intro-line-bottom {
    margin: 3rem auto 0;
}

.intro-line.visible,
.intro-line-bottom.visible {
    animation: lineExpand 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: var(--delay);
}

.intro-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.2rem;
    font-weight: 200;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 3.5rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(40px);
}

.intro-title.visible {
    animation: fadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: var(--delay);
}

.intro-highlight {
    color: var(--primary);
    font-weight: 500;
}

.intro-subtitle-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.intro-subtitle {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
}

.intro-subtitle.visible {
    animation: fadeUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: var(--delay);
}

/* Intro Phase 1 */
.intro-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Desires Section */
.desires-section {
    min-height: 50vh;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #050505;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Intro Phase 2 (Desires Carousel) */
.intro-phase2 {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpPhase2 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

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

.intro-phase2 h2 {
    font-size: 2.8rem;
    font-weight: 200;
    letter-spacing: 6px;
    margin-bottom: 4rem;
    color: var(--text);
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

/* Horizontal Carousel */
.desires-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

/* Fading edges for infinite scroll effect */
.desires-carousel-container::before,
.desires-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.desires-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.desires-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.desires-carousel-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scrollDesires 25s linear infinite;
}

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

.desire-item {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.desire-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.05); /* subtle gold */
}

.desire-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 2rem;
    filter: saturate(0.8) contrast(1.1);
    transition: filter 0.4s ease;
}

.desire-item:hover img {
    filter: saturate(1.1) contrast(1.1);
}

.desire-item span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.desire-item:hover span {
    color: var(--primary);
}

@keyframes scrollDesires {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1250px - 15rem)); } /* 5 items (5 * 250px) + 5 gaps (5 * 3rem) */
}

.intro-scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    z-index: 2;
}

.intro-scroll-hint.visible {
    animation: fadeUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: var(--delay);
}

.intro-scroll-hint span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: float 2s ease-in-out infinite;
}

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

@keyframes lineExpand {
    to {
        width: 120px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(10px); opacity: 1; }
}

@keyframes lineExpandMobile {
    to {
        width: 80px;
    }
}

.hero {
    height: 90vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-text {
    padding: 0 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide h1 {
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 600px;
}

.slide p {
    color: var(--secondary);
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.carousel-indicators {
    position: absolute;
    bottom: 3rem;
    left: 8rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.indicator {
    width: 30px;
    height: 2px;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    width: 60px;
}

.hero-btn {
    padding: 1.2rem 3rem;
    background: var(--text);
    color: var(--bg);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

/* Products Section */
.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    padding-bottom: 6rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 1/1.2;
    overflow: hidden;
    background: #000;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.consorcio-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    color: var(--secondary);
}

/* Product Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    padding: 4rem 0;
}

.gallery-main {
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.gallery-main img {
    width: 100%;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-thumbs img {
    width: 100px;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border);
    opacity: 0.5;
}

.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

.product-config h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.product-config .price {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
}

.product-config .description {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.payment-btn {
    display: block;
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    text-align: left;
    position: relative;
    cursor: pointer;
}

.payment-btn:hover {
    background: var(--glass);
    border-color: var(--secondary);
}

.payment-btn.primary {
    background: var(--text);
    color: var(--bg);
    text-align: center;
    font-weight: 700;
    border: none;
}

.payment-btn.primary:hover {
    background: var(--primary);
    color: var(--text);
}

/* Installment Picker */
.installment-selection {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.installment-selection h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.installment-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.installment-node {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.installment-node.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 149, 0, 0.1);
}

.installment-node.release {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    position: relative;
    font-weight: 700;
}

.installment-node.release::after {
    content: 'LIBERAÇÃO';
    position: absolute;
    bottom: -20px;
    font-size: 0.5rem;
    color: var(--primary);
    white-space: nowrap;
    font-weight: 600;
}

/* Consorcio Explanation */
.consorcio-explanation {
    margin-top: 8rem;
    padding: 8rem 0;
    background: #050505;
    border-top: 1px solid var(--border);
}

.consorcio-explanation h2 {
    font-size: 3.5rem;
    margin-bottom: 5rem;
    text-align: center;
    font-weight: 400;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: left;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #fff;
    font-weight: 500;
}

.feature-item p {
    color: var(--secondary);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
}

/* Responsiveness */
@media (max-width: 1024px) {
    header, main {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .intro-title {
        font-size: 2.4rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    main {
        padding: 0 1rem;
    }
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    .slide {
        grid-template-columns: 1fr;
    }
    .slide-text {
        padding: 2rem 1.5rem;
        z-index: 10;
        background: rgba(0,0,0,0.5);
    }
    .slide-image {
        position: absolute;
        z-index: -1;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .nav-links {
        display: none;
    }
    .carousel-indicators {
        left: 2rem;
    }
    .intro-section {
        min-height: 90vh;
        padding: 3rem 1.5rem;
    }
    .intro-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
        margin-bottom: 2.5rem;
    }
    .intro-subtitle {
        font-size: 0.9rem;
    }
    .intro-line.visible,
    .intro-line-bottom.visible {
        animation-name: lineExpandMobile;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }

    .consorcio-explanation h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .consorcio-explanation {
        padding: 4rem 0;
        margin-top: 4rem;
    }

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

footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* LGPD Banner */
.lgpd-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-radius: 4px;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.lgpd-banner.show {
    transform: translateY(0);
}

.lgpd-content p {
    font-size: 0.85rem;
    color: var(--secondary);
    line-height: 1.5;
}

.lgpd-content a {
    color: var(--primary);
    text-decoration: underline;
}

.lgpd-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    margin-left: 2rem;
    white-space: nowrap;
}

.lgpd-btn:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .lgpd-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    .lgpd-btn {
        margin-left: 0;
        margin-top: 1.5rem;
        width: 100%;
    }
}
