

/* =====================================================
   Mont Fort — minimal layer on top of Tailwind
   Style: thin type, stacked tiles, hairline dividers.
   ===================================================== */

html { scroll-behavior: smooth; overflow-x: clip; }
body { font-feature-settings: "ss01"; overflow-x: clip; width: 100%; }
main { overflow-x: clip; }

/* Native anchor navigation respects the fixed header (44px + 16px breath) */
main section[id] { scroll-margin-top: 60px; }
#home { scroll-margin-top: 0; }

/* Defensive: nav containers must always pass pointer events through to links */
.header-bar nav,
.header-bar nav ul,
.header-bar nav li,
.header-bar .nav-link {
    pointer-events: auto;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2997ff;
    margin-bottom: 8px;
}
.tile-light .eyebrow { color: #2997ff; }
.tile-dark  .eyebrow { color: #2997ff; }

/* ---------- Tile system (Apple-style stacked sections) ---------- */
.tile-dark,
.tile-light,
.tile-paper {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 56px 20px 0;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tile-dark  { background: #000; color: #fff; }
.tile-light { background: #fafafa; color: #000; }
.tile-paper { background: #ffffff; color: #000; }

.tile-text {
    max-width: 720px;
    margin: 0 auto;
}

.tile-text h1,
.tile-text h2 {
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    font-size: clamp(32px, 6vw, 56px);
    margin-bottom: 6px;
}

.tile-sub {
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 400;
    letter-spacing: -0.022em;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 14px;
}
.tile-light .tile-sub,
.tile-paper .tile-sub { color: rgba(0, 0, 0, 0.65); }

/* ---------- Link CTAs (Apple's signature inline links) ---------- */
.link-row {
    display: inline-flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.link-cta {
    color: #2997ff;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: opacity 0.2s ease;
}
.link-cta:hover { opacity: 0.75; text-decoration: underline; }

/* ---------- Tile imagery ---------- */
.tile-image {
    flex: 1;
    width: 100%;
    margin-top: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.tile-image .img-wrap {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    will-change: transform;
}
.tile-image img {
    max-width: 1200px;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
}

/* ---------- Half tiles (two side-by-side on desktop) ---------- */
.tile-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
    background: #f5f5f7;
}
.tile-half {
    min-height: 540px;
    padding-top: 48px;
}
.tile-half .text-half {
    font-size: clamp(28px, 4vw, 40px);
}
.tile-image-half {
    margin-top: 24px;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.tile-image-half .img-wrap {
    width: 100%;
    max-width: 720px;
    display: flex;
    justify-content: center;
    will-change: transform;
}
.tile-image-half img {
    width: 100%;
    max-width: 720px;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
}

@media (min-width: 768px) {
    .tile-pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- Menu (reset, bulletproof) ---------- */
.nav-link {
    position: relative;
    z-index: 110;
    display: inline-block;
    padding: 8px 4px;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, opacity 0.25s ease, color 0.25s ease;
    opacity: 0.78;
}
.nav-link:hover,
.nav-link.active {
    opacity: 1;
    border-bottom-color: currentColor;
}

/* Mobile menu links */
.mobile-link {
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0.86;
    display: inline-block;
    color: #1d1d1f !important;
}
.mobile-link:hover,
.mobile-link:active {
    opacity: 1;
    transform: translateY(-1px);
}

/* ---------- Mobile menu ---------- */
#mobileNav {
    background: rgba(255, 255, 255, 0.98) !important;
}
#mobileNav.open {
    opacity: 1;
    pointer-events: auto;
}
#hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Reveal on scroll (3D rotation entrance) ---------- */
.reveal {
    opacity: 0;
    transform: perspective(1000px) translateY(28px) rotateX(10deg);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
    transform-origin: center top;
    will-change: transform, opacity;
}
.reveal.in {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(0);
}

/* ---------- Form (Apple-light style) ---------- */
.input {
    width: 100%;
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    letter-spacing: -0.022em;
    transition: background 0.2s, border-color 0.2s;
}
.input::placeholder { color: #86868b; }
.input:focus {
    outline: none;
    background: #fff;
    border-color: #2997ff;
}

.btn-pill {
    background: #2997ff;
    color: #fff;
    border-radius: 980px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
    justify-self: center;
}
.btn-pill:hover { background: #0071e3; }

/* ---------- Lightbox ---------- */
/* A classe Tailwind "grid" sobrescreve o atributo [hidden] — o overlay ficaria
   cobrindo toda a tela (z-200) e bloqueando todos os cliques. pointer-events: none
   garante que o lightbox inativo é completamente transparente a eventos. */
#lightbox              { pointer-events: none; }
#lightbox.active       { pointer-events: auto; opacity: 1; }

/* ---------- Floating header (transparent over hero, opaque on scroll) ---------- */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: auto;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease;
}
.header-bar a,
.header-bar button {
    pointer-events: auto;
}
.header-bar.scrolled {
    background: #ffffff;
    border-bottom-color: rgba(210, 210, 215, 0.5);
    box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.08);
}

/* Brand logo: white over dark hero, black when scrolled */
.header-bar .header-brand img {
    filter: invert(1);
    transition: filter 0.35s ease;
}
.header-bar.scrolled .header-brand img {
    filter: none;
}

/* Nav link colors — white over dark bg, black over light bg */
.header-bar .nav-link,
#siteHeader .nav-link {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: color 0.35s ease, text-shadow 0.35s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.header-bar.scrolled .nav-link,
#siteHeader.scrolled .nav-link {
    color: #1d1d1f !important;
    text-shadow: none;
}

/* Hamburger lines: white over dark, dark when scrolled or menu open */
.header-bar #hamburger span { background: #fff !important; transition: background 0.35s ease; }
.header-bar.scrolled #hamburger span,
#siteHeader.scrolled #hamburger span,
#hamburger.open span { background: #1d1d1f !important; }

/* ---------- ONVOID Hero (dark video reel, logo direct, no card) ---------- */
.hero-onvoid {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000;
    color: #fff;
    margin-top: -44px;
    padding-top: 44px;
    /* Sem borda — a seção about escura continua o hero diretamente */
    border-bottom: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}
.hero-video.active { opacity: 1; }

/* Darker overlay — videos visible but knocked back so logo and text dominate */
.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 75%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.30) 35%, rgba(0, 0, 0, 0.80) 85%, rgba(0, 0, 0, 1) 100%);
}

/* Subtle scanline grain on top of overlay */
.hero-grain {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.014) 0px,
            rgba(255, 255, 255, 0.014) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Overlay de escurecimento progressivo — cobre video + canvas ao rolar */
.hero-darken {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    will-change: opacity;
}

.hero-content {
    position: relative;
    z-index: 3;  /* acima do hero-darken */
    text-align: center;
    padding: 0 24px;
    max-width: 1024px;
    will-change: transform, opacity;
}

/* Logo: white via invert filter, free of any card */
.hero-logo {
    display: block;
    width: clamp(220px, 38vw, 460px);
    height: auto;
    margin: 0 auto 24px;
    filter: invert(1) drop-shadow(0 14px 40px rgba(0, 0, 0, 0.6));
}
/* Hero logo dramatic 3D entrance — rotates forward from behind */
.hero-logo.reveal {
    transform: perspective(900px) translateY(48px) rotateX(48deg) scale(0.92);
    transition: opacity 1.4s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    transform-origin: center bottom;
}
.hero-logo.reveal.in {
    transform: perspective(900px) translateY(0) rotateX(0) scale(1);
}

.hero-tagline {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 32px;
}

.hero-links {
    display: inline-flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-link {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    letter-spacing: -0.01em;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.30);
    transition: border-color 0.3s ease, color 0.3s ease;
}
.hero-link:hover {
    color: #fff;
    border-color: #fff;
}

/* Scroll hint — mobile only */
.hero-scroll-hint {
    display: none;
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: heroScrollBounce 2s ease-in-out infinite;
}
.hero-scroll-text {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.hero-scroll-hint svg {
    color: rgba(255, 255, 255, 0.4);
}
@keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

@media (max-width: 600px) {
    .hero-onvoid { min-height: 540px; }
    .hero-logo { width: 72vw; margin-bottom: 18px; }
    .hero-tagline { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 24px; }
    .hero-scroll-hint { display: flex; }
}

/* ---------- Specs strip ---------- */
.specs-strip {
    background: #ffffff;
    border-top: 1px solid #e5e5ea;
    border-bottom: 1px solid #e5e5ea;
    padding: 0;
}
.spec-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 22px 18px;
    border-right: 1px solid #e5e5ea;
    transition: background 0.25s ease;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.spec-item:hover { background: #fafafa; }
.spec-item:last-child { border-right: 0; }
.spec-num {
    font-size: 10px;
    color: #86868b;
    letter-spacing: 0.05em;
}
.spec-label {
    font-size: 13px;
    color: #000;
    letter-spacing: -0.01em;
}
@media (max-width: 767px) {
    .spec-item:nth-child(2n) { border-right: 0; }
    .spec-item:nth-child(-n+2) { border-bottom: 1px solid #e5e5ea; }
}

/* ---------- Code section ---------- */

.code-section {
    background: #fafafa;
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}
.code-grid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.code-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.code-header {
    text-align: center;
    margin-bottom: 36px;
}
.code-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2997ff;
    margin-bottom: 12px;
}
.code-heading {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #1d1d1f;
    margin-bottom: 12px;
}
.code-desc {
    font-size: 15px;
    color: #86868b;
}

/* Language pills */
.code-stack-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.code-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    padding: 8px 18px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: #86868b;
    cursor: pointer;
    transition: all 0.25s ease;
}
.code-pill:hover {
    background: rgba(0,0,0,0.07);
    color: #1d1d1f;
}
.code-pill.active {
    background: rgba(41,151,255,0.08);
    border-color: rgba(41,151,255,0.3);
    color: #2997ff;
}
.code-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Dark code window */
.code-window-dark {
    background: #111 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 80px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) !important;
}
.code-bar-dark {
    background: rgba(255,255,255,0.04) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 10px 16px !important;
}
.code-filename {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
}
.code-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.code-window-dark .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.code-block-dark {
    background: #111 !important;
    color: #e6edf3 !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.75;
    padding: 24px 22px 24px 18px;
    overflow-x: auto;
    margin: 0;
}
.code-pane { display: none; }
.code-pane.active {
    display: block;
    animation: codePaneIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes codePaneIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.code-block-dark .ln  { color: rgba(255,255,255,0.2); user-select: none; padding-right: 14px; }
.code-block-dark .cm  { color: #6e7681; }
.code-block-dark .kw  { color: #ff7b72; }
.code-block-dark .str { color: #a5d6ff; }
.code-block-dark .fn  { color: #d2a8ff; }
.code-block-dark .num { color: #79c0ff; }

.code-github-link {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: #86868b;
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.code-github-link:hover {
    color: #2997ff;
    border-color: #2997ff;
}

@media (max-width: 600px) {
    .code-section { padding: 56px 0 48px; }
    .code-block-dark { font-size: 11.5px; }
    .code-pill { padding: 6px 14px; font-size: 11px; }
}

/* ---------- Hero scroll cue ---------- */
.hero-scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    display: grid;
    place-items: center;
    z-index: 1;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.hero-scroll-cue:hover {
    border-color: #fff;
    transform: translateX(-50%) translateY(-2px);
}
.hero-scroll-cue span {
    width: 2px;
    height: 9px;
    background: #fff;
    border-radius: 2px;
    animation: scrollCue 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}
@keyframes scrollCue {
    0%   { transform: translateY(-6px); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}




/* Shared meta (reused in noticias.html) */
.news-meta {
    display: flex;
    gap: 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.news-cat { color: #2997ff; }

/* ---------- Contact section info column ---------- */
.contact-info ul {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.info-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #86868b;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}
.contact-info li a {
    font-size: 16px;
    color: #000;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}
.contact-info li a:hover {
    color: #2997ff;
    border-bottom-color: #2997ff;
}
.contact-info li span { font-size: 16px; color: #000; line-height: 1.5; }
.status-on {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: #28a745 !important;
}
.status-on::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    animation: pulseDot 1.8s ease-in-out infinite;
    vertical-align: middle;
}

/* ---------- Footer extended ---------- */
.footer-title {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #000;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}
.footer-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
}
.footer-list a {
    color: #86868b;
    transition: color 0.2s ease;
}
.footer-list a:hover { color: #000; }

/* ---------- Equipe page ---------- */
.page-header {
    background: #fafafa;
}
.page-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 12px 0 20px;
    color: #000;
}
.page-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: #57606a;
    max-width: 560px;
    line-height: 1.5;
    font-weight: 300;
}

.stat-block { text-align: left; }
.stat-block .stat-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(28px, 4vw, 40px);
    color: #000;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.stat-block .stat-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    color: #86868b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px 28px;
}
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card .team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    background-color: #e5e5ea;
    border-radius: 10px;
    margin-bottom: 16px;
    filter: grayscale(45%);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.team-card:hover .team-photo {
    filter: grayscale(0);
    transform: translateY(-3px);
}
.team-card .team-role {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #2997ff;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}
.team-card h3 {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.022em;
    margin-bottom: 8px;
    color: #000;
}
.team-card .team-bio {
    font-size: 13px;
    color: #57606a;
    line-height: 1.55;
    margin-bottom: 12px;
}
.team-links {
    display: flex;
    gap: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
}
.team-links a {
    color: #86868b;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.team-links a:hover {
    color: #000;
    border-bottom-color: #000;
}

/* Header on inner pages — JS sets .scrolled by default when there's no #home */

/* ---------- Stats grid in Estúdio ---------- */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e5e5ea;
    text-align: center;
}
.stat-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 28px;
    color: #000;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.stat-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    color: #86868b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .stat-num { font-size: 22px; }
    .stat-label { font-size: 9.5px; }
}

/* ---------- Knife animations ---------- */

/* Continuous gentle float on hero knife */
[data-float] {
    animation: knifeFloat 7s ease-in-out infinite;
}
@keyframes knifeFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%      { transform: translate3d(0, -14px, 0) rotate(-1.2deg); }
}

/* Hover effect on tile knife photos */
.knife {
    transition: scale 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
}
.tile-dark:hover .knife,
.tile-light:hover .knife,
.tile-half:hover .knife {
    scale: 1.03;
    box-shadow: 0 28px 44px rgba(0, 0, 0, 0.32);
}

/* Stagger reveals via --i custom prop (set by JS) */
.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* Product cards: lift on hover */
.product-card .aspect-square {
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product-card:hover .aspect-square {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.18);
}

/* Hero h1 letter-spread micro-animation on entrance */
.tile-text h1 {
    transition: letter-spacing 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    letter-spacing: -0.02em;
}
.reveal:not(.in) .tile-text h1,
.tile-text.reveal:not(.in) h1 { letter-spacing: -0.06em; }

/* ---------- Reduced motion ---------- */
/* ---------- 3D tilt-ready surfaces (mouse-tracked via JS) ---------- */
.product-card,
.team-card,
.news-card {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}
.code-window {
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

/* When hovered (tilted by JS), boost shadow for floating-card effect */
.product-card.tilted,
.team-card.tilted,
.news-card.tilted {
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.22);
}
.code-window.tilted {
    box-shadow: 0 36px 60px -20px rgba(0, 0, 0, 0.18);
}

/* Tile images get a tiny tilt origin for parallax depth feel */
.tile-image,
.tile-image-half {
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* Buttons get 3D press */
.link-cta {
    transform-style: preserve-3d;
    transition: background 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    [data-parallax], [data-float] { transform: none !important; }
    html { scroll-behavior: auto; }
}

/* =====================================================
   Scroll-interactive enhancements
   ===================================================== */

/* Barra de progresso de leitura */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2997ff 0%, #64d2ff 100%);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

/* Reveals direcionais: vêm da esquerda ou direita */
.reveal[data-dir="left"] {
    transform: perspective(1000px) translateX(-44px) rotateY(6deg);
}
.reveal[data-dir="right"] {
    transform: perspective(1000px) translateX(44px) rotateY(-6deg);
}
.reveal[data-dir="left"].in,
.reveal[data-dir="right"].in {
    opacity: 1;
    transform: perspective(1000px) translateX(0) rotateY(0);
}

/* Flash de cor durante contagem das estatísticas */
.stat-num { transition: color 0.5s ease; }
.stat-num.counting { color: #2997ff; }

/* Stat prefix ("+") via CSS — avoids breaking the JS counter */
.stat-num[data-prefix]::before { content: attr(data-prefix); }

/* ---------- Equipe page v2 — compact hierarchy ---------- */
.eq-page-header {
    padding: 72px 20px 52px;
    border-bottom: 1px solid #e5e5ea;
    background: #fafafa;
}
.eq-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.eq-heading {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 10px 0 14px;
    color: #000;
}
.eq-sub {
    font-size: 16px;
    color: #57606a;
    font-weight: 300;
    max-width: 460px;
    line-height: 1.5;
}
.eq-body {
    background: #fff;
    padding-bottom: 80px;
}
.eq-tier {
    border-top: 1px solid #e5e5ea;
    padding: 28px 0 36px;
}
.eq-tier-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.eq-tier-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #000;
    white-space: nowrap;
    line-height: 1;
    border-left: 3px solid #2997ff;
    padding-left: 12px;
}
.eq-tier-rule {
    flex: 1;
    height: 1px;
    background: #e5e5ea;
    display: block;
}
.eq-tier-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #c7c7cc;
    white-space: nowrap;
    letter-spacing: 0.08em;
}
.eq-grid {
    display: grid;
    gap: 14px;
}
.eq-grid--ceo { grid-template-columns: 260px;                        justify-content: center; }
.eq-grid--4   { grid-template-columns: repeat(4, minmax(0, 260px)); justify-content: center; }
.eq-grid--3   { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
.eq-grid--2   { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
.eq-grid--1   { grid-template-columns: 260px;                        justify-content: center; }

/* Software + Hardware side by side */
.eq-split-row {
    border-top: 1px solid #e5e5ea;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.eq-tier--split {
    border-top: none;
    padding: 28px 0 36px;
}
.eq-tier--split:first-child {
    border-right: 1px solid #e5e5ea;
    padding-right: 28px;
}
.eq-tier--split:last-child {
    padding-left: 28px;
}
.eq-tier--split:first-child .eq-grid { grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: center; }
.eq-tier--split:last-child  .eq-grid { grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: center; }

/* Card */
.eq-card {
    display: flex;
    flex-direction: column;
}
.eq-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background: #e8e8ed;
    background-size: cover;
    background-position: center top;
    filter: grayscale(18%);
    transition: filter 0.4s ease, transform 0.4s ease;
    overflow: hidden;
}
.eq-card:hover .eq-photo {
    filter: grayscale(0);
    transform: scale(1.04);
}
.eq-card-body {
    padding: 9px 0 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: center;
}
.eq-role {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d1d1f;
    margin-bottom: 2px;
}
.eq-name {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.eq-desc {
    font-size: 11px;
    color: #86868b;
    line-height: 1.45;
    margin-top: 3px;
}
.eq-grid--ceo .eq-name { font-size: 15px; }
.eq-grid--ceo .eq-role { font-size: 10px; }
.eq-grid--ceo .eq-desc { font-size: 12px; }

/* ── Supporter CTA button ── */
.eq-supporter-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}
.eq-supporter-btn {
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: #1d1d1f;
    border: none;
    border-radius: 980px;
    padding: 11px 28px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.eq-supporter-btn:hover  { background: #2997ff; }
.eq-supporter-btn:active { transform: scale(0.97); }

/* ── Gallery grid ── */
.eq-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.eq-gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid #e5e5ea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.eq-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.eq-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Supporters grid ── */
.eq-supporters-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 180px));
    gap: 12px;
    justify-content: center;
}
.eq-supporter-card {
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    aspect-ratio: 16/7;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}
.eq-supporter-card:hover {
    border-color: #2997ff;
    background: #fff;
}
.eq-supporter-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #86868b;
    text-transform: uppercase;
    user-select: none;
}

@media (max-width: 1100px) {
    .eq-grid--4 { grid-template-columns: repeat(4, minmax(0, 200px)); }
    .eq-supporters-grid { grid-template-columns: repeat(4, minmax(0, 180px)); }
}
@media (max-width: 900px) {
    .eq-supporters-grid { grid-template-columns: repeat(3, minmax(0, 180px)); }
    .eq-split-row { grid-template-columns: 1fr; }
    .eq-tier--split:first-child {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e5e5ea;
    }
    .eq-tier--split:last-child { padding-left: 0; }
    .eq-grid--4 { grid-template-columns: repeat(2, minmax(0, 260px)); }
    .eq-grid--3 { grid-template-columns: repeat(2, minmax(0, 260px)); }
    .eq-tier--split:first-child .eq-grid,
    .eq-tier--split:last-child  .eq-grid { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; }
    .eq-tier-title { font-size: 28px; }
}
@media (max-width: 580px) {
    .eq-grid--4,
    .eq-grid--3 { grid-template-columns: repeat(2, minmax(0, 180px)); }
    .eq-grid--2 { grid-template-columns: repeat(2, minmax(0, 180px)); }
    .eq-tier-title { font-size: 22px; }
    .eq-supporters-grid { grid-template-columns: repeat(2, minmax(0, 160px)); }
}

/* ================================================================
   Hardware Tile — Expanded Specification State
   ================================================================ */

#tile-hardware {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    transition: min-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#tile-hardware.hw-open {
    min-height: 860px;
}

/* Background image — entra em foco a partir de blur */
.hw-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    will-change: opacity, transform;
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}
.hw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.91);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.7s ease 0.25s;
    pointer-events: none;
    z-index: 1;
}
#tile-hardware.hw-open .hw-bg     { opacity: 1; transform: scale(1); }
#tile-hardware.hw-open .hw-overlay { opacity: 1; }

/* Default content fades out on open */
.hw-default-content {
    position: relative;
    z-index: 2;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
#tile-hardware.hw-open .hw-default-content {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

/* ── Expanded panel ── */
.hw-expanded {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 32px 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease 0.42s;
}
#tile-hardware.hw-open .hw-expanded {
    opacity: 1;
    pointer-events: auto;
}

.hw-back {
    position: absolute;
    top: 26px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 980px;
    padding: 7px 16px 7px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    backdrop-filter: blur(6px);
}
.hw-back:hover { background: rgba(255,255,255,0.18); color: #fff; }

.hw-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2997ff;
    margin-bottom: 6px;
}
.hw-heading {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 36px;
    line-height: 1.05;
}

/* ── Items row (sem cards) ── */
.hw-cards-row {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 860px;
}
.hw-card {
    flex: 1;
    max-width: 340px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    will-change: transform;
    cursor: default;
}

/* ── SVG area ── */
.hw-card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    margin-bottom: 24px;
}
.hw-svg-robot { width: 130px; height: auto; overflow: visible; }
.hw-svg-gear  { width: 190px; height: auto; overflow: visible; }

/* ── Robot arm — movimento articulado em loop ── */
.hw-robot-seg1 {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: hwArm1 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.hw-robot-seg2 {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: hwArm2 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes hwArm1 {
    0%         { transform: rotate(0deg); }
    20%        { transform: rotate(-14deg); }
    45%        { transform: rotate(10deg); }
    65%        { transform: rotate(-6deg); }
    85%        { transform: rotate(8deg); }
    100%       { transform: rotate(0deg); }
}
@keyframes hwArm2 {
    0%         { transform: rotate(0deg); }
    20%        { transform: rotate(18deg); }
    45%        { transform: rotate(-12deg); }
    65%        { transform: rotate(10deg); }
    85%        { transform: rotate(-8deg); }
    100%       { transform: rotate(0deg); }
}
.hw-pulse {
    animation: hwPulse 1.6s ease-in-out infinite;
}
@keyframes hwPulse {
    0%, 100% { opacity: 0.25; }
    50%       { opacity: 1; }
}

/* ── Engrenagens ── */
.hw-gear-main {
    transform-box: fill-box;
    transform-origin: center;
    animation: hwSpin 9s linear infinite;
}
.hw-gear-small {
    transform-box: fill-box;
    transform-origin: center;
    animation: hwSpin 5.8s linear infinite reverse;
}
@keyframes hwSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Texto livre ── */
.hw-card-info {
    text-align: center;
}
.hw-card-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 10px;
}
.hw-card-info p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.48);
    max-width: 240px;
    margin: 0 auto;
}

/* ── hw-spec-btn ── */
.hw-spec-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #2997ff;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: -0.022em;
    transition: opacity 0.2s ease;
}
.hw-spec-btn:hover { opacity: 0.75; text-decoration: underline; }

@media (max-width: 640px) {
    .hw-cards-row { flex-direction: column; align-items: center; gap: 48px; }
    .hw-card { max-width: 100%; }
    .hw-expanded {
        padding: 64px 20px 48px;
        justify-content: flex-start;
        overflow-y: auto;
        background: #000;
    }
    #tile-hardware.hw-open { min-height: 1020px; }
}

/* ================================================================
   Software Tile — Expanded Specification State
   ================================================================ */

#tile-software {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    transition: min-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#tile-software.sw-open { min-height: 860px; }

.sw-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    will-change: opacity, transform;
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}
.sw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.91);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.7s ease 0.25s;
    pointer-events: none;
    z-index: 1;
}
#tile-software.sw-open .sw-bg    { opacity: 1; transform: scale(1); }
#tile-software.sw-open .sw-overlay { opacity: 1; }

.sw-default-content {
    position: relative;
    z-index: 2;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
#tile-software.sw-open .sw-default-content {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

.sw-expanded {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 32px 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease 0.42s;
}
#tile-software.sw-open .sw-expanded { opacity: 1; pointer-events: auto; }

.sw-back {
    position: absolute;
    top: 26px; left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 980px;
    padding: 7px 16px 7px 12px;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
}
.sw-back:hover { background: rgba(255,255,255,0.18); color: #fff; }

.sw-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2997ff;
    margin-bottom: 6px;
}
.sw-heading {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.05;
}

/* 3 itens livres */
.sw-cards-row {
    display: flex;
    gap: 56px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 900px;
}
.sw-card {
    flex: 1;
    max-width: 260px;
    background: none;
    border: none;
    padding: 0;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    will-change: transform;
    cursor: default;
}
.sw-card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 20px;
}
.sw-svg { width: 110px; height: auto; overflow: visible; }

.sw-card-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 8px;
}
.sw-card-info p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.48);
    max-width: 210px;
    margin: 0 auto;
}

