/* GAIETY DS completion layer
   Adds the remaining design-system components without changing the core layout. */

:root {
  --ds-gold: #c7a765;
  --ds-gold-pale: #e6d3a5;
  --ds-green: #006039;
  --ds-deep: #031c14;
  --ds-ink: #111713;
  --ds-paper: #f7f3ea;
  --ds-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ds-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Persistent page rails */
.site-rails {
  position: fixed;
  z-index: 52;
  inset: 76px 0 0;
  pointer-events: none;
  opacity: .48;
}

.site-rails::before,
.site-rails::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(199,167,101,.34) 12%, rgba(0,96,57,.18) 52%, rgba(199,167,101,.24) 88%, transparent);
}

.site-rails::before { left: clamp(13px, 2.1vw, 34px); }
.site-rails::after { right: clamp(13px, 2.1vw, 34px); }

.site-rail-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(199,167,101,.62);
  background: rgba(3,28,20,.72);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(199,167,101,.045);
}

.site-rail-node:nth-child(1) { left: clamp(10px, calc(2.1vw - 3px), 31px); top: 16%; }
.site-rail-node:nth-child(2) { right: clamp(10px, calc(2.1vw - 3px), 31px); top: 42%; }
.site-rail-node:nth-child(3) { left: clamp(10px, calc(2.1vw - 3px), 31px); top: 73%; }

/* Active chapter indicator */
.chapter-indicator {
  position: fixed;
  z-index: 70;
  right: clamp(19px, 2.7vw, 44px);
  top: 50%;
  width: 118px;
  color: #fff;
  transform: translateY(-50%);
  mix-blend-mode: difference;
  pointer-events: none;
}

.chapter-indicator-inner {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
}

.chapter-number {
  font-family: var(--ds-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: .72;
}

.chapter-track {
  position: relative;
  width: 1px;
  height: 96px;
  background: rgba(255,255,255,.26);
}

.chapter-track > i {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 1px;
  height: 100%;
  background: #fff;
  transform: scaleY(var(--chapter-progress, 0));
  transform-origin: top;
  transition: transform .12s linear;
}

.chapter-copy {
  position: absolute;
  left: 40px;
  top: 50%;
  width: 92px;
  transform: translateY(-50%);
  font-family: var(--ds-mono);
  font-size: .5rem;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chapter-copy strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.chapter-copy span { opacity: .58; }

/* Hero nexus canvas */
.nexus-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 34%, #000 58%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0 34%, #000 58%, #000 100%);
}

.hero-datum {
  position: absolute;
  z-index: 3;
  right: clamp(26px, 5vw, 82px);
  top: 122px;
  display: grid;
  justify-items: end;
  gap: 8px;
  color: rgba(255,255,255,.66);
  font-family: var(--ds-mono);
  font-size: .49rem;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-datum::before {
  content: "";
  width: 54px;
  height: 1px;
  background: var(--ds-gold);
}

/* True holodex anatomy */
.anatomy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 50% 48%, rgba(199,167,101,.11), transparent 25%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #041d15;
  background-size: auto, 80px 80px, 80px 80px, auto;
}

.anatomy::before {
  content: "03 / ANATOMIA";
  position: absolute;
  top: 34px;
  left: clamp(22px,5vw,80px);
  color: rgba(199,167,101,.72);
  font-family: var(--ds-mono);
  font-size: .58rem;
  letter-spacing: .16em;
}

.anatomy::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 55%;
  width: min(64vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(199,167,101,.1);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 72px rgba(255,255,255,.018), 0 0 0 73px rgba(199,167,101,.06);
}

.anatomy-heading {
  width: min(920px, 100%);
  margin: 0 auto clamp(60px, 8vw, 112px);
  text-align: center;
}

.anatomy-heading .eyebrow { color: var(--ds-gold-pale); }

.anatomy-heading h2 {
  margin: 0;
  font: 600 clamp(3.8rem, 7.2vw, 7.6rem)/.9 var(--serif);
  letter-spacing: -.047em;
}

.anatomy-heading > p:last-child {
  width: min(620px, 100%);
  margin: 25px auto 0;
  color: rgba(255,255,255,.67);
  line-height: 1.75;
}

.holodex {
  position: relative;
  width: min(1220px, 100%);
  min-height: 650px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.holodex::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 10%;
  right: 10%;
  bottom: 5%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.62), transparent 70%);
  filter: blur(28px);
}

