/* ==========================================================================
   DESIGN SYSTEM - NEO-BRUTALIST TECH B2B (VANILLA CSS)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #0D0E10;
    --bg-secondary: #16181B;
    --bg-tertiary: #202327;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A5B1;
    --accent: #10B981; /* Neon Growth Green */
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --border-color: #2D3139;
    --border-color-active: #10B981;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sharp: 0px;
    --radius-subtle: 2px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Base Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(13, 14, 16, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

.badge-demo {
    font-size: 11px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* Hero Section - Asymmetric Layout */
.hero {
    padding: 96px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 12px;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 56px;
    }
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent) 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 18px 36px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    outline: none;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Secondary CTA / Floating design */
.hero-visual {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 32px;
    position: relative;
}

.visual-metric {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.visual-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Benefits Section */
.benefits {
    padding: 96px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 64px;
    max-width: 700px;
}

.section-subtitle {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 32px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 40px;
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

.benefit-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    transition: var(--transition-normal);
}

.benefit-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 24px;
    display: inline-block;
}

.benefit-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.benefit-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Footer style */
footer {
    padding: 48px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

/* ==========================================================================
   QUIZ MODAL SYSTEM
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 14, 16, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 680px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-progress-container {
    padding: 32px 40px 0 40px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-header span {
    font-family: var(--font-heading);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--bg-tertiary);
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent);
    width: 0%;
    transition: width var(--transition-normal);
}

/* Quiz Steps */
.quiz-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

.quiz-step {
    display: none;
    padding: 40px;
    animation: fadeIn var(--transition-normal);
}

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

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

.step-title {
    font-size: 22px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.step-title span {
    color: var(--accent);
}

/* Fields & Custom Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--border-color-active);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Options Selector (Radio Buttons customizados) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.option-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.option-card:hover {
    border-color: var(--text-secondary);
}

.option-card.selected {
    border-color: var(--accent);
    background-color: rgba(16, 185, 129, 0.05);
}

.option-card input[type="radio"] {
    display: none;
}

.option-label {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
}

.option-indicator {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    display: inline-block;
    position: relative;
    transition: var(--transition-fast);
}

.option-card.selected .option-indicator {
    border-color: var(--accent);
    background-color: var(--accent);
}

/* Conditional Field Area */
.conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.conditional-field.active {
    max-height: 250px;
    opacity: 1;
    margin-top: 24px;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
}

/* Navigation Buttons */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 24px 40px;
    background-color: var(--bg-secondary);
}

.btn-back {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 14px 28px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-back:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-next {
    background-color: var(--accent);
    border: none;
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 14px 28px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-left: auto;
}

.btn-next:hover {
    background-color: var(--accent-hover);
}

/* Quiz Finished / Success Window */
.quiz-success-message {
    padding: 64px 40px;
    text-align: center;
    display: none;
    animation: fadeIn var(--transition-normal);
}

.success-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 24px;
}

.success-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.success-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Validation Messages */
.error-msg {
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .form-input {
    border-color: #EF4444;
}

.form-group.has-error .error-msg {
    display: block;
}

/* ==========================================================================
   ADMIN PANEL & LOGIN STYLES
   ========================================================================== */

/* Login Page Layout */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--bg-primary);
}

.login-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.alert {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
    padding: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Admin Dashboard Layout */
.admin-navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    height: 72px;
    display: flex;
    align-items: center;
}

.admin-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logout {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    transition: var(--transition-fast);
}

.admin-logout:hover {
    color: #EF4444;
    border-color: #EF4444;
}

.admin-main {
    padding: 48px 0;
}

/* Dashboard Summary Metrics */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.metric-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
}

.metric-card-title {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-card-value {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.metric-card-value.accented {
    color: var(--accent);
}

/* Leads Management Section */
.leads-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.leads-title {
    font-size: 24px;
}

/* Leads Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.leads-table th {
    background-color: var(--bg-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.leads-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.leads-table tr:hover td {
    background-color: var(--bg-secondary);
}

/* Lead Status Pill */
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.status-novo {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.status-pill.status-atendimento {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid #F59E0B;
}

.status-pill.status-concluido {
    background-color: rgba(160, 165, 177, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Inline Edit Select in Table */
.status-select {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.status-select:focus {
    border-color: var(--accent);
}

.btn-detail {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-detail:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

/* Details Modal / Box inside Admin */
.detail-modal-body {
    padding: 40px;
    overflow-y: auto;
}

.detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.detail-company {
    font-size: 28px;
    margin-bottom: 4px;
}

.detail-nicho {
    color: var(--accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-block-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 700;
}

.detail-item {
    margin-bottom: 16px;
}

.detail-item-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.detail-item-value {
    font-size: 16px;
    font-weight: 600;
}

.detail-item-text {
    font-size: 15px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 16px;
    white-space: pre-wrap;
}
