/* =============================================
   Estudo de Viabilidade Tecnico e Financeiro — Design System (Dark Mode Premium)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --bg:              #080c14;
    --surface:         #0f1623;
    --surface-2:       #151d2e;
    --glass:           rgba(255,255,255,0.04);
    --glass-border:    rgba(255,255,255,0.08);
    --glass-hover:     rgba(255,255,255,0.07);

    --primary:         #4f8ef7;
    --primary-glow:    rgba(79,142,247,0.35);
    --primary-dark:    #3b7de0;
    --accent:          #a78bfa;
    --accent-2:        #34d399;

    --text:            #f0f4ff;
    --text-muted:      #8898b8;
    --text-subtle:     #4a5d7a;

    --success:         #34d399;
    --error:           #f87171;
    --error-bg:        rgba(248,113,113,0.1);

    /* Shadows */
    --shadow-card:     0 24px 64px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
    --shadow-btn:      0 8px 32px rgba(79,142,247,0.4);
    --shadow-input:    0 0 0 3px rgba(79,142,247,0.2);

    /* Gradients */
    --grad-primary:    linear-gradient(135deg, #4f8ef7 0%, #a78bfa 100%);
    --grad-accent:     linear-gradient(135deg, #34d399 0%, #4f8ef7 100%);
    --grad-bg:         radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79,142,247,0.15) 0%, transparent 60%);

    /* Typography */
    --font:            'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radii */
    --radius-sm:       8px;
    --radius-md:       14px;
    --radius-lg:       20px;
    --radius-xl:       28px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ── Animated background ───────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(79,142,247,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,142,247,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,142,247,0.18) 0%, transparent 70%);
    top: -200px; left: -200px;
    animation-duration: 14s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(167,139,250,0.14) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation-duration: 18s;
    animation-delay: -6s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(52,211,153,0.1) 0%, transparent 70%);
    top: 50%; left: 60%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 40px) scale(1.1); }
}

/* ── Page wrapper ──────────────────────────── */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Logo ──────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-icon {
    font-size: 1.2rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text);
}

/* ── Hero / Header ─────────────────────────── */
.hero {
    padding: 0 2rem 3rem;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25);
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease both;
}

.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s 0.1s ease both;
}

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

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    animation: fadeInUp 0.6s 0.2s ease both;
}

/* ── Stats row ─────────────────────────────── */
.stats-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-subtle);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--glass-border);
}

/* ── Main content grid ─────────────────────── */
.main-content {
    flex: 1;
    padding: 0 2rem 3rem;
}

.content-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ── Glass card ────────────────────────────── */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s 0.15s ease both;
}

.glass-card:hover {
    border-color: rgba(255,255,255,0.12);
}

/* ── Card label ────────────────────────────── */
.card-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ── Price block ───────────────────────────── */
.price-block {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-cents {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-tag {
    font-size: 0.8rem;
    color: var(--text-subtle);
    font-weight: 500;
    margin-left: 0.5rem;
    align-self: center;
}

/* ── Form ──────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-subtle);
    transition: color 0.2s;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-group input::placeholder {
    color: var(--text-subtle);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(79,142,247,0.06);
    box-shadow: var(--shadow-input);
}

.form-group input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

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

.form-row-triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.form-row-triple input {
    padding-left: 1rem !important;
}

.input-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--accent-2);
    margin-top: 0.25rem;
    font-weight: 500;
}

.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-group select option {
    background-color: var(--surface-2);
    color: var(--text);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Dim placeholder option */
.form-group select:invalid,
.form-group select option[value=""][disabled] {
    color: var(--text-subtle);
}

.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(79,142,247,0.06);
    box-shadow: var(--shadow-input);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238898b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

@media (max-width: 580px) {
    .form-row, .form-row-triple {
        grid-template-columns: 1fr;
    }
}

/* ── Submit button ─────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--grad-primary);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-btn);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 0.25rem;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(79,142,247,0.5);
}

.btn-submit:active {
    transform: translateY(0) scale(0.99);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ── Error message ─────────────────────────── */
.error-message {
    background: var(--error-bg);
    border: 1px solid rgba(248,113,113,0.25);
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
}

/* ── Disclaimer ────────────────────────────── */
.form-disclaimer {
    font-size: 0.78rem;
    color: var(--text-subtle);
    text-align: center;
    margin-top: 1rem;
}

/* ── Info side ─────────────────────────────── */
.info-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Features card ─────────────────────────── */
.features-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.feature-item:hover {
    background: var(--glass-hover);
    border-color: rgba(79,142,247,0.2);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79,142,247,0.1);
    border-radius: var(--radius-sm);
}

.feature-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.feature-item span {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

/* ── Testimonial card ──────────────────────── */
.testimonial-card {
    animation-delay: 0.25s;
}

.stars {
    color: #f59e0b;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-subtle);
}

/* ── Footer ────────────────────────────────── */
.footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-subtle);
    font-size: 0.8rem;
}

/* ── CTA Section ───────────────────────────── */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(79,142,247,0.08) 0%, transparent 70%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease both;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: var(--grad-primary);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(79,142,247,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.05em;
}

.btn-cta-large:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 30px 60px rgba(79,142,247,0.45);
    filter: brightness(1.1);
}

.btn-cta-large svg {
    transition: transform 0.3s ease;
}

.btn-cta-large:hover svg {
    transform: translateX(5px);
}

/* ── Animations ────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        padding: 0 1.25rem 2rem;
    }

    .logo {
        padding: 1.25rem 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stats-row {
        gap: 1rem;
    }

    .main-content {
        padding: 0 1.25rem 2rem;
    }

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

    .glass-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
}

/* ── Video Section ─────────────────────────── */
.video-section {
    padding: 0 2rem 3rem;
    animation: fadeInUp 0.6s 0.2s ease both;
}

.video-container {
    max-width: 1100px;
    margin: 0 auto;
}

.video-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.video-title {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 0 0 1px rgba(79,142,247,0.08),
        0 32px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(79,142,247,0.12);
    background: var(--surface);
    transition: box-shadow 0.3s;
}

.video-wrapper:hover {
    box-shadow:
        0 0 0 1px rgba(79,142,247,0.18),
        0 32px 80px rgba(0,0,0,0.55),
        0 0 80px rgba(79,142,247,0.2);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-top: 1rem;
}

/* ── Responsive (video) ────────────────────── */
@media (max-width: 768px) {
    .video-section {
        padding: 0 1.25rem 2rem;
    }

    .video-wrapper {
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 480px) {
    .stats-row {
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }
}
/* ── Success/Cancel Pages ─────────────────── */
.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.25rem;
    flex: 1;
    z-index: 1;
}

.status-card {
    max-width: 540px;
    text-align: center;
    padding: 3.5rem 2.5rem;
}

.status-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
}

.status-icon.success {
    background: rgba(52,211,153,0.1);
    color: var(--accent-2);
    border: 1px solid rgba(52,211,153,0.2);
    box-shadow: 0 0 40px rgba(52,211,153,0.15);
}

.status-icon.cancel {
    background: rgba(248,113,113,0.1);
    color: var(--error);
    border: 1px solid rgba(248,113,113,0.2);
    box-shadow: 0 0 40px rgba(248,113,113,0.15);
}

.status-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.status-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}
