:root {
    --bg-color: #080808;
    --bg-surface: #121212;
    --bg-surface-hover: #1a1a1a;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent: #004cd3;
    --accent-hover: #00aaff;
    --accent-glow: rgba(94, 106, 210, 0.4);
    --border-color: rgba(255, 255, 255, 0.05);

    --font-family: 'Plus Jakarta Sans', sans-serif;
    --container-width: 1100px;
}

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

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

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

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

/* Background Glow */
.glow-bg {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(8, 8, 8, 0) 70%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 40px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo span {
    font-weight: 300;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(94, 106, 210, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 106, 210, 0.5);
}

/* Hero Section */
.hero {
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 48px;
    color: var(--text-muted);
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-support-text {
    font-size: 1rem;
    max-width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0 auto;
    opacity: 1;
    background-color: #00aaff;
    color: #080808;
    text-align: center;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 24px;
}

.section-title.center {
    text-align: center;
    margin-bottom: 64px;
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 800px;
}

.about-text {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-surface);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.service-card:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(94, 106, 210, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.service-card p {
    font-size: 1rem;
}

/* Methodology Section */
.methodology {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    border-top: 1px solid var(--border-color);
}

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

.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 1px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--accent);
    z-index: 2;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    padding-top: 10px;
}

/* Final CTA */
.final-cta {
    padding: 120px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, #171825 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #9f8cff);
}

.cta-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 24px;
}

.cta-text {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.875rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-item {
        padding-left: 64px;
    }

    .cta-box {
        padding: 60px 24px;
    }
}

/* =========================================
   MODAL / POPUP DE CONTATO
   ========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.modal-overlay.is-open .modal-container {
    transform: translateY(0) scale(1);
}

/* Close button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Modal header */
.modal-header {
    margin-bottom: 36px;
}

.modal-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
    color: var(--text-main);
}

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

/* Form layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.required {
    color: var(--accent-hover);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 400;
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: var(--text-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(160, 160, 160, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 76, 211, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 76, 211, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #e05a5a;
    box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.15);
}

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

/* Form footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    flex: 1;
}

/* Submit button states */
.btn-submit {
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.btn-loading {
    display: none;
}

.btn-submit.is-loading .btn-text {
    display: none;
}

.btn-submit.is-loading .btn-loading {
    display: flex;
}

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

/* Spinner animation */
.spinner {
    animation: spin 0.75s linear infinite;
}

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

/* Success state */
.form-success-state {
    text-align: center;
    padding: 40px 20px;
}

.form-success-state[hidden] {
    display: none;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 76, 211, 0.15), rgba(0, 170, 255, 0.15));
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent-hover);
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success-state p {
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-container {
        padding: 36px 24px;
    }

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

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit {
        width: 100%;
    }
}