.home-page {
  --masthead: 96px;
  --dark: #071626;
}
.home-page .header {
  position: relative;
  z-index: 3;
}
.home-page .header-inner { min-height: var(--masthead); }
.hero :focus-visible { outline-color: var(--gold); }

.hero {
  --cinema-frame: 100svh;
  --cinema-step: clamp(560px, 98svh, 1040px);
  --cinema-dock: 104px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  overflow-anchor: none;
  margin-top: calc(-1 * var(--masthead) - 1px);
  scroll-margin-top: 0;
  color: var(--white);
  background: var(--dark);
}
@supports (height: 100dvh) { .hero { --cinema-frame: 100dvh; } }
.hero[data-cinematic] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, var(--cinema-step)) var(--cinema-frame);
}
.hero[data-cinematic] .tour-position { grid-area: 1 / 1 / 5 / 2; min-width: 0; pointer-events: none; z-index: 2; }
.hero[data-cinematic] .hero-opening { grid-area: 1 / 1; pointer-events: none; }
.hero[data-cinematic] #lancamento { grid-row: 2; }
.hero[data-cinematic] #vendas { grid-row: 3; }
.hero[data-cinematic] #operacao { grid-row: 4; }
.hero[data-cinematic] [data-story-step] {
  grid-column: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  scroll-margin-top: 0;
  pointer-events: none;
}
.tour-start-anchor { display: block; }
.hero[data-cinematic] .tour-start-anchor { position: absolute; top: var(--cinema-step); scroll-margin-top: 0; }

