:root {
    --primary-color: #d4a34b;
    /* Gold */
    --primary-hover: #b88a3b;
    --bg-color: #faf9f6;
    /* Off-white */
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-dark: #121212;
    --text-dark-bg: #f5f5f5;
    --text-dark-muted: #aaaaaa;

    --font-family: 'Outfit', sans-serif;
    --max-width: 1200px;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.35;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background-color: #54649e;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.masi-logo {
    height: 40px;
}

.badge-25 {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.badge-25-dark {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #fdfbf7 0%, #f4eee2 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 163, 75, 0.15) 0%, rgba(212, 163, 75, 0) 70%);
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Desktop: texto na col 1 */
.hero-text {
    grid-column: 1;
}

/* Desktop: imagem na col 2 */
.hero-image-wrapper {
    grid-column: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 25px rgba(212, 163, 75, 0.3);
    text-align: center;
    cursor: pointer;
    border: none;
}

.cta-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 163, 75, 0.4);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

.hero-image-wrapper img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    object-fit: cover;
}

/* Floating Card in Hero */
.floating-card {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 163, 75, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.floating-card-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.floating-card-text strong {
    color: var(--text-dark);
    font-size: 1.125rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background-color: var(--bg-dark);
    color: var(--text-dark-bg);
}

.problem-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.problem-header h2 {
    font-size: 2.5rem;
    color: #fff;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-text p {
    font-size: 1.125rem;
    color: var(--text-dark-muted);
    margin-bottom: 1rem;
}

.problem-text p strong {
    color: #fff;
    font-weight: 600;
}

.problem-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.desktop-only-stat {
    display: block;
}

.mobile-only-stat {
    display: none;
}

/* Opportunity Section */
.opportunity-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
}

.opp-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
}

/* Força a caixa de stat a ocupar a coluna da esquerda no DESKTOP */
.opp-stat-box-container {
    grid-column: 1;
}

.opp-text {
    grid-column: 2;
}

.opp-visual {
    position: relative;
}

.opp-stat-box {
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(212, 163, 75, 0.2);
}

.opp-stat-box .number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.opp-stat-box .label {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.opp-stat-box .desc {
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.opp-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.opp-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.opp-feature {
    display: flex;
    gap: 1.5rem;
}

.opp-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(212, 163, 75, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opp-feature-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.opp-feature-text p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Audience Section */
.audience-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
    text-align: center;
}

.audience-header {
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.audience-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audience-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-fast);
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.audience-card:hover::before {
    transform: scaleX(1);
}

.audience-icon {
    width: 64px;
    height: 64px;
    background: rgba(212, 163, 75, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.audience-icon svg {
    width: 32px;
    height: 32px;
}

.audience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.audience-card p {
    color: var(--text-light);
}

/* Footer CTA */
.footer-cta {
    padding: 5rem 0;
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-cta p {
    color: var(--text-dark-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
}

/* =========================================
   MOBILE - Tudo abaixo de 768px
   ========================================= */
@media (max-width: 768px) {

    /* --- Cabeçalho --- */
    header {
        padding: 0.8rem 0;
    }

    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .logo-container {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }

    .masi-logo {
        height: 32px;
    }

    .brand {
        font-size: 0.8rem;
    }

    /* --- Hero --- */
    .hero {
        padding-top: 0;
        min-height: auto;
        padding-bottom: 3rem;
        align-items: flex-start;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-top: 130px;
        gap: 1.5rem;
    }

    /* Ordem Mobile: 1. Texto+Botão 2. Imagem */
    .hero-text {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    /* Botão dentro do hero-text — aparece logo após o parágrafo */
    .hero-cta-wrapper {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        margin-bottom: 0;
    }

    .hero-image-wrapper {
        order: 2;
        width: 100%;
        margin: 0;
    }

    /* Esconder o floating card no mobile */
    .floating-card {
        display: none;
    }

    /* Remover a borda decorativa da imagem no mobile */
    .hero-image-wrapper::before {
        display: none;
    }

    /* --- Seção Problema --- */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problem-header {
        margin-bottom: 2.5rem;
    }

    .problem-header h2 {
        font-size: 1.8rem;
    }

    /* --- Marcas --- */
    .brands-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.5rem 0 2rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
        margin: 0;
    }

    .brands-grid::-webkit-scrollbar {
        display: none;
    }

    .brand-item {
        flex: 0 0 160px;
        min-width: 160px;
        padding: 1.5rem 1rem;
    }

    .brand-item img {
        max-height: 80px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    /* --- Seção +25 / Distribuidora --- */
    .opp-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Coloca o bloco +25 DEPOIS do texto no mobile */
    .opp-stat-box-container {
        order: 2;
        width: 100%;
    }

    .opp-text {
        order: 1;
    }

    .opp-text h2 {
        font-size: 1.8rem;
    }

    /* --- Perfumes --- */
    .perfume-card {
        flex: 0 0 82vw;
        min-width: 0;
    }

    /* --- Audience Cards --- */
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .audience-header h2 {
        font-size: 1.8rem;
    }

    /* --- Footer CTA --- */
    .footer-cta h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   TABLET - Entre 769px e 992px
   ========================================= */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-container {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 1rem;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .brands-grid::-webkit-scrollbar {
        display: none;
    }

    .brand-item {
        flex: 0 0 140px;
        min-width: 140px;
    }
}

/* =========================================
   UTILITIES - Animações
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   PERFUMES SECTION
   ========================================= */
.perfumes-section {
    padding: 5rem 0;
    background-color: var(--bg-dark);
    color: var(--text-dark-bg);
    text-align: center;
}

.perfumes-header {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.perfumes-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.perfumes-scroller {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 2rem 3rem 2rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.perfumes-scroller::-webkit-scrollbar {
    height: 8px;
}

.perfumes-scroller::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.perfumes-scroller::-webkit-scrollbar-thumb {
    background: rgba(84, 100, 158, 0.4);
    border-radius: 10px;
}

.perfumes-scroller::-webkit-scrollbar-thumb:hover {
    background: rgba(84, 100, 158, 0.8);
}

.perfume-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 280px;
    aspect-ratio: 4 / 5;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    position: relative;
}

.perfume-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =========================================
   BRANDS SECTION (Desktop - só aplica em telas largas)
   ========================================= */
.brands-section {
    padding: 5rem 0;
    background-color: #fff;
    text-align: center;
}

.brands-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

/* Base grid para Marcas (aplicado no mobile também, sobrescrito no desktop) */
.brands-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.5rem 0 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    margin: 0;
}

.brands-grid::-webkit-scrollbar {
    display: none;
}

.brand-item {
    flex: 0 0 160px;
    min-width: 160px;
    padding: 1.5rem 1rem;
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
}

.brand-item img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 163, 75, 0.3);
}

.brand-item h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.brand-item span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Layout do grid só no desktop */
@media (min-width: 769px) {
    .brands-grid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .brand-item {
        padding: 2.5rem 2rem;
        min-width: 200px;
    }
}