:root {
  --ink: rgba(255, 246, 225, 0.88);
  --ink-soft: rgba(255, 246, 225, 0.68);
  --ink-faint: rgba(255, 246, 225, 0.34);
  --focus: rgba(255, 250, 232, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: #a891a6;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  font-weight: 300;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.visual-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 244, 196, 0.54), transparent 24%),
    radial-gradient(circle at 50% 40%, rgba(241, 161, 143, 0.62), transparent 46%),
    linear-gradient(138deg, #5f789d 0%, #9c8cab 28%, #e7a295 58%, #c093aa 100%);
}

.background__image,
.background__light {
  position: absolute;
  inset: -2.5vh -2.5vw;
  will-change: transform, opacity;
  pointer-events: none;
}

.background__image {
  background-image: url("assets/munay-ki-coming-soon-bckgrd.png");
  background-size: cover;
  background-position: center;
  opacity: 0.98;
  filter: url("#fabric-wave");
  transform: scale(1.02);
  animation: background-zoom-loop 38s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.background__light {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 247, 204, 0.18) var(--light-cx, 50%), transparent 100%),
    radial-gradient(ellipse at var(--light-cx, 50%) var(--light-cy, 26%), rgba(255, 245, 202, 0.38), transparent 35%),
    radial-gradient(ellipse at var(--light-cx, 50%) calc(var(--light-cy, 26%) + 34%), rgba(255, 230, 210, 0.16), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.58;
  animation: light-drift 42s ease-in-out infinite;
}

.language-switcher {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  z-index: 6;
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 246, 225, 0.14);
  border-radius: 999px;
  background: rgba(75, 68, 91, 0.14);
  backdrop-filter: blur(14px);
}

.language-switcher button {
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: rgba(255, 246, 225, 0.62);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 350ms ease, background 350ms ease, filter 350ms ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button[aria-pressed="true"] {
  color: rgba(55, 51, 58, 0.94);
  background: rgba(255, 246, 225, 0.74);
  filter: drop-shadow(0 0 10px rgba(255, 242, 210, 0.2));
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: clamp(48px, 6.6vh, 86px) clamp(24px, 6vw, 96px) clamp(34px, 7vh, 86px);
}

.hero {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(clamp(-8px, -1.2vh, -18px));
}

.hero__top {
  margin-bottom: clamp(52px, 8.4vh, 110px);
}

.chakana {
  width: clamp(56px, 6.58vw, 97px);
  height: auto;
  color: var(--ink);
  opacity: 0.78;
}

.chakana__line {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: miter;
  stroke-width: 1.05;
}

.chakana__inner {
  opacity: 0.72;
}

.chakana__center {
  opacity: 0.82;
}

.chakana__dots {
  fill: currentColor;
  opacity: 0.58;
}

.chakana__dots circle {
  stroke: none;
}

.hero__title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(34px, 5.2vh, 58px);
}

.title {
  margin: 0;
  font-size: clamp(4.15rem, 10.1vw, 11rem);
  line-height: 0.82;
  font-weight: 300;
  letter-spacing: clamp(0.32em, 3.2vw, 0.56em);
  text-indent: clamp(0.32em, 3.2vw, 0.56em);
  color: rgba(255, 246, 225, 0.9);
  text-shadow: 0 0 22px rgba(255, 234, 200, 0.12);
}

.kicker {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: clamp(0.48em, 2.4vw, 0.76em);
  text-indent: clamp(0.48em, 2.4vw, 0.76em);
  color: var(--ink-soft);
}

.divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: clamp(42px, 5.6vh, 72px) 0 clamp(46px, 6.4vh, 82px);
  opacity: 0.55;
}

.divider span {
  width: clamp(48px, 7vw, 78px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-faint));
}

.divider span:last-child {
  background: linear-gradient(90deg, var(--ink-faint), transparent);
}

.divider i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink-soft);
  transform: rotate(45deg);
}

.countdown {
  min-height: clamp(92px, 12vh, 142px);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  width: min(660px, 78vw);
}

.time-unit {
  position: relative;
  display: grid;
  gap: clamp(17px, 2vh, 25px);
  justify-items: center;
  padding: 0 clamp(15px, 2vw, 28px);
}

.time-unit + .time-unit {
  border-left: 1px solid rgba(255, 246, 225, 0.22);
}

.time-unit__value {
  min-width: 3ch;
  font-size: clamp(2.05rem, 3.5vw, 3.7rem);
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: rgba(255, 246, 225, 0.86);
  transition: opacity 760ms ease;
}