/* ── Animações SVG ── */

/* Cursor piscando (Interfaces) */
.sw-cursor { animation: swBlink 1.1s step-end infinite; }
@keyframes swBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Linha de destaque (Interfaces) */
.sw-line-a { animation: swLinePulse 3s ease-in-out infinite; }
@keyframes swLinePulse {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 1; fill: rgba(41,151,255,.8); }
}

/* Nodes pulsando (Sistemas) */
.sw-node-pulse { animation: swNodePulse 2.4s ease-in-out infinite; }
.sw-node-pulse:nth-child(6)  { animation-delay: 0.4s; }
.sw-node-pulse:nth-child(7)  { animation-delay: 0.8s; }
.sw-node-pulse:nth-child(8)  { animation-delay: 1.2s; }
.sw-node-pulse:nth-child(9)  { animation-delay: 1.6s; }
@keyframes swNodePulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* Wires animados (Sistemas) */
.sw-wire { animation: swWireFlow 2s linear infinite; }
@keyframes swWireFlow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -12; }
}

/* Neurônios (IA) */
.sw-neuron       { animation: swNeuron 3s ease-in-out infinite; }
.sw-neuron-d1    { animation-delay: 0.3s; }
.sw-neuron-d2    { animation-delay: 0.7s; }
.sw-neuron-d3    { animation-delay: 1.1s; }
.sw-neuron-out   { animation: swNeuronOut 2s ease-in-out infinite; }
@keyframes swNeuron    { 0%,100%{opacity:.6} 50%{opacity:1} }
@keyframes swNeuronOut { 0%,100%{opacity:.7; r:8} 50%{opacity:1; r:10} }

