/* ════════════════════════════════════════════════════════════
   LANDING PAGE — "O Portal H"
   HUMANO.LIVE — CSS Cinematografico Premium
   ════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg-absolute: #050505;
    --bg-section: #0a0a0f;
    --bg-card: #111118;
    --gold-champagne: #F2E0BD;
    --gold-bright: #D4A853;
    --gold-dark: #8B7235;
    --text-primary: #F8F8F8;
    --text-secondary: #A0A0A8;
    --text-muted: #5A5A64;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-absolute);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-absolute); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ════════════════════ NAVBAR ════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.5rem 2rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(242, 224, 189, 0.06);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(24px);
    border-bottom-color: rgba(242, 224, 189, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-brand .brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-champagne);
    letter-spacing: 0.05em;
    margin: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
    margin: 0 0.75rem;
    font-family: 'Inter', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-champagne);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--gold-champagne); }
.nav-link:hover::after { width: 100%; }

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.6rem;
    background: transparent;
    border: 1px solid var(--gold-champagne);
    color: var(--gold-champagne);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.btn-login:hover {
    background: var(--gold-champagne);
    color: var(--bg-absolute);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(242, 224, 189, 0.2);
}

.btn-cadastro {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: 1px solid rgba(242, 224, 189, 0.3);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.btn-cadastro:hover {
    border-color: var(--gold-champagne);
    color: var(--gold-champagne);
    transform: translateY(-1px);
}

/* ── User Menu / Avatar / Dropdown ── */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(242, 224, 189, 0.15);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    overflow: hidden;
}

.user-avatar:hover { border-color: var(--gold-champagne); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { font-weight: 700; color: var(--gold-champagne); font-size: 0.9rem; }

.user-menu { position: relative; }

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid rgba(242, 224, 189, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-dropdown.active { display: block; }

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(242, 224, 189, 0.06);
}

.dropdown-name {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.dropdown-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.dropdown-item:hover {
    background: rgba(242, 224, 189, 0.05);
    color: var(--gold-champagne);
}

.dropdown-logout {
    color: #f43f5e !important;
    border-top: 1px solid rgba(242, 224, 189, 0.06);
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: var(--bg-card);
    border: 1px solid rgba(242, 224, 189, 0.12);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-box h3 { color: var(--text-primary); font-size: 1.3rem; margin: 0 0 0.75rem 0; }
.modal-box p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; margin: 0 0 1.5rem 0; }
.modal-actions { display: flex; gap: 1rem; justify-content: center; }

.modal-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.modal-btn-primary {
    background: var(--gold-bright);
    color: var(--bg-absolute);
}
.modal-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
    transform: translateY(-2px);
}
.modal-btn-secondary {
    background: transparent;
    border: 1px solid rgba(242, 224, 189, 0.25);
    color: var(--text-secondary);
}
.modal-btn-secondary:hover {
    border-color: var(--gold-champagne);
    color: var(--gold-champagne);
}

/* ════════════════════ H BACKGROUND (Parallax) ════════════════════ */
.h-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vh;
    height: 80vh;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    background: url('/assets/h-portal.svg') no-repeat center center;
    background-size: contain;
}

/* ════════════════════ SECTION 1: HERO ════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.7) 0%,
        rgba(5, 5, 5, 0.4) 50%,
        rgba(5, 5, 5, 0.9) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 900px;
}

/* H SVG in Hero */
.hero-h-svg {
    width: 240px;
    height: auto;
    animation: hGlow 4s ease-in-out infinite;
    will-change: filter;
}

@keyframes hGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(242, 224, 189, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(242, 224, 189, 0.6))
               drop-shadow(0 0 80px rgba(212, 168, 83, 0.2));
    }
}

.hero-headline {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--gold-champagne);
    margin: 0;
    letter-spacing: 0.08em;
    line-height: 1;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.02em;
}

.hero-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

.cta-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    border: 1px solid var(--gold-champagne);
    background: transparent;
    color: var(--gold-champagne);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.cta-hero:hover {
    background: var(--gold-champagne);
    color: var(--bg-absolute);
    box-shadow: 0 0 40px rgba(242, 224, 189, 0.25);
    transform: translateY(-2px);
}

/* ════════════════════ SECTION 2: MANIFESTO ════════════════════ */
#manifesto {
    position: relative;
    background: var(--bg-section);
    padding: 120px 2rem;
    z-index: 1;
    overflow: hidden;
}

.manifesto-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.manifesto-quote {
    position: absolute;
    top: -40px;
    left: -20px;
    font-family: 'Cinzel', serif;
    font-size: 8rem;
    color: var(--gold-champagne);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.manifesto-text {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 2;
    color: var(--text-primary);
    margin: 0 0 2.5rem 0;
}

.manifesto-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-champagne), transparent);
    margin: 0 auto 1.5rem;
}

.manifesto-author {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--gold-dark);
    text-transform: uppercase;
}

