:root {
  --bg: oklch(0.16 0.018 250);
  --bg-2: oklch(0.21 0.025 250);
  --ink: oklch(0.96 0.02 80);
  --ink-2: oklch(0.78 0.02 80);
  --ink-3: oklch(0.55 0.02 80);
  --line: oklch(1 0 0 / 0.08);
  --line-strong: oklch(1 0 0 / 0.16);
  --orange: #F47920;
  --orange-2: #FF8C2B;
  --orange-glow: oklch(0.72 0.2 50 / 0.35);
  --cream: oklch(0.94 0.04 80);
  --gold: oklch(0.78 0.13 70);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-lg: 28px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: auto; }

body {
  overflow-x: hidden;
  background:
    radial-gradient(60% 50% at 80% -10%, oklch(0.32 0.08 50 / 0.35), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, oklch(0.28 0.05 250 / 0.4), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--orange); color: #0d1117; }

main, header, footer { position: relative; z-index: 1; }

/* ============ HERO 3D (pinned) ============ */
.hero3d {
  position: relative;
  height: 380vh; /* scroll length that drives the pin */
}
.hero3d__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
#ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0.6;
}

.hero3d__shadow {
  position: absolute;
  bottom: 8%;
  left: 30%;
  right: 30%;
  height: 8%;
  background: radial-gradient(50% 100% at 50% 50%, oklch(0 0 0 / 0.6), transparent 70%);
  filter: blur(18px);
  z-index: 1;
}

.hero3d__frames {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 58%;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero3d__frames .frame {
  position: absolute;
  width: auto;
  height: 92%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 30px 50px oklch(0 0 0 / 0.55));
  will-change: opacity, transform;
}
.hero3d__frames .frame.is-active { opacity: 1; }

@media (max-width: 980px) {
  .hero3d__frames {
    width: 100%;
    top: auto;
    bottom: 4%;
    height: 60%;
  }
  .hero3d__frames .frame {
    height: 100%;
    max-width: 92%;
  }
}
.hero3d__halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 35%, oklch(0.7 0.18 50 / 0.22), transparent 65%),
    radial-gradient(50% 50% at 20% 80%, oklch(0.32 0.08 250 / 0.4), transparent 60%);
  mix-blend-mode: screen;
}

.hero3d__stage {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: min(560px, 92vw);
}
.hero3d__stage.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero3d__stage--1 {
  top: 16vh;
  left: var(--gutter);
}
.hero3d__stage--2 {
  top: 16vh;
  left: var(--gutter);
}
.hero3d__stage--3 {
  bottom: 12vh;
  left: var(--gutter);
  max-width: min(480px, 92vw);
}

