:root {
  color-scheme: light;
  --blue: #193a2e;
  --ultra: #071b13;
  --lilac: #d8e4db;
  --pale: #edf3ee;
  --orange: #baff37;
  --yellow: #d5ff40;
  --ink: #08150f;
  --white: #fff;
  --line: rgba(17, 17, 42, 0.2);
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  overflow: hidden;
}

button, input { font: inherit; }
button { color: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--blue);
}

.hero__image,
.hero__canvas,
.hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -3;
  background: url("assets/landscape-hyperspace-v3.webp") center / cover no-repeat;
  animation: image-in 1.8s cubic-bezier(.2,.8,.2,1) both;
}

.hero__canvas {
  z-index: -1;
  pointer-events: none;
}

.hero__wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 15, 10, .72) 0%, rgba(3, 22, 14, .34) 37%, transparent 64%),
    linear-gradient(180deg, rgba(2, 10, 7, .16), transparent 44%, rgba(1, 9, 6, .42));
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 0 clamp(20px, 3vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,.36);
  animation: drop-in .8s .15s both;
}

.logo {
  display: flex;
  width: max-content;
  color: var(--white);
  font-size: clamp(19px, 1.7vw, 28px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .73;
  text-decoration: none;
  text-transform: uppercase;
}

.logo span:last-child {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

.header__status,
.header__button,
.overline,
.hero__edition,
.countdown span,
.modal__header,
.modal__number,
.field label,
.form-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header__status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(234,255,0,.15);
  animation: pulse 2s infinite;
}

.header__button {
  justify-self: end;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  cursor: pointer;
}

.header__button span { margin-left: 20px; }

.hero__copy {
  position: absolute;
  top: 21%;
  left: clamp(20px, 6vw, 96px);
  z-index: 2;
  width: min(800px, 69vw);
}

.overline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 clamp(19px, 3vh, 34px);
  animation: rise-in .8s .3s both;
}

.overline span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 100%;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-size: clamp(66px, 9.4vw, 150px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: .75;
  text-transform: uppercase;
}

h1 span { animation: rise-in 1s .42s both; }
h1 span:last-child { animation-delay: .52s; }

h1 .outline {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .11vw, 2px) rgba(255,255,255,.92);
}

.intro {
  margin: clamp(28px, 4.5vh, 48px) 0 0;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 500;
  line-height: 1.55;
  animation: rise-in .8s .66s both;
}

.countdown {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  bottom: clamp(24px, 4vw, 55px);
  z-index: 3;
  display: grid;
  grid-template-columns: 135px repeat(4, minmax(82px, 110px));
  background: rgba(232, 241, 234, .88);
  border: 1px solid rgba(255,255,255,.55);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(2, 20, 12, .3);
  backdrop-filter: blur(15px);
  animation: rise-in 1s .76s both;
}