/* spec btn */
.sw-spec-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #2997ff;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: -0.022em;
    transition: opacity 0.2s ease;
}
.sw-spec-btn:hover { opacity: 0.75; text-decoration: underline; }

@media (max-width: 720px) {
    .sw-cards-row { flex-direction: column; align-items: center; gap: 44px; }
    .sw-card { max-width: 100%; }
    .sw-expanded {
        padding: 64px 20px 48px;
        justify-content: flex-start;
        overflow-y: auto;
        background: #000;
    }
    #tile-software.sw-open { min-height: 1140px; }
}

/* ================================================================
   Robótica Tile — Expanded Platform State
   ================================================================ */

#tile-robotica {
    transition: min-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#tile-robotica.rb-open { min-height: 700px; }

.rb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    will-change: opacity, transform;
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}
.rb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.91);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.7s ease 0.25s;
    pointer-events: none;
    z-index: 1;
}
#tile-robotica.rb-open .rb-bg    { opacity: 1; transform: scale(1); }
#tile-robotica.rb-open .rb-overlay { opacity: 1; }

.rb-default-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
#tile-robotica.rb-open .rb-default-content {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

.rb-expanded {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 24px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease 0.42s;
}
#tile-robotica.rb-open .rb-expanded { opacity: 1; pointer-events: auto; }

