@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #121715;
  --surface: #1a201d;
  --ink: #e8ece9;
  --muted: #9fa9a3;
  --rule: #2a332f;
  --green: #3fae7f;
  --amber: #e3b46c;
  --accent: var(--green);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

p {
  margin: 0 0 1em;
}

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding: 10px 0;
  font-size: 0.9375rem;
}

.top .home, .top nav a {
  padding-block: 10px;
}

.top .home {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 18px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a[aria-current] {
  color: var(--ink);
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.04;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.15;
}

.lead {
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--ink);
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #10140f;
  font-weight: 700;
  text-decoration: none;
}

.hub-head {
  padding: 40px 0 32px;
}

.doors {
  display: grid;
  gap: 16px;
  padding-bottom: 40px;
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px 28px 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.door:only-child {
  grid-column: 1 / -1;
}

.door:hover {
  border-color: var(--accent);
}

.door h2 {
  margin-bottom: 10px;
}

.door p {
  max-width: 26rem;
  color: var(--muted);
}

.door .go {
  color: var(--accent);
  font-weight: 700;
}

.door .art {
  position: relative;
  flex: 1;
  min-height: 210px;
  margin-top: 16px;
}

.door-ext .art img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 12px 12px 0 0;
  opacity: 0.9;
}

.hub-contacts {
  padding: 24px 0 64px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.inner-head {
  padding: 32px 0 24px;
}

@media (min-width: 900px) {
  .inner-head {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    align-items: center;
    column-gap: 36px;
  }

  .inner-head .head-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .inner-head .head-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .inner-head .shot {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.text {
  max-width: 40rem;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.case {
  padding: 32px 0;
}

.case + .case {
  border-top: 1px dashed var(--rule);
}

.case h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.case > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.reel {
  display: flex;
  gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
}

.reel li {
  flex: none;
  scroll-snap-align: start;
}

.reel a {
  display: block;
  border-radius: 12px;
}

.reel img {
  display: block;
  height: min(420px, 62vh);
  width: auto;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.ba {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  --pos: 50%;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba .after {
  clip-path: inset(0 0 0 var(--pos));
}

.ba .line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  pointer-events: none;
}

.ba .line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  width: min(100%, 420px);
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.ba:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin-bottom: 20px;
  padding: 2px 0 0 48px;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-sizing: border-box;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.9375rem;
  line-height: 27px;
  text-align: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.25px;
  top: 36px;
  bottom: -14px;
  width: 1.5px;
  background: var(--rule);
}

.feature strong {
  font-weight: 700;
}

.shot {
  max-width: 600px;
  margin: 24px auto 32px;
}

.shot img, .shot video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  filter: brightness(0.92);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.feature-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 36px;
  padding: 32px 0 40px;
}

.feature-showcase + .feature-showcase {
  border-top: 1px solid var(--rule);
}

.feature-showcase .feature-copy {
  grid-column: 1;
  grid-row: 1;
}

.feature-showcase .shot {
  grid-column: 2;
  grid-row: 1;
}

.feature-copy .feature:last-child {
  margin-bottom: 0;
}

.feature-showcase .shot {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
}

.feature-showcase .shot img {
  filter: none;
}

.ideas {
  margin: 0;
  padding-left: 1.2em;
}

.ideas li {
  margin-bottom: 6px;
}

.end {
  padding: 40px 0 72px;
  border-top: 1px solid var(--rule);
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

@media (min-width: 900px) {
  .doors {
    grid-template-columns: 1fr 1fr;
  }

  .door {
    min-height: 520px;
  }

  .reel {
    margin: 0;
    padding: 0 0 10px;
  }

  .hub-head {
    padding: 72px 0 48px;
  }
}

@media (max-width: 899px) {
  .feature-showcase {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 0 32px;
  }

  .feature-showcase .shot {
    width: min(100%, 600px);
    align-self: flex-start;
  }

  .feature-showcase .feature-copy {
    order: 1;
  }

  .feature-showcase .shot {
    order: 2;
  }
}

.head-title {
  display: flex;
  flex-flow: row-reverse wrap;
  align-items: flex-start;
  gap: 4px 20px;
}

.head-title h1 {
  flex: 1 1 0;
}

.pill,
.demo-button {
  display: inline-flex;
  align-items: center;
  border-radius: 980px;
  background: rgb(118 118 128 / 24%);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.pill:hover,
.demo-button:hover {
  background: rgb(118 118 128 / 34%);
}

.pill:active,
.demo-button:active {
  transform: scale(0.97);
}

.pill {
  max-width: 100%;
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 1rem;
  text-wrap: balance;
}

.buy {
  position: relative;
  max-width: 100%;
}

.buy summary {
  list-style: none;
  cursor: pointer;
  gap: 12px;
}

.buy summary::-webkit-details-marker {
  display: none;
}

.buy summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease, margin 0.15s ease;
}

.buy[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.buy[open] summary {
  background: rgb(118 118 128 / 34%);
}

.buy-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 100%;
  padding: 6px;
  border-radius: 18px;
  background: rgb(38 43 41 / 84%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 7%), 0 18px 48px rgb(0 0 0 / 45%);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.buy-menu a {
  display: grid;
  gap: 1px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.buy-menu a:hover {
  background: rgb(118 118 128 / 24%);
}

.buy-menu strong {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

.buy-menu span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.demo-button {
  flex: none;
  order: -1;
  color: var(--ink);
  padding: 12px 32px;
  font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 900px) {
  .demo-button {
    margin-top: 0.15em;
    font-size: 1.5rem;
    padding: 14px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill,
  .demo-button {
    transition: none;
  }

  .pill:active,
  .demo-button:active {
    transform: none;
  }

  .buy summary::after,
  .buy-menu a {
    transition: none;
  }
}

.lead-accent {
  color: var(--accent);
  font-weight: 600;
}

.demo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 24px;
  font-size: 1.125rem;
  font-weight: 600;
}
