@font-face { font-family: "Saira XC"; src: url("fonts/saira-extra-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Saira XC"; src: url("fonts/saira-extra-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #14171B;
  --ink-2: #1F2329;
  --line-dark: #363B42;
  --alu: #E7E8E3;
  --alu-2: #D3D5CF;
  --copper: #E06A2E;
  --copper-d: #A8430F;
  --ml: #FFE600;
  --mute-dark: #A9AFB5;
  --mute-light: #50565C;
  --display: "Saira XC", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --ruler-h: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--alu); font: 400 1.0625rem/1.55 var(--body); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: .94; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ml); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 16px; }

/* Régua de paquímetro: progresso da página */
.ruler {
  position: fixed; inset: 0 0 auto; height: var(--ruler-h); z-index: 60; background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, var(--mute-dark) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px 10px);
  background-size: 100% 10px, 100% 5px; background-repeat: no-repeat;
}
.ruler__cursor { position: absolute; left: 0; top: 0; width: 34px; height: 100%; background: var(--copper); transform: translateX(calc(var(--p, 0) * (100vw - 34px))); will-change: transform; }

.top {
  position: sticky; top: var(--ruler-h); z-index: 50; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 5px var(--gutter); background: rgb(20 23 27 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-dark);
}
.top__logo { display: block; flex: none; }
.top__logo img { width: 80px; }
.top__nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; font-weight: 500; }
.top__nav a { text-decoration: none; padding: 8px 0; }
.top__nav a:hover { color: var(--copper); }
.top__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.wa { width: 20px; flex: none; color: #25D366; }
.top__tel:hover { color: var(--copper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px;
  font: 600 1.0625rem/1.15 var(--body); text-decoration: none; border: 2px solid transparent; border-radius: 3px; transition: background-color .15s, color .15s, transform .15s;
}
.btn svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--ml { background: var(--ml); color: var(--ink); }
.btn--ml:hover { background: #fff; transform: translateY(-2px); }
.btn--line { border-color: var(--line-dark); color: var(--alu); font-family: var(--mono); font-weight: 500; font-size: 1rem; }
.btn--line:hover { border-color: var(--alu); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 1rem; }
.btn--wa { border-color: #25D366; color: var(--alu); }
.btn--wa:hover { background: #25D366; color: var(--ink); transform: translateY(-2px); }
.btn--wa:hover .wa { color: var(--ink); }

.tag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 500 .8125rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--copper); }
.tag i { width: 26px; height: 1px; background: currentColor; }
.tag--dark { color: var(--copper-d); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); align-items: center; min-height: min(86vh, 860px); padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 6vw, 80px) var(--gutter); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 62% at 74% 50%, rgb(224 106 46 / .2), transparent 72%); }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3.75rem, 9.6vw, 9.75rem); margin: 18px 0 24px; }
.hero h1 em { font-style: normal; color: var(--copper); }
.hero__lead { max-width: 33em; color: var(--mute-dark); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__part { position: relative; width: 104%; margin-left: -8%; }
.js .hero__part { animation: part-in .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes part-in { from { opacity: 0; transform: translateX(70px) rotate(3deg); } }

/* Luneta: lente com zoom que percorre o alternador */
.hero__part { cursor: crosshair; touch-action: pan-y; }
.scope { display: none; }
.js .scope {
  --size: clamp(120px, 15vw, 224px);
  display: block; position: absolute; left: var(--x, 62%); top: var(--y, 30%); z-index: 2; width: var(--size); height: var(--size); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; overflow: hidden; background-color: var(--ink-2);
  background-image: url("img/alternador.webp"); background-repeat: no-repeat; background-size: var(--bw, 0) var(--bh, 0); background-position: var(--bx, 0) var(--by, 0);
  box-shadow: 0 0 0 2px var(--copper), 0 18px 50px rgb(0 0 0 / .55);
  transition: left .9s cubic-bezier(.65, 0, .25, 1), top .9s cubic-bezier(.65, 0, .25, 1), background-position .9s cubic-bezier(.65, 0, .25, 1);
}
.scope.is-live { transition: none; }
.scope::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 34px 8px rgb(10 12 14 / .72); }
.scope__reticle { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; fill: none; stroke: var(--copper); stroke-width: 1; }
.scope__post { stroke-width: 3.5; }
.scope__dot { fill: var(--copper); stroke: none; }
.scope__label { display: none; position: absolute; left: 50%; bottom: 13%; z-index: 2; transform: translateX(-50%); padding: 2px 6px; background: var(--ink); font: 500 .625rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.scope.is-live .scope__label { visibility: hidden; }

.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--alu); }
.callout { position: absolute; display: block; white-space: nowrap; transition: color .3s; }
.callout.is-on { color: var(--copper); }
.callout::after { content: ""; position: absolute; width: 1px; background: var(--copper); left: 50%; }
.callout--polia { left: 89%; top: 6%; }
.callout--polia::after { top: 18px; height: 5.6vw; max-height: 84px; }
.callout--bobina { left: 30%; bottom: -2%; }
.callout--bobina::after { bottom: 18px; height: 5vw; max-height: 62px; }
.callout--estator { left: 56%; top: -1%; }
.callout--estator::after { top: 18px; height: 5vw; max-height: 70px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-dark); }
.facts li { padding: 22px var(--gutter) 24px; border-left: 1px solid var(--line-dark); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 700 clamp(1.625rem, 2.6vw, 2.25rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.facts span { color: var(--mute-dark); font-size: 1rem; }

/* Faixa corrida */
.ticker { overflow: hidden; background: var(--copper); color: var(--ink); }
.ticker__track { display: flex; width: max-content; }
.js .ticker__track { animation: ticker 44s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__group { display: flex; flex: none; }
.ticker__group span { display: inline-flex; align-items: center; padding: 11px 0; font: 700 clamp(1.5rem, 2.5vw, 2.125rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.ticker__group span::after { content: ""; width: .95em; height: .95em; margin: 0 1.1em; background: url("img/mira-ico-grafite.svg") center / contain no-repeat; }

/* Peças */
.parts { background: var(--alu); color: var(--ink); color-scheme: light; padding: clamp(64px, 9vw, 130px) var(--gutter); }
.parts__head h2 { font-size: clamp(3rem, 7.4vw, 7rem); margin-top: 14px; }
.parts__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 70px); }
.sheet { position: sticky; top: 112px; align-self: start; border: 1.5px solid var(--ink); }
.lock {
  position: absolute; inset: 14px; pointer-events: none; --c: var(--copper-d); --l: 30px; --w: 3px;
  background:
    linear-gradient(var(--c) 0 0) 0 0 / var(--l) var(--w), linear-gradient(var(--c) 0 0) 0 0 / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) 100% 0 / var(--l) var(--w), linear-gradient(var(--c) 0 0) 100% 0 / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) 0 100% / var(--l) var(--w), linear-gradient(var(--c) 0 0) 0 100% / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) 100% 100% / var(--l) var(--w), linear-gradient(var(--c) 0 0) 100% 100% / var(--w) var(--l);
  background-repeat: no-repeat;
}
.sheet__art.swap .lock { animation: lock .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lock { from { opacity: 0; transform: scale(1.14); } }
.sheet__art { position: relative; padding: clamp(26px, 3.4vw, 46px); background-image: linear-gradient(var(--alu-2) 1px, transparent 1px), linear-gradient(90deg, var(--alu-2) 1px, transparent 1px); background-size: 24px 24px; }
.sheet__art img { width: 100%; }
.sheet__art.swap img { animation: swap .35s ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.sheet__stamp { display: grid; grid-template-columns: 1.3fr .7fr 1.4fr; border-top: 1.5px solid var(--ink); font-family: var(--mono); }
.sheet__stamp div { padding: 10px 12px; border-left: 1.5px solid var(--ink); }
.sheet__stamp div:first-child { border-left: 0; }
.sheet__stamp dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute-light); }
.sheet__stamp dd { font-size: .9375rem; font-weight: 500; }

