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

:root {
    /* Colors */
    --bg-dark: #fffdf4;
    --bg-card: #fff8d8;
    --accent-yellow: #f4c430;
    --accent-yellow-glow: rgba(244, 196, 48, 0.28);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
.nav-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 252, 239, 0.96);
    border-bottom: 1px solid rgba(244, 196, 48, 0.18);
    backdrop-filter: blur(14px);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo img {
    height: 45px; /* Altura ideal baseada visualmente */
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--accent-yellow);
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url("../img/trilista pagina.png") center center / cover no-repeat;
}

#hero-bg-canvas, 
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hero-bg-canvas {
    z-index: -2;
}

.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.16) 0%, rgba(17, 24, 39, 0.08) 18%, rgba(17, 24, 39, 0.03) 32%, rgba(17, 24, 39, 0) 46%);
}

/* Background Glows */
.hero-glow {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-yellow-glow) 0%, transparent 70%);
    z-index: 1;
    filter: blur(80px);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: block;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

/* Left Column */
.hero-content {
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(17, 24, 39, 0.22);
    color: #fff7cf;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 240, 186, 0.28);
    text-shadow: 0 1px 2px rgba(17, 24, 39, 0.22);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #111827;
}

.hero-title span {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.hero-description {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-features {
    list-style: none;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-yellow);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b4300;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 10px 20px -5px rgba(225, 173, 1, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(225, 173, 1, 0.4);
}

/* Right Column - Animation Placeholder */
.hero-visual {
    display: none !important;
}

.hero-image-frame {
    display: none !important;
}

.hero-cover-image {
    display: none !important;
}

/* Abstract Animation Elements */
/* Elementos de animação legados removidos */

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.placeholder-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* Keyframes */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -20px) scale(1.05); }
}

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

