:root {
  --white: #fff7ea;
  --line: rgba(255, 247, 234, 0.54);
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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

body {
  background: #0c221f;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #071a18;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  transform: scale(1.035);
  animation: heroImageIn 1400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.03) 42%, rgba(0, 0, 0, 0.2)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -26% -18%;
  z-index: 0;
  background:
    radial-gradient(circle at 38% 52%, rgba(255, 247, 234, 0.16), transparent 20%),
    linear-gradient(105deg, transparent 38%, rgba(255, 247, 234, 0.2) 47%, transparent 56%);
  mix-blend-mode: soft-light;
  opacity: 0.38;
  transform: translate3d(-10%, 8%, 0) rotate(3deg);
  animation: waterGlint 7.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__season,
.hero__contact,
.hero__logo,
.hero__signup {
  position: absolute;
  z-index: 1;
  text-shadow: 0 1px 16px var(--shadow), 0 1px 2px rgba(0, 0, 0, 0.34);
}

.hero__season,
.hero__contact {
  pointer-events: auto;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  opacity: 0;
}

.hero__season {
  top: 28px;
  left: 38px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  animation: seasonFloatIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

.hero__contact {
  top: 44px;
  right: 47px;
  animation: textFloatIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

.hero__logo {
  top: 40px;
  left: 50%;
  width: clamp(110px, 10.5vw, 170px);
  height: auto;
  transform: translateX(-50%);
  filter: invert(1);
  pointer-events: none;
  opacity: 0;
  animation: logoFloatIn 1100ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.hero__signup {
  left: 50%;
  bottom: clamp(222px, 29.3vh, 266px);
  width: min(390px, calc(100vw - 48px));
  transform: translateX(-50%);
  opacity: 0;
  animation: signupFloatIn 950ms cubic-bezier(0.22, 1, 0.36, 1) 480ms both;
}

.hero__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero__field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
}

.hero__field::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 1px;
  height: 15px;
  background: currentColor;
  opacity: 0;
  transform: translateX(0);
  animation: fieldCursor 1100ms steps(1, end) 1400ms 5;
  pointer-events: none;
}

.hero__field::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 234, 0.96), transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__field:focus-within::after,
.hero__signup:hover .hero__field::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero__field input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 16px 5px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  caret-color: var(--white);
}

.hero__field input::placeholder {
  color: var(--white);
  opacity: 1;
}

.hero__field button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 0 5px 12px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

.hero__field button span,
.hero__field button svg {
  transition: transform 220ms ease;
}

.hero__field button:hover span {
  transform: translateX(-2px);
}

.hero__field button:hover svg {
  transform: translateX(3px);
}

.hero__field button:disabled {
  cursor: default;
  opacity: 0.58;
}

.hero__field svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__field button:focus-visible,
.hero__season:focus-visible,
.hero__contact:focus-visible {
  outline: 1px solid rgba(255, 247, 234, 0.88);
  outline-offset: 4px;
}

.hero__field input:focus-visible {
  outline: 0;
}

.hero__status {
  min-height: 16px;
  margin: 8px 0 0;
  color: var(--white);
  font-size: 13px;
  line-height: 1;
  text-align: right;
}

@keyframes heroImageIn {
  from {
    filter: blur(10px) saturate(0.82);
    opacity: 0.72;
    transform: scale(1.09);
  }
  to {
    filter: blur(0) saturate(1);
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes logoFloatIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes textFloatIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seasonFloatIn {
  from {
    opacity: 0;
    transform: rotate(180deg) translateY(8px);
  }
  to {
    opacity: 1;
    transform: rotate(180deg) translateY(0);
  }
}

@keyframes signupFloatIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes waterGlint {
  from {
    transform: translate3d(-12%, 7%, 0) rotate(3deg);
  }
  to {
    transform: translate3d(10%, -4%, 0) rotate(-2deg);
  }
}

@keyframes fieldCursor {
  0%,
  48% {
    opacity: 0;
  }
  49%,
  100% {
    opacity: 0.85;
  }
}

@media (max-width: 700px) {
  .hero__image {
    object-position: center;
  }

  .hero__season {
    top: 22px;
    left: 22px;
  }

  .hero__contact {
    display: none;
  }

  .hero__signup {
    bottom: 270px;
    left: 50%;
    width: min(240px, calc(100vw - 76px));
    transform: translateX(-50%);
  }

  .hero__label,
  .hero__season,
  .hero__contact {
    font-size: 14px;
  }

  .hero__logo {
    top: 24px;
    width: 104px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 100svh;
  }

  .hero__image {
    object-position: center top;
  }

  .hero__signup {
    width: min(226px, calc(100vw - 76px));
    min-width: 0;
  }

}

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

  .hero__image {
    transform: none;
  }
}