.index { border-top: 1.5px solid var(--ink); }
.index li { border-bottom: 1.5px solid var(--ink); }
.index a { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 8px; padding: 18px 64px 20px 0; text-decoration: none; transition: padding-left .2s; }
.index a::after { content: ""; position: absolute; right: 4px; top: 50%; width: 44px; height: 44px; margin-top: -22px; background: url("img/mira-ico-cobre.svg") center / contain no-repeat; opacity: 0; transform: scale(1.7) rotate(-45deg); transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.index a:hover::after, .index a:focus-visible::after, .index a.is-on::after { opacity: 1; transform: none; }
.index__n { font: 500 .875rem/1 var(--mono); padding-top: .95em; color: var(--copper-d); }
.index__t { font: 800 clamp(2.5rem, 5.2vw, 4.75rem)/1 var(--display); text-transform: uppercase; }
.index__d { grid-column: 2; max-width: 34em; color: var(--mute-light); }
.index__art { display: none; }
.index a:hover, .index a:focus-visible, .index a.is-on { padding-left: 14px; }
.index a:hover .index__t, .index a:focus-visible .index__t, .index a.is-on .index__t { color: var(--copper-d); }
.parts__more { margin-top: 28px; font-size: 1.125rem; }
.parts__more a { color: var(--copper-d); font-weight: 600; text-underline-offset: 3px; }

/* Faixa */
.band { position: relative; overflow: clip; padding: clamp(90px, 15vw, 210px) var(--gutter); background: linear-gradient(90deg, rgb(20 23 27 / .96) 8%, rgb(20 23 27 / .72) 52%, rgb(20 23 27 / .3)), url("img/radiador-aletas.webp") center / cover; }
.band::after { content: ""; position: absolute; right: 5vw; top: 50%; width: clamp(280px, 36vw, 560px); aspect-ratio: 1; margin-top: calc(clamp(280px, 36vw, 560px) / -2); background: url("img/mira-fina.svg") center / contain no-repeat; opacity: .75; animation: sway 11s ease-in-out infinite alternate; }
@keyframes sway { from { transform: translate(-16px, 12px); } to { transform: translate(18px, -14px); } }
.band__copy { position: relative; z-index: 1; }
.band h2 { font-size: clamp(3.5rem, 9vw, 8.75rem); }
.band p { max-width: 34em; margin-top: 24px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }

/* Como comprar */
.how { background: var(--ink-2); padding: clamp(64px, 8vw, 120px) var(--gutter); }
.how h2 { font-size: clamp(3rem, 6vw, 5.75rem); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin: clamp(32px, 4vw, 56px) 0 40px; }
.steps li { counter-increment: s; position: relative; padding-top: 30px; border-top: 2px solid var(--line-dark); }
.steps li::before { content: "0" counter(s); position: absolute; top: -13px; left: 0; padding-right: 12px; background: var(--ink-2); font: 500 .875rem/24px var(--mono); color: var(--copper); }
.steps h3 { font: 700 clamp(1.75rem, 2.8vw, 2.5rem)/1.05 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--mute-dark); max-width: 26em; }