.rb-back {
    position: absolute;
    top: 22px; left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 980px;
    padding: 6px 14px 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
}
.rb-back:hover { background: rgba(255,255,255,0.18); color: #fff; }

.rb-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2997ff;
    margin-bottom: 6px;
}
.rb-heading {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 28px;
    line-height: 1.05;
}

.rb-cards-row {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 680px;
}
.rb-card {
    flex: 1;
    max-width: 260px;
    background: none;
    border: none;
    padding: 0;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    will-change: transform;
    cursor: default;
}
.rb-card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
    margin-bottom: 20px;
}
.rb-svg { width: 115px; height: auto; overflow: visible; }

.rb-card-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 8px;
}
.rb-card-info p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.48);
    max-width: 220px;
    margin: 0 auto;
}

/* Botão Plataformas */
.rb-plat-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #2997ff;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: -0.022em;
    transition: opacity 0.2s ease;
}
.rb-plat-btn:hover { opacity: 0.75; text-decoration: underline; }

/* Cubo OMNIVERSE — face superior pulsa */
.rb-cube-top {
    animation: rbCubePulse 3s ease-in-out infinite;
}
@keyframes rbCubePulse {
    0%, 100% { opacity: 0.85; }
    50%       { opacity: 1; fill: rgba(41,151,255,.28); }
}

