/* =========================================================
   Eixo5 Digital — estilos
   ========================================================= */

:root {
  --bg: #05080f;
  --bg-2: #0a0f1a;
  --surface: #0e1522;
  --surface-2: #131c2c;
  --line: rgba(160, 200, 255, 0.10);
  --line-2: rgba(160, 200, 255, 0.18);
  --text: #e8eef7;
  --muted: #8d9bb2;
  --accent: #37d6ff;
  --accent-2: #7c8cff;
  --zr: #f4f1ea;
  --wa: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --maxw: 1180px;

  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
.narrow { max-width: 820px; }
.center { display: flex; justify-content: center; margin-top: 40px; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #a5ecff 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(55, 214, 255, .15), 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse { 50% { opacity: .4; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn .ico { width: 20px; height: 20px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #5ab8ff);
  color: #031018;
  box-shadow: 0 8px 30px -8px rgba(55, 214, 255, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(55, 214, 255, .8); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 17px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 8, 15, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.logo__mark { width: 34px; height: 34px; }
.logo__text {
  font-family: var(--f-head); font-weight: 700; font-size: 21px; color: var(--text);
  display: inline-flex; align-items: baseline; gap: 1px;
}
.logo__text b { color: var(--accent); }
.logo__text small {
  font-family: var(--f-mono); font-weight: 400; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-left: 8px;
}

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }

.menu-toggle { display: none; }

@media (max-width: 960px) {
  .header__cta { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; padding: 0 11px;
    background: transparent; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
  }
  .menu-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(5, 8, 15, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -300px; top: -250px;
  background: radial-gradient(circle, rgba(55, 214, 255, .16), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 700px; height: 700px; left: -300px; bottom: -350px;
  background: radial-gradient(circle, rgba(124, 140, 255, .12), transparent 60%);
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}

.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 150px 0 100px; min-height: 100vh; display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; }
.lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 540px; }
.lead strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 12px 36px; margin: 44px 0 0;
}
.stats div { border-left: 1px solid var(--line-2); padding-left: 14px; }
.stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: var(--f-head); font-size: 34px; font-weight: 700; line-height: 1; }
.stats dd em { font-style: normal; font-size: 18px; color: var(--accent); margin-left: 2px; }
@media (max-width: 480px) {
  .stats { gap: 12px 18px; }
  .stats dd { font-size: 28px; }
  .stats dt { font-size: 10px; }
}

/* ---------- Palco 3D ---------- */
.stage {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(55, 214, 255, .12), transparent 60%),
    linear-gradient(180deg, rgba(19, 28, 44, .6), rgba(10, 15, 26, .3));
  overflow: hidden;
}
.stage { transform-style: preserve-3d; transition: transform .4s ease-out; will-change: transform; }

/* Foto das coroas */
.stage__media { position: absolute; inset: 0; overflow: hidden; }
.stage__media .layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  transform: scale(1.04);
}
/* projeto azulado e apagado */
.layer--blueprint {
  filter: grayscale(1) sepia(1) hue-rotate(155deg) saturate(3) brightness(.45) contrast(1.3);
  opacity: .55;
}
/* contornos tipo CAD */
.layer--edges { filter: url(#cad-edges); opacity: .9; mix-blend-mode: screen; }
/* peça real: revelada de baixo para cima pela variável --p (0 a 1) */
.layer--photo {
  --p: 1;
  clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0);
  filter: saturate(.9) contrast(1.05);
  transition: filter 1.2s ease, opacity .8s ease;
}
.stage.is-sintering .layer--photo { filter: saturate(1.2) sepia(.35) brightness(1.15) contrast(1.05); }
.stage.is-sintering { box-shadow: 0 0 60px -10px rgba(255, 150, 60, .45), inset 0 0 0 1px rgba(255, 170, 90, .35); }
.stage { transition: transform .4s ease-out, box-shadow 1.2s ease; }
.stage.is-resetting .layer--photo { opacity: 0; }
.stage__media::after {
  /* escurece as bordas para o painel ficar legível e a foto "entrar" no fundo do site */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, .55) 0%, transparent 22%, transparent 70%, rgba(5, 8, 15, .85) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(5, 8, 15, .5) 100%);
}

/* Grade técnica sobre a foto */
.stage__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(55, 214, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 214, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 80%);
}

/* Linha do laser (posição controlada pelo JS) */
.stage__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 110px; pointer-events: none;
  background: linear-gradient(180deg, rgba(55, 214, 255, .55) 0%, rgba(55, 214, 255, .14) 25%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s;
}
.stage__scan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: #d8f8ff; box-shadow: 0 0 14px 3px var(--accent), 0 0 40px 6px rgba(55, 214, 255, .5);
}
.stage.is-milling .stage__scan { opacity: 1; }

