/* Shared layout; independent tools use the tokens without the page shell. */
.site-page { background-color: transparent; }
.site-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../img/background.webp') center 38% / cover no-repeat;
}
.content-wrapper { width: 100%; }
.site-panel { background: var(--site-panel); }
.boxed-layout { max-width: 1280px; margin: 0 auto; min-height: 100vh; overflow-x: clip; }
.desktop-nav { display: none; }
.mobile-only { display: inline-flex; }
.mobile-panel { display: block; }
.mobile-panel.hidden { display: none; }
@media (min-width: 985px) {
    .desktop-nav { display: flex; }
    .mobile-only, .mobile-panel { display: none; }
}

/* Shared visual language: graphite surfaces, quiet borders and a technical blue accent. */
:root {
    color-scheme: dark;
    --site-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --site-text: #f7f9fb;
    --site-highlight: #a9c9e4;
    --site-action: #d9edff;
    --site-on-action: #111b25;
    --site-ink: #10151b;
    --site-panel: #171e26;
    --site-line: rgba(203, 213, 225, .14);
    --site-muted: #c2cbd5;
    --site-accent: #72b7f2;
    --site-accent-strong: #9bcfff;
}

html { scroll-behavior: smooth; }

.site-page {
    font-family: var(--site-font);
    color: #f4f7fa;
    font-size: 16px;
    line-height: 1.65;
}

.content-wrapper {
    background: linear-gradient(180deg, rgba(12, 17, 23, .90), rgba(13, 18, 24, .96));
}

.boxed-layout {
    box-shadow: 0 24px 90px rgba(0, 0, 0, .48);
}

nav.fixed {
    background: rgba(13, 18, 24, .94);
    border-color: var(--site-line);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}

nav.fixed > div:first-child {
    padding: 12px 20px 4px;
}

nav.fixed > div:first-child img {
    height: 42px;
    opacity: .92;
}

