:root {
    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --header-height: 75px;
    --logo-color: #3b73ed;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ========================================================
   HEADER & TOPBAR (.site-header-root)
======================================================== */
.site-header-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header__glass-underlay {
    position: absolute;
    inset: 0;
    background-color: rgba(22, 24, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
}

.header-container {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1360px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

/* Zona 1: Logo */
.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 400px;
}

.site-logo,
.logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--logo-color);
    text-decoration: none;
    white-space: nowrap;
    max-width: 400px;
    width: auto;
    transition: color 0.3s ease;
}

.site-logo .symbol,
.logo .symbol {
    width: 43px;
    height: 43px;
    position: relative;
    border-bottom: 9px solid var(--logo-color);
    box-sizing: border-box;
    flex-shrink: 0;
    transition: border-bottom-color 0.3s ease;
}

.site-logo .symbol::before,
.site-logo .symbol::after,
.logo .symbol::before,
.logo .symbol::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 43px;
    background: var(--logo-color);
    transform: skewX(-25deg);
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.site-logo .symbol::before,
.logo .symbol::before {
    left: 7px;
}

.site-logo .symbol::after,
.logo .symbol::after {
    right: 7px;
}

.site-logo .name,
.logo .name {
    font-family: "Roboto Mono", monospace;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--logo-color);
    transition: color 0.3s ease;
}

/* Zona 2: Menu */
.header-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    font-family: Inter, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    line-height: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.nav-link:hover,
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.chevron-indicator {
    font-size: 11px;
    color: #3b82f6;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .chevron-indicator,
.nav-item:focus-within .chevron-indicator {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s;
    background: rgba(22, 24, 30, 0.96);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 24px 28px;
    z-index: 100;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-item:hover .dropdown-content,
.nav-item:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: flex;
    gap: 32px;
    min-width: 580px;
}

.mega-column {
    flex: 1;
    min-width: 170px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.column-header .col-icon {
    color: #3b82f6;
    font-size: 13px;
}

.column-header h4 {
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subcategories a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 400;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.subcategories a:hover {
    color: #ffffff;
    background-color: rgba(59, 130, 246, 0.16);
    transform: translateX(3px);
}

/* Zona 3: Ações */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: auto;
    gap: 16px;
}

.btn-header {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
    border-radius: var(--radius-md);
    background: #2563eb;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: background 0.3s;
}

.btn-header:hover {
    background: #1d4ed8;
}

.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Mobile Header Media Query */
@media (max-width: 1040px) {
    .header-menu {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(22, 24, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 20px 24px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    .header-menu.is-active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        border: none;
        color: #e2e8f0;
        font-size: 15px;
        font-family: Inter, sans-serif;
    }

    .dropdown-content {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: none;
        padding: 14px;
        margin-top: 6px;
        border-radius: var(--radius-lg);
        display: none;
    }

    .nav-item.is-expanded .dropdown-content {
        display: block;
    }

    .nav-item.is-expanded .chevron-indicator {
        transform: rotate(180deg);
    }

    .mega-menu-grid {
        flex-direction: column;
        min-width: 0;
        gap: 16px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-header {
        display: none;
    }
}

/* ========================================================
   TEMPLATE LAYOUT (CORPO PADRÃO)
======================================================== */
.template-main {
    flex: 1;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 90px;
    background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
                linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.template-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.template-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.template-breadcrumb a {
    color: #60a5fa;
    transition: color 0.2s;
}

.template-breadcrumb a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.template-breadcrumb .sep {
    font-size: 11px;
    color: #475569;
}

.template-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.template-title {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.template-subtitle {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 820px;
    margin-bottom: 36px;
}

/* Card Informativo: Em Desenvolvimento */
.dev-status-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px dashed rgba(245, 158, 11, 0.5);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 840px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.dev-status-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dev-status-content h3 {
    color: #fbbf24;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-status-content p {
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
}

/* Lista de Funcionalidades / Destaques */
.template-section-block {
    margin-bottom: 40px;
    max-width: 840px;
}

.template-section-block h2 {
    font-size: 20px;
    color: #f1f5f9;
    margin-bottom: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
}

.features-grid li {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    color: #e2e8f0;
    font-size: 14.5px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.features-grid li:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.features-grid li i {
    color: #3b82f6;
    margin-top: 3px;
    font-size: 16px;
    flex-shrink: 0;
}

/* CTAs e Botões de Ação */
.template-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .template-title {
        font-size: 32px;
    }
    .template-subtitle {
        font-size: 16px;
    }
    .dev-status-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .template-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary, .btn-secondary {
        justify-content: center;
    }
}

/* ========================================================
   SETA CIRCULAR (mesma dos cards de soluções)
======================================================== */
.circle-arrow {
    background: #ffffff;
    color: #111827;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.circle-arrow svg {
    width: 14px;
    height: 14px;
}

.circle-arrow--sm {
    width: 34px;
    height: 34px;
}

.circle-arrow--sm svg {
    width: 11px;
    height: 11px;
}

/* ========================================================
   FOOTER (.site-footer)
   Grade simples de 4 colunas, sem moldura; o header fixo já
   traz logo e CTA, então o rodapé fica só com links e contato.
======================================================== */
.site-footer {
    position: relative;
    margin-top: auto;
    background: #080c14;
    color: #94a3b8;
    padding: 64px 0 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -220px;
    left: -160px;
    width: 620px;
    height: 520px;
    background: radial-gradient(closest-side, rgba(59, 115, 237, 0.16), rgba(59, 115, 237, 0));
    pointer-events: none;
}

.site-footer .container {
    position: relative;
}

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

/* Cabeçalho da coluna (mesmo padrão do mega-menu) */
.footer-col .column-header {
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 -10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.footer-links a i {
    color: #3b82f6;
    font-size: 13px;
    width: 14px;
    margin-top: 4px;
    text-align: center;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: #ffffff;
    background-color: rgba(59, 130, 246, 0.16);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #64748b;
}

.footer-bottom__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.footer-bottom__meta span + span::before {
    content: "•";
    margin-right: 18px;
    color: #334155;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.back-to-top .circle-arrow svg {
    transform: rotate(-90deg);
}

.back-to-top:hover {
    color: #ffffff;
}

.back-to-top:hover .circle-arrow {
    transform: translateY(-2px);
}

@media (max-width: 1040px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding-top: 56px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom__meta span + span::before {
        display: none;
    }
}
