:root {
  --blue: #003382;
  --red: #f40009;
  --navy: #061a42;
  --navy-2: #0c2a63;
  --ink: #0d1f42;
  --muted: #4a5a78;
  --line: #d6dde9;
  --soft: #eef1f7;
  --sky: #9dbcf2;
  --white: #fff;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 112px);
  --header: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Jost, "Century Gothic", Arial, sans-serif; font-size: 18px; line-height: 1.55; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; hyphens: manual; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.005em; }
h3 { font-size: 1.35rem; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--blue); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 3px; background: var(--red); }
.eyebrow-light { color: var(--white); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 28px; border: 2px solid var(--red); border-radius: 10px; background: var(--red); color: #fff; font-size: 1.19rem; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: #c90007; border-color: #c90007; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--blue); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1.19rem; white-space: nowrap; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: var(--header); }
.brand { flex: none; display: block; padding: 4px 0; }
.brand img { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a { display: block; padding: 8px 0; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); border-color: var(--red); }

.lang { position: relative; flex: none; }
.lang summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(6, 26, 66, .18); }
.lang a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.lang a:hover { background: var(--soft); }
.lang a[aria-current] { color: var(--blue); font-weight: 600; }

.burger { display: none; flex: none; width: 46px; height: 46px; padding: 11px 9px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; height: 3px; margin: 4px 0; background: var(--blue); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); background-image: radial-gradient(900px 600px at 85% 10%, #123a86 0, transparent 70%), linear-gradient(160deg, var(--blue), var(--navy) 70%); color: #fff; padding-top: clamp(48px, 7vw, 92px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 36em; color: #dfe7f6; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { min-width: 0; }
.hmi { width: 100%; height: auto; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); border-radius: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(44px, 6vw, 76px); padding: 30px 0 34px; border-top: 1px solid rgba(255, 255, 255, .22); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.1; }
.stat dt { color: #dfe7f6; font-size: 1rem; }

/* HMI */
.hmi text { font-family: Jost, Arial, sans-serif; fill: #b9cbef; }
.hmi .t { font-size: 14px; }
.hmi .t-s { font-size: 11.5px; }
.hmi .t-b, .hmi .t tspan[id] { font-size: 15px; font-weight: 600; fill: #fff; }
.vessel { fill: #0a2352; stroke: #6f93d6; stroke-width: 2; }
.box { fill: #0a2352; stroke: #2f5299; }
.level { fill: #1d57bb; transform-box: fill-box; transform-origin: bottom; animation: level 9s ease-in-out infinite alternate; }
.pipe { fill: none; stroke: #2f5299; stroke-width: 9; stroke-linejoin: round; }
.flow { fill: none; stroke: #9dbcf2; stroke-width: 3; stroke-dasharray: 8 12; animation: flow 1s linear infinite; }
.pipe-thin { stroke: #6f93d6; stroke-width: 4; }
.blade { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 1.6s linear infinite; }
.coil, .trend { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.filler { fill: #16418f; stroke: #6f93d6; stroke-width: 2; }
.conveyor { fill: #173c82; stroke: #6f93d6; }
.roller { fill: #0a2352; stroke: #9dbcf2; }
.bottle { fill: #cfe0fb; }
.bottle-label { fill: var(--red); }
.belt { animation: belt 2.4s linear infinite; }
.led { fill: #fff; animation: led 2s ease-in-out infinite; }

@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes belt { to { transform: translateX(70px); } }
@keyframes level { from { transform: scaleY(.88); } to { transform: scaleY(1); } }
@keyframes led { 50% { opacity: .35; } }

/* Seções */
.sec { padding: var(--sec) 0; }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--blue); color: #fff; }
.head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 + p { margin-top: 16px; color: var(--muted); font-size: 1.15rem; }
.sec-dark .head h2 + p { color: #dfe7f6; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.svc { display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); }
.svc:hover { border-top-color: var(--red); }
.svc-ico { width: 52px; margin-bottom: 18px; color: var(--blue); }
.svc-ico .a, .feat-art .a, .sector-art .a { stroke: var(--red); }
.svc h3 { margin-bottom: 10px; font-size: 1.5rem; }
.svc > p { color: var(--muted); margin-bottom: 18px; }
.svc li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--soft); }
.svc li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; background: var(--red); clip-path: polygon(0 0, 100% 42%, 34% 54%, 42% 100%); }

.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 26px 18px 0 0; border-top: 3px solid var(--blue); }
.steps li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--red); border: 3px solid var(--soft); }
.step-n { display: block; color: var(--blue); font-size: .9rem; font-weight: 600; }
.steps h3 { margin: 4px 0 6px; font-size: 1.15rem; hyphens: auto; }
.steps p { color: var(--muted); font-size: 1rem; line-height: 1.4; }

.systems { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.sys { grid-column: span 4; padding: 26px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); background: rgba(6, 26, 66, .28); }
.sys:nth-child(n+4) { grid-column: span 6; }
.sys h3 { margin-bottom: 14px; }
.sys ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sys li { padding: 4px 11px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; font-size: 1rem; }

.sector { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.sector-art { margin-bottom: 18px; padding: 16px; border-radius: 10px; background: var(--blue); color: #fff; }
.sector-art svg, .feat-art svg { width: 100%; height: auto; max-height: 150px; }
.sector-art .a { stroke: #ff5a60; }
.sector h3 { margin-bottom: 8px; }
.sector p { color: var(--muted); }

/* Portfólio */
.sub { margin-bottom: 20px; font-size: 1.45rem; }
.sub small { color: var(--muted); font-size: 1rem; font-weight: 400; }
.sub-all { margin-top: clamp(44px, 6vw, 68px); }
.feat { display: flex; flex-direction: column; padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feat-art { width: 110px; margin-bottom: 14px; color: var(--blue); }
.feat-meta { color: var(--muted); font-size: .95rem; }
.feat h4 { margin: 4px 0 10px; font-size: 1.6rem; color: var(--blue); }
.feat-sys { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.feat-metric { margin-top: auto; padding-top: 14px; font-size: 1.5rem; font-weight: 600; }
.feat-metric small { font-size: 1rem; font-weight: 400; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 44px; padding: 7px 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; cursor: pointer; font-size: 1rem; }
.chip:hover { border-color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

.rows { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 104px minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 1.35fr); gap: 16px; align-items: start; padding: 16px 22px; border-top: 1px solid var(--soft); }
.row:first-child { border-top: 0; }
.row[hidden] { display: none; }
.row-year { color: var(--blue); font-weight: 600; font-size: 1rem; }
.row h4 { font-size: 1.15rem; }
.row-main p { color: var(--muted); font-size: 1rem; }
.row-tech { font-size: 1rem; color: var(--muted); }
.row-sys, .row-io { display: block; }
.row-io { color: var(--ink); font-weight: 500; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row-tags li { padding: 1px 9px; background: var(--soft); border-radius: 5px; font-size: .92rem; }

/* Espiral GADOT */
.essence { padding: var(--sec) 0; background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; overflow: hidden; }
.essence-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.essence h2 { margin-bottom: 12px; }
.essence .lead { color: #dfe7f6; }
.spiral { max-width: 560px; width: 100%; margin: 0 auto; }
.spiral svg { width: 100%; height: auto; overflow: visible; }
.sp-rot { animation: sp-turn 90s linear infinite paused; }
.spiral.run .sp-rot { animation-play-state: running; }
.js .spiral .sp { opacity: 0; }
.js .spiral.in .sp { animation: sp-in .4s ease forwards; animation-delay: calc(var(--i) * 26ms); }
.gadot { margin-top: 26px; }
.gadot li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.g-l { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--red); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.gadot h3 { font-size: 1.25rem; }
.gadot small { margin-left: 6px; color: #dfe7f6; font-size: 1rem; font-weight: 400; }
.gadot p { color: #dfe7f6; font-size: 1rem; line-height: 1.4; }
@keyframes sp-in { to { opacity: 1; } }
@keyframes sp-turn { to { transform: rotate(360deg); } }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-txt h2 { margin-bottom: 22px; }
.about-txt p:not(.eyebrow) { margin-bottom: 14px; }
.about-lang { color: var(--blue); font-weight: 500; }
.timeline { border-left: 3px solid var(--blue); }
.timeline li { position: relative; padding: 0 0 24px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); border: 3px solid #fff; }
.timeline span { color: var(--blue); font-size: 1.2rem; font-weight: 600; }

/* Contato */
.contact { padding: var(--sec) 0; background: linear-gradient(150deg, var(--blue), var(--navy)); color: #fff; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contact h2 { margin-bottom: 16px; }
.contact .lead { color: #dfe7f6; }
.channels { display: grid; gap: 12px; }
.channels a { display: block; padding: 18px 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; text-decoration: none; transition: background-color .2s, color .2s; }
.channels a:hover { background: #fff; color: var(--blue); }
.channels span { display: block; font-size: .95rem; }
.channels strong { font-size: 1.3rem; font-weight: 600; word-break: break-word; }

.foot { padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--blue); color: #fff; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.foot-in img { width: 170px; }
.fine { margin-top: 8px; color: #dfe7f6; font-size: .9rem; }

/* Entrada suave: só desloca, para o conteúdo nunca depender do script para aparecer */
.js .reveal { transform: translateY(18px); transition: transform .55s ease; }
.js .reveal.in { transform: none; }

@media (max-width: 1160px) {
  .nav { position: fixed; left: 0; right: 0; top: calc(var(--header) + env(safe-area-inset-top)); bottom: 0; z-index: 40; display: none; margin: 0; padding: 12px var(--gutter); background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav.open { display: block; }
  .nav ul { display: block; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
  .lang { margin-left: auto; }
  .burger { display: block; }
  .top-cta { display: none; }
}

@media (max-width: 1000px) {
  .hero-in, .about, .contact-in, .essence-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 640px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .sys, .sys:nth-child(n+4) { grid-column: span 6; }
  .row { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); }
  .row-tags { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  :root { --header: 68px; }
  body { font-size: 17px; }
  .brand img { width: 140px; }
  .top-in { gap: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions .btn { width: 100%; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys, .sys:nth-child(n+4) { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; }
  .row-tags { grid-column: auto; }
  .chips { flex-wrap: nowrap; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chip { flex: none; }
  .svc, .sector, .feat { padding: 22px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { transform: none; }
  .js .spiral .sp { opacity: 1; }
}
