:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #f7f7f2;
  --muted: rgba(247, 247, 242, 0.68);
  --dim: rgba(247, 247, 242, 0.42);
  --line: rgba(247, 247, 242, 0.16);
  --panel: rgba(247, 247, 242, 0.055);
  --cyan: #13c7df;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--bg);
}

body {
  height: 100%;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family:
    "Golos Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 500;
}

button,
a {
  font: inherit;
}

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

.page-shell {
  --pad-y: clamp(0.85rem, 2.3svh, 2.35rem);

  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--pad-y) clamp(1.2rem, 5vw, 6.4rem);
  isolation: isolate;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(42px, 5.8svh, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(112px, 10vw, 168px);
  height: 42px;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 0.7rem 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.28rem;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--fg);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--fg);
  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  min-height: 0;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 520px;
  padding-bottom: clamp(3.4rem, 10svh, 7rem);
}

.hero-copy h1 {
  max-width: none;
  margin: 0 0 1.45rem;
  color: var(--fg);
  font-size: clamp(2.45rem, min(3.55vw, 8.4vh), 3.85rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.08vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.28;
}

.hero-media {
  position: relative;
  z-index: 2;
  display: grid;
  justify-self: end;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-content: center;
  gap: clamp(0.5rem, 1.5svh, 1rem);
  place-items: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero-media::before {
  position: absolute;
  width: min(50vw, 760px);
  aspect-ratio: 1;
  border-radius: 999px;
  content: "";
  background: transparent;
  filter: blur(8px);
  opacity: 0;
}

.eye-video {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 72vw, 112svh, 1120px);
  max-width: 100%;
  height: auto;
  background: var(--bg);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.workflow {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(54px, 0.5fr) minmax(92px, 1fr) minmax(
      54px,
      0.5fr
    ) minmax(92px, 1fr);
  align-items: start;
  width: min(100%, 760px);
  margin-top: clamp(-5rem, -8svh, -2.5rem);
  gap: clamp(0.45rem, 1vw, 0.8rem);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.workflow-step {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.workflow-icon {
  position: relative;
  display: grid;
  width: clamp(52px, 5.4vw, 76px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(247, 247, 242, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  box-shadow: inset 0 0 18px rgba(247, 247, 242, 0.025);
}

.workflow-video {
  position: relative;
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  background: var(--bg);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.workflow-step p {
  max-width: 15ch;
  margin: 0;
  color: rgba(247, 247, 242, 0.66);
  font-size: clamp(0.64rem, 0.7vw, 0.76rem);
  line-height: 1.18;
}

.workflow-link {
  display: grid;
  align-self: center;
  width: 100%;
  min-width: 42px;
  padding-bottom: clamp(1.45rem, 3.7vw, 2.2rem);
}

.workflow-link svg {
  display: block;
  width: 100%;
  height: 18px;
  overflow: visible;
}

.workflow-path {
  fill: none;
  stroke: rgba(247, 247, 242, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 10;
  stroke-dashoffset: 0;
}

.coming-soon {
  position: absolute;
  bottom: clamp(1.1rem, 3.8svh, 3.4rem);
  left: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 58px;
  padding: 0 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: rgba(247, 247, 242, 0.72);
  cursor: default;
  font-weight: 500;
  letter-spacing: 0;
}

.coming-soon:focus-visible {
  outline: 2px solid rgba(19, 199, 223, 0.7);
  outline-offset: 4px;
}

.is-loading .hero-media,
.is-loading .brand,
.is-loading .site-nav a,
.is-loading .hero-copy h1,
.is-loading .hero-copy p,
.is-loading .workflow-step,
.is-loading .workflow-link,
.is-loading .coming-soon {
  opacity: 0;
}

.workflow-pending .workflow-step,
.workflow-pending .workflow-link {
  opacity: 0 !important;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    gap: clamp(0.75rem, 2.2svh, 1.35rem);
    padding-top: clamp(1rem, 4svh, 2.6rem);
  }

  .hero-copy {
    justify-self: center;
    max-width: 720px;
    padding-bottom: 0;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 7.4vw, 3.75rem);
  }

  .hero-media {
    justify-self: center;
    align-self: center;
  }

  .eye-video {
    width: min(100%, 94vw, 58svh, 760px);
  }

  .workflow {
    width: min(100%, 680px);
    margin-top: clamp(-3rem, -5svh, -1.4rem);
    grid-template-columns: minmax(76px, 1fr) minmax(34px, 0.32fr) minmax(76px, 1fr) minmax(
        34px,
        0.32fr
      ) minmax(76px, 1fr);
    gap: 0.38rem;
  }

  .workflow-icon {
    width: clamp(44px, 12vw, 60px);
  }

  .workflow-step p {
    max-width: 13ch;
    font-size: clamp(0.57rem, 1.8vw, 0.66rem);
  }

  .workflow-link {
    padding-bottom: clamp(1.3rem, 6vw, 1.8rem);
  }

  .coming-soon {
    position: relative;
    bottom: auto;
    left: auto;
    justify-self: start;
    margin-top: clamp(0.25rem, 1svh, 0.65rem);
  }
}

@media (min-width: 821px) and (max-height: 760px) {
  .page-shell {
    --pad-y: clamp(0.65rem, 1.8svh, 1.25rem);

    padding-top: var(--pad-y);
    padding-bottom: var(--pad-y);
  }

  .site-header {
    min-height: 46px;
  }

  .brand {
    width: clamp(104px, 9vw, 148px);
    height: 34px;
  }

  .hero-copy {
    padding-bottom: clamp(2rem, 7svh, 4rem);
  }

  .hero-copy h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, min(3.25vw, 7.8vh), 3.45rem);
  }

  .hero-copy p {
    font-size: clamp(0.88rem, 0.98vw, 1.02rem);
    line-height: 1.24;
  }

  .eye-video {
    width: min(100%, 72vw, 98svh, 1040px);
  }

  .workflow {
    width: min(100%, 690px);
  }

  .workflow-icon {
    width: clamp(46px, 4.8vw, 64px);
  }

  .workflow-step p {
    font-size: clamp(0.58rem, 0.64vw, 0.68rem);
  }

  .coming-soon {
    bottom: clamp(1rem, 3vh, 2.2rem);
    min-height: 52px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    --pad-y: clamp(0.85rem, 2svh, 1rem);

    padding: var(--pad-y) 1rem;
  }

  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .brand {
    width: 112px;
    height: 34px;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.88rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8.6vw, 2.85rem);
  }

  .hero-copy p {
    max-width: 34rem;
    font-size: 0.88rem;
  }

  .coming-soon {
    width: 100%;
    margin-top: 0;
  }
}

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