/* =================================================_
   CODE9TI STYLESHEET
   Moderna, Minimalista, Tecnológica, Corporativa
   ================================================= */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --accent: #00E599;
    --dark: #0F172A;
    --slate: #475569;
    --light: #F8FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--dark);
    background-color: rgba(15, 23, 42, 0.03);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 0.25rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo-img {
    display: block;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--slate);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.mobile-cta {
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, #F8FAFC 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--slate);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.tech-window {
    background-color: var(--dark);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.window-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.window-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #E2E8F0;
    overflow-x: auto;
}

.keyword { color: #FF7B72; }
.variable { color: #79C0FF; }
.string { color: #A5D6FF; }
.property { color: #D2A8FF; }
.function { color: #7EE787; }

/* Sections Global */
.section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
}

/* Sobre Section */
.sobre-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.sobre-text p {
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.sobre-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--slate);
    font-weight: 500;
}

.card-visual-box {
    background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.box-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-visual-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-visual-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Serviços Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.06);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.5;
}

/* Diferencial Section */
.diferencial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.diferencial-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.diff-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: monospace;
}

.diferencial-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.diferencial-card p {
    font-size: 0.9rem;
    color: var(--slate);
}

/* Workflow Section */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.step-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    flex: 1;
    text-align: center;
}

.step-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--slate);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--slate);
    font-weight: 300;
}

/* Tech Stack Section */
.tech-stack {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 2rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-badge {
    background-color: var(--light);
    border: 1px solid var(--border);
    color: var(--dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--slate);
    font-size: 0.95rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Contato Section */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contato-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contato-info p {
    color: var(--slate);
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-list li {
    font-size: 1rem;
    color: var(--dark);
}

.info-list strong {
    display: inline-block;
    width: 100px;
    color: var(--slate);
}

.info-list a {
    color: var(--primary);
    font-weight: 600;
}

.info-list a:hover {
    text-decoration: underline;
}

.contato-form-wrapper {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #FF5F56;
}

.error-msg {
    display: none;
    font-size: 0.8rem;
    color: #FF5F56;
    margin-top: 0.25rem;
}

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

.form-success-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(39, 201, 63, 0.1);
    color: #155724;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-social ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .badge-tag {
        margin-left: auto;
        margin-right: auto;
    }
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .diferencial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workflow-steps {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop, .header-action .btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section h2 {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .diferencial-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
