@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    /* Color Palette - Light Mode */
    --bg-primary: #F5F5F0;
    --bg-secondary: #FFFFFF;
    --bg-surface: #EAEAE4;
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    
    --emerald-primary: #50C878;
    --emerald-hover: #3EB465;
    --emerald-glow: rgba(80, 200, 120, 0.4);
    
    --border-color: #E2E8F0;
    --border-active: var(--emerald-primary);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing & Layout */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-8: 6rem;
    --space-10: 8rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px var(--emerald-glow);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.section {
    padding: var(--space-5) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-6) 0;
    }
}

/* Dark Mode Sections */
.section-dark {
    background: #0D1A14;
    color: #F0F0EA;
    --border-color: rgba(255, 255, 255, 0.15);
    --text-primary: #F0F0EA;
    --text-secondary: #A0AEC0;
    --bg-secondary: #16291F; /* Darker green for cards */
    --bg-surface: #0A140F;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 {
    color: #F0F0EA;
}

.section-dark .text-secondary {
    color: #A0AEC0 !important;
}

.text-emerald {
    color: var(--emerald-primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--emerald-primary);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
    background-color: var(--emerald-hover);
}

/* --- Bloco 1: Hero --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--space-10);
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--space-3);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-5);
}

/* --- Bloco 2: Sua Realidade --- */
.reality-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.reality-card {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.reality-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.reality-card.active {
    border-color: var(--emerald-primary);
    box-shadow: var(--shadow-glow);
}

.checkbox-icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: transparent;
}

.reality-card.active .checkbox-icon {
    border-color: var(--emerald-primary);
    background-color: var(--emerald-primary);
    color: #fff;
}

.reality-msg {
    margin-top: var(--space-4);
    text-align: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    color: var(--emerald-primary);
    font-weight: 600;
}
.reality-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Bloco 3: Antes vs Depois Slider --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 300px;
    margin: var(--space-5) auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .slider-container {
        height: 400px;
    }
}

.slider-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: var(--space-3);
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .slider-panel {
        padding: var(--space-5);
    }
}

.slider-panel.before {
    background: var(--bg-surface);
    color: var(--text-secondary);
}

.slider-panel.after {
    clip-path: inset(0 0 0 50%);
    background: var(--emerald-primary);
    color: #000;
    position: relative;
}

.slider-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.slider-content {
    width: 100%;
    max-width: 200px;
}

@media (min-width: 768px) {
    .slider-content {
        max-width: 400px;
    }
}
.slider-panel.before .slider-content {
    margin-right: auto;
}
.slider-panel.after .slider-content {
    margin-left: auto;
    text-align: right;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--emerald-primary);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}
.slider-panel.after .slider-handle {
    background: #000;
}

.slider-handle::after {
    content: '< >';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--emerald-primary);
    box-shadow: var(--shadow-md);
    font-family: var(--font-body);
}

.comparison-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .comparison-list li {
        font-size: 1.1rem;
    }
}
.slider-panel.after .comparison-list li {
    justify-content: flex-end;
}

/* --- Bloco 4: O Que É --- */
.what-is-list {
    max-width: 800px;
    margin: 0 auto;
}

.what-is-item {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-family: var(--font-heading);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    text-align: left;
}

.what-is-item .underline-fx {
    position: relative;
    display: inline-block;
}

.what-is-item .underline-fx::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--emerald-primary);
    transition: width 1s ease 0.3s;
}

.what-is-item.visible .underline-fx::after {
    width: 100%;
}

/* --- Bloco 5: Diferencial Split Screen --- */
.split-screen {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-5);
}
@media (min-width: 768px) {
    .split-screen {
        grid-template-columns: 1fr 1fr;
    }
}

.split-col {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.split-col.pinhubs {
    background: var(--bg-surface);
    border: 1px solid var(--emerald-primary);
}

.split-item {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.split-item:last-child {
    border-bottom: none;
}

.split-col.pinhubs .split-item {
    cursor: default;
}
.split-col.pinhubs .split-item:hover {
    color: var(--emerald-primary);
    transform: translateX(10px);
}
.split-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}
.split-col.pinhubs .split-item:hover .split-item-desc {
    max-height: 100px;
    margin-top: 8px;
}

/* --- Bloco 6: Timeline --- */
.timeline {
    max-width: 600px;
    margin: var(--space-5) auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 24px;
    width: 2px;
    background: var(--emerald-primary);
    z-index: 2;
    height: 0%; /* animado no JS */
    transition: height 0.5s ease-out;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: var(--space-4);
    z-index: 3;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--emerald-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-primary);
    font-size: 1.5rem;
    transition: all 0.5s ease;
}