.time-unit__value.is-changing {
  opacity: 0.36;
}

.time-unit__label {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.68rem, 0.96vw, 0.86rem);
  line-height: 1;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}

.countdown__open {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 1400ms ease;
}

.countdown__open.is-visible {
  opacity: 1;
}

.signup {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100vw;
  min-height: clamp(76px, 8vh, 112px);
  margin: 0 calc(50% - 50vw) calc(-1 * clamp(34px, 7vh, 86px));
  background:
    linear-gradient(180deg, transparent 0%, rgba(42, 38, 56, 0.16) 32%, rgba(42, 38, 56, 0.3) 100%);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: filter 700ms ease;
}

.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 246, 225, 0.195);
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.signup:hover {
  filter: drop-shadow(0 -10px 26px rgba(255, 242, 210, 0.08));
}

.signup:hover::before {
  opacity: 1;
}

body.is-signup-modal-open .signup {
  filter: none;
}

body.is-signup-modal-open .signup::before {
  opacity: 0;
}

.signup__trigger {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: inherit;
  border: 0;
  border-radius: 0;
  padding: clamp(18px, 2vw, 26px) clamp(24px, 6vw, 96px);
  background: transparent;
  color: rgba(255, 246, 225, 0.84);
  font-size: clamp(1rem, 1.32vw, 1.28rem);
  line-height: 1.38;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 650ms ease, filter 650ms ease;
}

.signup__trigger:hover,
.signup__trigger:focus-visible {
  color: rgba(255, 246, 225, 0.95);
  filter: drop-shadow(0 0 13px rgba(255, 242, 210, 0.18));
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.signup-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(43, 40, 62, 0.16);
  cursor: default;
}

.signup-modal__panel {
  position: relative;
  width: min(963px, 100%);
  border: 1px solid rgba(255, 246, 225, 0.22);
  border-radius: 8px;
  padding: clamp(40px, 5.4vw, 66px);
  background: rgba(255, 246, 225, 0.09);
  box-shadow: 0 24px 90px rgba(52, 42, 74, 0.44);
  backdrop-filter: blur(26px) saturate(112%);
  overflow: hidden;
  animation: modal-fade 900ms ease forwards;
}

.signup-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(255, 246, 225, 0.12), transparent 48%);
  pointer-events: none;
}

.signup-modal__form-panel,
.signup-modal__result {
  position: relative;
}

.signup-modal__form-panel.is-hidden,
.signup-modal__result[hidden] {
  display: none;
}

.signup-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 246, 225, 0.68);
  font-size: 3.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 450ms ease, filter 450ms ease;
}

.signup-modal__close:hover,
.signup-modal__close:focus-visible {
  color: var(--ink);
  filter: drop-shadow(0 0 8px rgba(255, 242, 210, 0.18));
}

.signup-modal__title {
  margin: 0 0 clamp(38px, 5vw, 54px);
  color: rgba(255, 246, 225, 0.86);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-align: center;
}

.signup__form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(165px, 1fr)) auto;
  gap: clamp(32px, 4vw, 62px);
  align-items: end;
}

.signup__form label {
  display: grid;
  gap: 13px;
}

.signup__form label span {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.68rem, 0.9vw, 0.86rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 246, 225, 0.78);
}

.signup__form input {
  width: 100%;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  border: 0;
  border-bottom: 1px solid rgba(255, 246, 225, 0.76);
  border-radius: 0;
  padding: 9px 10px 10px;
  background: rgba(255, 246, 225, 0.07);
  color: rgba(66, 61, 97, 0.96);
  outline: 0;
  transition: border-color 500ms ease, background 500ms ease, filter 500ms ease;
}

.signup__form input:hover,
.signup__form input:focus {
  border-color: rgba(255, 250, 232, 0.94);
  background: rgba(255, 250, 232, 0.23);
  filter: drop-shadow(0 0 7px rgba(255, 242, 210, 0.16));
}

.signup__form input::selection {
  color: rgba(255, 250, 232, 0.96);
  background: rgba(55, 51, 58, 0.86);
}

.signup__submit {
  width: 54px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.76;
  transition: opacity 500ms ease, filter 500ms ease, transform 500ms var(--ease);
}

.signup__submit:hover,
.signup__submit:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 242, 210, 0.28));
  transform: translateX(3px);
}

.signup__submit:disabled {
  cursor: wait;
  opacity: 0.42;
}

