:root {
    --bg-dark: #050a10;
    --bg-gradient: linear-gradient(135deg, #071524 0%, #0d2138 50%, #050a10 100%);
    --text-main: #f0f4f8;
    --text-muted: #a0aec0;

    /* Gold & Orange accents */
    --gold-primary: #d4af37;
    --gold-secondary: #f39c12;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f39c12 100%);

    /* Greens */
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s ease;
    --trans-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: #fff;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 span {
    color: var(--gold-primary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.gold-icon {
    color: var(--gold-primary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.large-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--trans-normal);
    border: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-large {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.btn-instagram:hover {
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem 0;
}

.badge-premium {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero p.subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-actions {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 1.5rem;
    color: var(--gold-primary);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* Grid Layouts */
.cards-grid,
.features-grid {
    display: grid;
    gap: 1.5rem;
}

.specialists-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.brokers-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

.features-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .specialists-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brokers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn-large {
        width: auto;
        min-width: 320px;
    }
}

@media (min-width: 1024px) {
    .brokers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--trans-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
}

.card-body {
    text-align: center;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-body .role {
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-body .description {
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Broker Card */
.broker-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    min-height: 140px;
}

.broker-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.avatar-sm {
    width: 110px;
    height: 110px;
    min-width: 110px;
    max-width: 110px;
    min-height: 110px;
    max-height: 110px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

img.avatar-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: none;
}

.broker-info h4 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 480px) {
    .broker-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .broker-info {
        flex-direction: column;
        gap: 1rem;
    }

    .broker-card .btn {
        width: 100%;
    }
}

/* Feature Card */
.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand h2 {
    color: var(--gold-primary);
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    width: 100%;
    font-size: 0.9rem;
}

/* Modal / Triage Flow */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--trans-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: var(--trans-smooth);
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--trans-fast);
}

.close-modal:hover {
    color: #fff;
}

.modal-header {
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.modal-header h3 {
    margin-bottom: 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gold-gradient);
    width: 0%;
    transition: width 0.4s ease;
}

.modal-body {
    flex-grow: 1;
    min-height: 150px;
    position: relative;
}

.triage-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

.step-question {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.5rem;
}

.options-grid {
    display: grid;
    gap: 0.8rem;
}

.option-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: var(--trans-fast);
    font-size: 1rem;
}

.option-btn:hover,
.option-btn.selected {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--trans-fast);
}

.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.modal-footer .btn {
    flex: 1;
}

.success-message {
    text-align: center;
    margin-bottom: 2rem;
}

.success-message h4 {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.brokers-selection-list {
    display: grid;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for list */
.brokers-selection-list::-webkit-scrollbar {
    width: 6px;
}

.brokers-selection-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.brokers-selection-list::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}