.timeline-item.active .timeline-icon {
    background: var(--emerald-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

/* --- Bloco 7: Objeções --- */
.accordion {
    max-width: 800px;
    margin: var(--space-5) auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-3) 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.accordion-icon {
    color: var(--emerald-primary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    color: var(--text-secondary);
}

.accordion-item.open .accordion-body {
    max-height: 200px;
    margin-top: 16px;
}
.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

/* --- Bloco 8: Como Ganha --- */
.earn-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.earn-card {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.earn-card:hover {
    border-color: var(--emerald-primary);
    box-shadow: var(--shadow-glow);
}

.earn-bar {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    margin-top: var(--space-3);
    overflow: hidden;
}

.earn-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--emerald-primary);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.earn-card.visible .earn-bar-fill {
    width: 100%;
}

/* --- Bloco 9: Mapa Flip Card --- */
.map-flip-container {
    perspective: 1000px;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: var(--space-5) auto;
}

.map-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.map-flip-inner.flipped {
    transform: rotateY(180deg);
}

.map-flip-front, .map-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
}

.map-flip-back {
    transform: rotateY(180deg);
    background: #000;
}

/* Animação do Mapa SVG */
.svg-map {
    width: 100%;
    height: 100%;
    padding: var(--space-3);
}

@media (max-width: 768px) {
    .map-flip-container {
        height: 320px;
        margin: var(--space-4) auto;
    }
    .svg-map {
        padding: 0;
        /* Zoom no mapa aproveitando o viewBox 800x500 */
        width: 150%;
        margin-left: -25%;
        margin-top: -10px;
    }
}

.map-dot {
    fill: #F0F0EA;
    opacity: 0.15;
    transition: all 0.5s ease;
}

@keyframes pulseDot {
    0% { filter: drop-shadow(0 0 2px var(--emerald-primary)); opacity: 0.6; stroke-width: 0; stroke: var(--emerald-primary); }
    50% { filter: drop-shadow(0 0 12px var(--emerald-primary)); opacity: 1; stroke-width: 8; stroke: rgba(80, 200, 120, 0.4); }
    100% { filter: drop-shadow(0 0 2px var(--emerald-primary)); opacity: 0.6; stroke-width: 0; stroke: var(--emerald-primary); }
}

.map-dot.active {
    fill: var(--emerald-primary);
    opacity: 1;
    animation: pulseDot 2.5s infinite ease-in-out;
}

/* --- Bloco 10: Input Start --- */
.start-input-wrapper {
    max-width: 400px;
    margin: var(--space-4) auto 0;
    position: relative;
}

.start-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.2rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

.start-input:focus {
    border-color: var(--emerald-primary);
    box-shadow: var(--shadow-glow);
}

.start-msg {
    margin-top: var(--space-3);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--emerald-primary);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    text-align: center;
}

.start-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Bloco 11: Final CTA --- */
.cta-section {
    background: #0D1A14;
    color: #F0F0EA;
    text-align: center;
    padding: var(--space-10) var(--space-3);
}

.cta-section h2 {
    color: #F0F0EA;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-4);
}

.form-wrapper {
    background: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    max-width: 600px;
    margin: var(--space-5) auto 0;
    text-align: left;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--emerald-primary);
}

/* Multi-step Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group.full-width {
        grid-column: 1 / -1;
    }
}

.form-step {
    display: none;
    animation: fadeInForm 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pinhubs-multi-form input:not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.pinhubs-multi-form input:focus {
    border-color: var(--emerald-primary);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.nav-logo {
    height: 40px;
}

/* Nav Actions Group (Split Hover) */
.nav-actions-group {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-primary-btn {
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 0.95rem;
    z-index: 2;
    position: relative;
    transition: border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-text-expanded {
    display: none;
}

.nav-actions-group:hover .btn-text-default,
.nav-actions-group.expanded .btn-text-default {
    display: none;
}

.nav-actions-group:hover .btn-text-expanded,
.nav-actions-group.expanded .btn-text-expanded {
    display: inline;
}

.nav-secondary-btn {
    background: #0D1A14;
    color: #F0F0EA;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    max-width: 0;
    opacity: 0;
    padding: 8px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-20px);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
}

.nav-actions-group:hover .nav-primary-btn {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.nav-actions-group:hover .nav-secondary-btn,
.nav-actions-group.expanded .nav-secondary-btn {
    max-width: 240px !important; /* Aumentado levemente para garantir espaço */
    opacity: 1 !important;
    padding: 8px 20px !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.nav-actions-group.expanded .nav-primary-btn {
    border-radius: var(--radius-full) 0 0 var(--radius-full) !important;
}

@media (max-width: 480px) {
    .nav-primary-btn, .nav-secondary-btn {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    .nav-actions-group:hover .nav-secondary-btn,
    .nav-actions-group.expanded .nav-secondary-btn {
        max-width: 160px !important;
        padding: 8px 12px !important;
    }
}

.nav-secondary-btn:hover {
    background: #1A2E23;
}