.holodex-card {
  position: relative;
  grid-row: 1;
  min-height: 590px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(199,167,101,.26);
  background: #0b1511;
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 38px 90px -42px rgba(0,0,0,.92);
  transform-style: preserve-3d;
  transition: transform .75s var(--ds-ease), opacity .5s ease, filter .5s ease, box-shadow .75s var(--ds-ease), border-color .45s ease;
  outline: none;
}

.holodex-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(var(--ds-gold),var(--ds-gold)) left top/22px 1px no-repeat,
    linear-gradient(var(--ds-gold),var(--ds-gold)) left top/1px 22px no-repeat,
    linear-gradient(var(--ds-gold),var(--ds-gold)) right bottom/22px 1px no-repeat,
    linear-gradient(var(--ds-gold),var(--ds-gold)) right bottom/1px 22px no-repeat;
  opacity: .72;
}

.holodex-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 24%, rgba(255,255,255,.17), transparent 59%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ds-ease);
}

.holodex-card:hover::after,
.holodex-card:focus-visible::after { transform: translateX(120%); }

.holodex-card:nth-child(1) {
  grid-column: 1;
  z-index: 1;
  transform: translateX(27%) rotateY(17deg) translateZ(-110px) scale(.89);
  transform-origin: right center;
}

.holodex-card:nth-child(2) {
  grid-column: 2;
  z-index: 3;
  transform: translateZ(70px) scale(1.02);
}

.holodex-card:nth-child(3) {
  grid-column: 3;
  z-index: 1;
  transform: translateX(-27%) rotateY(-17deg) translateZ(-110px) scale(.89);
  transform-origin: left center;
}

.holodex-card img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
  filter: saturate(.78) contrast(1.08) brightness(.76);
  transition: transform 1s var(--ds-ease), filter .6s ease;
}

.holodex-card:nth-child(1) img { object-position: 46% 50%; }
.holodex-card:nth-child(2) img { object-position: 50% 50%; }
.holodex-card:nth-child(3) img { object-position: 50% 28%; }

.holodex-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.1) 40%, rgba(2,18,12,.92));
}

.holodex-copy {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 3vw, 42px);
  right: clamp(24px, 3vw, 42px);
  bottom: clamp(28px, 4vw, 50px);
  transform: translateZ(36px);
}

.holodex-copy small {
  display: block;
  margin-bottom: 11px;
  color: var(--ds-gold-pale);
  font-family: var(--ds-mono);
  font-size: .53rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.holodex-copy h3 {
  margin: 0 0 12px;
  font: 600 clamp(2rem, 3.2vw, 3.7rem)/.95 var(--serif);
}

.holodex-copy p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: .82rem;
  line-height: 1.65;
}

@media (hover:hover) and (min-width:901px) {
  .holodex:hover .holodex-card { opacity: .48; filter: saturate(.72); }
  .holodex .holodex-card:hover,
  .holodex .holodex-card:focus-visible {
    z-index: 10;
    opacity: 1;
    filter: none;
    transform: translateX(0) rotateY(0) translateZ(120px) scale(1.055);
    border-color: rgba(199,167,101,.62);
    box-shadow: inset 0 1px rgba(255,255,255,.14), 0 55px 110px -35px rgba(0,0,0,.95);
  }
  .holodex-card:hover img,
  .holodex-card:focus-visible img { transform: scale(1.035); filter: saturate(.9) contrast(1.08) brightness(.86); }
}

/* Purchase transparency ledger */
.trust-ledger {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(0,96,57,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,96,57,.035) 1px, transparent 1px),
    var(--ds-paper);
  background-size: 80px 80px, 80px 80px, auto;
}

.trust-ledger::before {
  content: "06 / REGISTRO DE COMPRA";
  position: absolute;
  top: 34px;
  left: clamp(22px,5vw,80px);
  color: rgba(0,96,57,.62);
  font-family: var(--ds-mono);
  font-size: .58rem;
  letter-spacing: .16em;
}

