/* Codex Studio — acabamento visual e responsivo compartilhado */
/* Content columns stay readable on wide monitors without changing hero art. */
main > section.section { max-width:1440px; margin-inline:auto; padding-inline:clamp(20px,4vw,64px); }
.contato-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.contato-card { min-width:0; align-items:flex-start; gap:24px; }
.contato-card > .contato-icon { flex:0 0 48px; width:48px; height:48px; }
.contato-card > div:not(.contato-icon) { flex:1; min-width:0; }
.contato-card :is(strong,p,a) { overflow-wrap:anywhere; }
.contato-card .back-link { margin-top:16px; min-height:44px; letter-spacing:.06em; }
@media(max-width:720px){.contato-grid{grid-template-columns:1fr}.contato-card{gap:18px}}
.studio-tour-start { display:inline-flex; align-items:center; justify-content:center; width:fit-content; min-height:46px; margin-top:18px; padding:12px 18px; border:1px solid #56565f; border-radius:8px; background:#17171b; color:#f4f4f5; font:600 13px/1.4 Inter,Arial,sans-serif; cursor:pointer; }
.hero-buttons .studio-tour-start { margin-top:0; }
.studio-tour { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:#09090b; color:#fff; }
.studio-tour[open] { display:grid; grid-template-rows:auto minmax(0,1fr) 4px; }
.studio-tour::backdrop { background:#09090b; }
.studio-tour header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 24px; }
.studio-tour header > div { min-width:0; }
.studio-tour small { display:block; margin-bottom:5px; color:#aaaab5; font-size:10px; letter-spacing:2px; }
.studio-tour strong { font-size:16px; overflow-wrap:anywhere; }
.studio-tour nav { display:flex; gap:8px; flex-wrap:wrap; }
.studio-tour button { min-height:44px; min-width:44px; padding:8px 13px; border:1px solid #44444d; border-radius:8px; background:#1c1c21; color:#fff; cursor:pointer; }
.studio-tour-stage { position:relative; min-height:0; }
.studio-tour iframe { width:100%; height:100%; border:0; }
.studio-tour-loading { display:none; position:absolute; inset:0; margin:0; background:#09090b; place-content:center; color:#c5c5cf; }
.studio-tour.loading .studio-tour-loading { display:grid; }
.studio-tour-progress { background:#29292e; }
.studio-tour-progress i { display:block; width:0; height:100%; background:#fff; }
body:has(.studio-tour[open]) { overflow:hidden; }
.hero-buttons { flex-wrap:wrap; gap:14px; }
.section-heading { max-width:1000px; }
.section-heading p, .page-header > p { max-width:65ch; }
.section-heading h2 { line-height:1.04; }
.service-card h3, .feature-item h3 { line-height:1.2; }
.service-card p, .feature-item p { margin-top:12px; }
.footer-bottom { line-height:1.7; }
@media(max-width:600px){
    .studio-tour header { align-items:flex-start; flex-direction:column; padding:12px; gap:12px; }
    .studio-tour nav { width:100%; }
    .studio-tour button { flex:1; padding:8px; font-size:12px; }
    .hero-buttons { align-items:stretch; }
    .hero-buttons > * { width:100%; }
}
:root {
    --codex-surface: #0c0c0d;
    --codex-surface-raised: #121214;
    --codex-border: rgba(255, 255, 255, 0.11);
    --codex-border-strong: rgba(255, 255, 255, 0.22);
    --codex-muted: #a1a1aa;
    --codex-radius: 18px;
    --codex-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --codex-text: #f4f4f5;
    --codex-text-soft: #b6b6c0;
    --codex-text-muted: #94949f;
    --text-secondary: #aaaab4;
    --text-muted: #9595a1;
}

[hidden] { display: none !important; }
#scrollProgress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: #fff; z-index: 10001; pointer-events: none; }
.codex-floating-dock { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.codex-floating-dock .whatsapp-float,
.codex-floating-dock .back-to-top,
.codex-floating-dock .codex-social-float { position: static !important; margin: 0 !important; width: 46px !important; height: 46px !important; min-height: 46px; display: grid; place-items: center; border-radius: 50%; }
.codex-floating-dock .back-to-top:not(.visible) { display: none; }
.codex-social-float { color: #fff; background: #18181b; border: 1px solid rgba(255,255,255,.22); box-shadow:0 8px 24px rgba(0,0,0,.32); }
.codex-social-float svg {width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.codex-social-float svg .fill,.codex-social-facebook svg {fill:currentColor;stroke:none}
.codex-social-instagram:hover {background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);border-color:transparent}
.codex-social-facebook:hover {background:#1877f2;border-color:#1877f2}
.codex-scroll-down {position:relative;z-index:2;display:block;width:fit-content;margin:24px 0 0;padding:10px 0;border:0;border-bottom:1px solid var(--border-color,#555);background:transparent;color:var(--text-secondary,#bbb);font:inherit;font-size:12px;cursor:pointer}
main > section {scroll-margin-top:90px}
.stats-band {gap:16px!important;border:0!important;background:transparent!important;grid-template-columns:repeat(4,minmax(0,1fr))}
.stats-band .stat-box {padding:32px 20px!important;border:1px solid #292929;border-radius:12px;background:linear-gradient(145deg,#151515,#0b0b0b)!important;text-align:left;min-width:0}
.stats-band .stat-box strong {font-size:clamp(30px,3.8vw,48px);font-weight:700;letter-spacing:-1.5px;margin-bottom:16px}
.stats-band .stat-box span {color:#aaa;font-size:10px;letter-spacing:1.4px;line-height:1.6;display:block}
@media(max-width:720px){.stats-band{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}.stats-band .stat-box{padding:24px 16px!important}}
.services-grid { gap: 18px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.service-card { border: 1px solid #333 !important; border-radius: 16px; }
.contato-grid { align-items: stretch; }
.contato-card { height: 100%; border-radius: 16px; }
@media (max-width: 480px) {
    .contato-card { flex-direction: column; align-items: flex-start; }
    .contato-card strong { font-size: 16px; }
}
.footer-content > * { min-width: 0; }
.footer-contato a { overflow-wrap: anywhere; }
.footer-brand { align-content: start; }
.footer-brand p { margin-top: 0; }
.footer-bottom { color: #92929b; padding-right: 90px; text-align: left; }
@media (max-width: 600px) { .footer-bottom { padding-bottom: 88px; } .resource-hero > * { min-width: 0; overflow-wrap: anywhere; } }

html {
    color-scheme: dark;
    scroll-padding-top: 92px;
}

body {
    min-width: 280px;
    color: var(--codex-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Layout fluido e alvos de toque nas páginas públicas. */
main, section, article, .footer-content > *, .navbar > * { min-width: 0; }
img, video { max-width: 100%; }
.mobile-menu { overflow-y: auto; max-height: 100dvh; overscroll-behavior: contain; }
.footer-links a, .footer-contato a { overflow-wrap: anywhere; }
@media (max-width: 768px) {
    input, select, textarea { font-size: 16px !important; }
    .button, .menu-toggle, .footer-social a { min-height: 44px; }
    .footer-links a, .footer-contato a { display: inline-flex; align-items: center; min-height: 40px; }
    .hero h1, .page-header h1 { font-size: clamp(38px, 10vw, 76px); letter-spacing: -.055em; }
    .footer-bottom.codex-footer-bottom-enhanced { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .codex-footer-bottom-enhanced > * { justify-self: center !important; text-align: center !important; }
    .codex-footer-release { flex-wrap: wrap; justify-content: center; }
}
@media (hover: none) {
    .project:hover, .service-card:hover, .feature-item:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

h1,
h2,
h3,
h4 {
    color: var(--codex-text);
    text-wrap: balance;
}

:where(.hero p, .page-header p, .section-heading p, .service-card p, .feature-item p, .processo-item p, .depoimento-card p, .contato-card p, .resource-hero p, .codex-custom-article p) {
    color: var(--codex-text-soft);
    line-height: 1.72;
}

:where(.section-tag, .page-tag, .hero-tag, .codex-model-category, .project-number) {
    font-weight: 700;
    letter-spacing: .16em;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.navbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.93), rgba(5, 5, 5, 0.76));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

@media (max-width: 1120px) and (min-width: 769px) {
    .navbar { padding-right: 3vw; padding-left: 3vw; }
    .navbar nav { gap: 18px; }
    .navbar nav a { font-size: 9px; letter-spacing: 1px; }
    .navbar .button.small { padding-right: 18px; padding-left: 18px; }
}

.logo .codex-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
}

.footer-brand .codex-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.navbar.scrolled {
    border-bottom-color: var(--codex-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

.navbar nav a {
    position: relative;
    transition: color 180ms ease, opacity 180ms ease;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.navbar nav a:hover::after {
    transform: scaleX(1);
}

.navbar nav a.active,
.navbar nav a[aria-current="page"] {
    color: #fff;
    font-weight: 700;
}

.navbar nav a.active::after,
.navbar nav a[aria-current="page"]::after {
    height: 2px;
    background: #fff;
    transform: scaleX(1);
}

.mobile-menu nav a.active,
.mobile-menu nav a[aria-current="page"] {
    color: #fff;
}

.mobile-menu nav a.active::before,
.mobile-menu nav a[aria-current="page"]::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 14px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #fff;
}

/* Superfícies claras precisam de uma paleta própria. */
.cta {
    color: #111114;
    background:
        radial-gradient(circle at 50% 0%, rgba(0,0,0,.055), transparent 38%),
        linear-gradient(145deg, #f8f8f6, #e9e9e6);
    border-top: 1px solid #d8d8d5;
    border-bottom: 1px solid #d8d8d5;
}

.cta > span {
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid #c9c9c6;
    border-radius: 999px;
    color: #55555d;
    background: rgba(255,255,255,.48);
    font-weight: 700;
}

.cta h2,
.cta h2 span,
.cta h2 strong {
    color: #111114;
}

.cta h2 span {
    color: #303035;
}

.cta .dark-button:hover {
    color: #0a0a0b;
    background: transparent;
}

.resource-section.alt,
.resource-section.alt h1,
.resource-section.alt h2,
.resource-section.alt h3,
.resource-section.alt h4,
.resource-section.alt .resource-card h3 {
    color: #111114;
}

.resource-section.alt .resource-heading span {
    color: #5f5f67;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: transform 180ms ease, background-color 180ms ease,
        color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

.services-grid,
.features-grid,
.portfolio-grid,
.processo-grid,
.depoimentos-grid {
    align-items: stretch;
}

.service-card,
.feature-item,
.processo-item,
.depoimento-card,
.stat-box {
    height: 100%;
    border-color: var(--codex-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 58%);
    transition: transform 220ms ease, border-color 220ms ease,
        background-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.feature-item:hover,
.processo-item:hover,
.depoimento-card:hover {
    transform: translateY(-5px);
    border-color: var(--codex-border-strong);
    box-shadow: var(--codex-shadow);
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card > p {
    flex: 1;
}

.project,
.codex-real-project-card {
    isolation: isolate;
    border: 1px solid var(--codex-border) !important;
    border-radius: var(--codex-radius) !important;
    background: var(--codex-surface) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
    transform: translateZ(0);
}

.project-preview,
.codex-real-project-preview {
    background: #f4f4f5;
}

.project iframe,
.codex-real-project-card iframe {
    pointer-events: none;
}

footer {
    border-top: 1px solid var(--codex-border);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.045), transparent 34%),
        #050505;
}

.footer-content {
    align-items: start;
}

.footer-content.codex-footer-enhanced {
    grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(130px, 0.8fr));
    gap: clamp(36px, 4vw, 76px);
}

.codex-footer-resources {
    min-width: 0;
}

.footer-links a,
.footer-contato a {
    width: fit-content;
    color: var(--codex-muted);
}

.footer-links a:hover,
.footer-contato a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-social a {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--codex-border);
    border-radius: 50%;
}

.footer-bottom.codex-footer-bottom-enhanced,
.codex-budget-footer-bottom.codex-footer-bottom-enhanced {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.codex-footer-bottom-enhanced > :first-child { justify-self: start; }
.codex-footer-bottom-enhanced > :last-child { justify-self: end; text-align: right; }
.codex-footer-bottom-enhanced > .codex-footer-release { justify-self: center; }

.codex-footer-legal {
    display: contents;
}

.codex-footer-release {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom > .version-badge,
.codex-budget-footer-bottom > .version-badge {
    display: none !important;
}

.codex-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 0;
    color: #dedee3;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: default;
}

.codex-version-channel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888891;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.codex-version-channel::after {
    content: "";
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,.18);
}

.codex-version-badge strong {
    color: #f4f4f5;
    font: 650 11px/1.2 "Inter", sans-serif;
    letter-spacing: .08em;
}

.codex-version-badge i {
    display: none;
}

.codex-version-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a1a1aa;
    font-size: 11px;
    letter-spacing: .5px;
}

.codex-version-status b {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: none;
}

@media (max-width: 600px) {
    .footer-bottom.codex-footer-bottom-enhanced,
    .codex-budget-footer-bottom.codex-footer-bottom-enhanced {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        padding-right: 6vw;
        padding-left: 6vw;
        text-align: center;
    }
    .codex-footer-bottom-enhanced > :first-child,
    .codex-footer-bottom-enhanced > :last-child,
    .codex-footer-bottom-enhanced > .codex-footer-release { justify-self: center; text-align: center; }
    .codex-footer-release { justify-content: center; flex-wrap: wrap; }
}

.codex-custom-article { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0; }
.codex-custom-article p { margin: 0 0 24px; color: #b2b2ba; font-size: clamp(16px, 2vw, 19px); line-height: 1.85; }
.codex-unavailable-page { min-height: 75svh; padding: 170px 7vw 90px; display: grid; place-content: center; text-align: center; }
.codex-unavailable-page span { color: #777; font: 700 12px/1 monospace; letter-spacing: 3px; }
.codex-unavailable-page h1 { margin: 18px 0; font-size: clamp(42px, 7vw, 80px); }
.codex-unavailable-page p { color: #999; }
.codex-unavailable-page a { width: fit-content; margin: 28px auto 0; padding-bottom: 5px; border-bottom: 1px solid #777; }
.codex-model-reference { margin: 0 0 26px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.02)); }
.codex-model-reference span { color:#92929b; font-size:8px; font-weight:800; letter-spacing:1.6px; }
.codex-model-reference strong { grid-row:2; font-size:clamp(20px,3vw,30px); }
.codex-model-reference p { grid-column:1; margin:3px 0 0; max-width:700px; color:#aaaab2; line-height:1.65; }
.codex-model-reference a { grid-column:2; grid-row:1/4; align-self:center; padding-bottom:4px; border-bottom:1px solid #777; color:#bbb; font-size:10px; }
@media(max-width:600px){.codex-model-reference{grid-template-columns:1fr}.codex-model-reference a{grid-column:1;grid-row:auto;justify-self:start;margin-top:8px}}

@media (max-width: 1024px) {
    .footer-content.codex-footer-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .footer-content.codex-footer-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .footer-content.codex-footer-enhanced {
        gap: 30px 22px;
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .footer-content.codex-footer-enhanced > .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-links a,
    .footer-contato a {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .footer-content.codex-footer-enhanced { grid-template-columns: minmax(0, 1fr); }
    .footer-content.codex-footer-enhanced > .footer-brand { grid-column: auto; }
    .footer-contato a { max-width: 100%; }
}

@media (max-width: 900px) {
    .navbar {
        padding-right: clamp(18px, 5vw, 40px);
        padding-left: clamp(18px, 5vw, 40px);
    }

    .section,
    .page-header {
        padding-right: clamp(20px, 6vw, 52px);
        padding-left: clamp(20px, 6vw, 52px);
    }

    .mobile-menu {
        padding: 112px clamp(24px, 8vw, 54px) 32px;
        background:
            radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.07), transparent 34%),
            #050506;
    }

    .mobile-menu nav a {
        min-height: 54px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--codex-border);
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 100svh;
        padding-right: 24px;
        padding-left: 24px;
    }

    .hero h1,
    .page-header h1,
    .section-heading h2 {
        overflow-wrap: anywhere;
    }

    .section-heading h2 {
        font-size: clamp(34px, 12vw, 54px);
        line-height: 0.96;
        letter-spacing: -2px;
    }

    .contato-grid,
    .contato-card,
    .contato-card > div {
        min-width: 0;
        max-width: 100%;
    }

    .contato-card strong,
    .contato-card p,
    .contato-card a {
        overflow-wrap: anywhere;
    }

    .section {
        padding-top: 84px;
        padding-bottom: 84px;
    }

    .cta {
        padding: 96px 22px;
    }

    .cta h2 {
        margin-bottom: 34px;
        font-size: clamp(38px, 12vw, 58px);
        line-height: .96;
        letter-spacing: -.055em;
    }

    :where(.hero p, .page-header p, .section-heading p, .service-card p, .feature-item p, .processo-item p, .depoimento-card p, .contato-card p, .resource-hero p) {
        font-size: max(15px, 1rem);
        line-height: 1.7;
    }

    .services-grid,
    .features-grid,
    .portfolio-grid,
    .processo-grid,
    .depoimentos-grid {
        gap: 14px;
    }

    .service-card,
    .feature-item,
    .processo-item,
    .depoimento-card {
        padding: 26px 22px;
        border-radius: 14px;
    }

    .project,
    .codex-real-project-card {
        border-radius: 14px !important;
    }

    .footer-content {
        gap: 36px;
    }

    .footer-bottom {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .navbar .logo span {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero,
    .section,
    .page-header {
        padding-right: 18px;
        padding-left: 18px;
    }

    .section-heading h2 {
        font-size: clamp(30px, 12vw, 36px);
        letter-spacing: -1.5px;
    }

    .contato-card {
        gap: 12px;
        padding: 22px 16px;
    }

    .contato-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (hover: none) {
    .service-card:hover,
    .feature-item:hover,
    .processo-item:hover,
    .depoimento-card:hover,
    .button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.codex-state-loading body { visibility: hidden; }
.codex-state-loading::before { content: ""; position: fixed; inset: 0; z-index: 2147483647; background: #050505; }
.codex-logo { width: auto; object-fit: contain; }
.codex-partner-action { display: inline-flex; margin-top: 20px; white-space: normal; }
@media (max-width: 620px) {
    .hero { min-height: min(100svh, 950px); padding: 124px 20px 76px; }
    .hero-content { width: 100%; }
    .hero-description { margin: 30px 0; }
}
