.service-hero { position: relative; min-height: 780px; padding: 132px 0 100px; overflow: hidden; background: var(--paper); color: var(--ink); }
.service-hero::before { content: ""; position: absolute; top: 88px; right: 0; width: 38%; height: calc(100% - 88px); background: #f0f2f3; }
.service-hero::after { content: "NAXIFY / SOLUÇÕES DIGITAIS"; position: absolute; right: 26px; bottom: 42px; color: #81909e; font-size: .56rem; font-weight: 800; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero-orbit { position: absolute; z-index: 0; top: 185px; right: max(7vw,70px); width: min(31vw,440px); aspect-ratio: 1; border: 1px solid #d6dedb; border-radius: 50%; }
.hero-orbit::before,.hero-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.hero-orbit::before { inset: 12%; border: 1px dashed #b9d4c8; animation: orbit-spin 28s linear infinite; }
.hero-orbit::after { top: 8%; left: 48%; width: 13px; height: 13px; background: var(--lime); box-shadow: 0 0 0 6px var(--paper-soft); animation: orbit-pulse 2.4s ease-in-out infinite; }
.breadcrumb { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #78848d; font-size: .67rem; }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb i { color: #a2aba7; font-style: normal; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.72fr); gap: clamp(55px,7vw,110px); align-items: center; margin-top: 65px; }
.service-hero h1,.section-heading h2,.decision-copy h2,.cta-inner h2,.service-map-head h2 { margin: 0; color: var(--navy); font-weight: 780; letter-spacing: -.052em; }
.service-hero h1 { max-width: 820px; margin-top: 22px; font-size: var(--step-4); line-height: 1.01; }
.service-hero h1 em,.section-heading h2 em,.decision-copy h2 em,.service-map-head h2 em { color: var(--green-dark); font-family: inherit; font-style: normal; font-weight: inherit; }
.hero-copy > p { max-width: 680px; margin: 28px 0 0; color: #465364; font-size: var(--step-1); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* A small system diagram generated from the page's own labels. */
.hero-visual { position: relative; min-height: 410px; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: 35px 12px 52px 25px; border: 2px solid var(--navy); background: rgba(255,255,255,.82); }
.hero-visual::after { content: ""; position: absolute; z-index: -2; right: -20px; bottom: 20px; width: 58%; height: 44%; background: var(--lime); }
.visual-core { position: absolute; top: 82px; left: 76px; display: grid; width: 160px; height: 118px; place-items: center; border: 1px solid #b9d8cb; background: #e8f6f0; }
.visual-core::before { content: "NÚCLEO"; position: absolute; top: -27px; left: 0; color: var(--green-dark); font-size: .55rem; font-weight: 800; letter-spacing: .16em; }
.visual-core span { color: var(--navy); font-size: clamp(2rem,4vw,3.5rem); font-weight: 800; letter-spacing: -.08em; animation: core-breathe 4s ease-in-out infinite; }
.visual-chip { position: absolute; display: grid; grid-template-columns: 14px 1fr; gap: 11px; align-items: center; width: min(235px,66%); padding: 14px 16px; border: 2px solid #fff; background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(13,35,64,.09); }
.visual-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.visual-chip strong,.visual-chip small { display: block; }
.visual-chip strong { font-size: .72rem; }
.visual-chip small { color: #aebdca; font-size: .58rem; }
.visual-chip.one { top: 34px; right: 0; animation: chip-float 5s ease-in-out infinite; }
.visual-chip.two { right: 28px; bottom: 78px; animation: chip-float 5s ease-in-out -1.6s infinite; }
.visual-chip.three { bottom: 12px; left: 0; background: var(--green-dark); animation: chip-float 5s ease-in-out -3.2s infinite; }
.visual-chip.three small { color: #dcfff0; }

.section { position: relative; padding: var(--space-8) 0; }
.section-light { background: #fff; }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: clamp(45px,8vw,110px); align-items: end; margin-bottom: 58px; }
.section-heading h2,.service-map-head h2,.decision-copy h2 { font-size: var(--step-3); line-height: 1.06; }
.section-heading > p,.service-map-head > p { margin: 0; color: var(--muted); font-size: .84rem; }
.deliverables { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--navy); }
.deliverable { position: relative; min-height: 300px; padding: 34px 34px 34px 0; border-bottom: 1px solid var(--line); }
.deliverable:nth-child(even) { padding-right: 0; padding-left: 34px; border-left: 1px solid var(--line); }
.deliverable:last-child:nth-child(odd) { grid-column: 1/-1; max-width: 70%; }
.deliverable-top { display: flex; justify-content: space-between; align-items: start; }
.deliverable-icon { color: var(--green-dark); font-size: 1.15rem; font-weight: 850; letter-spacing: -.04em; }
.deliverable-number { color: #8b969e; font-size: .62rem; letter-spacing: .12em; }
.deliverable h3 { max-width: 430px; margin: 48px 0 12px; color: var(--navy); font-size: var(--step-2); font-weight: 750; line-height: 1.13; letter-spacing: -.035em; }
.deliverable > p { max-width: 530px; margin: 0; color: var(--muted); font-size: .8rem; }
.deliverable ul { display: grid; gap: 7px; margin: 20px 0 0; padding: 17px 0 0; border-top: 1px solid var(--line); list-style: none; color: #56626e; font-size: .74rem; }
.deliverable li::before { content: "—"; margin-right: 8px; color: var(--green); }
.deliverable-action { display: inline-flex; gap: 12px; margin-top: 20px; padding-bottom: 2px; border-bottom: 1px solid; color: var(--green-dark); font-size: .74rem; font-weight: 750; }
.deliverable:hover .deliverable-icon { color: var(--green); transform: translateX(3px); }
.deliverable-icon { transition: color var(--ease),transform var(--ease); }

.service-map-section { background: var(--paper-soft); }
.service-map-head { display: grid; grid-template-columns: 1fr 380px; gap: 70px; align-items: end; margin-bottom: 48px; }
.service-map-links { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #cbd7d1; border-left: 1px solid #cbd7d1; }
.service-map-links a { position: relative; display: flex; min-height: 92px; align-items: center; padding: 18px 38px 18px 18px; border-right: 1px solid #cbd7d1; border-bottom: 1px solid #cbd7d1; color: #3d4b58; font-size: .75rem; font-weight: 650; transition: background var(--ease),color var(--ease),transform var(--ease); }
.service-map-links a::after { content: "↗"; position: absolute; right: 15px; color: var(--green); }
.service-map-links a:hover { z-index: 1; background: #fff; color: var(--navy); transform: translateY(-3px); }

.decision-section { overflow: hidden; background: var(--navy); color: #fff; }
.decision-section::after { content: ""; position: absolute; right: -110px; bottom: -210px; width: 410px; height: 410px; border: 1px solid rgba(103,205,176,.32); border-radius: 50%; }
.decision-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(60px,9vw,130px); }
.decision-copy { position: sticky; top: 120px; align-self: start; }
.decision-copy h2 { color: #fff; }
.decision-copy h2 em { color: var(--lime); }
.decision-copy .section-kicker { color: var(--mint); }
.decision-copy p { max-width: 440px; margin: 24px 0 0; color: #b9c4d0; font-size: .84rem; }
.signals { border-top: 1px solid rgba(255,255,255,.27); }
.signal { display: grid; grid-template-columns: 42px 1fr; gap: 0 14px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.signal:nth-child(even) { margin-left: 0; }
.signal > span { grid-row: 1/3; color: var(--lime); font-size: .62rem; }
.signal strong { font-size: 1.3rem; font-weight: 750; }
.signal p { max-width: 620px; margin: 8px 0 0; color: #aebdca; font-size: .77rem; }

.process-section { background: var(--paper-soft); }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin-top: 62px; }
.process-grid::before { content: ""; position: absolute; top: 27px; right: 6%; left: 6%; height: 2px; background: #cbdad3; transform-origin: left; }
.js .process-grid:not(.visible)::before { transform: scaleX(0); }
.process-grid.visible::before { animation: line-grow 900ms var(--ease-out) both; }
.process-step { position: relative; z-index: 1; min-height: 225px; padding: 0; }
.process-step::before { content: ""; display: block; width: 54px; height: 54px; margin-bottom: 32px; border: 7px solid var(--paper-soft); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.process-step:nth-child(2)::before { background: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.process-step:nth-child(3)::before { background: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.process-step:nth-child(4)::before { background: var(--mint); box-shadow: 0 0 0 2px var(--mint); }
.process-step > span { color: var(--green-dark); font-size: .61rem; font-weight: 800; }
.process-step strong { display: block; margin-top: 12px; color: var(--navy); font-size: 1.28rem; }
.process-step p { max-width: 230px; margin: 8px 0 0; color: var(--muted); font-size: .74rem; }
.js .process-grid:not(.visible) .process-step::before { opacity: 0; transform: scale(.6); }
.process-grid.visible .process-step::before { animation: node-in 430ms var(--ease-out) both; }
.process-grid.visible .process-step:nth-child(2)::before { animation-delay: 170ms; }
.process-grid.visible .process-step:nth-child(3)::before { animation-delay: 340ms; }
.process-grid.visible .process-step:nth-child(4)::before { animation-delay: 510ms; }

.related-section { background: #fff; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 42px; border-top: 1px solid var(--navy); }
.category-grid { grid-template-columns: repeat(4,1fr); }
.related-card { position: relative; min-height: 225px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color var(--ease),background var(--ease),transform var(--ease); }
.related-card + .related-card { padding-left: 28px; }
.related-card:last-child { border-right: 0; }
.related-card span { color: var(--green-dark); font-size: .62rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.related-card h2,.related-card h3 { margin: 52px 0 9px; color: var(--navy); font-size: 1.35rem; font-weight: 750; line-height: 1.12; letter-spacing: -.03em; }
.related-card p { margin: 0; color: var(--muted); font-size: .73rem; }
.related-card i { position: absolute; right: 24px; bottom: 25px; color: var(--green); font-style: normal; transition: transform var(--ease); }
.related-card:hover { background: var(--paper-soft); transform: translateY(-3px); }
.related-card:hover i { transform: translate(3px,-3px); }

.faq-section { background: var(--paper); }
.faq-grid { display: grid; border-top: 1px solid #cbd7d1; }
.faq-item { border-bottom: 1px solid #cbd7d1; }
.faq-item summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; color: var(--navy); font-size: 1.16rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green); font-size: 1.35rem; font-weight: 500; transition: transform var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { max-width: 820px; margin: -4px 0 24px; color: var(--muted); font-size: .82rem; }

.cta-section { padding: 95px 0; background: var(--green-dark); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; gap: 55px; align-items: end; }
.cta-inner h2 { max-width: 780px; color: #fff; font-size: var(--step-3); line-height: 1.05; }
.cta-inner p { max-width: 600px; margin: 20px 0 0; color: #e5fff3; }
.cta-inner .button { flex: 0 0 auto; border-color: var(--navy); background: var(--navy); color: #fff; }
.cta-inner .button:hover { background: var(--navy-soft); transform: translateY(-2px); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-pulse { 50% { transform: scale(1.35); } }
@keyframes core-breathe { 50% { transform: translateY(-4px); } }
@keyframes chip-float { 50% { transform: translateY(-7px); } }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes node-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

@media (max-width:980px) {
  .service-hero::before { width: 100%; height: 42%; top: auto; bottom: 0; }
  .hero-orbit { top: auto; right: 15%; bottom: 80px; width: 390px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%,600px); }
  .service-map-links,.category-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:760px) {
  .service-hero { min-height: auto; padding: 105px 0 75px; }
  .service-hero::after { display: none; }
  .hero-grid { margin-top: 44px; }
  .hero-visual { min-height: 350px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .service-hero h1,.section-heading h2,.decision-copy h2,.cta-inner h2,.service-map-head h2 { font-weight: 650; letter-spacing: -.038em; }
  .service-hero h1 { font-size: clamp(2.4rem,11vw,3.35rem); }
  .hero-copy > p { font-size: 1rem; line-height: 1.62; }
  .section { padding: 72px 0; }
  .section-heading,.service-map-head,.decision-grid { grid-template-columns: 1fr; gap: 30px; }
  .deliverables { grid-template-columns: 1fr; }
  .deliverable,.deliverable:nth-child(even) { min-height: 0; padding: 30px 0; border-left: 0; }
  .deliverable:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .deliverable h3 { margin-top: 30px; font-weight: 600; }
  .deliverable-icon,.deliverable-action,.process-step > span,.related-card span { font-weight: 700; }
  .decision-copy { position: static; }
  .signal:nth-child(even) { margin-left: 0; }
  .signal strong,.process-step strong,.related-card h2,.related-card h3,.faq-item summary { font-weight: 600; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 42px; }
  .process-grid::before { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card,.related-card + .related-card { min-height: 190px; padding: 26px 18px; border-right: 0; }
  .cta-inner { display: block; }
  .cta-inner .button { margin-top: 30px; }
}
@media (max-width:430px) {
  .service-hero { padding: 96px 0 62px; }
  .service-hero h1 { font-size: clamp(2.25rem,10.8vw,2.85rem); }
  .hero-visual { min-height: 310px; }
  .visual-core { left: 48px; transform: scale(.9); transform-origin: left center; }
  .visual-chip { width: min(220px,72%); padding: 12px; }
  .section { padding: 64px 0; }
  .visual-chip.three { display: none; }
  .service-map-links,.process-grid,.category-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 0; padding-bottom: 32px; }
  .signal { grid-template-columns: 30px 1fr; gap: 0 10px; padding: 26px 0; }
  .cta-section { padding: 70px 0; }
}