/* Contato */
.contact { position: relative; overflow: clip; padding: clamp(70px, 10vw, 150px) var(--gutter) clamp(50px, 7vw, 90px); }
.contact > * { position: relative; z-index: 1; }
.contact::before { content: ""; position: absolute; right: -9vw; bottom: -14vw; width: clamp(340px, 50vw, 780px); aspect-ratio: 1; background: url("img/mira-fina.svg") center / contain no-repeat; opacity: .14; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__tel { display: block; margin: 14px 0 20px; font: 800 clamp(3.75rem, 14.2vw, 15rem)/.95 var(--display); text-decoration: none; white-space: nowrap; transition: color .15s; }
.contact__tel:hover { color: var(--copper); }
.contact__note { max-width: 34em; color: var(--mute-dark); font-size: 1.125rem; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 28px var(--gutter); border-top: 1px solid var(--line-dark); }
.foot img { width: 96px; }
.foot__slogan { font-weight: 500; }
.foot__legal { margin-left: auto; font-size: .875rem; color: var(--mute-dark); }

.dock { display: none; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .top__tel { display: none; }
  .callouts { display: none; }
  .scope__label { display: block; }
}

@media (max-width: 820px) {
  .top__nav, .top__cta { display: none; }
  .top__tel { display: inline-flex; margin-left: auto; padding: 10px 0; }
  .top__logo img { width: 68px; }
  .index a { padding-right: 0; }
  .index a::after { display: none; }
  .band::after { right: -60px; opacity: .4; }
  .contact__actions .btn { flex: 1 1 100%; }
  .tag i { display: none; }
  .tag { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn--ml { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 32px var(--gutter) 28px; }
  .hero h1 { font-size: clamp(3.75rem, 18.5vw, 7.5rem); }
  .hero__part { width: 100%; margin: 24px 0 0; order: 2; }
  .hero__actions .btn { width: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 18px var(--gutter); }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .parts__body { grid-template-columns: minmax(0, 1fr); }
  .sheet { display: none; }
  .index a { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .index a:hover, .index a.is-on { padding-left: 0; }
  .index__art { display: block; grid-column: 2; width: min(100%, 300px); margin-top: 14px; }
  .band { background: linear-gradient(rgb(20 23 27 / .84), rgb(20 23 27 / .84)), url("img/radiador-aletas.webp") center / cover; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .how .btn { width: 100%; }
  .foot { padding-bottom: 96px; }
  .foot__legal { margin-left: 0; }
  .dock { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 8px; position: fixed; inset: auto 0 0; z-index: 55; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line-dark); }
  .dock__wa { padding: 0; }
  .dock__wa .wa { width: 26px; }
  html { scroll-padding-top: 84px; }
}

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