/* Anel orbital girando */
.rb-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: rbRingSpin 10s linear infinite;
}
@keyframes rbRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Núcleo pulsando */
.rb-cube-glow { animation: rbGlow 2.4s ease-in-out infinite; }
@keyframes rbGlow {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 1; }
}

/* Nós da grade — pulso defasado */
.rb-dot-a { animation: rbDotPulse 2s   ease-in-out infinite; }
.rb-dot-b { animation: rbDotPulse 2s   ease-in-out infinite 0.5s; }
.rb-dot-c { animation: rbDotPulse 2s   ease-in-out infinite 1.0s; }
.rb-dot-d { animation: rbDotPulse 2s   ease-in-out infinite 1.5s; }
@keyframes rbDotPulse {
    0%, 100% { opacity: 0.35; }
    50%       { opacity: 1; }
}

@media (max-width: 640px) {
    .rb-cards-row { flex-direction: column; align-items: center; gap: 40px; }
    .rb-card { max-width: 100%; }
    .rb-expanded {
        padding: 60px 20px 40px;
        justify-content: flex-start;
        overflow-y: auto;
    }
    #tile-robotica.rb-open { min-height: 860px; }
}

/* ================================================================
   CAD Tile — Expanded Specification State
   ================================================================ */

#tile-cad {
    transition: min-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#tile-cad.cad-open { min-height: 740px; }

