:root {
  --void: #050608;
  --ink: #0B0F14;
  --navy: #0A1224;
  --red: #E10600;
  --blue: #1A3A9A;
  --paper: #F4F1EA;
  --muted: #8B939E;
  --line: rgba(255,255,255,.08);
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--void);
  color: #F7F4EE;
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: clip;
  max-width: 100%;
}
img, iframe, video, svg {
  max-width: 100%;
  display: block;
  border: 0;
}
img { height: auto; }
a { color: inherit; text-decoration: none; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 4vw 12px;
  gap: 12px;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.on {
  background: rgba(5,6,8,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.nav a { opacity: .72; }
.nav a:hover { opacity: 1; }
.cta-nav {
  opacity: 1 !important;
  background: #fff;
  color: #0B0F14 !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  mix-blend-mode: normal;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cta-nav-compact { display: none; }

.hero {
  min-height: 100vh;
  padding: 18vh 6vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-spot {
  position: absolute;
  inset: -10% 10% auto;
  height: 55%;
  background:
    radial-gradient(closest-side, rgba(225,6,0,.22), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(26,58,154,.35), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 104px);
  line-height: .95;
  letter-spacing: -.04em;
  max-width: min(16ch, 100%);
  width: 100%;
  margin: 0 auto 22px;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}
.hero-sub {
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
  margin: 0 auto 28px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: #5b6470; margin: 16px 0 48px; max-width: 36rem; }

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 16px 28px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(225,6,0,.35);
  transition: transform .2s, box-shadow .2s;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(225,6,0,.5); }
.cta-text { font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.cta-text.dark { color: var(--ink); border-color: rgba(11,15,20,.3); }
.cta-ghost {
  display: inline-flex; justify-content: center; width: 100%;
  border: 1px solid var(--line); padding: 14px; border-radius: 999px; font-weight: 700;
}
.cta-wa {
  background: #25D366;
  color: #052e16;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 18px;
  text-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stage {
  width: min(1180px, 100%);
  max-width: 100%;
  perspective: 1400px;
  position: relative;
  margin-top: auto;
  padding-bottom: 8vh;
  overflow: hidden;
}
.device {
  transform: rotateX(16deg) rotateY(-12deg) scale(.96);
  transform-origin: 50% 80%;
  will-change: transform;
}
.bezel {
  background: #11161d;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px 18px 4px 4px;
  overflow: hidden;
  box-shadow:
    0 60px 120px rgba(0,0,0,.65),
    0 0 0 1px rgba(26,58,154,.2),
    0 40px 80px rgba(26,58,154,.18);
}
.bezel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #07090c;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a93a0;
}
.dots { width: 42px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--red), #c9a227, #2f6b3a); }
.bezel img, .bezel iframe { width: 100%; min-height: 320px; object-fit: cover; aspect-ratio: 16/9; }
.pdv-fallback { padding: 28px 32px 40px; text-align: left; min-height: 280px; }
.pdv-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pdv-row.dim { color: #5b6470; }
.pdv-row.total { border: 0; font-family: var(--serif); font-size: 28px; padding-top: 20px; }
.pdv-row.total b { color: var(--red); }

.float-card, .float-pix {
  position: absolute;
  width: min(220px, 38vw);
  background: #10141c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
  text-align: left;
}
.float-card { right: -2%; top: 12%; }
.float-pix { left: -1%; bottom: 18%; background: linear-gradient(180deg, #10141c, #0d1a14); }
.float-card img { border-radius: 8px; max-height: 110px; object-fit: cover; width: 100%; }
.float-card small, .float-pix small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.float-card strong, .float-pix strong { display: block; font-family: var(--serif); font-size: 22px; margin: 4px 0; }
.float-pix strong { color: #4ade80; }

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: #080a0e;
  padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: tick 28s linear infinite;
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #9aa3ad;
}
.marquee-track span::before { content: "●"; color: var(--red); margin-right: 16px; font-size: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

.spread {
  background: var(--paper);
  color: var(--ink);
  padding: 14vh 8vw;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px 80px;
  align-items: end;
}
.spread .eyebrow { color: var(--blue); grid-column: 1 / -1; }
.spread h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: .95;
  letter-spacing: -.03em;
  font-weight: 400;
  margin: 0;
  grid-column: 1;
}
.spread-copy { margin: 0; font-size: 18px; color: #3d4550; max-width: 34ch; }
.spread .cta-text { grid-column: 2; justify-self: start; }

.chapter {
  display: grid;
  grid-template-columns: 120px minmax(0, .9fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 12vh 6vw;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.chapter.ch-0 { background: var(--ink); }
.chapter.ch-1 { background: var(--navy); grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, .9fr); }
.chapter.ch-1 .chapter-copy { order: 3; }
.chapter.ch-1 .chapter-media { order: 2; }
.chapter.ch-2 { background: #14080a; }
.idx {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(225,6,0,.7);
}
.chapter-copy h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 400;
  margin: 0 0 16px;
  max-width: 14ch;
}
.chapter-copy p { color: var(--muted); margin: 0; max-width: 36ch; }
.shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  background: #0a0d12;
}
.shot img, .shot iframe { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.shot-css { min-height: 240px; }
.shot-chrome { display: flex; gap: 6px; padding: 10px 12px; background: #07090c; }
.shot-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.shot-chrome i:first-child { background: var(--red); }
.shot-chrome b { margin-left: auto; font-size: 10px; letter-spacing: .14em; color: #667; }
.shot-fill {
  height: 200px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.04) 8% 9%, transparent 9%),
    repeating-linear-gradient(180deg, #141a24 0 18px, #10151c 18px 36px);
}
.shot-css[data-kind="nfce"] .shot-fill { background: linear-gradient(180deg, #1a0a0c, #0B0F14); }
.shot-css[data-kind="caixa"] .shot-fill { background: linear-gradient(135deg, #0a1630, #0B0F14); }

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  padding: 8vh 6vw 14vh;
  background: #07090e;
}
.bento-item {
  background: #10151f;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}
.bento-item.b-0 { grid-row: span 2; background: linear-gradient(180deg, #121a2e, #10151f); }
.bento-item h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 0 0 12px; letter-spacing: -.02em; }
.bento-item p { color: var(--muted); margin: 0; }

.path {
  background: linear-gradient(100deg, var(--blue) 0%, #0B0F14 42%, #1a0505 100%);
  padding: 12vh 6vw;
}
.path h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 400; margin: 0 0 48px; }
.path ol {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: s;
}
.path li { counter-increment: s; }
.path li::before {
  content: "0" counter(s);
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--red);
  margin-bottom: 12px;
}
.path h3 { margin: 0 0 8px; font-size: 20px; }
.path p { margin: 0; color: #c5c9d1; }

.pricing {
  padding: 14vh 6vw;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  column-gap: 64px;
  row-gap: 28px;
  align-items: start;
  background:
    radial-gradient(600px 200px at 90% 0%, rgba(225,6,0,.12), transparent 50%),
    var(--void);
}
.pricing header {
  max-width: none;
  margin: 0;
}
.pricing h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 400;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  max-width: 36ch;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: pretty;
}
.pricing header p { color: var(--muted); max-width: 42ch; }
.plan-stage {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.login-line { grid-column: 1 / -1; }
.plan {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  background: #0c1016;
  position: relative;
}
.plan.is-hot {
  margin-top: 56px;
  background: #111; 
  border-color: rgba(225,6,0,.45);
  box-shadow: 0 0 0 1px rgba(225,6,0,.2), 0 40px 80px rgba(225,6,0,.12);
}
.ribbon {
  position: absolute; top: -12px; right: 24px;
  background: var(--red); color: #fff;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
}
.plan h3 { margin: 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price { font-family: var(--serif); font-size: 56px; margin: 8px 0; }
.period { color: var(--muted); margin: 0 0 20px; }
.plan ul { padding: 0; list-style: none; color: #c9ced6; }
.plan li { padding: 8px 0 8px 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--red); }
.plan .cta-primary, .plan .cta-ghost { margin-top: 24px; width: 100%; }
.login-line { margin-top: 28px; color: var(--muted); font-size: 14px; }
.login-line a { color: #fff; border-bottom: 1px solid var(--red); }

.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 70vh;
}
.contact-left {
  background: #0a0610;
  padding: 12vh 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
}
.contact-left h2 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 56px); font-weight: 400; margin: 0 0 16px; letter-spacing: -.03em; }
.contact-left p { color: var(--muted); max-width: 36ch; }
.wa-huge {
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 64px);
  margin: 28px 0 12px;
  letter-spacing: -.03em;
  color: #fff;
}
.wa-huge:hover { color: #25D366; }
.mail { color: var(--muted); font-size: 14px; }
.contact-form {
  background: var(--paper);
  color: var(--ink);
  padding: 10vh 6vw;
}
.contact-form label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(11,15,20,.2);
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form .cta-primary { margin-top: 20px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.alert.ok { background: #dcfce7; }
.alert.err { background: #fecaca; }

.foot { padding: 40px 6vw 100px; color: #5b6470; font-size: 13px; border-top: 1px solid var(--line); }
.menu-btn {
  display: none;
  background: #fff;
  color: #111;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  min-height: 44px;
  min-width: 44px;
}

.dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5,6,8,.94);
  border-top: 1px solid var(--line);
}
.dock a { flex: 1; }

.reveal-up { animation: up .8s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .cta-nav-compact { display: inline-flex; padding: 10px 14px; font-size: 12px; letter-spacing: .04em; }
  .topbar {
    mix-blend-mode: normal;
    background: rgba(5,6,8,.88);
    z-index: 60;
  }
  .logo span { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(56px + env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0B0F14;
    padding: 8px;
    border-radius: 14px;
    min-width: 0;
    border: 1px solid var(--line);
    z-index: 70;
  }
  .nav.open { display: flex; }
  .nav a {
    opacity: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .nav .cta-nav { margin-top: 6px; width: 100%; }

  .hero {
    padding: calc(88px + env(safe-area-inset-top, 0px)) 20px 24px;
    min-height: auto;
    overflow: hidden;
  }
  .eyebrow { letter-spacing: .14em; max-width: 100%; overflow-wrap: anywhere; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); max-width: 100%; }
  .hero-sub { font-size: 15px; padding: 0 4px; }
  .hero-actions { gap: 14px; }
  .hero-actions .cta-primary { width: 100%; max-width: 320px; }
  .hero-note { margin-bottom: 28px; padding: 0 8px; }

  .stage {
    perspective: none;
    overflow: hidden;
    padding-bottom: 32px;
    width: 100%;
  }
  .device {
    transform: none !important;
    transform-origin: center;
  }
  .bezel { border-radius: 12px; }
  .bezel img, .bezel iframe { min-height: 0; width: 100%; height: auto; aspect-ratio: 16/10; }
  .float-card, .float-pix { display: none; }
  .pdv-fallback { padding: 16px; min-height: 0; }
  .pdv-row.total { font-size: 22px; }

  .marquee { padding: 12px 0; }
  .marquee-track { gap: 28px; font-size: 11px; letter-spacing: .18em; }

  .spread,
  .chapter,
  .chapter.ch-0,
  .chapter.ch-1,
  .chapter.ch-2,
  .bento,
  .path ol,
  .plan-stage,
  .contact,
  .pricing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .spread {
    padding: 64px 20px;
    gap: 16px;
  }
  .spread .eyebrow,
  .spread h2,
  .spread .cta-text { grid-column: 1; }
  .spread h2 { font-size: clamp(28px, 8vw, 40px); max-width: 100%; }
  .spread-copy { max-width: none; font-size: 16px; }

  .chapter,
  .chapter.ch-1 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 56px 20px;
  }
  .chapter.ch-1 .chapter-copy,
  .chapter.ch-1 .chapter-media { order: 0; }
  .idx { grid-row: auto; font-size: 48px; }
  .chapter-copy h3 { max-width: none; font-size: clamp(24px, 7vw, 34px); }
  .chapter-copy p { max-width: none; }
  .shot, .shot img, .shot iframe { max-width: 100%; }
  .shot img, .shot iframe { aspect-ratio: 16/10; height: auto; }

  .bento {
    padding: 40px 20px 72px;
    gap: 12px;
  }
  .bento-item.b-0 { grid-row: auto; }
  .bento-item { padding: 22px; }
  .bento-item h3 { font-size: clamp(22px, 6.5vw, 28px); }

  .path { padding: 64px 20px; }
  .path ol { gap: 28px; }
  .path h2 { margin-bottom: 28px; }

  .pricing {
    padding: 64px 20px 40px;
    column-gap: 0;
  }
  .pricing h2 { max-width: 100%; font-size: clamp(28px, 8vw, 40px); }
  .plan.is-hot { margin-top: 12px; }
  .plan { padding: 24px; }
  .price { font-size: clamp(36px, 10vw, 48px); }
  .plan .cta-primary, .plan .cta-ghost { min-height: 44px; }

  .contact { min-height: 0; }
  .contact-left, .contact-form { padding: 56px 20px; }
  .wa-huge {
    font-size: clamp(22px, 7vw, 36px);
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .contact-form { padding-bottom: 32px; }
  .contact-form .cta-primary { width: 100%; min-height: 44px; }

  .foot {
    padding: 32px 20px calc(108px + env(safe-area-inset-bottom, 0px));
  }
  .dock {
    display: flex;
    z-index: 90;
  }
  .dock a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .device, .reveal-up { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}