.hero3d__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 18px 0 14px;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero3d__title em {
  font-style: italic;
  color: var(--orange);
}
.hero3d__lede {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-2);
  max-width: 480px;
  line-height: 1.55;
}
.hero3d__lede strong { color: var(--ink); font-weight: 600; }
.hero3d__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero3d__step {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
  text-wrap: balance;
}
.hero3d__step em { font-style: italic; color: var(--orange); }
.hero3d__stage p {
  color: var(--ink-2);
  font-size: clamp(14.5px, 1.2vw, 17px);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* HUD live readout */
.hero3d__hud {
  position: absolute;
  z-index: 4;
  top: 16vh;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
  pointer-events: none;
  padding: 14px 18px;
  border-radius: 14px;
  background: oklch(0.16 0.018 250 / 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 40px oklch(0 0 0 / 0.4);
}
.hud__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.hud__value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hud__unit {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .hero3d { height: 320vh; }
  .hero3d__hud { display: none; }
  .hero3d__stage--2 { right: var(--gutter); left: var(--gutter); text-align: left; top: 18vh; }
  .hero3d__stage--3 { bottom: 10vh; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: oklch(0.16 0.018 250 / 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-stuck { border-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--orange) 0%, #ffb259 100%);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.15) inset, 0 8px 24px var(--orange-glow);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: oklch(0.16 0.018 250);
}
.brand__txt em {
  font-style: normal;
  color: var(--orange);
  font-weight: 800;
}

.nav__links {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #0d1117;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 28px var(--orange-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px var(--orange-glow); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #0d1117;
  box-shadow: 0 14px 36px var(--orange-glow), inset 0 1px 0 oklch(1 0 0 / 0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px var(--orange-glow); }
.btn--ghost {
  background: oklch(1 0 0 / 0.04);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: oklch(1 0 0 / 0.08); border-color: var(--line-strong); }
.btn--xl {
  padding: 20px 30px;
  font-size: 17px;
  border-radius: 24px;
}

/* ============ HERO (legacy block, kept for shared eyebrow) ============ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 18px;
  font-variation-settings: "opsz" 144;
}
.hero__title em {
  font-style: italic;
  color: var(--orange);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.55;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 22px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--ink-3);
  font-size: 14px;
}
.hero__meta strong { color: var(--ink-2); font-weight: 600; }
.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

/* hero stage */
.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.stage__halo {
  position: absolute;
  inset: 8% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.7 0.18 50 / 0.5), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.stage__shadow {
  position: absolute;
  bottom: 4%;
  left: 12%; right: 12%;
  height: 14%;
  background: radial-gradient(50% 100% at 50% 50%, oklch(0 0 0 / 0.55), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}
.stage__img {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 30px 40px oklch(0 0 0 / 0.35));
  transform: translateZ(0);
  will-change: transform;
}

.stage__tag {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  background: oklch(0.16 0.018 250 / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stage__tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.stage__tag--top { top: 6%; left: 4%; }
.stage__tag--mid { top: 44%; right: 0%; }
.stage__tag--bot { bottom: 12%; left: 8%; }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint__line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--ink-3), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ============ SPECS ============ */
.specs {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.specs__head { max-width: 720px; margin-bottom: 60px; }
.specs__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.specs__head p {
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  max-width: 580px;
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec {
  background: var(--bg-2);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background 0.3s ease;
}
.spec:hover { background: oklch(0.24 0.03 250); }
.spec__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 6vw, 84px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.03em;
}
.spec__unit {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.spec h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.spec p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* story section removed — replaced by hero3d pin */

/* ============ APLICAÇÕES ============ */
.aplics {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.aplics__head { max-width: 680px; margin-bottom: 50px; }
.aplics__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.aplics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.aplic {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.025);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.aplic:hover {
  transform: translateY(-4px);
  border-color: oklch(0.7 0.18 50 / 0.4);
  background: oklch(1 0 0 / 0.05);
}
.aplic__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: oklch(0.7 0.18 50 / 0.12);
  font-size: 24px;
  margin-bottom: 16px;
}
.aplic h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.aplic p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ============ DIFERENCIAIS ============ */
.diff {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.diff__head { max-width: 680px; margin-bottom: 50px; }
.diff__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.diff__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.diff__list li {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 32px 24px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.diff__list li:last-child { border-right: none; }
@media (max-width: 760px) {
  .diff__list li { border-right: none; padding-right: 0; }
}
.diff__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 6px;
}
.diff__list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.diff__list p { color: var(--ink-2); font-size: 15px; max-width: 520px; line-height: 1.6; overflow-wrap: break-word; word-wrap: break-word; }

@media (max-width: 640px) {
  .diff__list { grid-template-columns: 1fr; }
  .diff__list h3 { font-size: 19px; }
  .diff__list p { font-size: 14.5px; }
}

/* ============ CTA FINAL ============ */
.cta {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 50% 0%, oklch(0.7 0.18 50 / 0.18), transparent 60%);
  pointer-events: none;
}
.cta__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta__inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 22px 0 16px;
}
.cta__inner h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 24px auto 0;
  background: var(--orange);
  border-radius: 999px;
}
.cta__inner p {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 36px 0 50px;
}
.cta__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: oklch(1 0 0 / 0.025);
  border: 1px solid var(--line);
}
.cta__info dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.cta__info dd { color: var(--ink); font-size: 15px; font-weight: 500; }

/* ============ FOOTER ============ */
.foot {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  background: oklch(0.13 0.018 250);
}
.foot__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .foot__inner { grid-template-columns: 2fr 1fr 1fr; }
}
.foot p {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 14px;
  max-width: 360px;
}
.brand--foot { font-size: 18px; }
.foot__links { display: flex; flex-direction: column; gap: 8px; }
.foot__links strong {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 10px;
  font-weight: 500;
}
.foot__links a, .foot__links span { color: var(--ink-2); font-size: 14px; }
.foot__links a:hover { color: var(--orange); }
.foot__copy {
  max-width: var(--container);
  margin: 24px auto 0;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

/* ============ FLOATING WHATSAPP ============ */
.float-wpp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: white;
  box-shadow: 0 18px 40px oklch(0.7 0.2 150 / 0.4);
  transition: transform 0.25s ease;
}
.float-wpp:hover { transform: scale(1.06); }
.float-wpp::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============ MOTION ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