.cad-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    will-change: opacity, transform;
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}
.cad-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.91);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.7s ease 0.25s;
    pointer-events: none;
    z-index: 1;
}
#tile-cad.cad-open .cad-bg    { opacity: 1; transform: scale(1); }
#tile-cad.cad-open .cad-overlay { opacity: 1; }

.cad-default-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
#tile-cad.cad-open .cad-default-content {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

.cad-expanded {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 18px 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease 0.42s;
}
#tile-cad.cad-open .cad-expanded { opacity: 1; pointer-events: auto; }

.cad-back {
    position: absolute;
    top: 22px; left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 980px;
    padding: 6px 14px 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
}
.cad-back:hover { background: rgba(255,255,255,0.18); color: #fff; }

.cad-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2997ff;
    margin-bottom: 6px;
}
.cad-heading {
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.05;
}

.cad-cards-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}
.cad-card {
    flex: 1;
    max-width: 150px;
    background: none;
    border: none;
    padding: 0;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    will-change: transform;
    cursor: default;
}
.cad-card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 14px;
}
.cad-svg { width: 85px; height: auto; overflow: visible; }

.cad-card-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 6px;
}
.cad-card-info p {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
    max-width: 150px;
    margin: 0 auto;
}

.cad-spec-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #2997ff;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: -0.022em;
    transition: opacity 0.2s ease;
}
.cad-spec-btn:hover { opacity: 0.75; text-decoration: underline; }

