:root {
  --ink: #090b0d;
  --white: #f4f6f5;
  --muted: #a8afac;
  --green: #82d3a7;
  --green-deep: #377f65;
  --line: rgba(255, 255, 255, 0.18);
  --shell: min(1380px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--white);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: #090b0d;
}

.hero__visual,
.hero__veil,
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__visual {
  z-index: -4;
  inset: 0;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__veil {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.97) 0%, rgba(8, 10, 12, 0.86) 27%, rgba(8, 10, 12, 0.28) 57%, rgba(5, 20, 17, 0.04) 100%),
    linear-gradient(180deg, rgba(5, 7, 8, 0.25) 0%, transparent 34%, rgba(5, 7, 8, 0.7) 100%);
}

.hero__grain {
  z-index: 3;
  opacity: 0.085;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.78'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(161, 218, 188, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(161, 218, 188, 0.04) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: linear-gradient(90deg, transparent 30%, black 100%);
  opacity: 0.5;
}

.hero__beam {
  position: absolute;
  z-index: -2;
  width: 44vw;
  height: 1px;
  right: -8vw;
  background: linear-gradient(90deg, transparent, rgba(189, 255, 218, 0.65), transparent);
  filter: drop-shadow(0 0 8px rgba(100, 255, 170, 0.5));
  transform-origin: center;
  opacity: 0.35;
}

.hero__beam--one {
  top: 23%;
  transform: rotate(-13deg);
  animation: scan 8s ease-in-out infinite;
}

.hero__beam--two {
  top: 67%;
  transform: rotate(16deg);
  animation: scan 11s 1.5s ease-in-out infinite reverse;
}

.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 34px;
}

