:root {
  --landing-blue: #3133f5;
  --landing-shell-padding: clamp(1rem, 2vw, 1.5rem);
  --landing-content-width: 72rem;
  --landing-stack-width: 28rem;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background-color: #000;
  color: #ffffff;
  overflow-x: hidden;
  font-family: Roboto;
  user-select: none;
  background-image: url("../images/NewBackground00.jpg");
  background-position: center;
  background-size: cover;
}

body {
  min-height: 100dvh;
  overflow-y: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

.wrapper {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: var(--landing-shell-padding);
  box-sizing: border-box;
}

.content {
  width: min(100%, var(--landing-content-width));
  min-height: calc(100dvh - (var(--landing-shell-padding) * 2));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vh, 2rem);
}

.title {
  margin: 0;
  color: var(--landing-blue);
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vmin, 5rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.landing-main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: clamp(1rem, 2.5vh, 1.75rem);
}

.landing-stack {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2.3vh, 1.5rem);
  padding-block: clamp(0.5rem, 1.6vh, 1rem);
}

.landing-video {
  width: min(100%, var(--landing-stack-width));
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.landing-video__frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.landing-prologue {
  display: block;
  margin: 0;
  padding: 0.45rem 0.85rem;
  color: var(--landing-blue);
  text-decoration: none;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 0.45rem;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

button.landing-prologue {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.landing-prologue:hover {
  background: var(--landing-blue);
  color: #ffffff;
  opacity: 0.88;
}

.notes-modal[hidden] {
  display: none;
}

.notes-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.notes-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.notes-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 2.5rem), 72rem);
  max-height: calc(100dvh - 2.5rem);
  background: transparent;
}

.notes-modal__stage {
  --notes-stage-height: min(calc(100dvh - 7.5rem), 78vh);
  --notes-arrow-size: clamp(3.5rem, 5vw, 5.75rem);
  position: relative;
  width: min(100%, 72rem);
  height: var(--notes-stage-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes-modal__frame {
  --notes-panel-width-scale: 1;
  --notes-panel-base-width: min(calc(var(--notes-stage-height) * 0.707), 36rem);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  max-width: calc(100% - (var(--notes-arrow-size) * 1.7));
  max-height: 100%;
}

.notes-modal__frame--panel {
  --notes-panel-base-width: min(calc(100vw - 11rem), 48rem);
  max-width: calc(100% - (var(--notes-arrow-size) * 1.2));
}

.notes-modal__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--notes-stage-height);
  display: block;
  border-radius: 0.5rem;
  box-shadow: none;
  transform: translate(0, 0) scale(1);
  transform-origin: center center;
  will-change: transform;
}

.notes-modal__image[hidden] {
  display: none;
}

.notes-modal__panel {
  width: min(calc(var(--notes-panel-base-width) * var(--notes-panel-width-scale)), 100%);
  max-width: 100%;
  max-height: var(--notes-stage-height);
  aspect-ratio: var(--notes-panel-aspect, 1);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
  overflow: hidden;
}

.notes-modal__panel[hidden] {
  display: none;
}

.notes-modal__panel-body {
  --notes-body-font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  --notes-index-font-size: clamp(0.82rem, 1.02vw, 0.95rem);
  --notes-section-title-font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(1rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.8rem, 1.5vw, 1rem);
  overflow-y: auto;
  color: #1c1c24;
  font-size: var(--notes-body-font-size);
  line-height: 1.45;
  font-weight: 300;
}

.notes-modal__panel-body p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.notes-modal__panel-block {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1vw, 0.75rem);
}

.notes-modal__panel-body a {
  color: var(--landing-blue);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.notes-modal__panel-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: var(--notes-index-font-size);
  line-height: 1.35;
}

.notes-modal__panel-index a {
  text-decoration-thickness: 1px;
}

.notes-modal__panel-section {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1vw, 0.75rem);
}

.notes-modal__panel-section + .notes-modal__panel-section {
  margin-top: 1em;
}

.notes-modal__panel-section-title {
  margin: 0;
  font-size: var(--notes-section-title-font-size);
  line-height: 1.2;
  font-weight: 400;
  color: var(--landing-blue);
  scroll-margin-top: 0.5rem;
}

.notes-modal__panel-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--landing-blue);
}