/* Onda senoidal */
.cad-wave {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: cadWaveDraw 2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               cadWaveFlow 4s linear 2s infinite;
}
@keyframes cadWaveDraw { to { stroke-dashoffset: 0; } }
@keyframes cadWaveFlow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -200; }
}

/* Pontos de amostragem */
.cad-dot-a { animation: cadDotPulse 2s ease-in-out infinite; }
.cad-dot-b { animation: cadDotPulse 2s ease-in-out infinite 0.6s; }
.cad-dot-c { animation: cadDotPulse 2s ease-in-out infinite 1.2s; }
@keyframes cadDotPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* Braço robótico */
.cad-arm {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: cadArm 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes cadArm {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(-12deg); }
    50%  { transform: rotate(8deg); }
    75%  { transform: rotate(-6deg); }
    100% { transform: rotate(0deg); }
}

/* Anel de pulso */
.cad-pulse { animation: cadPulseRing 2s ease-out infinite; }
@keyframes cadPulseRing {
    0%   { opacity: 0.5; }
    100% { opacity: 0; transform: scale(1.7); }
}

@media (max-width: 640px) {
    .cad-cards-row { flex-direction: column; align-items: center; gap: 28px; }
    .cad-card { max-width: 100%; }
    .cad-card-info p { max-width: 260px; }
    .cad-expanded {
        padding: 60px 20px 48px;
        justify-content: flex-start;
        overflow: hidden;
    }
    #tile-cad.cad-open { min-height: 1120px; }
}

/* ---------- Equipe page — hierarchy tiers (legacy) ---------- */
.team-section {
    border-top: 1px solid #e5e5ea;
    padding: 0;
}

/* Tier label row */
.tier-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 32px;
    border-bottom: 1px solid #e5e5ea;
}
.tier-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #86868b;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}
.tier-count {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: #c7c7cc;
}

/* Card grids per tier */
.tier-ceo     { display: grid; grid-template-columns: repeat(1, 320px); justify-content: center; gap: 2px; padding: 2px; }
.tier-gestores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 2px; }
.tier-equipe  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 2px; }

@media (max-width: 900px) {
    .tier-ceo      { grid-template-columns: 1fr; }
    .tier-gestores { grid-template-columns: repeat(2, 1fr); }
    .tier-equipe   { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
    .tier-gestores,
    .tier-equipe   { grid-template-columns: repeat(2, 1fr); }
}

/* Card base */
.member-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

/* Photo — taller for CEO, standard for rest */
.member-photo {
    aspect-ratio: 3 / 4;
    background: #e8e8ed;
    background-size: cover;
    background-position: center top;
    filter: grayscale(25%);
    transition: filter 0.45s ease, transform 0.45s ease;
    overflow: hidden;
}
.tier-ceo .member-photo { aspect-ratio: 4 / 5; }

.member-card:hover .member-photo {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* Info block */
.member-info {
    padding: 14px 16px 18px;
    border-top: 1px solid #e5e5ea;
}
.member-division {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2997ff;
    margin-bottom: 5px;
    font-family: 'JetBrains Mono', monospace;
}
.member-name {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -0.022em;
    line-height: 1.3;
}
.tier-ceo .member-name { font-size: 17px; }

/* ---------- Notícias page ---------- */
.nt-page-header {
    padding: 72px 20px 52px;
    border-bottom: 1px solid #e5e5ea;
    background: #fafafa;
}
.nt-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.nt-heading {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-top: 4px;
    color: #000;
}
.nt-sub {
    font-size: 16px;
    color: #57606a;
    max-width: 480px;
    margin-top: 12px;
    line-height: 1.5;
}
.nt-body {
    background: #fff;
    padding-bottom: 80px;
}

/* Section dividers */
.nt-section {
    border-top: 1px solid #e5e5ea;
    padding: 28px 0 48px;
}
.nt-section:first-child { margin-top: 32px; }
.nt-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}
.nt-section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.nt-section-rule {
    flex: 1;
    height: 1px;
    background: #e5e5ea;
    display: block;
}
.nt-section-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #86868b;
    padding-left: 12px;
}

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

