/* CSS */
/* Variables */
:root {
    --bg-primary: #020617; /* Deep Blue Night */
    --accent: #38bdf8; /* Sky Blue */
    --text-main: #f8fafc; /* Off-white */
    --text-muted: #94a3b8; /* Slate Grey */
    --font-inter: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Structural variables */
    --border-color: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(15, 23, 42, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-inter);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* 24px padding on mobile */
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: opacity 0.4s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 3rem;
}

.hero-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 100px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.cta-wrapper {
    display: flex;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--text-main);
    color: var(--bg-primary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    width: 100%;
}

.cta-button:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

/* Triad Section */
.triad-section {
    padding: 3rem 0 5rem;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(255,255,255, 0.15);
}

.icon-wrapper {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(56, 189, 248, 0.1);
    border-radius: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    background-color: #01040f; /* Slightly darker than bg-primary */
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.exclusive-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.privacy-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: var(--text-main);
}

/* Responsividade (Tablet/Desktop) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }

    .cta-button {
        width: auto;
    }

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

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Diagnostic Form Section */
.diagnostic-form-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--card-bg);
}

.diagnostic-form-section.expanded {
    max-height: 3500px;
    opacity: 1;
    padding: 4rem 0;
}

.form-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255,255,255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
}

.form-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.form-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    color: var(--text-main);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background-color: rgba(0,0,0, 0.2);
}

.radio-option:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.radio-option input[type="radio"] {
    accent-color: var(--accent);
    width: 1.125rem;
    height: 1.125rem;
}

.radio-option span {
    color: var(--text-muted);
}

.radio-option input[type="radio"]:checked + span {
    color: var(--text-main);
    font-weight: 600;
}

.scale-group {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.scale-btn {
    flex: 1;
    min-width: 2.5rem;
    height: 3rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.scale-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.scale-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.lead-capture-group label {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(0,0,0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-submit {
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 640px) {
    .scale-group {
        gap: 0.5rem;
    }
    .scale-btn {
        min-width: calc(20% - 0.5rem);
    }
    .form-card {
        padding: 1.5rem;
        border-radius: 0.5rem;
    }
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 2.5rem 1rem;
    animation: fadeIn 0.6s ease-out forwards;
}

.success-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    margin-bottom: 2rem;
}

.success-message h4 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.success-message p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.success-message p strong {
    color: var(--text-main);
    font-weight: 600;
}

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