/* --- Responsiveness --- */
@media (min-width: 1101px) {
    .hero {
        min-height: 80vh;
        display: block;
        background: url("../img/trilista pagina.png") center center / cover no-repeat;
    }

    .hero-overlay {
        z-index: 1;
    }

    .hero::before {
        content: none;
    }

    .hero-container {
        min-height: 80vh;
        display: grid;
        grid-template-columns: 1.08fr 0.92fr;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: 2rem;
        padding-right: 2rem;
        position: relative;
        z-index: 2;
    }

    .hero-content {
        width: min(100%, 32rem);
        max-width: 32rem;
        min-width: 0;
        position: relative;
        z-index: 2;
    }

    .hero-title {
        font-size: clamp(2.1rem, 3.8vw, 3.2rem);
        line-height: 1.02;
        max-width: 30rem;
        margin-bottom: 1.1rem;
    }

    .hero-description {
        max-width: 28rem;
        margin: 0 0 1.7rem;
        font-size: clamp(0.98rem, 1.15vw, 1.08rem);
        line-height: 1.6;
    }

    .hero-features {
        display: block;
        text-align: left;
        margin-bottom: 0;
    }

    .feature-item {
        font-size: clamp(0.92rem, 1vw, 1rem);
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 1100px) {
    .hero {
        min-height: auto;
        display: block;
        background: #fff8df;
        overflow: visible;
    }

    .hero::after {
        content: "";
        display: block;
        height: clamp(280px, 42vw, 420px);
        margin: 0 1.5rem 1.75rem;
        border-radius: 28px;
        background: url("../img/trilista pagina.png") 68% center / cover no-repeat;
        box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
    }

    .hero-overlay,
    #hero-bg-canvas {
        display: none !important;
    }

    .hero-container {
        display: block;
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .hero-content {
        width: min(100%, 42rem);
        max-width: 42rem;
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 2.9rem);
        line-height: 1.02;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-description {
        max-width: 32rem;
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.6rem;
    }

    .feature-item {
        font-size: 0.98rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .hero-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    body:has(.landing-wrapper) {
        padding: 0;
    }

    :root {
        --hero-mobile-top-trim: 28px;
        --hero-mobile-bottom-extend: 190px;
    }

    :root {
        --header-height: 46px;
    }

    .nav-header {
        height: auto;
        min-height: var(--header-height);
        padding: 0;
        background: rgba(255, 252, 239, 0.96);
        border-bottom: 1px solid rgba(244, 196, 48, 0.18);
    }

    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding-top: 0.16rem;
        padding-bottom: 0.12rem;
    }

    .logo {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
    }

    .logo img {
        height: 24px;
        width: auto;
        max-width: none;
        object-fit: contain;
        flex-shrink: 0;
    }

    .nav-links {
        width: auto;
        justify-content: flex-end;
        gap: 0.6rem;
        white-space: nowrap;
        padding-bottom: 0.08rem;
        flex-wrap: nowrap;
    }

    .nav-links a {
        font-size: 0.72rem;
        line-height: 1;
    }

    .hero {
        min-height: 420px;
        height: auto;
        display: flex;
        align-items: center;
        padding-bottom: 0;
        overflow: hidden;
        background: url("../img/trilista pagina mobile.png") center center / cover no-repeat;
    }

    .hero::after {
        content: none;
    }

    .hero-container {
        display: grid;
        grid-template-columns: 42% 58%;
        align-items: center;
        min-height: 420px;
        padding: 1rem 0.9rem 1rem 0.8rem;
        min-width: 0;
    }

    .hero-content {
        width: 100%;
        max-width: 11.5rem;
        text-align: left;
        position: relative;
        z-index: 2;
        margin-top: 0;
        margin-bottom: 0;
        align-self: center;
        padding: 0;
        min-width: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-tag {
        font-size: 0.56rem;
        padding: 0.24rem 0.5rem;
        margin-bottom: 0.4rem;
        letter-spacing: 0.05em;
        border-radius: 999px;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5.2vw, 2.25rem);
        line-height: 1.08;
        margin-bottom: 0.42rem;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    .hero-description {
        font-size: clamp(0.75rem, 2.8vw, 0.92rem);
        line-height: 1.35;
        margin-bottom: 0.52rem;
        max-width: 95%;
        overflow-wrap: anywhere;
        color: rgba(255, 250, 235, 0.94);
        text-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
    }

    .hero-features {
        width: 100%;
        margin-bottom: 0;
        max-width: 100%;
    }

    .feature-item {
        font-size: 0.64rem;
        gap: 0.42rem;
        margin-bottom: 0.32rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
        color: rgba(255, 250, 235, 0.96);
        text-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    }

    .feature-icon {
        width: 14px;
        height: 14px;
        font-size: 0.42rem;
        border-radius: 3px;
    }
    
    .placeholder-box {
        width: 0;
        max-width: none;
        aspect-ratio: auto;
        margin: 0;
    }

    .info-section {
        padding-top: 20px !important;
    }

    .hero-overlay {
        display: block !important;
        z-index: 1;
        background:
            linear-gradient(180deg, rgba(255, 248, 223, 0.02) 0%, rgba(255, 248, 223, 0.04) 20%, rgba(17, 24, 39, 0.12) 62%, rgba(17, 24, 39, 0.34) 100%),
            linear-gradient(90deg, rgba(17, 24, 39, 0.52) 0%, rgba(17, 24, 39, 0.26) 24%, rgba(17, 24, 39, 0.06) 40%, rgba(17, 24, 39, 0) 56%);
    }
}

@media (max-width: 640px) {
    .nav-container {
        align-items: center;
        gap: 0.35rem;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .logo img {
        height: 22px;
        width: auto;
        max-width: none;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-end;
        overflow-x: auto;
        padding-bottom: 0.18rem;
        margin-left: auto;
    }

    .hero {
        min-height: 390px;
        background-position: center center;
    }

    .hero-container {
        grid-template-columns: 41% 59%;
        min-height: 390px;
        padding: 0.85rem 0.72rem 0.85rem 0.7rem;
    }

    .hero-content {
        max-width: 9.5rem;
    }

    .hero-title {
        font-size: clamp(1.32rem, 5vw, 1.6rem);
    }

    .hero-description {
        font-size: 0.72rem;
    }

    .feature-item {
        font-size: 0.58rem;
        margin-bottom: 0.26rem;
    }
}
