/* Page: Landing principal — Figma node 588:3244 */

/* ---------- Hero ---------- */
.hero-section {
  width: 100%;
  margin-top: var(--header-height);
  overflow: hidden;
  background: var(--dark);
}

.hero {
  position: relative;
  width: 100%;
  height: 734px;
  overflow: hidden;
  background: #424242;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 15.3%, rgba(102, 102, 102, 0) 38.4%),
    linear-gradient(46deg, rgba(0, 0, 0, 0.7) 30.1%, rgba(102, 102, 102, 0) 59.5%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.6) 29.4%, rgba(102, 102, 102, 0) 37.6%);
}

/* Content lives inside a 1360px-capped, centered frame so it never drifts
   past the design's proportions on wide screens — only the bg image (above)
   and overlay bleed to the true viewport edge. */
.hero__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 80px var(--page-gutter) 56px;
}

.hero__ellipse {
  position: absolute;
  top: 151px;
  left: 933px;
  width: 300px;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 474px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__title {
  max-width: 432px;
}

.hero__description {
  max-width: 424px;
  color: var(--fog-white);
}

.hero__actions {
  display: flex;
  gap: 16px;
}

.hero__trailer {
  position: absolute;
  z-index: 2;
  top: 241px;
  left: 1018px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  padding: 20px;
  border-radius: 999px;
  border: 0.6px solid rgba(255, 255, 255, 0.24);
  background: rgba(22, 22, 22, 0.32);
  backdrop-filter: blur(2px);
  transition: transform 0.3s ease;
}

/* Expanding ring that fades out, looping — signals "this is playable"
   without being loud about it. Lives on a pseudo-element so it can scale
   past the button's own bounds without affecting layout. */
.hero__play::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 0.6px solid rgba(255, 255, 255, 0.4);
  animation: hero-play-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes hero-play-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (hover: hover) {
  .hero__trailer:hover .hero__play {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__play::before {
    animation: none;
  }
}

.hero__play-inner {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 999px;
  border: 0.8px solid rgba(255, 255, 255, 0.32);
}

.hero__play-inner img {
  width: 40px;
  height: 40px;
}

.hero__trailer-label {
  font-family: var(--font-gotham);
  font-weight: 350;
  font-size: 16px;
  color: var(--white);
  text-align: center;
}

/* ---------- Logos strip ---------- */
.logos {
  width: 100%;
  padding-block: 20px 60px;
  background: var(--dark);
}

.logos__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.logos__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logos__label {
  color: var(--white);
  letter-spacing: 0.4px;
}

.logos__divider {
  width: 35px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

.logos__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}

.logos__row img {
  height: 32px;
  width: auto;
}

.logos__viewport {
  width: 100%;
  overflow: hidden;
}

/* ---------- Why This Exists (shared layout for 3 sections) ---------- */
/* The text column aligns with the 1360px content frame via --frame-inset,
   while the photo (a corner-pinned, full-bleed image) keeps filling the
   remaining space all the way to the true viewport edge. */
.split-section {
  position: relative;
  display: flex;
  width: 100%;
  height: 786px;
  overflow: hidden;
  background: var(--dark);
  /* Only the text side gets the dynamic inset — the image side has no
     padding so it keeps bleeding to the true viewport edge. */
  padding-inline-start: var(--frame-inset);
}

.split-section--reverse {
  padding-inline-start: 0;
  padding-inline-end: var(--frame-inset);
}

.split-section__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  width: 687px;
  flex-shrink: 0;
  height: 100%;
  padding: 80px var(--page-gutter) 80px 0;
}

.split-section--reverse .split-section__content {
  padding: 80px 0 80px var(--page-gutter);
}

.split-section__texts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 522px;
  color: var(--white);
  letter-spacing: 0.4px;
}

.split-section__texts p {
  line-height: 1.5;
}

.split-section__image {
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
}

.split-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dish collage crops from the top-left corner (not centered). */
#why-this-exists .split-section__image img {
  object-position: left top;
}