/* Cantos de "mira" */
.stage__corners i {
  position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); opacity: .8;
}
.stage__corners i:nth-child(1) { top: 72px; left: 16px; border-right: 0; border-bottom: 0; }
.stage__corners i:nth-child(2) { top: 72px; right: 16px; border-left: 0; border-bottom: 0; }
.stage__corners i:nth-child(3) { bottom: 84px; left: 16px; border-right: 0; border-top: 0; }
.stage__corners i:nth-child(4) { bottom: 84px; right: 16px; border-left: 0; border-top: 0; }

.hud {
  position: absolute; z-index: 2;
  font-family: var(--f-mono); font-size: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(5, 8, 15, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 2px;
  pointer-events: none;
}
.hud__k { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 6px; }
.hud__v { color: var(--text); font-size: 12px; }
.hud--tl { top: 16px; left: 16px; }
.hud--tr { top: 16px; right: 16px; text-align: right; }
.hud--b { left: 16px; right: 16px; bottom: 16px; gap: 8px; }
.hud__row { display: flex; justify-content: space-between; align-items: center; }
.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 10px var(--accent); }
.blink { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; }
@media (max-width: 420px) {
  .hud { font-size: 10px; padding: 8px 10px; }
  .hud__v { font-size: 11px; }
  .stage__hint { bottom: 76px; }
}

/* ---------- Faixa rolando ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span {
  font-family: var(--f-head); font-size: 18px; font-weight: 500; color: var(--muted);
  padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
}
.ticker span::after { content: "◆"; font-size: 9px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 72px 0; } }

.section__head { max-width: 720px; margin-bottom: 52px; }
.section h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* Passos */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: s;
}
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  transition: border-color .3s, transform .3s;
}
.step:hover { border-color: rgba(55, 214, 255, .4); transform: translateY(-4px); }
.step__n { position: absolute; top: 20px; right: 22px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.step__ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(55, 214, 255, .08);
  border: 1px solid rgba(55, 214, 255, .25);
  color: var(--accent);
  margin-bottom: 22px;
}
.step__ico svg { width: 24px; height: 24px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Serviços */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 360px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden;
  padding: 36px 32px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--surface);
}
@media (max-width: 480px) { .card { padding: 28px 22px; } }
.card__glow {
  position: absolute; width: 360px; height: 360px; right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(55, 214, 255, .18), transparent 65%);
  pointer-events: none;
}
.tag {
  display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(55, 214, 255, .3); border-radius: 999px; padding: 4px 10px; margin-bottom: 20px;
}
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(55, 214, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%2337d6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.audience { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 16px; }
@media (max-width: 360px) { .audience { grid-template-columns: 1fr; } }
.audience__item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  border: 1px dashed var(--line-2);
}
.audience__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.audience__ico svg { width: 24px; height: 24px; }
.audience h3 { font-size: 18px; margin-bottom: 6px; }
.audience p { color: var(--muted); font-size: 15px; }

/* Tecnologia */
.tech { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .tech { grid-template-columns: 1fr 1fr; } }
.tech__copy > p { color: var(--muted); margin-top: 20px; font-size: 17px; }
.spec { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec li { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.spec span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.spec b { font-family: var(--f-head); font-size: 20px; }

.axes { max-width: 460px; margin: 0 auto; width: 100%; }
.axes__rings { transform-origin: 200px 200px; animation: spin 30s linear infinite; }
.axes__orbit { transform-origin: 200px 200px; animation: spin 6s linear infinite; }
.axes__caption { text-align: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Preços */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.price {
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column;
}
.price--accent { border-color: rgba(55, 214, 255, .35); background: linear-gradient(180deg, rgba(55, 214, 255, .08), var(--surface)); }
.price h3 { font-size: 19px; }
.price__desc { color: var(--muted); font-size: 14px; margin-top: 6px; }
.price__val { margin-top: auto; padding-top: 28px; font-family: var(--f-head); font-size: 18px; color: var(--muted); }
.price__val small { display: block; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.price__val b { font-size: 38px; color: var(--text); }

@keyframes wave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 0 22px;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(55, 214, 255, .35); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 22px; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }
.faq strong { color: var(--text); }

/* CTA */
.cta { padding: 110px 0; position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(55, 214, 255, .22), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 70%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 70%, #000 30%, transparent 80%);
}
.cta h2 { font-size: clamp(32px, 5vw, 56px); }
.cta p { color: var(--muted); margin: 18px auto 36px; font-size: 18px; max-width: 520px; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 40px 0 100px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer__wa { color: var(--accent); font-weight: 600; }
.footer__wa:hover { text-decoration: underline; }
.cta p strong { color: var(--text); font-family: var(--f-head); font-size: 22px; letter-spacing: .02em; }
.footer__copy { font-family: var(--f-mono); font-size: 12px !important; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: wave 2.4s ease-out infinite;
}

/* Animação ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Obs.: as animações rodam sempre, mesmo com "efeitos de animação" desligados no sistema (pedido do cliente). */