.tour-stage { position: relative; height: var(--cinema-frame); min-width: 0; pointer-events: auto; }
.hero[data-cinematic] .tour-stage { position: sticky; top: 0; }
.tour-viewport {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 67% 34%, #4a6277, #172d43 52%, #071626 100%);
}
.tour-render {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.tour-render img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 51%;
  opacity: var(--render-opacity, 0);
  transform: scale(var(--render-scale, 1));
  transform-origin: 60% 52%;
}
.tour-stage:not([data-state="ready"]) .tour-render img { opacity: 0; }
.tour-stage:not([data-state="ready"]) .tour-render [data-tour-image="0"] { opacity: 1; }
.tour-canvas { position: absolute; inset: 0; }
.tour-stage[data-state="ready"] .tour-canvas { cursor: grab; touch-action: pan-y pinch-zoom; }
.tour-stage[data-state="ready"] .tour-canvas[data-clickable] { cursor: pointer; }
.tour-stage[data-state="ready"] .tour-canvas:active { cursor: grabbing; }
.tour-canvas canvas { display: block; width: 100%; height: 100%; }
.tour-stage[data-state="fallback"] canvas { visibility: hidden; }
.tour-viewport::before, .tour-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.tour-viewport::before {
  background: linear-gradient(180deg, #071626c7, transparent 24%, transparent 75%, #071626ed);
}
.tour-viewport::after {
  opacity: 0;
  background: linear-gradient(90deg, #07162689, #07162643 34%, transparent 65%);
  transition: opacity .4s ease;
}
.tour-stage[data-copy] .tour-viewport::after, .hero:not([data-cinematic]) .tour-viewport::after { opacity: 1; }

.hero-opening .hero-copy, .tour-overlay, .tour-top, .tour-bottom {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
  pointer-events: none;
}
.hero:not([data-cinematic]) .hero-opening .hero-copy {
  width: min(1280px, calc(100% - clamp(36px, 9vw, 144px)));
  z-index: 4;
  bottom: auto;
  top: clamp(182px, 27svh, 295px);
}
.tour-overlay {
  z-index: 4;
  display: grid;
  align-items: end;
  top: calc(var(--masthead) + 60px);
  bottom: calc(var(--cinema-dock) + env(safe-area-inset-bottom, 0px));
}
.tour-overlay [data-story-panel][hidden] { display: none; }
.tour-overlay .hero-copy { align-self: center; }
.tour-overlay .story-example { display: none; }
.tour-overlay a, .hero-opening a, .tour-top a, .tour-bottom a,
.tour-bottom button, .tour-bottom select { pointer-events: auto; }
.hero-copy, .story-copy { position: relative; }
.tour-overlay [data-story-panel], .hero:not([data-cinematic]) .hero-opening .hero-copy {
  padding: clamp(18px, 2.25vw, 32px);
  border: 1px solid var(--glass-rim);
  border-right-color: #e3eef651;
  border-bottom-color: #dbe9ff39;
  border-radius: clamp(19px, 2.7vw, 32px);
  background: var(--glass-highlight), linear-gradient(145deg, #102943d4 10%, #0a2037c9 42%, #102943ad);
  box-shadow: var(--glass-depth);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
}
.hero-copy .eyebrow, .story-copy .eyebrow { color: #f4d393; }
.hero h1 {
  margin-top: 19px;
  font-size: clamp(2.2rem, min(4.12vw, 7.8svh), 4.65rem);
  line-height: 1.01;
  letter-spacing: -.035em;
  text-wrap: initial;
}
.hero-title-line, .hero-title-line > * { display: block; }
.hero-title-line + .hero-title-line { margin-top: .06em; }
.hero-title-line em { color: #ead2a6; font-weight: inherit; }
.hero-copy > * { max-width: min(100%, 640px); }
.hero-intro { margin-top: 22px; max-width: 41ch; color: #e5edf5; font-size: clamp(.96rem, 1.3vw, 1.12rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 21px; margin-top: 24px; }
.hero-actions .text-link { color: #f7e0b6; }
.tour-overlay .hero-copy { width: min(58%, 675px); }
.tour-overlay .story-copy { width: min(49%, 620px); }
.story-copy h2 { max-width: 17ch; font-size: clamp(1.9rem, 3.72vw, 4.05rem); text-wrap: initial; }
.story-copy .solution-pitch { max-width: 39ch; margin: 15px 0 19px; color: #e3edf6; }
.story-copy > .button { margin-top: 4px; }
.hero:not([data-cinematic]) [data-story-step] {
  padding-block: clamp(38px, 7vw, 88px);
  border-top: 1px solid #91aec346;
}
.tour-top {
  z-index: 5;
  top: calc(var(--masthead) + 15px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #eef3f8;
}
.tour-skip {
  display: inline-flex;
  min-height: 42px;
  gap: 9px;
  align-items: center;
  padding: .25rem .7rem;
  border: 1px solid #a8bdcf70;
  border-radius: 5px;
  background: #071626b0;
  color: #f5e2c3;
  font-size: .8rem;
  line-height: 1.25;
  text-decoration: none;
  flex: 0 0 auto;
}
.tour-skip:hover { border-color: #e7c486; }
.tour-bottom {
  z-index: 5;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 510px) minmax(0, 1fr);
  column-gap: 15px;
  align-items: center;
}
.tour-toolbar {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: end;
}
.tour-toolbar[hidden], .tour-resume[hidden], .tour-hint[hidden] { display: none; }
.tour-turn { display: flex; gap: 3px; }
.tour-toolbar button, .tour-toolbar select {
  min-width: 38px;
  min-height: 44px;
  padding: .25rem .55rem;
  border: 1px solid #9ab2c567;
  border-radius: 5px;
  color: #e6edf4;
  background: #0a2038ec;
  font-size: .76rem;
  cursor: pointer;
}
.tour-turn button { padding: 0; font-size: 1.19rem; line-height: 1; }
.tour-toolbar button:hover, .tour-toolbar select:hover { border-color: #e0bf84; }
.tour-hint { grid-row: 1; grid-column: 1; color: #f5e7d0; font-size: .79rem; }
.tour-hint [aria-hidden] { margin-right: 4px; color: #e1c088; }
.tour-hint-swipe, [data-guided-tour] .tour-hint-scroll { display: none; }
[data-guided-tour] .tour-hint-swipe { display: inline; }
[data-guided-tour] { touch-action: pan-x pinch-zoom; }
[data-guided-tour] .tour-skip { min-height: 44px; }
.tour-status:not(:empty) { grid-row: 2; grid-column: 1 / -1; color: #ffe1aa; font-size: .78rem; }
.tour-navigation {
  position: relative;
  grid-row: 1;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #92a7ba68;
  border-radius: 6px;
  background: #07192bd9;
}
.tour-navigation::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--tour-progress, 0));
  pointer-events: none;
}
.tour-navigation a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 4px 2px;
  color: #dfe8ef;
  font-size: clamp(.7rem, 1.15vw, .86rem);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.tour-navigation a:hover, .tour-navigation a[aria-current="step"] { color: #f5d59c; background: #c7a56a22; }
.tour-navigation a[aria-current="step"] { box-shadow: inset 0 2px var(--gold); }
.tour-navigation a:focus-visible { outline-offset: -3px; }

.tour-skip, .tour-toolbar button, .tour-toolbar select, .tour-navigation {
  border-color: var(--glass-rim);
  background: var(--glass-highlight), linear-gradient(145deg, #193854e0, #0b223bd1 58%, #17344ac2);
  box-shadow: var(--glass-depth);
  -webkit-backdrop-filter: blur(9px) saturate(155%);
  backdrop-filter: blur(9px) saturate(155%);
}
.tour-skip, .tour-toolbar button { border-radius: 999px; padding-inline: .75rem; }
.tour-toolbar select { border-radius: 999px; }
.tour-turn button { padding-inline: 0; }
.tour-navigation { border-radius: 999px; }
.tour-navigation::after { inset-inline: 7px; bottom: 0; border-radius: 9px; }
.tour-navigation a { border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.tour-navigation a[aria-current="step"] { box-shadow: inset 0 1px #f8db9ea3, inset 0 0 0 1px #f4d7a94a; }

@media (prefers-reduced-transparency: reduce) {
  .tour-overlay [data-story-panel], .hero:not([data-cinematic]) .hero-opening .hero-copy,
  .tour-skip, .tour-toolbar button, .tour-toolbar select, .tour-navigation {
    background: #102943;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tour-viewport { animation: tour-opening-in 1.15s cubic-bezier(.2,.68,.29,1) both; }
  @keyframes tour-opening-in {
    from { transform: scale(1.045); }
    to { transform: none; }
  }
  .tour-overlay .story-copy:not([hidden]) { animation: tour-copy-in .53s cubic-bezier(.18,.78,.25,1) both; }
  @keyframes tour-copy-in {
    from { opacity: 0; transform: translateY(13px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 980px) {
  .hero { --cinema-dock: 139px; }
  .tour-bottom { grid-template-columns: 1fr auto; row-gap: 6px; }
  .tour-toolbar { grid-column: 2; }
  .tour-navigation { grid-row: 2; grid-column: 1 / -1; }
  .tour-status:not(:empty) { grid-row: 3; }
}
@media (max-width: 760px) {
  .home-page { --masthead: 111px; }
  .hero { --cinema-dock: 129px; }
  .tour-top { top: calc(var(--masthead) + 9px); }
  .tour-skip { min-height: 36px; padding-inline: .48rem; font-size: .74rem; }
  .tour-bottom { bottom: calc(13px + env(safe-area-inset-bottom, 0px)); }
  .tour-viewport::before { background: linear-gradient(180deg, #071626bf, transparent 25%, transparent 72%, #071626f4); }
  .tour-viewport::after { background: linear-gradient(0deg, #071626a6, #0716265c 35%, transparent 70%); }
  .tour-overlay .hero-copy, .tour-overlay .story-copy { width: 100%; max-width: 480px; }
  .tour-overlay .hero-copy { align-self: end; }
  .hero:not([data-cinematic]) .hero-opening .hero-copy { top: auto; bottom: 120px; }
  .hero h1 { margin-top: 12px; font-size: clamp(1.95rem, 8.1vw, 3.65rem); }
  .hero-intro { margin-top: 13px; font-size: .89rem; line-height: 1.45; }
  .hero-actions { gap: 5px 13px; margin-top: 13px; }
  .hero-actions .button, .story-copy > .button { min-height: 44px; font-size: .78rem; }
  .hero-actions .text-link { font-size: .81rem; }
  .story-copy h2 { font-size: clamp(1.83rem, 7.9vw, 3.3rem); }
  .story-copy .solution-pitch { margin-block: 11px 12px; font-size: .92rem; line-height: 1.45; }
  .tour-toolbar button, .tour-toolbar select { min-width: 33px; font-size: .7rem; padding-inline: .34rem; }
  .tour-turn button { padding: 0; font-size: 1rem; }
  .tour-hint { font-size: .66rem; }
}
@media (max-height: 630px) {
  .tour-overlay .hero-copy, .tour-overlay .story-copy { max-height: 100%; min-height: 0; overflow: auto; }
  .tour-overlay .hero-intro { margin-top: 9px; font-size: .83rem; line-height: 1.35; }
  .tour-overlay .hero-actions { margin-top: 11px; }
  .tour-overlay .story-copy h2 { font-size: clamp(1.65rem, 5.5vh, 3.1rem); }
  .tour-overlay .story-copy .solution-pitch { margin-block: 7px; }
}
@media (max-height: 490px) and (orientation: landscape) {
  .tour-overlay { top: calc(var(--masthead) + 39px); }
  .tour-overlay .hero-copy, .tour-overlay .story-copy { width: min(55%, 520px); }
  .tour-overlay .hero-copy h1 { font-size: clamp(1.6rem, 7.2vh, 2.7rem); }
  .tour-overlay .story-copy .solution-pitch { font-size: .8rem; }
  .tour-top { top: calc(var(--masthead) + 5px); }
}
.story-example {
  margin-top: clamp(22px, 4vw, 38px);
  max-width: 565px;
  border: 1px solid #a0bed252;
  border-radius: 7px;
  overflow: hidden;
}
.demo-layout {
  position: relative; display: grid; align-content: center; min-height: 191px;
  padding: clamp(17px, 3vw, 35px); overflow: hidden; color: #eef6fc;
  background: radial-gradient(ellipse at 50% 40%, #244c6c, #132d48 72%);
}
.demo-layout::before {
  position: absolute; content: ''; inset: 0;
  background: linear-gradient(#a5bfd016 1px, transparent 1px), linear-gradient(90deg,#a5bfd016 1px, transparent 1px);
  background-size: 24px 24px; mask-image: radial-gradient(ellipse at center, black, transparent 86%); pointer-events: none;
}
.demo-launch { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 0; }
.demo-building { position: relative; min-height: 191px; background: linear-gradient(0deg, #1029435c, transparent), url('/assets/arquitetura-768.webp') center / cover; }
.plot-corner { position: absolute; inset: 12% 12% auto auto; width: 20px; height: 20px; border-top: 1px solid #f3d7a2; border-right: 1px solid #f3d7a2; }
.plot-corner + .plot-corner { inset: auto auto 12% 12%; transform: rotate(180deg); }
.demo-sheet { align-self: center; margin: 20px clamp(11px,3vw,33px); padding: 14px 0; position: relative; }
.demo-label { font: 650 .68rem/1.45 var(--mono); letter-spacing: .075em; text-transform: uppercase; color: #f2d29b; }
.demo-sheet p { font: 400 clamp(1.12rem, 2.15vw, 1.65rem)/1.15 var(--serif); margin-block: 13px; }
.demo-sheet ul { margin: 0; padding: 0; list-style: none; font-size: .8rem; }
.demo-sheet li { padding: 5px 0; border-top: 1px solid #9fb6c646; }
.demo-sales-rows { display: grid; gap: 10px; margin-top: 17px; position: relative; }
.demo-sales-rows > div { display: grid; grid-template-columns: 1.35fr minmax(100px, .85fr); gap: 10px; align-items: center; font-size: clamp(.72rem,1.2vw,.93rem); }
.demo-bar { height: clamp(9px, 1.55vw, 16px); background: linear-gradient(90deg,#396887,var(--gold)); border-radius: 3px; transform-origin: left; }
.demo-sales-rows > div:nth-child(2) .demo-bar { width: 73%; }
.demo-sales-rows > div:nth-child(3) .demo-bar { width: 46%; }
.demo-caption { margin-top: 22px; color: #d0dce8; font-size: .85rem; position: relative; }
.demo-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; position: relative; }
.demo-status > div { min-width: 0; padding: 12px 9px; border: 1px solid #a0bdca64; border-top: 2px solid var(--gold); border-radius: 4px; background: #102943b5; }
.demo-status span { color: #f3d59f; font-size: clamp(.67rem, 1.08vw, .89rem); }
.demo-status p { color: #eff4f8; font-size: clamp(.7rem,1.08vw,.92rem); margin-top: 6px; overflow-wrap: anywhere; }
@media (max-aspect-ratio: 4/5) {
  .tour-render img { object-position: 61% 42%; }
  .tour-render [data-tour-image="0"] { object-position: 57% 41%; }
  .tour-render [data-tour-image="2"] { object-position: 45% 46%; }
}

.tour-film {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  visibility: hidden;
  pointer-events: none;
}
.tour-stage[data-mode="film"] .tour-film[data-frame] { visibility: visible; }
.tour-stage[data-mode="film"] [data-film-view]:not([data-film-view="0"], [data-film-view="transit"]) { cursor: pointer; }
.tour-stage[data-mode="film"] .tour-viewport:not([data-film-view]) [data-tour-image="0"] { opacity: 1; }
@media (max-aspect-ratio: 4/5) {
  .tour-film { object-position: var(--film-focal, 57%) center; }
}