.split-section__decor {
  position: absolute;
  left: -57px;
  top: 384px;
  width: 614px;
  height: 635px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.chef-decor {
  position: absolute;
  left: 902px;
  top: -206px;
  width: 625px;
  height: 636px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.chef-decor img {
  width: 492px;
  height: 509px;
  transform: rotate(-161.9deg);
}

/* ---------- Chef video transition ---------- */
.chef-transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--dark);
}

/* aspect-ratio matches the source file's native 2476x1112 exactly, so the
   video's shape always equals the container's shape — object-fit never has
   to crop anything, at any viewport width (a fixed height instead would
   crop the video on very wide/ultrawide screens once the container's own
   aspect ratio no longer matched the footage). */
.chef-transition__video {
  display: block;
  width: 100%;
  aspect-ratio: 2476 / 1112;
  object-fit: cover;
  background: #0d0d0d;
}

/* ---------- Testimonials ---------- */
.testimonials {
  width: 100%;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--dark);
}

.testimonials__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonials__viewport {
  position: relative;
  width: 100%;
  padding-top: 32px;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 56px;
  width: 100%;
  will-change: transform;
}

.testimonials__track.is-jumping {
  transition: none !important;
}

.testimonial {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 221px;
}

.testimonial__quote {
  flex: 1;
  font-family: var(--font-gotham);
  font-weight: 350;
  font-size: 14px;
  line-height: 20px;
  color: var(--white);
}

.testimonial__source {
  padding: 20px 0;
  font-family: var(--font-gotham);
  font-style: normal;
  font-weight: 350;
  font-size: 14px;
  line-height: 20px;
  color: #DEA300;
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.testimonials__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.56);
  transition: color 0.2s ease, background 0.2s ease;
}

.testimonials__arrow:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.testimonials__sliders {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 0;
}

.testimonials__sliders button {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
  position: relative;
}

/* The dots are 2px tall by design and that stays exactly as drawn. What is
   fixed here is the *hit area*: a 16x2 button is effectively untappable on a
   phone, and WCAG 2.2 SC 2.5.8 asks for 24x24. This pseudo-element is
   invisible and absolutely positioned, so it enlarges what a finger can hit
   without changing the visual or the layout by a single pixel.

   Adjacent dots sit 10px apart, so at 24px wide the enlarged areas still
   leave a 2px gap and never overlap each other. */
.testimonials__sliders button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 24px);
  height: 24px;
}

.testimonials__sliders button.is-active {
  width: 44px;
  background: var(--white);
}

.testimonials__sliders button:not(.is-active) {
  width: 16px;
}

/* ---------- The Journey ---------- */
.journey {
  width: 100%;
  padding-block: 80px;
  background: var(--dark);
}

.journey__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.journey__header {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.journey__title {
  flex: 1;
  min-width: 0;
  color: var(--white);
}

.journey__intro {
  width: 554px;
  flex-shrink: 0;
  font-family: var(--font-gotham);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.72);
}

.journey__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.journey__actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

.journey__coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ---------- CTA Founding Members ---------- */
.cta-founding {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 757px;
  overflow: hidden;
  background: var(--dark);
}

.cta-founding__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Single smooth left-to-right darkening for text legibility. Never reaches
   full opacity, so the photo stays visible edge-to-edge (including the far
   left corner) and there is no hard "cut-off" band. Replaces the old Figma
   multi-gradient overlay, whose 257deg layer dumped ~90% opaque black on the
   true left edge — that read as the image not reaching the corner once the
   text panel was shifted inward to the 1360px grid. */
.cta-founding__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(24, 24, 24, 0.8) 0%,
    rgba(24, 24, 24, 0.5) 30%,
    rgba(24, 24, 24, 0) 58%
  );
}

.cta-founding__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  width: 699px;
  max-width: 100%;
  margin-inline-start: var(--frame-inset);
  padding: 60px var(--page-gutter) 60px 0;
}

.cta-founding__title {
  color: var(--white);
}

.cta-founding__intro {
  font-family: var(--font-gotham);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: var(--white);
}