.notes-modal__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: var(--notes-arrow-size);
  height: var(--notes-arrow-size);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--landing-blue);
  cursor: pointer;
  transform: translateY(-50%);
}

.notes-modal__arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: clamp(1rem, 1.5vw, 1.5rem) solid transparent;
  border-bottom: clamp(1rem, 1.5vw, 1.5rem) solid transparent;
}

.notes-modal__arrow--prev {
  left: 0;
  transform: translate(-78%, -50%);
}

.notes-modal__arrow--prev::before {
  border-right: clamp(1.45rem, 2.2vw, 2.15rem) solid currentColor;
}

.notes-modal__arrow--next {
  right: 0;
  transform: translate(78%, -50%);
}

.notes-modal__arrow--next::before {
  border-left: clamp(1.45rem, 2.2vw, 2.15rem) solid currentColor;
}

.notes-modal__frame--panel .notes-modal__arrow--prev {
  left: 0;
  transform: translate(-72%, -50%);
}

.notes-modal__frame--panel .notes-modal__arrow--next {
  right: 0;
  transform: translate(72%, -50%);
}

.notes-modal__arrow:disabled {
  opacity: 0.22;
  cursor: default;
}

.notes-modal__lens {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(8rem, 18vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(21, 43, 77, 0.35), 0 1rem 2rem rgba(0, 0, 0, 0.18);
  background-color: rgba(255, 255, 255, 0.08);
  background-repeat: no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.notes-modal__lens.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (pointer: fine) {
  .notes-modal__image {
    cursor: none;
  }
}

.landing-actions {
  width: min(100%, var(--landing-stack-width));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.45rem, 1vh, 0.8rem);
}

.landing-button {
  width: 100%;
  min-height: clamp(3.2rem, 5vh, 4.35rem);
  box-sizing: border-box;
  padding: clamp(0.72rem, 1.1vh, 0.9rem) 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  color: var(--landing-blue);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--landing-blue);
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.landing-button:hover {
  background: var(--landing-blue);
  color: #fff;
  transform: translateY(-1px);
}

.landing-button__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  align-items: center;
  text-align: center;
  padding-inline: 3.5rem;
  box-sizing: border-box;
}

.landing-button__media {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 2.3rem;
  height: 2.3rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: rgba(49, 51, 245, 0.07);
  border: 1px solid rgba(49, 51, 245, 0.22);
  overflow: hidden;
}

.landing-button__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.landing-button__icon--mixed {
  filter: brightness(0) saturate(100%) invert(20%) sepia(95%) saturate(4280%) hue-rotate(232deg) brightness(100%) contrast(96%);
  transition: filter 180ms ease;
}

.landing-button:hover .landing-button__icon--mixed {
  filter: brightness(0) invert(1);
}

.landing-button__media--placeholder::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border: 1.6px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.42;
}

.landing-button__title {
  font-size: clamp(1.05rem, 1.85vw, 1.34rem);
  line-height: 1.08;
  font-weight: 400;
  text-transform: uppercase;
}

.landing-button--plain .landing-button__body {
  justify-content: center;
}

.instructionWrapper {
  width: min(100%, 72rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.18rem 0.55rem;
  margin: 0;
  padding: 0.35rem 0 0.1rem;
  text-align: center;
  box-sizing: border-box;
}

.instructionLinksDesktop {
  display: contents;
}

.mobile-links-toggle,
.mobile-links-trigger,
.mobile-links-backdrop,
.mobile-links-popup {
  display: none;
}

.mobile-links-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.instructions {
  display: inline-block;
  margin: 0;
  position: relative;
  cursor: pointer;
  font-size: clamp(0.96rem, 1.2vw, 1.1rem);
  line-height: 1.45;
  color: var(--landing-blue);
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
}

.instruction-group {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0;
}

#index-created-by-prefix {
  margin-right: 0.28rem;
}

.illustration {
  max-width: 100%;
  max-height: var(--image-max-width);
  margin-top: var(--image-margin);
}

@media (max-width: 980px) {
  :root {
    --landing-content-width: 56rem;
    --landing-stack-width: 26rem;
  }

  .instructions {
    font-size: clamp(0.92rem, 1.6vw, 1rem);
  }
}