/* Card */
.nt-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
.nt-card:hover {
    border-color: #d2d2d7;
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.1);
}
.nt-card.tilted {
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.22);
}
.nt-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.nt-card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e8e8ed;
}
.nt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.nt-card:hover .nt-card-img {
    transform: scale(1.03);
}
.nt-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.nt-card-body .news-meta { margin-bottom: 8px; }
.nt-card-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.022em;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #000;
}
.nt-card-desc {
    color: #57606a;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}
.nt-card-author {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #86868b;
    letter-spacing: 0.04em;
}

/* Noticias responsive */
@media (max-width: 900px) {
    .nt-grid { grid-template-columns: repeat(2, 1fr); }
    .nt-section-title { font-size: 28px; }
}
@media (max-width: 580px) {
    .nt-grid { grid-template-columns: 1fr; }
    .nt-section-title { font-size: 22px; }
    .nt-page-header { padding: 56px 16px 40px; }
}

/* ---------- Seção About — tema oceânico escuro ---------- */
#about {
    position: relative;
    overflow: hidden;
    background: #000;
    color: rgba(245, 245, 247, 0.82);
    min-height: 100vh;
    display: flex;
    align-items: center;
}
#about h2 {
    color: #fff;
    text-shadow: 0 2px 40px rgba(0,0,0,0.90), 0 0 80px rgba(0,0,0,0.60);
    letter-spacing: -0.04em;
}
#about p           { color: rgba(245, 245, 247, 0.88); }
#about .eyebrow    { color: #2997ff; letter-spacing: 0.16em; font-size: 11px; }
#about .stat-num   {
    color: #fff;
    text-shadow: 0 0 28px rgba(41,151,255,0.55), 0 0 64px rgba(41,151,255,0.22);
}
#about .stat-label { color: rgba(245, 245, 247, 0.52); }
#about .stats-grid { border-top-color: rgba(255, 255, 255, 0.14); justify-items: start; }

/* Outlined pill button — about section CTA */
.btn-outline {
    display: inline-flex;
    align-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 980px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

/* Neural network canvas — full stars-area background */
#neuralCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Single-column shell — text floats over the neural network */
.about-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 0 10%;
    padding: 0 48px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-text-col {
    text-align: left;
    padding: 80px 0;
    width: 100%;
}

@media (max-width: 860px) {
    #about {
        align-items: flex-start;
        min-height: 100svh;
    }
    .about-shell {
        margin: 0 auto;
        padding: 0 28px;
        min-height: auto;
        align-items: flex-start;
    }
    .about-text-col {
        padding: 60px 0 20px;
    }
}

/* ---------- Hero tech-field canvas ---------- */
/* Fica acima do vídeo/overlay (hero-bg z:0) e abaixo do hero-darken (z:2). */
#techField {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.8s ease 0.6s;
}

/* ---------- Portfolio showcase (Serviços já feitos) ---------- */
.pf-section {
    background: #000;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}
.pf-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.pf-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}
.pf-header h2 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.pf-showcase {
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.pf-item {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 48px;
    align-items: center;
}
.pf-item--reverse {
    grid-template-columns: 1.8fr 1fr;
}
.pf-item--reverse .pf-item-text {
    order: 2;
}
.pf-item--reverse .pf-item-visual {
    order: 1;
}

/* Text side */
.pf-item-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pf-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2997ff;
}
.pf-item-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #f5f5f7;
}
.pf-item-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #86868b;
    max-width: 320px;
}

/* Visual side */
.pf-item-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.6s ease;
}
.pf-item-visual:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.pf-item-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 18px;
}
.pf-item-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    border-radius: 18px;
}

.pf-item-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Themed backgrounds */
.pf-visual--cubatao {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, #0c2d48 0%, #071a2e 60%, #020a14 100%);
}
.pf-visual--antares {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 60%, #1a0f3c 0%, #0d0820 60%, #030210 100%);
}
.pf-visual--isaacsim {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, #0c1929 0%, #070f1a 60%, #020507 100%);
}

@media (max-width: 860px) {
    .pf-item,
    .pf-item--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .pf-item--reverse .pf-item-text { order: 0; }
    .pf-item--reverse .pf-item-visual { order: 0; }
    .pf-item-text { text-align: center; align-items: center; }
    .pf-item-desc { max-width: 460px; }
    .pf-showcase { gap: 72px; }
}
@media (max-width: 540px) {
    .pf-section { padding: 72px 0 80px; }
    .pf-header { margin-bottom: 48px; }
    .pf-showcase { gap: 56px; }
    .pf-item-visual { border-radius: 14px; }
}

/* ---------- Botão CONTRATAR (CTA WhatsApp centralizado nos serviços) ---------- */
.tile-text .btn-contratar,
.rb-default-content .btn-contratar,
.cad-default-content .btn-contratar {
    display: block;
    margin: 12px auto 0;
    width: fit-content;
}

.btn-contratar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #fff;
    border-radius: 980px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.25s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2);
    white-space: nowrap;
}
.btn-contratar:hover {
    background: #1ebe5d;
}

@media (max-width: 540px) {
    .btn-contratar {
        padding: 7px 18px;
        font-size: 12px;
    }
}
