/* ===== Design System — iCodev ===== */
:root {
    --primary: #0a0e27;
    --primary-blue: #1a3a8f;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --cyan: #22d3ee;
    --green: #10b981;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-dark: #f1f5f9;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { display: flex; align-items: center; }

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover { opacity: 0.8; }

.nav-menu {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    -webkit-appearance: none;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Botoes ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.btn-full:hover .btn-icon {
    transform: translateX(4px);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(160deg, #0a0e27 0%, #1a1a4e 40%, #2d1b69 100%);
    color: #fff;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 20% 40%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(400px circle at 80% 60%, rgba(34, 211, 238, 0.1), transparent);
    pointer-events: none;
}

.grid-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(80px) scale(1); opacity: 0; }
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeUp 0.8s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    margin-right: -8px;
    flex-shrink: 0;
}

.hero-trust p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-left: 8px;
}

.hero-trust strong {
    color: var(--accent-light);
}

/* Code Window */
.hero-visual {
    animation: fadeUp 0.8s ease 0.2s both;
}

.code-window {
    background: #16162a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

.code-header {
    background: #1e1e36;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.code-title {
    margin-left: 10px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
    overflow-x: auto;
}

.code-body pre { margin: 0; }
.code-body code { color: #cdd6f4; }
.code-keyword  { color: #c678dd; }
.code-var      { color: #61afef; }
.code-prop     { color: #98c379; }
.code-string   { color: #e5c07b; }
.code-number   { color: #d19a66; }
.code-func     { color: #56b6c2; }
.code-comment  { color: #5c6370; font-style: italic; }

/* ===== Section Commons ===== */
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin: 16px auto 0;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    margin: -10px auto 48px;
    max-width: 600px;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 64px;
    padding: 40px 32px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.section-cta p {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== Sobre ===== */
.sobre {
    padding: 100px 0;
    background: var(--surface-alt);
}

.sobre .section-title { margin-bottom: 48px; }

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.sobre-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.sobre-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.sobre-list li {
    padding: 8px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sobre-list li i {
    color: var(--green);
    font-size: 0.85rem;
}

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.stat h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Servicos ===== */
.servicos {
    padding: 100px 0;
    background: var(--surface);
}

.servicos .section-title { margin-bottom: 48px; }

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servico-card {
    background: var(--surface);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    opacity: 0;
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.servico-card:hover::before { opacity: 1; }

.servico-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.servico-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.servico-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== Tecnologias ===== */
.tecnologias {
    padding: 100px 0;
    background: var(--surface-alt);
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tech-tab {
    padding: 10px 22px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tech-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tech-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tech-tab-content {
    display: none;
    animation: fadeIn 0.35s ease;
}

.tech-tab-content.active {
    display: block;
}

.tech-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-width: 110px;
    transition: var(--transition);
}

.tech-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.tech-logo-item i {
    font-size: 2.2rem;
    transition: var(--transition);
}

.tech-logo-item:hover i { transform: scale(1.15); }

.tech-logo-item span {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
}

/* ===== Processo ===== */
.processo {
    padding: 100px 0;
    background: linear-gradient(160deg, #0a0e27 0%, #1a1a4e 50%, #2d1b69 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.processo::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.processo .section-title { color: #fff; }
.processo .section-title::after { background: var(--accent-light); }
.processo .section-desc { color: rgba(255,255,255,0.75); }

.processo-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.processo-step {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
}

.processo-step:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    margin: 0 auto 18px;
}

.step-content h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Portfolio ===== */
.portfolio {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.portfolio .section-title { margin-bottom: 16px; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-item {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio-featured .portfolio-image {
    height: 100%;
    overflow: visible;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.portfolio-item:hover .placeholder-img {
    transform: scale(1.05);
}

.mockup-laptop,
.mockup-phone,
.mockup-dashboard {
    font-size: 3.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.portfolio-item:hover .mockup-laptop,
.portfolio-item:hover .mockup-phone,
.portfolio-item:hover .mockup-dashboard {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== Mockups Produtos ===== */
.mockup-iconnect,
.mockup-ianalytical {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mockup-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
}

.mockup-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
}

.mockup-iconnect .mockup-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.stat-box {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 500;
}

.mockup-ianalytical .mockup-camera {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
    min-height: 200px;
}

.camera-feed {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 2rem;
}

.detection-info {
    display: flex;
    gap: 8px;
}

.detection-item {
    flex: 1;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

.portfolio-item h3 {
    padding: 20px 20px 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.portfolio-item p {
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.portfolio-tags {
    padding: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    padding: 5px 13px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== Portfolio Featured ===== */
.portfolio-featured-grid {
    grid-template-columns: 1fr;
    gap: 48px;
}

.portfolio-featured {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: stretch;
}

.portfolio-featured .portfolio-image {
    height: 100%;
    width: 100%;
}

.portfolio-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.08));
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    width: fit-content;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.portfolio-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    padding: 0;
    color: var(--text);
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 18px;
    padding: 0;
}

.portfolio-features {
    list-style: none;
    margin: 16px 0 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.portfolio-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.portfolio-features li i {
    color: var(--green);
    font-size: 0.75rem;
}

/* ===== Depoimentos ===== */
.depoimentos {
    padding: 100px 0;
    background: var(--surface-alt);
}

.depoimentos .section-title { margin-bottom: 48px; }

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.depoimento-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.depoimento-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    color: rgba(99, 102, 241, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.depoimento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.depoimento-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.depoimento-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.depoimento-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
    background: var(--surface);
}

.faq .section-title { margin-bottom: 48px; }

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: var(--surface);
    transition: var(--transition);
}

.faq-item:hover { border-color: rgba(99, 102, 241, 0.3); }

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.faq-question span { flex: 1; padding-right: 14px; }

.faq-question i {
    color: var(--accent);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 22px 18px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ===== Contato ===== */
.contato {
    padding: 100px 0;
    background: linear-gradient(160deg, #0a0e27 0%, #1a1a4e 50%, #2d1b69 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contato::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.contato .section-title { color: #fff; }
.contato .section-title::after { background: var(--accent-light); }
.contato .section-subtitle { color: rgba(255,255,255,0.7); }

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.contato-form-section {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 6px;
}

.form-header h3 i { color: var(--accent); }

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

.contato-form .form-group { margin-bottom: 18px; }

.contato-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 6px;
}

.contato-form input,
.contato-form textarea,
.contato-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
}

.contato-form input:focus,
.contato-form textarea:focus,
.contato-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contato-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Info Card */
.contato-info-section { display: flex; flex-direction: column; }

.info-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    flex: 1;
}

.info-header { margin-bottom: 30px; }

.info-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 6px;
}

.info-header h3 i { color: var(--accent-light); }

.info-header p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.info-icon {
    font-size: 1.3rem;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
}

.info-content h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
}

.info-content a {
    color: var(--accent-light);
    font-weight: 600;
    transition: var(--transition);
}

.info-content a:hover { color: #fff; }

.info-detail {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

.cta-box {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.cta-box h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cta-box h4 i { color: var(--accent-light); }

.cta-box p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ===== Footer ===== */
.footer {
    background: #060918;
    color: #fff;
    padding: 56px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-section p {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    font-size: 0.88rem;
}

.footer-section li { margin-bottom: 8px; }

.footer-section a {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-section a:hover { color: var(--accent-light); }

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

/* ===== Social Icons ===== */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    color: #fff;
}

.preloader-inner span {
    display: block;
    margin-top: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-light);
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

/* ===== Nav Actions ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 16px;
}

.dark-mode-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
}

.btn-nav {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 99;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6); }
}

/* ===== Typing Cursor ===== */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Dark Mode ===== */
body.dark-mode {
    --surface: #0f172a;
    --surface-alt: #1e293b;
    --surface-dark: #0f172a;
    --border: #334155;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.3);
}

body.dark-mode .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border);
}

body.dark-mode .hamburger span {
    background: var(--text);
}

body.dark-mode .nav-menu {
    background: var(--surface);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
}

body.dark-mode .processo {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
}

body.dark-mode .contato {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
}

body.dark-mode .footer {
    background: #020617;
    border-top-color: var(--border);
}

body.dark-mode .servico-card,
body.dark-mode .depoimento-card,
body.dark-mode .portfolio-item,
body.dark-mode .portfolio-featured,
body.dark-mode .stat,
body.dark-mode .tech-logo-item {
    background: var(--surface-alt);
    border-color: var(--border);
}

body.dark-mode .faq-question {
    background: var(--surface-alt);
    border-color: var(--border);
}

body.dark-mode .contato-form-section,
body.dark-mode .info-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--border);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: var(--surface-alt);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .dark-mode-toggle {
    border-color: var(--border);
}

body.dark-mode .section-cta {
    background: var(--surface-alt);
    border-color: var(--border);
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
    .servicos-grid,
    .portfolio-grid,
    .depoimentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .processo-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        flex-direction: column;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 8px 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
    }

    .nav-menu.active { display: flex; }

    .nav-menu li { padding: 0; }

    .nav-link {
        display: block;
        padding: 14px 24px;
        border-radius: 0;
    }

    .hamburger { display: flex; }

    .hero { padding: 72px 0 88px; }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1rem; margin: 0 auto 28px; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }

    .hero-visual {
        max-width: 420px;
        margin: 0 auto;
    }

    .code-body { font-size: 0.72rem; padding: 16px; }

    .section-title { font-size: 1.8rem; }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .servicos-grid,
    .portfolio-grid,
    .depoimentos-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-featured {
        grid-template-columns: 1fr;
    }

    .portfolio-featured .portfolio-image {
        min-height: 220px;
    }

    .portfolio-info {
        padding: 24px;
    }

    .nav-actions .btn-nav {
        display: none;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .processo-timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contato-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contato-form-section,
    .info-card { padding: 28px; }

    .sobre, .servicos, .portfolio,
    .contato, .depoimentos, .faq,
    .tecnologias, .processo {
        padding: 64px 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .tech-tab {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .tech-logo-item {
        padding: 18px 14px;
        min-width: 85px;
    }

    .tech-logo-item i { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero { padding: 56px 0 72px; }

    .section-title { font-size: 1.5rem; }

    .sobre-stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 20px; }
    .stat h3 { font-size: 1.8rem; }

    .servico-card { padding: 24px; }
    .depoimento-card { padding: 24px; }
    .processo-step { padding: 24px 20px; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

/* ===== Acessibilidade: respeitar quem prefere menos movimento ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    /* Garante que elementos com reveal apareçam mesmo sem animação */
    .reveal { opacity: 1 !important; transform: none !important; }

    /* Esconde camadas puramente decorativas que dependem de movimento */
    .particles-container,
    .grid-canvas,
    .typing-cursor { display: none !important; }
}