nav.fixed .desktop-nav a {
    border-color: transparent;
    border-radius: 8px;
    color: #d3dbe4;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

nav.fixed .desktop-nav a:hover,
nav.fixed .desktop-nav a:focus-visible {
    color: #fff;
    background: rgba(114, 183, 242, .10);
    border-color: rgba(114, 183, 242, .22);
}

/* Components shared by all marketing pages; the reference hero has its own scale. */
.site-main {
    max-width: 1280px;
    margin-inline: auto;
    padding: 72px 32px 80px;
}

.site-main > div { min-width: 0; }
.site-main .grid > *, #contato .grid > * { min-width: 0; }

.site-title, .site-heading, .site-subheading {
    color: var(--site-text);
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.site-title { font-size: clamp(2.25rem, 4.8vw, 3.8rem); letter-spacing: -.055em; line-height: 1.08; }
.site-heading { font-size: clamp(1.65rem, 3.2vw, 2.65rem); letter-spacing: -.04em; line-height: 1.2; }
.site-card .site-heading { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.site-subheading { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.025em; line-height: 1.4; }
.site-accent { color: var(--site-highlight); }
.site-copy { color: var(--site-muted); }
.site-main p, .site-main ul { color: var(--site-muted); }
.site-lead { color: var(--site-muted); font-weight: 400; letter-spacing: 0; line-height: 1.8; font-size: 1.08rem; }
.site-rule { width: 48px; height: 2px; background: var(--site-accent); }

.site-card, .site-media {
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: var(--site-panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.site-card--logo { background: #fff; }
.site-card img { max-width: 100%; }
.site-media { overflow: hidden; }
.site-media iframe { display: block; width: 100%; height: 100%; }
.site-service-image { max-width: 100%; height: auto; border: 1px solid var(--site-line); border-radius: 14px; }
.site-transition, a.site-card {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a.site-card:hover, a.site-card:focus-visible { border-color: var(--site-accent); }
a:hover > .site-card, a:focus-visible > .site-card { border-color: var(--site-accent); }
.site-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(114, 183, 242, .22);
    border-radius: 8px;
    background: rgba(114, 183, 242, .10);
    color: var(--site-accent-strong);
}

.site-icon svg { width: 24px; height: 24px; }
.site-icon--image { background: var(--site-action); }
svg.site-accent { width: 22px; height: 22px; }
.site-button {
    min-height: 50px;
    max-width: 100%;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--site-action);
    color: var(--site-on-action);
    font-weight: 700;
    font-size: .94rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.site-button:hover { background: #fff; }
.site-button--secondary { background: rgba(114, 183, 242, .10); border-color: rgba(114, 183, 242, .34); color: var(--site-action); }
.site-button--secondary:hover { background: rgba(114, 183, 242, .18); }
.site-button svg { width: 18px; height: 18px; }
.site-badge { padding: 3px 9px; border-radius: 6px; color: var(--site-accent-strong); background: rgba(114, 183, 242, .1); border: 1px solid rgba(114, 183, 242, .2); }
.site-play { background: var(--site-action); color: var(--site-on-action); border-radius: 50%; transition: background-color .2s ease; }
.site-play:hover { background: #fff; }
.site-connection-frame { position: relative; height: clamp(420px, 60vw, 680px); overflow: hidden; border: 1px solid var(--site-line); border-radius: 14px; background: var(--site-panel); }
#mobile-menu { color: var(--site-text); }
#mobile-menu-button { min-width: 44px; min-height: 44px; }
#mobile-menu nav > a { min-height: 44px; }
#mobile-menu svg, .site-navigation svg { color: var(--site-muted); }
footer#footer-placeholder svg { width: 20px; height: 20px; }
footer#footer-placeholder a[aria-label] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--site-muted); }
footer#footer-placeholder a:hover { color: var(--site-accent-strong); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    a.site-card:hover, .site-button:hover { transform: translateY(-2px); }
}

@media (max-width: 984px) {
    .site-main { padding-top: 32px; }
}

/* The desktop navigation wraps onto two rows at intermediate widths. */
@media (min-width: 985px) and (max-width: 1199px) {
    .site-main { padding-top: 108px; }
}

@media (max-width: 600px) {
    .site-main { padding: 24px 16px 52px; }
    .site-title { font-size: clamp(2rem, 9vw, 2.7rem); }
    .site-button { width: 100%; }
    .site-lead { font-size: 1rem; }
    .site-main .text-justify { text-align: left; }
    #contato .site-media { height: 340px; }
}

.home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
    align-items: center;
    gap: clamp(32px, 6vw, 84px);
    max-width: 1240px;
    min-height: 660px;
    margin: 0 auto;
    padding-top: 72px;
    padding-bottom: 88px;
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 80px -20px 25px 28%;
    border: 1px solid rgba(114, 183, 242, .08);
    background: radial-gradient(ellipse at 80% 35%, rgba(41, 93, 138, .12), transparent 58%);
    content: "";
    pointer-events: none;
}

.home-hero__content { max-width: 600px; }

.home-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 24px;
    color: var(--site-accent-strong);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-hero__eyebrow span,
.home-hero__status span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--site-accent);
    box-shadow: 0 0 16px rgba(114, 183, 242, .6);
}

.home-hero h1 {
    max-width: 660px;
    margin: 0 0 24px;
    color: #f7f9fb;
    font-size: clamp(2.8rem, 5.2vw, 4.65rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.home-hero h1 span {
    display: block;
    color: #a9c9e4;
}

.home-hero__summary {
    max-width: 540px;
    margin: 0 0 30px;
    color: var(--site-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.home-hero__primary,
.home-hero__secondary {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.home-hero__primary {
    padding: 0 20px;
    background: #d9edff;
    color: #111b25;
}

.home-hero__primary:hover { background: #fff; transform: translateY(-2px); }
.home-hero__primary svg, .home-hero__secondary svg { width: 18px; height: 18px; }

.home-hero__secondary {
    min-height: 44px;
    color: #e0e8f0;
}

.home-hero__secondary:hover { color: var(--site-accent-strong); }

.home-hero__visual {
    position: relative;
    min-height: 420px;
    border: 1px solid rgba(213, 228, 241, .2);
    border-radius: 14px;
    background: #151c23;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

.home-hero__image {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: linear-gradient(180deg, rgba(10, 15, 21, .02) 34%, rgba(10, 15, 21, .92) 100%), url('../img/datacenter.webp');
    background-position: center 43%;
    background-size: cover;
}

.home-hero__image-label {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    display: grid;
    gap: 9px;
}

.home-hero__image-label span {
    color: var(--site-accent-strong);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .17em;
}

.home-hero__image-label strong {
    max-width: 340px;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.25;
}

.home-hero__status {
    position: absolute;
    top: 22px;
    left: -22px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% + 16px);
    padding: 12px 15px;
    border: 1px solid rgba(213, 228, 241, .17);
    border-radius: 8px;
    background: rgba(17, 24, 32, .94);
    color: #e8eef4;
    font-size: .78rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

main section { scroll-margin-top: 120px; }

footer#footer-placeholder { background: #0d1218; }

:focus-visible {
    outline: 2px solid var(--site-accent-strong);
    outline-offset: 3px;
}

@media (max-width: 984px) {
    .home-hero {
        grid-template-columns: 1fr;
        max-width: 760px;
        min-height: 0;
        gap: 44px;
        padding-top: 42px;
        padding-bottom: 70px;
    }

    .home-hero::before { inset: 110px -12px 10px 12%; }
    .home-hero__content { max-width: 680px; }
    .home-hero__visual { min-height: 360px; }
    .home-hero__status { left: 16px; }
}

@media (max-width: 600px) {
    nav.fixed > div:first-child { padding: 10px 16px 2px; }
    nav.fixed > div:first-child img { height: 34px; }
    .home-hero { gap: 34px; padding-top: 32px; padding-bottom: 52px; }
    .home-hero__eyebrow { align-items: flex-start; font-size: .66rem; letter-spacing: .1em; }
    .home-hero h1 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
    .home-hero__summary { font-size: 1rem; }
    .home-hero__actions { align-items: stretch; flex-direction: column; gap: 8px; }
    .home-hero__primary, .home-hero__secondary { width: 100%; }
    .home-hero__visual { min-height: 300px; }
    .home-hero__image-label { right: 20px; bottom: 20px; left: 20px; }
}



/* Portfolio page follows the site's restrained graphite and technical-blue palette. */
.portfolio-main {
    max-width: 1280px;
    margin-inline: auto;
}

.portfolio-title {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 18px;
    color: #f7f9fb;
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.portfolio-title::after {
    position: absolute;
    right: 35%;
    bottom: 0;
    left: 35%;
    height: 2px;
    border-radius: 2px;
    background: var(--site-accent);
    content: "";
}

.portfolio-project { margin-top: clamp(34px, 5vw, 56px); }

.portfolio-card {
    border-color: var(--site-line);
    border-radius: 14px;
    background: rgba(20, 28, 37, .94);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
}

.portfolio-overview img {
    min-height: 56px;
    padding: 9px 12px;
    border: 1px solid rgba(203, 213, 225, .12);
    border-radius: 9px;
    background: #f8fafc;
}

.portfolio-overview h2,
.portfolio-system h3 { color: #f2f6fa; letter-spacing: -.025em; }

.portfolio-overview ul,
.portfolio-system p { color: var(--site-muted); }

.portfolio-gallery img,
.portfolio-system img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 250px;
    border: 1px solid rgba(203, 213, 225, .12);
    border-radius: 11px;
    background: #0e141b;
    object-fit: contain;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .portfolio-gallery img,
    .portfolio-system img {
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .portfolio-gallery img:hover,
    .portfolio-system img:hover {
        transform: translateY(-2px);
        border-color: rgba(114, 183, 242, .58);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 0 18px rgba(114, 183, 242, .12);
    }
}

.portfolio-system > div { border-color: var(--site-line); }
.portfolio-system ul { color: #aebdca; }

.portfolio-link {
    min-height: 46px;
    padding-inline: 16px;
    border-color: rgba(114, 183, 242, .34);
    background: rgba(114, 183, 242, .10);
    color: #d9edff;
    text-decoration: none;
}

.portfolio-link:hover,
.portfolio-link:focus-visible {
    border-color: var(--site-accent);
    background: rgba(114, 183, 242, .18);
    color: #fff;
}

@media (max-width: 600px) {
    .portfolio-main { padding-top: 24px; }
    .portfolio-title { padding-bottom: 15px; }
    .portfolio-project { margin-top: 30px; }
    .portfolio-overview { padding: 22px 20px; }
    .portfolio-gallery { padding-inline: 20px; }
    .portfolio-gallery img,
    .portfolio-system img { min-height: 190px; }
    .portfolio-system { padding-inline: 20px; }
    .portfolio-link { width: 100%; justify-content: center; }
}

.site-breadcrumb {
    width: min(100%, 1240px);
    margin: 0 auto 24px;
    color: var(--site-muted);
    font-size: .875rem;
}

#servicos-titulo { scroll-margin-top: 140px; }

.site-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-breadcrumb a {
    color: var(--site-accent-strong);
    text-decoration: none;
    transition: color .2s ease;
}

.site-breadcrumb a:hover,
.site-breadcrumb a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-breadcrumb__separator {
    color: #8291a0;
    user-select: none;
}

.site-breadcrumb [aria-current="page"] {
    color: #f4f7fa;
}

@media (max-width: 600px) {
    .site-breadcrumb {
        margin-bottom: 18px;
        font-size: .8125rem;
    }

    .site-breadcrumb ol { gap: 6px; }
}

@media (max-width: 984px) {
    .site-breadcrumb { margin-top: 0; }
}

@media (min-width: 985px) and (max-width: 1199px) {
    .home-hero { padding-top: 108px; }
}

.site-navigation .group:focus-within > div { visibility: visible; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .site-button:hover, a.site-card:hover, .portfolio-gallery img:hover,
    .portfolio-system img:hover, .home-hero__primary:hover { transform: none; }
}
