/* ATLA enhancements — immersion + conversion layer */

:root {
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-body: "DM Sans", Helvetica Neue, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-body);
}

/* Títulos principais em sans — presença mais limpa */
h1,
h2 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  font-weight: 600;
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1.05;
  max-width: 780px;
  letter-spacing: -0.035em;
}

.hero-accent {
  color: var(--bronze);
  font-weight: 700;
}

.hero-content .eyebrow {
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 14px;
}

.hero-content .eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 1px;
  background: var(--bronze);
}

.hero-content .hero-copy {
  margin-top: 28px;
  max-width: 520px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: #ffffffb8;
}

.hero-content .hero-actions {
  margin-top: 36px;
}

.hero-content .hero-proof {
  margin-top: 36px;
}

/* Serif só em subtítulos / cards, para toque editorial leve */
h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Grain overlay */
body.has-grain::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* Parallax layers — translate only (sem scale, para não amolecer a imagem) */
.hero {
  background: none;
  isolation: isolate;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -12% -6%;
  z-index: 0;
  background: linear-gradient(90deg, #040a12fa 0%, #040a12c7 39%, #040a121f 72%),
    url(everest-atla.png) 55% 42% / cover no-repeat;
  background-color: #040a12;
  will-change: transform;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero .topbar,
.hero .hero-shade,
.hero .ambient-toggle {
  z-index: 3;
  position: relative;
}

.hero .hero-content {
  z-index: 3;
  position: relative;
  will-change: transform, opacity;
}

.hero .hero-marker {
  z-index: 3;
  position: absolute;
  will-change: opacity;
}

.hero .ambient-toggle {
  position: absolute;
}

.hero .hero-proof {
  will-change: transform;
}

.closing {
  background: none;
  overflow: hidden;
}

.closing-parallax {
  background: url(everest-atla.png) 60% 45% / cover no-repeat;
  background-color: #040a12;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.closing-overlay,
.closing-content {
  z-index: 1;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-bg,
  .hero .hero-content,
  .hero .hero-proof {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Nav contact as text button */
.nav-contact {
  background: none;
  border: 0;
  padding: 0;
  color: #ffffffbf;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.18s;
}

.nav-contact:hover {
  color: var(--white);
}

.hero-actions .text-link {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Ambient toggle */
.ambient-toggle {
  position: absolute;
  bottom: 28px;
  left: 40px;
  z-index: 4;
  color: #ffffff8a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #080e1840;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, opacity 0.18s;
}

.ambient-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ambient-toggle.is-on {
  border-color: var(--bronze);
  color: var(--bronze);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stats context */
.stat-note {
  color: #ffffff66;
  display: block;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 400;
}

.stats article {
  display: flex;
  flex-direction: column;
}

.stats span {
  margin-top: auto;
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 72px;
}

.compare-card {
  border-radius: 28px;
  padding: 40px 36px;
  min-height: 380px;
}

.compare-shelf {
  background: #ffffffa8;
  border: 1px solid var(--line-light);
}

.compare-atla {
  background: var(--night);
  color: var(--ivory);
  border: 1px solid #c19a6a55;
  box-shadow: 0 30px 80px #1314151f;
}

.compare-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  margin: 0 0 18px;
}

.compare-shelf .compare-label {
  color: var(--leather);
}

.compare-atla .compare-label {
  color: var(--bronze);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
}

.compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-card li {
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid currentColor;
  border-bottom-color: #0b101a18;
  font-size: 15px;
  line-height: 1.55;
  position: relative;
}

.compare-atla li {
  border-bottom-color: #ffffff1a;
  color: #ffffffc2;
}

.compare-card li:last-child {
  border-bottom: 0;
}

.compare-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--leather);
  position: absolute;
  left: 0;
  top: 20px;
}

.compare-atla li::before {
  border-color: var(--bronze);
  background: #c19a6a33;
}

.compare-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Opportunity meta on hover */
.opportunity-meta {
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #ffffff1f;
  display: grid;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.28s ease, margin 0.28s ease, padding 0.28s ease;
}

.opportunity-card:hover .opportunity-meta,
.opportunity-card:focus-within .opportunity-meta {
  max-height: 160px;
  opacity: 1;
  margin-top: 22px;
  padding-top: 16px;
}

.opportunity-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.opportunity-meta dt {
  color: #ffffff66;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.opportunity-meta dd {
  margin: 0;
  color: var(--bronze);
  text-align: right;
  font-weight: 500;
}

/* Process seals */
.process-seals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 72px;
  padding: 18px 24px;
  border: 1px solid #80563a40;
  border-radius: 999px;
  background: #ffffff70;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.process-seals span {
  color: var(--leather);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.process-seals i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bronze);
}

/* Cinematic partners photo */
.partners-photo-cinematic:after {
  background:
    radial-gradient(ellipse at 50% 100%, #050c14e6 0%, transparent 55%),
    linear-gradient(#0000 38%, #050c14d4 100%),
    linear-gradient(90deg, #050c1440, #0000 45%),
    linear-gradient(0deg, transparent 70%, #c19a6a14);
}

.partners-photo-cinematic img {
  filter: saturate(0.82) contrast(1.08) brightness(0.92);
}

.partners-photo-cinematic:before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 80px #050c1488;
  border-radius: inherit;
  background-image: linear-gradient(
    115deg,
    transparent 40%,
    #c19a6a0f 48%,
    transparent 56%
  );
}

/* Cases / team / video */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 28px;
  padding: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px #1f191214;
}

.case-tag {
  width: fit-content;
  color: var(--leather);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #80563a44;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 9px;
  font-weight: 700;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 8px 0 0;
  letter-spacing: -0.03em;
}

.case-goal,
.case-outcome {
  color: #5d5c59;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.case-card > p:not(.case-goal):not(.case-outcome) {
  color: #66635f;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.team-block {
  margin-top: 110px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: end;
}

.team-copy h2 {
  margin-top: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 24px;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--night);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 18px 20px 6px;
}

.team-card p {
  color: #66635f;
  font-size: 13px;
  margin: 0 20px 22px;
}

.video-slot {
  margin-top: 72px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: var(--night);
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-poster {
  width: 100%;
  height: 100%;
  border: 0;
  cursor: default;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  background:
    radial-gradient(circle at 70% 30%, #c19a6a28, transparent 40%),
    linear-gradient(135deg, #0b101a, #151c28);
  color: var(--ivory);
  font: inherit;
}

.video-slot[data-video-src]:not([data-video-src=""]) .video-poster {
  cursor: pointer;
}

.video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #c19a6a88;
  background: #c19a6a22;
  position: relative;
}

.video-play::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 24px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent var(--bronze);
}

.video-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--bronze);
}

.video-poster small {
  color: #ffffff66;
  font-size: 11px;
}

.video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Simulator insight */
.result-insight {
  color: var(--bronze) !important;
  margin: 10px 0 8px !important;
  font-size: 13px !important;
  line-height: 1.5;
  max-width: 520px;
}

.result-insight + p {
  margin-top: 8px !important;
}

/* Next steps */
.next-steps-list {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
}

.next-steps-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  min-height: 120px;
  border-bottom: 1px solid var(--line-light);
  gap: 24px;
  transition: padding 0.18s;
}

.next-steps-list li:hover {
  padding-left: 12px;
}

.next-steps-list span {
  color: var(--leather);
  font-size: 14px;
  font-weight: 700;
}

.next-steps-list h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 500;
}

.next-steps-list p {
  color: #66635f;
  margin: 0;
  font-size: 15px;
}

.next-steps-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Sticky CTA mobile */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: #070c14f2;
  border: 1px solid #ffffff24;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px #00000066;
}

.sticky-cta .button {
  min-height: 46px;
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 0 12px;
}

.sticky-cta[hidden] {
  display: none !important;
}

@media (width <= 700px) {
  .sticky-cta:not([hidden]) {
    display: grid;
  }

  body.sticky-cta-visible main {
    padding-bottom: 88px;
  }

  .ambient-toggle {
    left: 18px;
    bottom: 18px;
    font-size: 8px;
    padding: 8px 12px;
  }

  .compare-grid,
  .cases-grid,
  .team-block,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .process-seals {
    border-radius: 20px;
    justify-content: flex-start;
  }

  .next-steps-list li {
    grid-template-columns: 52px 1fr;
    padding: 22px 0;
  }

  .team-card img {
    height: 220px;
  }
}

@media (width <= 1050px) {
  .compare-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .team-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