.trust-head {
  width: min(1220px, 100%);
  margin: 0 auto clamp(48px, 6vw, 82px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(45px, 8vw, 120px);
  align-items: end;
  padding-top: 36px;
  border-top: 1px solid rgba(0,96,57,.16);
}

.trust-head h2 {
  margin: 0;
  font: 600 clamp(3.5rem, 6.3vw, 6.8rem)/.9 var(--serif);
  letter-spacing: -.045em;
}

.trust-head > div:last-child {
  max-width: 560px;
  color: #4c554f;
  line-height: 1.75;
}

.trust-grid {
  width: min(1220px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0,96,57,.17);
  border-left: 1px solid rgba(0,96,57,.17);
}

.trust-item {
  position: relative;
  min-height: 245px;
  padding: clamp(28px, 3.4vw, 46px);
  border-right: 1px solid rgba(0,96,57,.17);
  border-bottom: 1px solid rgba(0,96,57,.17);
  background: rgba(255,255,255,.48);
  transition: background .35s ease, transform .45s var(--ds-ease), box-shadow .45s var(--ds-ease);
}

.trust-item::before {
  content: attr(data-index);
  display: block;
  margin-bottom: 40px;
  color: rgba(0,96,57,.42);
  font-family: var(--ds-mono);
  font-size: .54rem;
  letter-spacing: .12em;
}

.trust-item::after {
  content: "VERIFICADO";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 8px;
  border: 1px solid rgba(0,96,57,.2);
  color: rgba(0,96,57,.65);
  font-family: var(--ds-mono);
  font-size: .45rem;
  letter-spacing: .12em;
}

.trust-item h3 {
  margin: 0 0 12px;
  font: 600 clamp(1.8rem, 2.6vw, 2.8rem)/.98 var(--serif);
}

.trust-item p {
  margin: 0;
  color: #59615c;
  font-size: .82rem;
  line-height: 1.65;
}

.trust-item:hover {
  z-index: 2;
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 28px 60px -44px rgba(0,61,40,.7);
}

/* Numbering realignment after the new sections */
.story::before { content: "04 / COMPOSIÇÃO"; }
.specs::before { content: "05 / ESPECIFICAÇÕES"; }
.offer::after { content: "07 / AQUISIÇÃO"; }
.promise::before { content: "08 / COMPRA CONSCIENTE"; }
.faq::before { content: "09 / PERGUNTAS ESSENCIAIS"; }

/* Progressive reveal: content is visible by default and only hides after JS confirms it is ready. */
html.ds-motion-active .reveal.ds-animate:not(.is-visible) {
  opacity: 0 !important;
  visibility: visible !important;
  filter: blur(9px) !important;
  transform: translate3d(0, 38px, 0) scale(.98) !important;
  clip-path: inset(100% 0 0 0) !important;
}

html.ds-motion-active .reveal.ds-animate.is-visible {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: none !important;
  clip-path: inset(-8% -8% -8% -8%) !important;
}

html.ds-motion-active .word-mask { overflow: hidden !important; }

html.ds-motion-active .word-inner {
  opacity: 1 !important;
  transform: translate3d(0, 112%, 0) rotate(.5deg) !important;
}

html.ds-motion-active .is-visible .word-inner,
html.ds-motion-active body.is-loaded .hero-copy .word-inner {
  transform: translate3d(0,0,0) rotate(0) !important;
}

/* Responsive restraint */
@media (max-width: 1100px) {
  .chapter-indicator { display: none; }
  .holodex { min-height: 560px; }
  .holodex-card,
  .holodex-card img { min-height: 520px; }
}

@media (max-width: 900px) {
  .site-rails { display: none; }
  .hero-datum { display: none; }
  .nexus-canvas { opacity: .22; mask-image: linear-gradient(180deg, transparent, #000 42%, transparent); }

  .anatomy::before,
  .trust-ledger::before { top: 22px; }

  .holodex {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 15px;
    perspective: none;
  }

  .holodex-card,
  .holodex-card:nth-child(1),
  .holodex-card:nth-child(2),
  .holodex-card:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    min-height: 560px;
    transform: none;
  }

  .holodex-card img { min-height: 560px; }

  .trust-head { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nexus-canvas { display: none; }
  .anatomy-heading h2,
  .trust-head h2 { font-size: clamp(3.2rem, 15vw, 5.2rem); }

  .holodex-card,
  .holodex-card:nth-child(1),
  .holodex-card:nth-child(2),
  .holodex-card:nth-child(3),
  .holodex-card img { min-height: 470px; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 205px; }
}

@media (prefers-reduced-motion: reduce) {
  .nexus-canvas { display: none; }
  .holodex-card,
  .trust-item { transition: none; }
  html.ds-motion-active .reveal.ds-animate:not(.is-visible) {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
  }
  html.ds-motion-active .word-inner { transform: none !important; }
}