/* ════════════════════ SECTION 3: PILARES ════════════════════ */
#pilares {
    position: relative;
    background: var(--bg-absolute);
    padding: 120px 2rem;
    z-index: 1;
}

.pilares-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pilares-deco {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 4rem;
    color: var(--text-primary);
    opacity: 0.06;
    margin: 0 0 1rem 0;
    letter-spacing: 0.2em;
    user-select: none;
}

.pilares-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--gold-champagne);
    margin: 0 0 0.75rem 0;
}

.pilares-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    margin: 0;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pilar-card {
    background: rgba(17, 17, 24, 0.6);
    border: 1px solid rgba(242, 224, 189, 0.08);
    backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 8px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.pilar-card:hover {
    border-color: rgba(242, 224, 189, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pilar-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--gold-champagne);
}

.pilar-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--gold-champagne);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pilar-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.pilar-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.pilar-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ════════════════════ SECTION 4: ENCERRAMENTO ════════════════════ */
#encerramento {
    position: relative;
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-absolute) 100%);
    padding: 120px 2rem 80px;
    z-index: 1;
}

.encerramento-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Video Placeholder */
.video-player {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid rgba(242, 224, 189, 0.12);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.video-player:hover {
    border-color: rgba(242, 224, 189, 0.25);
}

.video-player-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.video-h-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.04;
    pointer-events: none;
}

.video-h-bg svg {
    width: 50%;
    height: auto;
}

.video-play-btn {
    width: 72px;
    height: 72px;
    border: 2px solid var(--gold-champagne);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.video-player:hover .video-play-btn {
    box-shadow: 0 0 30px rgba(242, 224, 189, 0.3);
    transform: scale(1.05);
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--gold-champagne);
    margin-left: 4px;
}

.video-label {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--gold-champagne);
    position: relative;
    z-index: 2;
}

.encerramento-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--gold-champagne);
    margin: 0 0 0.5rem 0;
}

.encerramento-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 0 2.5rem 0;
}

/* CTA Final */
.cta-final {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    background: var(--gold-bright);
    border: none;
    color: var(--bg-absolute);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta-final:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

/* Shimmer effect */
.cta-final::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ════════════════════ FOOTER ════════════════════ */
.landing-footer {
    background: var(--bg-absolute);
    border-top: 1px solid rgba(242, 224, 189, 0.06);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-champagne);
}

/* ════════════════════ GSAP INITIAL STATES ════════════════════ */
.gsap-hidden {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.gsap-scale-hidden {
    opacity: 0;
    transform: scale(0.8);
    will-change: transform, opacity;
}

/* ════════════════════ RESPONSIVE ════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-h-svg { width: 180px; }
    .hero-headline { font-size: clamp(2.5rem, 5vw, 4rem); }
    .pilares-grid { gap: 1.5rem; }
    .pilar-card { padding: 30px; }
}

/* Tablet small / Large phone */
@media (max-width: 768px) {
    #navbar { padding: 0.5rem 1rem; }
    .nav-brand img { height: 24px; }
    .nav-brand .brand-text { font-size: 1rem; }
    .nav-link { display: none !important; }
    .btn-login { padding: 0.5rem 1rem; font-size: 0.75rem; }
    .btn-cadastro { padding: 0.5rem 1rem; font-size: 0.75rem; }

    .hero-h-svg { width: 140px; }
    .hero-content { gap: 1.2rem; }
    .cta-hero { padding: 0.85rem 2rem; font-size: 0.85rem; }

    #manifesto { padding: 80px 1.5rem; }
    .manifesto-quote { font-size: 5rem; top: -25px; left: -10px; }
    .manifesto-text { font-size: 1.1rem; line-height: 1.8; }

    #pilares { padding: 80px 1.5rem; }
    .pilares-grid { grid-template-columns: 1fr; max-width: 500px; }
    .pilares-deco { font-size: 2.5rem; }

    #encerramento { padding: 80px 1.5rem 60px; }
    .cta-final { width: 100%; justify-content: center; }
}

/* Mobile */
@media (max-width: 480px) {
    #navbar { padding: 0.4rem 0.75rem; }
    .nav-brand img { height: 20px; }
    .nav-brand .brand-text { font-size: 0.9rem; }
    .nav-right { gap: 0.3rem; }
    .btn-login span.material-icons-text { display: none; }

    .hero-h-svg { width: 120px; }
    .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-sub { font-size: 0.95rem; }
    .hero-text { font-size: 0.9rem; }
    .cta-hero { padding: 0.75rem 1.5rem; font-size: 0.8rem; width: 100%; justify-content: center; }

    #manifesto { padding: 60px 1.2rem; }
    .manifesto-quote { font-size: 4rem; }

    #pilares { padding: 60px 1.2rem; }
    .pilar-card { padding: 24px; }

    #encerramento { padding: 60px 1.2rem 50px; }
    .video-play-btn { width: 56px; height: 56px; }
    .video-label { font-size: 0.95rem; }

    .user-dropdown { width: 200px; }
}