.countdown__intro,
.countdown__unit {
  min-height: 104px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.countdown__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.countdown__arrow { font-size: 18px !important; }

.countdown__unit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.countdown__unit:last-child { border-right: 0; }

.countdown__unit strong {
  font-size: clamp(29px, 2.5vw, 40px);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__unit--accent {
  background: var(--yellow);
}

.hero__cta {
  position: absolute;
  left: clamp(20px, 6vw, 96px);
  bottom: clamp(24px, 4vw, 55px);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  width: 150px;
  height: 150px;
  padding: 17px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s;
  animation: pop-in .8s .85s both;
}

.hero__cta::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(8,21,15,.38);
  border-radius: inherit;
  transition: inset .3s;
}

.hero__cta:hover { transform: rotate(7deg) scale(1.05); background: #d7ff74; }
.hero__cta:hover::after { inset: 3px; }

.hero__cta-label {
  align-self: flex-end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__cta-arrow { margin-left: auto; font-size: 21px; }

.hero__edition {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  bottom: 176px;
  z-index: 3;
  margin: 0;
  writing-mode: vertical-rl;
}

.hero__edition span { color: var(--yellow); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .6s, opacity .3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 28, 17, .55);
  backdrop-filter: blur(14px) saturate(1.25);
}

.modal__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(690px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--pale);
  color: var(--ink);
  clip-path: inset(0 0 0 100%);
  transition: clip-path .62s cubic-bezier(.76,0,.24,1);
}

.modal.is-open .modal__panel { clip-path: inset(0); }

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  padding: 0 clamp(25px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}

.modal__header button {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.modal__content {
  padding: clamp(40px, 8vh, 85px) clamp(25px, 6vw, 82px) 50px;
}

.modal__number { margin: 0 0 22px; color: var(--blue); }

.modal h2,
.success h3 {
  margin: 0;
  font-size: clamp(52px, 6.2vw, 86px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .84;
}

.modal h2 span,
.success h3 span { color: var(--orange); }

.modal__copy {
  max-width: 390px;
  margin: 24px 0 clamp(35px, 6vh, 62px);
  font-size: 14px;
  line-height: 1.55;
}

.field { position: relative; margin-bottom: 28px; }

.field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(17,17,42,.68);
}

.field input {
  width: 100%;
  height: 56px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -.03em;
  transition: border-color .2s;
}

.field input::placeholder { color: rgba(17,17,42,.22); }
.field input:focus { border-color: var(--blue); }

.field small {
  display: none;
  margin-top: 7px;
  color: #d62b00;
  font-family: var(--mono);
  font-size: 9px;
}

.field.has-error small { display: block; }
.field.has-error input { border-color: #d62b00; }

.submit-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 70px;
  margin-top: 42px;
  padding: 0 24px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}

.submit-button:hover { background: var(--orange); color: var(--ink); transform: translateY(-3px); }
.submit-button__arrow { font-size: 22px; }

.form-note {
  margin: 14px 0 0;
  color: rgba(17,17,42,.48);
  font-size: 8px;
  text-align: center;
}

.success { display: none; padding-top: 7vh; }

.success__icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin-bottom: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 35px;
}

.success p { margin: 25px 0; font-size: 15px; }

.success button {
  margin-top: 25px;
  padding: 15px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.modal.is-success .modal__number,
.modal.is-success h2,
.modal.is-success .modal__copy,
.modal.is-success form { display: none; }

.modal.is-success .success { display: block; animation: rise-in .6s both; }

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 12px;
  background: var(--yellow);
  color: var(--ink);
  font: 10px var(--mono);
}

@keyframes image-in {
  from { opacity: 0; transform: scale(1.08) rotate(.7deg); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(.5) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(234,255,0,0); }
}

@media (max-width: 1050px) {
  .countdown { grid-template-columns: 105px repeat(4, 76px); }
  .countdown__intro, .countdown__unit { min-height: 90px; padding: 12px; }
  .hero__cta { width: 130px; height: 130px; }
  .hero__edition { display: none; }
}

@media (max-width: 760px) {
  .hero__image { background-position: 61% center; }
  .hero__wash {
    background: linear-gradient(180deg, rgba(2,18,11,.45), rgba(2,18,11,.03) 52%, rgba(1,12,7,.58));
  }

  .header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 0 20px;
  }

  .header__status { display: none; }

  .hero__copy {
    top: 18%;
    left: 20px;
    width: calc(100% - 40px);
  }

  h1 { font-size: clamp(58px, 19.5vw, 96px); line-height: .79; }
  .intro { margin-top: 26px; font-size: 12px; }

  .hero__cta {
    bottom: 136px;
    left: 20px;
    width: 110px;
    height: 110px;
    padding: 14px;
  }

  .hero__cta-label { font-size: 8px; }

  .countdown {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: repeat(4, 1fr);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .countdown__intro { display: none; }
  .countdown__unit { min-height: 104px; padding: 13px 10px; }
  .countdown__unit strong { font-size: 31px; }
  .countdown__unit span { font-size: 7px; letter-spacing: .03em; }
}

@media (max-height: 740px) and (min-width: 761px) {
  .hero__copy { top: 18%; }
  h1 { font-size: clamp(62px, 8vw, 105px); }
  .intro { margin-top: 25px; }
  .hero__cta { width: 110px; height: 110px; }
  .countdown__intro, .countdown__unit { min-height: 82px; }
}

@media (max-height: 700px) and (max-width: 760px) {
  .hero__copy { top: 15%; }
  h1 { font-size: clamp(52px, 16vw, 72px); }
  .intro { margin-top: 18px; }
  .hero__cta { bottom: 117px; width: 88px; height: 88px; }
  .hero__cta::after { inset: 5px; }
  .countdown__unit { min-height: 89px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__canvas { display: none; }
}