.cta-founding__benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-founding__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-founding__benefit img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cta-founding__benefit p {
  font-family: var(--font-gotham);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

/* Responsive */
@media (max-width: 1100px) {
  /* Tablet and below: the desktop gradients only darken part of the image,
     which isn't enough contrast once the text stacks full-width on top of
     it. Add a flat black layer at 80% opacity between image and text. */
  .hero__bg-overlay,
  .cta-founding__bg-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .hero {
    height: auto;
  }

  .split-section,
  .cta-founding {
    height: auto;
  }

  .hero__frame {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    min-height: 880px;
    padding: 60px var(--page-gutter);
  }

  /* Trailer moves from its desktop absolute position into normal flow,
     right below the CTAs, instead of being hidden — at 1.5x this scaled-down
     mobile size (requested after review), since the full 140px circle still
     reads oversized on a phone screen. */
  .hero__trailer {
    position: static;
    align-self: flex-start;
    gap: 12px;
  }

  .hero__play {
    width: 105px;
    height: 105px;
    padding: 15px;
  }

  .hero__play-inner {
    padding: 15px;
  }

  .hero__play-inner img {
    width: 30px;
    height: 30px;
  }

  .hero__trailer-label {
    font-size: 19.5px;
  }

  .hero__ellipse {
    display: none;
  }

  .hero__actions {
    flex-wrap: wrap;
  }

  /* The Journey CTA row needs the same wrap the hero row already gets, and
     was missed. Without it the pair stays on one line at 390px: the row is
     348.5px inside a 310px column, so "Start Level I" ran from x=235.7 to
     x=389 in a 390px viewport - overflowing its container by 39px and landing
     1px from the screen edge, against a 40px gutter on the left.

     It did not show up as a page-level overflow because the row spills past
     its container without pushing document.scrollWidth beyond the viewport,
     so the page never scrolls sideways and only a per-element measurement
     catches it. This is the primary conversion CTA on the page. */
  .journey__actions {
    flex-wrap: wrap;
  }

  .split-section,
  .split-section--reverse {
    flex-direction: column;
    height: auto;
    padding-inline: 0;
  }

  .split-section__content,
  .split-section--reverse .split-section__content {
    width: 100%;
    height: auto;
    padding: 60px var(--page-gutter) 40px;
  }

  .split-section__texts {
    max-width: 100%;
  }

  .split-section__image {
    height: 400px;
  }

  /* "Transform the way you cook" photo shows fully on phones instead of
     being cropped to fill a fixed-height box — full container width, height
     follows the image's own aspect ratio. */
  #why-this-exists .split-section__image {
    height: auto;
  }

  #why-this-exists .split-section__image img {
    height: auto;
    object-fit: contain;
  }

  .split-section__decor,
  .chef-decor {
    display: none;
  }

  .journey__header {
    flex-direction: column;
    gap: 20px;
  }

  .journey__intro {
    width: 100%;
  }

  .chef-transition {
    padding-top: 24px;
  }

  .testimonials__track {
    gap: 24px;
  }

  /* Quote read as bigger than the meet-the-chef description above it on
     phones, despite the smaller font-size, because of its medium weight —
     lighten and shrink it so it clearly reads as secondary to that text. */
  .testimonial__quote {
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    line-height: 16px;
  }

  .cta-founding {
    align-items: stretch;
  }

  .cta-founding__panel {
    width: 100%;
    margin-inline-start: 0;
    padding-inline: var(--page-gutter);
    background: linear-gradient(0deg, rgba(24,24,24,0.95) 40%, rgba(24,24,24,0.2));
  }

  /* "As featured in" becomes a single continuously-moving row (~2.5 logos
     visible at a time) instead of a static wrapped grid. */
  .logos__row.is-marquee {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    animation: logos-marquee 22s linear infinite;
  }

  .logos__row.is-marquee img {
    flex-shrink: 0;
    width: 20vw;
    height: auto;
  }

  @keyframes logos-marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
}
