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

/* =============================================
   QUIZ PERFIL DE INVESTIDOR — PREMIUM DARK (PT)
   ============================================= */

:root {
    --bg-dark: #0a0e17;
    --bg-card: #131826;
    --bg-card-hover: #1a2133;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8529;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);
    --glass-bg: rgba(19, 24, 38, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-bg {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
}

/* =============================================
   INTRO SECTION
   ============================================= */
.intro-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.brand-diamond {
    font-size: 0.6rem;
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    line-height: 1.1;
    margin: 0 auto 24px;
    max-width: 900px;
    font-weight: 700;
    color: #ffffff;
}

.intro-title .title-line1,
.intro-title .title-line2 {
    display: block;
}

.intro-title em {
    color: var(--gold-primary);
    font-style: italic;
    font-weight: 400;
}

.intro-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Fatos Reais - Info Box */
.market-fact-box {
    background: rgba(19, 24, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px 30px;
    margin: 0 auto 40px;
    max-width: 650px;
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.market-fact-icon {
    font-size: 2rem;
    line-height: 1;
}

.market-fact-content p {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.market-fact-content strong {
    color: var(--gold-primary);
    font-weight: 600;
}

.market-fact-source {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #0a0e17;
    border: none;
    padding: 18px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn-start:hover .btn-arrow {
    transform: translateX(5px);
}

/* =============================================
   QUIZ CARD (GLASSMORPHISM)
   ============================================= */
.quiz-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 10;
}

.quiz-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.quiz-topbar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.quiz-topbar-fill {
    height: 100%;
    background: var(--gold-primary);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px var(--gold-primary);
}

.quiz-inner {
    padding: 40px 48px 50px;
}

.quiz-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.q-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.q-fraction {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.q-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.9rem;
    line-height: 1.4;
    margin: 0 0 32px;
    font-weight: 500;
    text-wrap: balance;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack vertically for elegance */
    gap: 16px;
}

.quiz-option-card {
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 80px;
}

.quiz-option-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}

.quiz-option-card.selected {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold-primary);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

.option-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quiz-option-card.selected .option-radio {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
}

.option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bg-dark);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quiz-option-card.selected .option-radio::after {
    opacity: 1;
}

/* Nav Buttons */
.quiz-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    min-height: 60px;
}

.btn-nav-voltar {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    transition: color 0.2s;
}

.btn-nav-voltar:hover {
    color: var(--text-main);
}

.btn-nav-continuar {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.btn-nav-continuar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-nav-continuar:hover {
    background: #e6c55c;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.quiz-step {
    display: none;
    opacity: 0;
}

.quiz-step.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s forwards;
}

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

/* =============================================
   ANALYZING SCREEN
   ============================================= */
.analyzing-step {
    text-align: center;
    padding: 20px 0 40px;
}

.analyzing-icon-wrap {
    font-size: 4rem;
    display: inline-block;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

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

.analyzing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--gold-primary);
    text-wrap: balance;
}

.analyzing-items {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analyzing-item {
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    opacity: 0.4;
    transition: all 0.4s;
}

.analyzing-item.active {
    opacity: 1;
    border-color: var(--border-gold);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.analyzing-item.done {
    opacity: 1;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.analyzing-item.done .spinner {
    display: none;
}

.checkmark {
    display: none;
    font-weight: bold;
}

.analyzing-item.done .checkmark {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   RESULT SECTION & FORM
   ============================================= */
.result-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 10;
}

.result-eyebrow {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.result-profile-card {
    background: linear-gradient(145deg, rgba(19, 24, 38, 0.9), rgba(10, 14, 23, 0.95));
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.result-profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
}

.r-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.r-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin: 0 0 10px;
    color: #fff;
    text-wrap: balance;
}

.r-tagline {
    font-size: 1.2rem;
    color: var(--gold-primary);
    font-style: italic;
    margin-bottom: 24px;
}

.r-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.r-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.r-trait {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Form Card */
.lead-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 48px;
    margin-bottom: 30px;
}

.lead-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 12px;
    font-weight: 700;
    text-wrap: balance;
}

.lead-subtitle {
    color: #e2e8f0;
    margin-bottom: 30px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.lead-fields {
    display: grid;
    gap: 20px;
}

.lead-field-group label {
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #f8fafc;
    font-weight: 600;
}

.lead-field-group input {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    box-sizing: border-box;
}

.lead-field-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(0,0,0,0.4);
}

.iti { width: 100%; }

.btn-submit {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #0a0e17;
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.trust-lock { font-size: 1.5rem; }
.trust-text { font-size: 0.95rem; line-height: 1.5; color: #e2e8f0; }
.trust-text strong { color: #fff; display: block; margin-bottom: 4px; }

.legal-notice {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

.hidden-quiz { display: none !important; }

/* Responsive adjustments moved to end of file */

/* Lucide Icon Overrides */
.market-fact-icon .lucide {
    width: 42px;
    height: 42px;
    color: var(--gold-primary);
    stroke-width: 1.5;
}
.analyzing-icon-wrap .lucide {
    width: 64px;
    height: 64px;
    color: var(--gold-primary);
    stroke-width: 1.5;
}
.trust-lock .lucide {
    width: 32px;
    height: 32px;
    color: var(--gold-primary);
    stroke-width: 1.5;
}
.r-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.r-icon .lucide {
    width: 80px;
    height: 80px;
    color: var(--gold-primary);
    stroke-width: 1.5;
}

/* Intl Tel Input Overrides for Dark Theme */
.iti { width: 100%; }
.iti__country-list {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: var(--text-main);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}
.iti__country {
    padding: 10px 16px;
    transition: background 0.2s;
}
.iti__country.iti__highlight {
    background-color: rgba(255,255,255,0.08);
}
.iti__country-name {
    color: var(--text-main);
}
.iti__dial-code {
    color: var(--text-muted);
}
.iti__selected-dial-code {
    color: #fff;
    margin-left: 6px;
    font-weight: 500;
}
.iti__arrow {
    border-top-color: #fff;
}
.iti__arrow--up {
    border-bottom-color: #fff;
}

/* Intro Features Box */
.intro-features-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    max-width: 480px;
    margin: 0 auto 32px;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.features-header {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    text-align: center;
    padding: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.features-list {
    list-style: none;
    padding: 24px 32px;
    margin: 0;
}
.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 1.05rem;
}
.features-list li:last-child {
    margin-bottom: 0;
}
.check-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-primary);
    margin-right: 14px;
    flex-shrink: 0;
}
.intro-footer-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 24px;
    font-style: italic;
    opacity: 0.8;
}

/* =============================================
   RESPONSIVENESS SPRINT (MOBILE & TABLET)
   ============================================= */

/* 1. TABLET PORTRAIT / SMALL DESKTOP (< 900px) */
@media (max-width: 900px) {
    .intro-title { font-size: 3.2rem; }
    
    .quiz-wrap, .result-wrap { max-width: 680px; }
    
    .quiz-inner, .lead-card, .result-profile-card { 
        padding: 32px 36px; 
    }
}

/* 2. LARGE MOBILE / SMALL TABLET (< 600px) */
@media (max-width: 600px) {
    .intro-section {
        padding: 60px 16px 40px;
    }
    
    .intro-title { font-size: 2.6rem; text-wrap: balance; }
    .intro-title .title-line1, .intro-title .title-line2 { display: inline; }
    .intro-sub { font-size: 1.05rem; }
    
    .brand-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        margin-bottom: 24px;
    }
    
    .quiz-wrap, .result-wrap { 
        padding: 24px 16px; 
    }
    
    .quiz-inner, .lead-card, .result-profile-card { 
        padding: 24px 20px; 
    }
    
    .q-text { 
        font-size: 1.6rem; 
        margin-bottom: 24px;
    }
    
    .q-fraction { font-size: 1.2rem; }
    
    .quiz-option-card { 
        padding: 16px; 
        min-height: 80px; 
        gap: 16px;
    }
    
    .option-title { font-size: 1.05rem; }
    .option-desc { font-size: 0.9rem; }
    
    .r-title { font-size: 2.2rem; }
    .r-tagline { font-size: 1.1rem; }
    .r-desc { font-size: 1rem; }
    
    .r-icon .lucide {
        width: 60px;
        height: 60px;
    }
    
    .r-traits {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .r-trait {
        font-size: 0.95rem;
        padding: 12px 16px;
        width: 100%;
        text-align: left;
    }
    
    .lead-title { font-size: 1.5rem; }
    .lead-subtitle { font-size: 1.05rem; }
    
    .lead-field-group input, .btn-submit {
        height: 56px;
        padding: 0 16px;
        font-size: 16px; /* Prevents iOS Safari Zoom */
    }
    
    .trust-row {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}

/* 3. SMALL MOBILE (< 375px) */
@media (max-width: 374px) {
    .intro-section {
        padding: 40px 12px 30px;
    }
    
    .intro-title { font-size: 2.2rem; }
    
    .quiz-wrap, .result-wrap { 
        padding: 16px 12px; 
    }
    
    .quiz-inner, .lead-card, .result-profile-card { 
        padding: 20px 16px; 
    }
    
    .q-text { 
        font-size: 1.5rem; 
    }
    
    .quiz-option-card { 
        min-height: 72px; 
    }
    
    .option-title { font-size: 1rem; }
}

/* 4. PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .analyzing-icon-wrap {
        animation: none;
    }
}