@media (max-height: 780px) and (min-width: 768px) {
  .content {
    gap: 0.85rem;
  }

  .landing-main {
    gap: 0.9rem;
  }

  .landing-stack {
    gap: 0.8rem;
    padding-block: 0.35rem;
  }

  .landing-button {
    min-height: 3rem;
    padding-block: 0.68rem;
  }

  .landing-button__media {
    width: 2.05rem;
    height: 2.05rem;
  }

  .landing-button__title {
    font-size: 1rem;
  }

  .instructions {
    font-size: 0.92rem;
    line-height: 1.35;
  }
}

@media (max-width: 767px) {
  .wrapper {
    min-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  }

  .content {
    min-height: auto;
    grid-template-rows: auto auto;
    gap: 1rem;
  }

  .title {
    max-width: none;
    font-size: clamp(1.6rem, 8.2vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }

  .landing-main {
    grid-template-rows: auto auto;
    gap: 1rem;
  }

  .landing-stack {
    justify-content: flex-start;
    gap: 0.95rem;
    padding-block: 0;
  }

  .landing-video {
    width: min(100%, clamp(9rem, 50vmin, 14rem));
    border-radius: 0.85rem;
  }

  .landing-prologue {
    font-size: clamp(0.95rem, 4vw, 1.08rem);
    white-space: normal;
  }

  .landing-actions {
    width: 100%;
    max-width: none;
    gap: 0.75rem;
  }

  .notes-modal {
    padding: max(0.35rem, env(safe-area-inset-top)) 0.35rem max(0.35rem, env(safe-area-inset-bottom));
  }

  .notes-modal__dialog {
    width: 100%;
    max-height: 100dvh;
  }

  .notes-modal__stage {
    --notes-stage-height: min(calc(100dvh - 1rem), 94dvh);
    --notes-arrow-size: clamp(2.8rem, 12vw, 4rem);
    --notes-controls-space: calc(var(--notes-arrow-size) + max(1.45rem, env(safe-area-inset-bottom)));
    --notes-content-height: calc(var(--notes-stage-height) - var(--notes-controls-space));
    width: 100%;
  }

  .notes-modal__frame {
    width: 100%;
    height: var(--notes-stage-height);
    max-width: 100%;
    max-height: var(--notes-stage-height);
    box-sizing: border-box;
    padding-bottom: var(--notes-controls-space);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
  }

  .notes-modal__frame--panel {
    max-width: 100%;
  }

  .notes-modal__image {
    max-width: calc(100vw - 0.7rem);
    max-height: var(--notes-content-height);
    cursor: grab;
    transition: transform 120ms ease;
  }

  .notes-modal__frame.is-zoomed .notes-modal__image {
    cursor: grabbing;
    transition: none;
  }

  .notes-modal__panel {
    width: min(calc(100vw - 0.7rem), 100%);
    height: var(--notes-content-height);
    max-height: var(--notes-content-height);
    aspect-ratio: auto;
  }

  .notes-modal__panel-body {
    --notes-body-font-size: clamp(1.26rem, 5.04vw, 1.416rem);
    --notes-index-font-size: 1em;
    --notes-section-title-font-size: clamp(1.35rem, 5.4vw, 1.55rem);
    padding: clamp(1.1rem, 4.5vw, 1.7rem);
    font-size: var(--notes-body-font-size);
    line-height: 1.48;
  }

  .notes-modal__panel-title {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .notes-modal__arrow {
    top: auto;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    width: var(--notes-arrow-size);
    height: var(--notes-arrow-size);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .notes-modal__arrow::before {
    width: clamp(1.15rem, 4vw, 1.55rem);
    height: clamp(1.7rem, 5.6vw, 2.25rem);
    margin: 0;
    border: 0;
    background: currentColor;
  }

  .notes-modal__arrow--prev,
  .notes-modal__frame--panel .notes-modal__arrow--prev {
    left: calc(50% - var(--notes-arrow-size) - 0.55rem);
    transform: none;
  }

  .notes-modal__arrow--prev::before {
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
  }

  .notes-modal__arrow--next,
  .notes-modal__frame--panel .notes-modal__arrow--next {
    left: calc(50% + 0.55rem);
    right: auto;
    transform: none;
  }

  .notes-modal__arrow--next::before {
    clip-path: polygon(100% 50%, 0 0, 0 100%);
  }

  @media (orientation: landscape) {
    .notes-modal {
      padding: 0 0.35rem;
    }

    .notes-modal__stage {
      --notes-stage-height: 100dvh;
      --notes-arrow-size: clamp(2rem, 8vh, 2.5rem);
      --notes-controls-space: max(calc(var(--notes-arrow-size) + 0.4rem), 10dvh);
      --notes-content-height: calc(var(--notes-stage-height) - var(--notes-controls-space));
    }

    .notes-modal__panel {
      height: min(90dvh, var(--notes-content-height));
      max-height: min(90dvh, var(--notes-content-height));
    }

    .notes-modal__image {
      max-height: min(90dvh, var(--notes-content-height));
    }

    .notes-modal__panel-body {
      --notes-body-font-size: clamp(1.14rem, 2.88vw, 1.296rem);
      --notes-index-font-size: 1em;
      --notes-section-title-font-size: clamp(1.22rem, 3.4vw, 1.42rem);
      padding: clamp(0.85rem, 2.4vw, 1.2rem);
      font-size: var(--notes-body-font-size);
      line-height: 1.42;
    }

    .notes-modal__panel-title {
      font-size: clamp(1.35rem, 4vw, 1.9rem);
    }

    .notes-modal__arrow {
      bottom: max(0.25rem, env(safe-area-inset-bottom));
    }

  }

  .landing-button {
    min-height: 3.9rem;
    padding: 0.95rem 1rem;
    justify-content: center;
    border-radius: 1.45rem;
  }

  .landing-button__body {
    align-items: center;
    text-align: center;
    padding-inline: 3.4rem;
  }

  .landing-button__media {
    left: 1rem;
    width: 2.3rem;
    height: 2.3rem;
  }

  .landing-button__title {
    font-size: clamp(1rem, 4.8vw, 1.22rem);
    line-height: 1.15;
  }

  .instructionWrapper {
    width: 100%;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .instructionLinksDesktop {
    display: none;
  }

  .mobile-links-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.85rem 1.3rem;
    border: 1px solid var(--landing-blue);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--landing-blue);
    font-size: 0.98rem;
    line-height: 1.15;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
  }

  .mobile-links-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    z-index: 19;
  }

  .mobile-links-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100vw - 2rem), 28rem);
    max-height: min(78dvh, 34rem);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(49, 51, 245, 0.3);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    z-index: 20;
    box-sizing: border-box;
  }

  .mobile-links-toggle:checked ~ .mobile-links-backdrop,
  .mobile-links-toggle:checked ~ .mobile-links-popup {
    display: block;
  }

  .mobile-links-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
  }

  .mobile-links-popup__title {
    margin: 0;
    color: var(--landing-blue);
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 400;
  }

  .mobile-links-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: var(--landing-blue);
    border: 1px solid rgba(49, 51, 245, 0.25);
    background: rgba(49, 51, 245, 0.05);
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1;
  }

  .mobile-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .mobile-links-item {
    display: block;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border-radius: 0.95rem;
    background: rgba(49, 51, 245, 0.05);
    color: var(--landing-blue);
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    box-sizing: border-box;
  }

  .instructions {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .instruction-group {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 540px) {
  .wrapper {
    padding-inline: 0.85rem;
  }

  .title {
    font-size: clamp(1.45rem, 7.8vw, 2.15rem);
  }

  .landing-button {
    min-height: 3.65rem;
  }

  .landing-button__media {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
  }

  .instructionWrapper {
    flex-direction: row;
  }

  .instruction-group {
    width: 100%;
  }
}

@media (max-width: 767px) and (max-height: 520px) {
  .content {
    gap: 0.85rem;
  }

  .landing-stack {
    gap: 0.75rem;
  }

  .title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .landing-button {
    min-height: 3.3rem;
  }

  .mobile-links-popup {
    max-height: min(86dvh, 28rem);
  }

  .instructions {
    font-size: 0.86rem;
  }
}

/* Button - Add it from the README instructions */
button,
input {
  font-family: inherit;
  font-size: 100%;
  background: #FFFFFF;
  border: 1px solid #ffffff;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  transition: 500ms;
}

/* Subheading */
h2 {
  color: #ffffff;
}

/* Interactive image */
.illustration:active {
  transform: translateY(5px);
}

.dipped {
  transform: translateY(5px);
}
