@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --z-canvas: #fcfbf8;
  --z-surface: #ffffff;
  --z-text: #111318;
  --z-text-secondary: #676b73;
  --z-brand: #6f82ff;
  --z-brand-strong: #5668e8;
  --z-border: rgba(17, 19, 24, 0.22);
  --z-motion-enter: 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--z-canvas);
  color: var(--z-text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--z-canvas);
}

.not-found-page {
  overflow: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  background-color: var(--z-canvas);
  background-image: url("/assets/images/zempo-day-poster.webp");
  background-position: center;
  background-size: cover;
}

.hero__media,
.hero__wash,
.hero__passage {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -4;
  overflow: hidden;
  opacity: 0;
  transition: opacity 500ms ease-out;
}

.hero__player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.778vh);
  height: max(100vh, 56.25vw);
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.stream-mobile .hero__player {
  width: max(100vw, 56.25vh);
  height: max(100vh, 177.778vw);
}

.video-ready .hero__media {
  opacity: 1;
}

.hero__wash {
  z-index: -3;
  background: rgba(252, 251, 248, 0.42);
}

.hero__passage {
  z-index: -2;
  top: 50%;
  right: -12vw;
  bottom: auto;
  left: -12vw;
  height: 18vh;
  max-height: 190px;
  min-height: 110px;
  transform: rotate(-8deg) translateY(-50%);
  transform-origin: center;
  background: rgba(215, 222, 255, 0.2);
}

.hero__content {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  width: min(760px, calc(100vw - 48px));
  min-height: min(580px, calc(100svh - 148px));
  padding: clamp(52px, 8vh, 88px) clamp(28px, 6vw, 72px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: content-enter var(--z-motion-enter) both;
}

.hero__content::before {
  position: absolute;
  z-index: -1;
  inset: 18px;
  border-radius: 24px;
  background: rgba(252, 251, 248, 0.68);
  content: "";
}

.hero__logo {
  display: block;
  width: clamp(218px, 25vw, 340px);
  height: auto;
  margin: 0 0 clamp(28px, 4vh, 44px);
}

h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--z-text);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.hero__status {
  display: flex;
  margin: clamp(28px, 4vh, 42px) 0 0;
  align-items: center;
  gap: 12px;
  color: var(--z-text);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero__status span {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--z-brand-strong);
}

.frame-corner {
  position: absolute;
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  border-color: rgba(86, 104, 232, 0.66);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.frame-corner--tl {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  border-radius: 18px 0 0;
}

.frame-corner--tr {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  border-radius: 0 18px 0 0;
}

.frame-corner--bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-radius: 0 0 0 18px;
}

.frame-corner--br {
  right: 0;
  bottom: 0;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-radius: 0 0 18px;
}

.hero__product-proof,
.hero__domain {
  position: absolute;
  z-index: 2;
  bottom: max(24px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(17, 19, 24, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.hero__product-proof {
  left: max(28px, env(safe-area-inset-left));
  letter-spacing: -0.006em;
}

.hero__product-proof span {
  margin: 0 7px;
  color: var(--z-brand-strong);
}

.hero__domain {
  right: max(28px, env(safe-area-inset-right));
}

.not-found {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
  text-align: center;
}

.not-found img {
  width: min(280px, 70vw);
  height: auto;
}

.not-found h1 {
  margin-top: 40px;
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.not-found a {
  display: inline-block;
  margin-top: 24px;
  color: #4352be;
  font-weight: 600;
}

.not-found a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(86, 104, 232, 0.32);
  outline-offset: 4px;
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .hero {
    background-position: 30% center;
  }

  .hero__wash {
    background: rgba(252, 251, 248, 0.52);
  }

  .hero__passage {
    right: -35vw;
    left: -35vw;
    height: 110px;
    transform: rotate(-12deg) translateY(-50%);
  }

  .hero__content {
    width: calc(100vw - 32px);
    min-height: min(540px, calc(100svh - 116px));
    padding: 56px 28px;
  }

  .hero__content::before {
    inset: 12px;
    background: rgba(252, 251, 248, 0.78);
  }

  .hero__logo {
    width: clamp(205px, 62vw, 282px);
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(1.7rem, 7.8vw, 2.4rem);
  }

  .hero__product-proof {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
    text-align: center;
  }

  .hero__domain {
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    bottom: auto;
  }
}

@media (max-height: 690px) {
  .hero__content {
    min-height: calc(100svh - 112px);
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__logo {
    width: clamp(190px, 24vw, 280px);
    margin-bottom: 22px;
  }

  .hero__status {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media {
    display: none;
  }

  .hero__content {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .hero__wash {
    background: Canvas;
    opacity: 0.84;
  }

  .frame-corner,
  .hero__status span {
    border-color: LinkText;
    background: LinkText;
  }
}