.brand {
  display: inline-flex;
  width: 116px;
  opacity: 0;
  animation: enter 800ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.status__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8be3af;
  box-shadow: 0 0 0 0 rgba(139, 227, 175, 0.6);
  animation: pulse 2.4s infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-block: clamp(64px, 9vh, 120px) 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(480px, 100%);
  margin-bottom: 30px;
  color: rgba(228, 235, 232, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 42px;
  height: 1px;
  background: rgba(157, 213, 184, 0.45);
}

h1 {
  max-width: 830px;
  margin: 0;
  color: #f7f8f7;
  font-size: clamp(62px, 6.75vw, 112px);
  font-weight: 700;
  letter-spacing: -0.064em;
  line-height: 0.91;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span {
  color: transparent;
  background: linear-gradient(105deg, #f4f8f5 0%, #91cdb0 44%, #60b68b 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.intro {
  margin: 28px 0 0;
  color: rgba(225, 230, 228, 0.66);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.signup {
  width: min(620px, 100%);
  margin-top: 38px;
}

.signup__field {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 62px;
  border: 1px solid rgba(222, 238, 230, 0.32);
  background: rgba(10, 16, 14, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.signup__field:focus-within {
  border-color: rgba(151, 226, 185, 0.8);
  box-shadow: 0 0 0 3px rgba(91, 174, 130, 0.12), 0 18px 70px rgba(0, 0, 0, 0.18);
}

.signup input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 22px;
  background: transparent;
  color: white;
  font-size: 14px;
}

.signup input::placeholder {
  color: rgba(235, 240, 237, 0.43);
}

.signup button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 190px;
  border: 0;
  padding: 0 22px;
  overflow: hidden;
  background: linear-gradient(115deg, #397f65, #8fe2aa);
  color: #07120d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: filter 180ms ease, transform 180ms ease;
}

.signup button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transition: transform 560ms ease;
}

.signup button:hover {
  filter: brightness(1.12);
}

.signup button:hover::before {
  transform: translateX(110%);
}

.signup button:active {
  transform: scale(0.985);
}

.signup button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

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

.signup button:disabled {
  cursor: wait;
  filter: saturate(0.6) brightness(0.82);
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.signup__note {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(226, 232, 229, 0.44);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.support-opt-in {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 620px);
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(151, 226, 185, 0.34);
  background: linear-gradient(90deg, rgba(44, 105, 79, 0.24), rgba(11, 19, 16, 0.48));
  color: rgba(246, 250, 248, 0.94);
  cursor: pointer;
  user-select: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.support-opt-in:hover {
  border-color: rgba(151, 226, 185, 0.66);
  background: linear-gradient(90deg, rgba(53, 127, 96, 0.32), rgba(11, 19, 16, 0.55));
}

.support-opt-in input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-opt-in__box {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(151, 226, 185, 0.58);
  background: rgba(16, 32, 26, 0.68);
  box-shadow: 0 0 0 0 rgba(139, 227, 175, 0);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.support-opt-in__box svg {
  width: 16px;
  fill: none;
  stroke: #07120d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.support-opt-in__copy {
  display: grid;
  gap: 2px;
}

.support-opt-in__copy strong {
  color: #f7faf8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.support-opt-in__copy small {
  color: rgba(226, 232, 229, 0.64);
  font-size: 11px;
}

.support-opt-in input:checked + .support-opt-in__box {
  border-color: #8fe2aa;
  background: #8fe2aa;
  box-shadow: 0 0 24px rgba(103, 210, 151, 0.2);
}

.support-opt-in input:checked + .support-opt-in__box svg {
  opacity: 1;
  transform: scale(1);
}

.support-opt-in input:focus-visible + .support-opt-in__box {
  outline: 2px solid #e8fff0;
  outline-offset: 3px;
}

.signup.is-error .signup__field {
  border-color: rgba(255, 134, 134, 0.72);
}

.signup.is-error .signup__note {
  color: #ffaaaa;
}

.signup.is-success .signup__note {
  color: #9be5b8;
}

.site-footer {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  border-top: 1px solid var(--line);
  color: rgba(230, 235, 233, 0.45);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 9px;
}

.socials-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.socials a:hover {
  border-color: rgba(151, 226, 185, 0.65);
  color: #a6e8c0;
  transform: translateY(-2px);
}

.socials svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.socials .fill {
  fill: currentColor;
  stroke: none;
}

.copyright {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: enter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal--one { animation-delay: 220ms; }
.reveal--two { animation-delay: 320ms; }
.reveal--three { animation-delay: 450ms; }
.reveal--four { animation-delay: 560ms; }
.reveal--five { animation-delay: 720ms; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(139, 227, 175, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 227, 175, 0); }
}

@keyframes scan {
  0%, 100% { opacity: 0.08; translate: -12% 0; }
  50% { opacity: 0.45; translate: 10% 0; }
}

@media (max-width: 900px) {
  :root { --shell: calc(100vw - 48px); }

  .hero__visual { inset: 0; }
  .hero__visual img { object-fit: cover; object-position: 58% center; }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.82) 48%, rgba(5, 20, 17, 0.15) 100%),
      linear-gradient(180deg, rgba(5, 7, 8, 0.15), rgba(5, 7, 8, 0.76));
  }

  h1 { font-size: clamp(54px, 9.5vw, 82px); }
}

@media (max-width: 620px) {
  :root { --shell: calc(100vw - 36px); }

  .hero {
    min-height: 100svh;
  }

  .site-header { padding-top: 22px; }
  .brand { width: 86px; }
  .status { font-size: 8px; letter-spacing: 0.14em; }

  .hero__visual img {
    object-position: 61% center;
    opacity: 0.78;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(8, 10, 12, 0.93), rgba(8, 10, 12, 0.56)),
      linear-gradient(180deg, rgba(5, 7, 8, 0.12) 0%, rgba(5, 7, 8, 0.4) 43%, rgba(5, 7, 8, 0.9) 100%);
  }

  .hero__content { padding-block: 70px 44px; }
  .eyebrow { gap: 10px; margin-bottom: 20px; font-size: 8px; }
  .eyebrow__line { width: 24px; }

  h1 {
    font-size: clamp(46px, 15vw, 66px);
    letter-spacing: -0.06em;
    line-height: 0.92;
  }

  .intro { margin-top: 22px; font-size: 14px; }
  .signup { margin-top: 28px; }
  .signup__field { grid-template-columns: 1fr; border: 0; background: none; backdrop-filter: none; }
  .signup input {
    min-height: 56px;
    border: 1px solid rgba(222, 238, 230, 0.36);
    background: rgba(10, 16, 14, 0.62);
    backdrop-filter: blur(14px);
  }
  .signup button { min-height: 54px; margin-top: 8px; }

  .site-footer {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }
  .coordinates { display: none; }
  .socials { justify-self: start; }
  .socials-wrap { gap: 0; }
  .copyright { grid-column: 2; }
}

@media (max-height: 940px) and (min-width: 621px) {
  .site-header { padding-top: 22px; }
  .brand { width: 92px; }
  .hero__content { padding-block: 28px 20px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(56px, 5.4vw, 78px); }
  .intro { margin-top: 18px; }
  .signup { margin-top: 20px; }
  .site-footer { min-height: 62px; }
}

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