/* ==========================================================================
   Farias Soluções Elétricas · Rhaduan Farias: estilos base
   Tokens, fundos desenhados, botões, vidro, cabeçalho, abertura e hero.
   As demais seções ficam em css/sections.css.
   ========================================================================== */

:root {
  /* paleta tirada da logo: preto, amarelo-energia e branco */
  --bg: #070707;
  --bg-2: #0c0c0e;
  --coal: #111114;
  --panel: #17181c;
  --graphite: #22242a;
  --steel: #6c7079;
  --volt: #fde701;
  --volt-2: #ffd400;
  --amber: #ffb800;
  --spark: #fff59a;
  --cyan: #5fe3ff;
  --paper: #f4f2ea;
  --paper-2: #e9e6da;
  --ink: #111111;

  --text: #f5f4ee;
  --muted: #a8a7a0;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);

  --g-volt: linear-gradient(115deg, #ffc400 0%, #fde701 42%, #fff59a 72%, #fde701 100%);
  --g-text: linear-gradient(100deg, #fff59a 0%, #fde701 38%, #ffd400 64%, #ffb800 100%);
  --g-mirror: linear-gradient(180deg, #4a4e57 0%, #23262c 46%, #0b0c0f 52%, #1c1f24 78%, #3a3e46 100%);
  --g-chrome: linear-gradient(180deg, #ffffff 0%, #e9e9e4 28%, #bdbdb6 49%, #8d8d86 51%, #cfcfc8 76%, #f7f7f3 100%);

  --f-display: "Outfit", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 22px;
  --r-sm: 14px;
  --wrap: 1220px;
  --gut: clamp(16px, 4vw, 32px);
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
  --icon-accent: var(--volt);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font: 400 16.5px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.04; letter-spacing: -.035em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--volt); color: #111; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--volt); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 800; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; position: relative; z-index: 2; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- seções e fundos desenhados (nenhuma seção tem fundo liso) ---------- */
.sec { position: relative; padding: clamp(76px, 10vw, 132px) 0; overflow: hidden; isolation: isolate; }
.sec--tight { padding: clamp(56px, 7vw, 92px) 0; }
.sec > .bg, .bg-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.tone-deep { background: radial-gradient(110% 70% at 50% 0%, #17160c 0%, var(--bg) 58%); }
.tone-coal { background: linear-gradient(180deg, #0a0a0b 0%, #111114 50%, #0a0a0b 100%); }
.tone-volt {
  --text: #111; --muted: #3d3a1c; --line: rgba(0, 0, 0, .12); --line-2: rgba(0, 0, 0, .24); --icon-accent: #111;
  color: var(--text);
  background: radial-gradient(70% 90% at 85% 0%, #fff7a8 0%, transparent 60%), linear-gradient(160deg, #fde701 0%, #ffd400 60%, #ffc400 100%);
}
.tone-paper {
  --text: #121212; --muted: #57554e; --line: rgba(17, 17, 17, .11); --line-2: rgba(17, 17, 17, .2);
  --icon-accent: #c9a800;
  color: var(--text);
  background: radial-gradient(80% 60% at 85% 0%, #ffffff 0%, transparent 60%), linear-gradient(180deg, #f7f5ee 0%, #ebe8dc 100%);
}

/* grade de planta baixa */
.bg-grid {
  background-image:
    linear-gradient(rgba(253, 231, 1, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 231, 1, .07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.tone-paper .bg-grid, .tone-volt .bg-grid {
  background-image:
    linear-gradient(rgba(17, 17, 17, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .07) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .03) 1px, transparent 1px);
}
.bg-dots {
  background-image: radial-gradient(rgba(253, 231, 1, .2) 1.2px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}
.tone-paper .bg-dots, .tone-volt .bg-dots { background-image: radial-gradient(rgba(17, 17, 17, .16) 1.2px, transparent 1.5px); }

/* trilhas de circuito */
.bg-circuit {
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280' fill='none' stroke='%23fde701' stroke-opacity='.2' stroke-width='1.3'%3E%3Cpath d='M0 40h70l20 20h60l20-20h110M0 140h30l30-30h60M120 110v60l20 20h70l20 20v70M280 100h-40l-20 20v30M40 280v-50l30-30h20M190 0v30l-20 20M0 230h20l20-20'/%3E%3Cg fill='%23fde701' fill-opacity='.35' stroke='none'%3E%3Ccircle cx='70' cy='40' r='3'/%3E%3Ccircle cx='150' cy='60' r='3'/%3E%3Ccircle cx='120' cy='110' r='3'/%3E%3Ccircle cx='210' cy='190' r='3'/%3E%3Ccircle cx='240' cy='100' r='3'/%3E%3Ccircle cx='90' cy='200' r='3'/%3E%3C/g%3E%3Cg stroke='%23ffffff' stroke-opacity='.25'%3E%3Ccircle cx='30' cy='140' r='4'/%3E%3Ccircle cx='220' cy='150' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 280px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 20%, transparent 75%);
}
.tone-paper .bg-circuit { opacity: .9; filter: brightness(.55) saturate(1.4); }

/* casas da logo repetidas, como uma planta */
.bg-houses {
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='%23fde701' stroke-opacity='.12' stroke-width='2'%3E%3Cpath d='M40 120V76l30-17M62 62V50l26-13v32M78 74l22 16v30M40 120h12M88 120h12'/%3E%3Ccircle cx='70' cy='96' r='9'/%3E%3Cpath d='M130 170v-30l20-11M146 128v-8l18-9v22M156 136l14 10v24'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 25%, transparent 78%);
}
.tone-paper .bg-houses, .tone-volt .bg-houses { filter: brightness(0); opacity: .14; }

/* fita de obra */
.bg-hazard {
  background: repeating-linear-gradient(-45deg, rgba(253, 231, 1, .06) 0 14px, transparent 14px 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

/* textura */
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* manchas de luz */
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; animation: float 16s ease-in-out infinite alternate; }
.glow--volt { background: radial-gradient(circle, rgba(253, 231, 1, .75), transparent 70%); }
.glow--amber { background: radial-gradient(circle, rgba(255, 184, 0, .7), transparent 70%); }
.glow--white { background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 70%); }
.tone-paper .glow { opacity: .32; }
@keyframes float { to { transform: translate3d(30px, -26px, 0) scale(1.08); } }

/* linha de corrente na borda de cima */
.wire-top { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; overflow: hidden; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.wire-top::after { content: ""; position: absolute; top: -1px; left: -30%; width: 30%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--amber), #fff, var(--volt), transparent); filter: drop-shadow(0 0 8px var(--volt)); animation: current 5.5s linear infinite; }
@keyframes current { to { left: 130%; } }

/* ---------- títulos de seção ---------- */
.sh { max-width: 800px; margin-bottom: clamp(36px, 5vw, 60px); position: relative; }
.sh--c { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 12.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--volt);
}
.tone-paper .eyebrow { color: #8a7400; }
.tone-volt .eyebrow { color: #111; }
.eyebrow .i { width: 18px; height: 18px; stroke-width: 2; --icon-accent: currentColor; }
.eyebrow::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); }
.sh--c .eyebrow::before { content: ""; width: 44px; height: 1px; background: linear-gradient(-90deg, currentColor, transparent); order: -1; }
.h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; letter-spacing: -.045em; }
.h3 { font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; letter-spacing: -.03em; }
.lead { margin-top: 18px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 690px; }
.sh--c .lead { margin-inline: auto; }
.grad { background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tone-paper .grad { background: linear-gradient(100deg, #111 0%, #3a3300 50%, #8a7400 100%); -webkit-background-clip: text; background-clip: text; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .36em; background: var(--volt); z-index: -1; border-radius: 3px; transform: skewX(-8deg); }
.thin { font-weight: 300; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }

/* ---------- botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px;
  font: 800 15.5px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .6s var(--ease), filter .3s, border-color .3s;
}
.btn .i { width: 20px; height: 20px; stroke-width: 2; }
.btn::after { /* faixa de brilho que passa */
  content: ""; position: absolute; z-index: 1; top: -20%; bottom: -20%; left: -60%; width: 36%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-22deg); transition: left .7s var(--ease); pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { left: 130%; }
.btn > * { position: relative; z-index: 2; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 62px; padding: 0 32px; font-size: 16.5px; border-radius: 16px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }

/* amarelo energizado com brilho automático */
.btn--volt {
  color: #111; background: var(--g-volt); background-size: 180% 100%;
  box-shadow: 0 14px 36px -12px rgba(253, 231, 1, .6), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(120, 90, 0, .25);
  --icon-accent: #111;
}
.btn--volt::after { animation: shine 3.6s ease-in-out infinite; }
.btn--volt:hover { background-position: 100% 0; box-shadow: 0 18px 46px -12px rgba(253, 231, 1, .85), 0 0 0 4px rgba(253, 231, 1, .16), inset 0 1px 0 rgba(255, 255, 255, .6); }
@keyframes shine { 0%, 60% { left: -60%; } 82%, 100% { left: 130%; } }

/* espelho preto (obsidiana) */
.btn--mirror {
  color: #fff; background: var(--g-mirror); background-size: 100% 220%;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .12);
}
.btn--mirror::before { /* reflexo na metade de cima */
  content: ""; position: absolute; inset: 1px 1px 52% 1px; border-radius: 13px 13px 40% 40% / 13px 13px 8px 8px; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .02)); pointer-events: none;
}
.btn--mirror:hover { background-position: 0 100%; box-shadow: 0 16px 40px -14px rgba(253, 231, 1, .45), inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(253, 231, 1, .5); }

/* cromado claro */
.btn--chrome {
  color: #111; background: var(--g-chrome); background-size: 100% 220%;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .7), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(60, 60, 50, .4), 0 0 0 1px rgba(255, 255, 255, .25);
  --icon-accent: #8a7400;
}
.btn--chrome::before {
  content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 13px 13px 40% 40% / 13px 13px 10px 10px; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .05)); pointer-events: none;
}
.btn--chrome:hover { background-position: 0 100%; }

/* vidro */
.btn--glass { color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(253, 231, 1, .5); }
.tone-paper .btn--glass, .tone-volt .btn--glass { background: rgba(255, 255, 255, .6); border-color: rgba(17, 17, 17, .18); }
.btn--ink { color: #fff; background: linear-gradient(180deg, #2a2a2e, #0d0d0f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 30px -14px rgba(0, 0, 0, .8); }
.btn--ink:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 3px rgba(17, 17, 17, .15), 0 16px 34px -14px rgba(0, 0, 0, .9); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--volt); }
.tone-paper .link-arrow { color: #111; text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.link-arrow .i { transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- vidro ---------- */
.glass {
  position: relative; border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .018) 60%, rgba(253, 231, 1, .025));
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tone-paper .glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .62));
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 24px 50px -30px rgba(40, 35, 10, .45), inset 0 1px 0 #fff;
}
.glass--edge::before { /* borda em degradê */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(253, 231, 1, .75), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, .02) 65%, rgba(255, 184, 0, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot::after { /* holofote que segue o mouse */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 231, 1, .13), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.tone-paper .spot::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 231, 1, .3), transparent 60%); }
[data-tilt] { transition: transform .5s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* selos */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
  font: 700 13.5px/1 var(--f-body); color: var(--text); white-space: nowrap;
}
.chip .i { width: 17px; height: 17px; stroke-width: 2; }
.tone-paper .chip { background: rgba(255, 255, 255, .75); }
.chip--volt { background: var(--volt); color: #111; border-color: transparent; --icon-accent: #111; }

/* revelar ao rolar */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- barra de progresso e brilho do cursor ---------- */
.progress { position: fixed; left: 0; top: 0; z-index: 120; height: 3px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--g-volt); box-shadow: 0 0 12px var(--volt); pointer-events: none; }
.cursor-glow { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--cx, -999px) var(--cy, -999px), rgba(253, 231, 1, .06), transparent 60%); }

/* ---------- abertura: ligando a energia ---------- */
.intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, #15140a 0%, #050505 70%);
  transition: opacity .6s var(--ease), visibility .6s;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro__box { display: grid; justify-items: center; gap: 22px; }
.intro__mark { width: 150px; height: auto; overflow: visible; }
.intro__mark .ln { fill: none; stroke: var(--volt); stroke-width: 6; stroke-linecap: square; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.1s var(--ease) forwards; filter: drop-shadow(0 0 6px rgba(253, 231, 1, .6)); }
.intro__mark .ln:nth-child(2) { animation-delay: .15s; }
.intro__mark .ln:nth-child(3) { animation-delay: .3s; }
.intro__mark .ln:nth-child(4) { animation-delay: .45s; }
.intro__mark .bulb { fill: none; stroke: var(--volt); stroke-width: 6; opacity: 0; animation: flick .9s .9s steps(1) forwards; }
.intro__mark .bolt { fill: var(--volt); opacity: 0; animation: flick .9s 1.05s steps(1) forwards; filter: drop-shadow(0 0 14px var(--volt)); }
.intro__txt { font: 600 12px/1 var(--f-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.intro__txt b { color: var(--volt); font-weight: 600; }
.intro__bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; background: var(--g-volt); transform-origin: left; animation: load 1.6s var(--ease) forwards; box-shadow: 0 0 10px var(--volt); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flick { 0% { opacity: .8; } 15% { opacity: .1; } 30% { opacity: 1; } 45% { opacity: .3; } 60%, 100% { opacity: 1; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.intro-off .intro { display: none; }

/* ---------- cabeçalho ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr); transition: background .4s, box-shadow .4s, height .4s; }
.hdr.is-scrolled { background: rgba(8, 8, 9, .72); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(0, 0, 0, .9); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 0 12px rgba(253, 231, 1, .25)); }
.brand__t { display: grid; line-height: 1; }
.brand__t b { font: 300 23px/1 var(--f-display); letter-spacing: .26em; color: #fff; }
.brand__t small { margin-top: 5px; font: 600 8.6px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--volt); }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 10px 12px; border-radius: 10px; font: 700 14px/1 var(--f-body); color: #d9d8d1; transition: color .25s, background .25s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); box-shadow: 0 0 8px var(--volt); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.hdr__cta { display: flex; gap: 10px; align-items: center; }
.hdr .btn { min-height: 46px; padding: 0 18px; font-size: 14.5px; border-radius: 12px; }
.listbtn { position: relative; }
.listbtn__n { position: absolute; top: -6px; right: -6px; z-index: 3; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--volt); color: #111; font: 800 12px/1 var(--f-body); box-shadow: 0 0 0 3px #0b0b0c; transform: scale(0); transition: transform .3s var(--ease); }
.listbtn.has-items .listbtn__n { transform: scale(1); }
.listbtn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.burger .i { width: 24px; height: 24px; }

.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: linear-gradient(180deg, #121214, #0a0a0b); border-left: 1px solid var(--line-2); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer__top img { height: 44px; width: auto; }
.drawer__close { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 12px; font: 700 17px/1.2 var(--f-display); border-bottom: 1px solid var(--line); }
.drawer nav a .i { color: var(--volt); }
.drawer nav a:hover { background: rgba(253, 231, 1, .06); }
.drawer .btn { margin-top: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--hdr) + 40px) 0 70px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(80% 70% at 75% 30%, #1d1b0a 0%, #0a0a0a 55%, #060606 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__copy { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(42px, 6.4vw, 86px); font-weight: 700; letter-spacing: -.05em; line-height: .98; }
.hero h1 .thin { display: block; font-size: .5em; letter-spacing: -.02em; color: #e7e6df; margin-bottom: 10px; line-height: 1.1; }
.hero__lead { margin-top: 22px; max-width: 600px; font-size: clamp(16.5px, 1.6vw, 19px); color: #c7c6bf; }
.hero__lead b { color: #fff; }
.hero .btn-row { margin-top: 32px; }
.hero__chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__moon { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(253, 231, 1, .08); border: 1px solid rgba(253, 231, 1, .3); font: 700 13.5px/1 var(--f-body); color: #f0eedc; }
.hero__moon span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--volt); color: #111; --icon-accent: #111; }
.hero__moon .i { width: 17px; height: 17px; stroke-width: 2; }

/* a moldura usa as mesmas coordenadas da logo (viewBox 370 40 590 840);
   a foto ocupa só a casa da frente: paredes em x 394..846, beiral de 288 a 826 */
.hero__art { position: relative; aspect-ratio: 590 / 840; max-width: 500px; justify-self: end; width: 100%; }
.hero__house { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__photo { position: absolute; left: 4.07%; right: 19.32%; top: 29.52%; bottom: 6.43%; clip-path: polygon(0 24.5%, 52.6% 0, 69.9% 19.3%, 100% 37.9%, 100% 100%, 0 100%); overflow: hidden; background: #111; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 6, 6, .85) 100%), radial-gradient(80% 60% at 50% 30%, transparent 50%, rgba(0, 0, 0, .35)); }
.hero__house .hs { fill: none; stroke: var(--volt); stroke-width: 7; stroke-linecap: square; filter: drop-shadow(0 0 10px rgba(253, 231, 1, .7)); stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.is-ready .hero__house .hs { animation: draw 2.2s var(--ease) forwards; }
.is-ready .hero__house .hs:nth-of-type(2) { animation-delay: .25s; }
.is-ready .hero__house .hs:nth-of-type(3) { animation-delay: .5s; }
.hero__house .spark { fill: #fff; filter: drop-shadow(0 0 8px var(--volt)) drop-shadow(0 0 16px var(--volt)); }
.hero__float.glass { background: linear-gradient(160deg, rgba(30, 30, 28, .78), rgba(10, 10, 10, .7)); }
.hero__float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; animation: bob 6s ease-in-out infinite; }
.hero__float img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.hero__float b { display: block; font: 700 14.5px/1.2 var(--f-display); }
.hero__float small { display: block; margin-top: 3px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.hero__float--a { left: -6%; top: 52%; }
.hero__float--b { right: -4%; top: 8%; animation-delay: -3s; }
.hero__float--c { right: 2%; bottom: 7%; animation-delay: -1.5s; }
.hero__float .ico { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--volt); color: #111; --icon-accent: #111; }
.hero__float .ico .i { width: 28px; height: 28px; stroke-width: 1.8; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.volt-meter { display: flex; align-items: baseline; gap: 4px; font: 600 26px/1 var(--f-mono); color: var(--volt); text-shadow: 0 0 14px rgba(253, 231, 1, .6); }
.volt-meter small { font-size: 12px; color: var(--muted); text-shadow: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 8px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid var(--line-2); position: relative; }
.hero__scroll i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--volt); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }
.hero__wires { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9; }
.hero__wires path { fill: none; stroke: rgba(253, 231, 1, .16); stroke-width: 1.4; }
.hero__wires .flow { stroke: var(--volt); stroke-width: 2; stroke-dasharray: 40 900; animation: flow 6s linear infinite; filter: drop-shadow(0 0 6px var(--volt)); }
.hero__wires .flow:nth-of-type(2n) { animation-duration: 8s; animation-delay: -2s; }
.hero__wires .flow:nth-of-type(3n) { animation-duration: 7s; animation-delay: -4s; }
@keyframes flow { from { stroke-dashoffset: 940; } to { stroke-dashoffset: 0; } }
.hero__big { position: absolute; left: 50%; bottom: -3vw; transform: translateX(-50%); z-index: -1; font: 200 clamp(120px, 24vw, 380px)/.8 var(--f-display); letter-spacing: .12em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(253, 231, 1, .1); pointer-events: none; }

/* ---------- mascote Faísca ---------- */
.mascot { position: relative; width: 150px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.mascot svg { width: 100%; height: auto; overflow: visible; }
.mascot__body { transform-origin: 50% 90%; animation: sway 4s ease-in-out infinite; }
.mascot .glowb { animation: pulse 2.6s ease-in-out infinite; }
.mascot .eye { transition: transform .15s; }
.mascot .lid { transform-origin: center; transform: scaleY(0); animation: blink 5s infinite; }
.mascot .arm-r { transform-box: view-box; transform-origin: 124px 170px; animation: wave 3.2s ease-in-out infinite; }
.mascot.is-talk .arm-r { animation-duration: .8s; }
.mascot__say { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px); width: max-content; max-width: 230px; padding: 10px 14px; border-radius: 14px; background: #fff; color: #111; font: 700 13.5px/1.35 var(--f-body); text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.mascot__say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.mascot.is-talk .mascot__say { opacity: 1; transform: translate(-50%, -6px); }
@keyframes sway { 50% { transform: rotate(-3deg) translateY(-3px); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-22deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-16deg); } }
.hero__mascot { position: absolute; left: -2%; bottom: -2%; z-index: 5; width: 120px; }

/* ---------- responsivo base ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 470px; margin-top: 10px; }
  .hero { min-height: auto; }
}
@media (max-width: 620px) {
  :root { --hdr: 68px; }
  .brand img { height: 40px; }
  .brand__t b { font-size: 19px; letter-spacing: .2em; }
  .brand__t small { font-size: 7.4px; letter-spacing: .22em; }
  .hdr__cta .btn--volt span, .hdr__cta .listbtn span { display: none; }
  .hdr__cta .btn { width: 46px; padding: 0; }
  .hero .btn-row .btn { width: 100%; }
  .hero__float { padding: 10px 12px 10px 10px; gap: 10px; }
  .hero__float img, .hero__float .ico { width: 42px; height: 42px; }
  .hero__float b { font-size: 13px; }
  .hero__float--a { left: -2%; }
  .hero__float--b { right: -2%; }
  .hero__mascot { width: 92px; left: -3%; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__house .hs { stroke-dashoffset: 0; }
  .js .rv { opacity: 1; transform: none; }
}