.signup__submit.is-loading span {
  display: inline-block;
  animation: arrow-pulse 1.4s ease-in-out infinite;
}

.signup__status {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 18px);
  margin: 0;
  min-height: 1.4em;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 900ms ease;
}

.signup__status.is-visible {
  opacity: 1;
}

.signup-modal__result {
  min-height: 156px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 36px);
  text-align: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.signup-modal__result:not([hidden]) {
  opacity: 1;
}

.signup-modal__result p {
  margin: 0;
  color: rgba(255, 246, 225, 0.86);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.fade-in {
  opacity: 0;
  animation: fade-in 2200ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 6px;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes background-zoom-loop {
  0% {
    opacity: 0.88;
    transform: scale(1.02);
  }

  18% {
    opacity: 0.98;
  }

  62% {
    opacity: 1;
    transform: scale(1.075);
  }

  80% {
    opacity: 0.76;
    transform: scale(1.095);
  }

  100% {
    opacity: 0.88;
    transform: scale(1.02);
  }
}

@keyframes light-drift {
  0%,
  100% {
    transform: translate3d(-0.35%, 0.25%, 0);
  }

  50% {
    transform: translate3d(0.35%, -0.25%, 0);
  }
}

@keyframes arrow-pulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .page {
    padding: clamp(44px, 7vh, 70px) clamp(22px, 6vw, 50px) clamp(36px, 6vh, 58px);
  }

  .title {
    font-size: clamp(3.35rem, 12.4vw, 7rem);
    letter-spacing: clamp(0.22em, 2.7vw, 0.42em);
    text-indent: clamp(0.22em, 2.7vw, 0.42em);
  }

  .countdown__grid {
    width: min(620px, 92vw);
    grid-template-columns: repeat(4, minmax(64px, 1fr));
  }

  .time-unit {
    padding: 0 clamp(8px, 1.6vw, 18px);
  }

  .signup {
    align-items: center;
    margin-bottom: calc(-1 * clamp(36px, 6vh, 58px));
  }

  .signup__form {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .signup__submit {
    justify-self: center;
    margin-top: 2px;
  }

  .signup__status {
    position: static;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .language-switcher {
    top: 14px;
    right: 14px;
    gap: 5px;
    padding: 6px;
  }

  .language-switcher button {
    min-width: 34px;
    padding: 7px 8px;
    font-size: 0.62rem;
  }

  .page {
    min-height: 100svh;
    grid-template-rows: minmax(0, 1fr) auto;
    padding-top: 44px;
    overflow-x: hidden;
  }

  .hero {
    transform: translateY(14px);
  }

  .hero__top {
    margin-top: 18px;
    margin-bottom: clamp(40px, 6.6vh, 58px);
  }

  .chakana {
    width: clamp(68px, 19vw, 92px);
  }

  .hero__title-group {
    gap: 24px;
  }

  .title {
    max-width: 100%;
    font-size: clamp(2.35rem, 12.2vw, 4.1rem);
    font-weight: 400;
    letter-spacing: 0.13em;
    text-indent: 0.13em;
  }

  .kicker {
    font-size: clamp(0.82rem, 3.6vw, 1.08rem);
    letter-spacing: 0.46em;
    text-indent: 0.46em;
  }

  .divider {
    margin: 30px 0 94px;
  }

  .countdown {
    min-height: 96px;
  }

  .countdown__grid {
    grid-template-columns: repeat(4, minmax(54px, 1fr));
    gap: 0;
    width: min(390px, 94vw);
  }

  .time-unit:nth-child(3) {
    border-left: 1px solid rgba(255, 246, 225, 0.22);
  }

  .time-unit {
    gap: 13px;
    padding: 0 5px;
  }

  .time-unit__value {
    font-size: clamp(1.35rem, 7vw, 2.05rem);
    letter-spacing: 0.04em;
  }

  .time-unit__label {
    font-size: clamp(0.48rem, 2.1vw, 0.62rem);
    letter-spacing: 0.18em;
  }

  .signup__trigger {
    display: block;
    border-radius: 0;
    padding: 18px 16px;
    text-align: center;
  }

  .signup__trigger span {
    display: block;
    max-width: 34ch;
    margin: 0 auto;
  }

  .signup {
    left: auto;
    width: calc(100% + 48px);
    margin-right: -24px;
    margin-left: -24px;
    transform: none;
  }

  .signup-modal {
    padding: 18px;
  }

  .signup-modal__panel {
    padding: 66px 22px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .background__image {
    transform: none;
  }
}
