@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  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;
}

@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-cyrillic-ext.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  color-scheme: light;
  --ink: #151324;
  --violet: #2a2141;
  --lavender: #ccc1fc;
  --amber: #ffc46e;
  --paper: #f7f4fd;
  --white: #faf8ff;
  --muted: #625974;
  font-family: 'Golos Text', system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #7356ca;
  outline-offset: 4px;
}

.page-width {
  width: min(1220px, calc(100% - 88px));
  margin-inline: auto;
}
.reading-width {
  width: min(700px, calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  z-index: 4;
  inset: 12px auto auto 12px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
}
.skip-link:not(:focus) {
  transform: translateY(-200%);
}

.site-header {
  background: var(--ink);
  color: var(--white);
}
.header-layout {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 19px;
  font-weight: 670;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark img {
  border-radius: 9px;
}
.site-nav,
.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 37px);
  font-size: 14px;
}
.site-nav a,
.footer-layout nav a,
.language {
  text-decoration: none;
}
.site-nav a {
  color: #d3cae5;
}
.site-nav a:hover,
.footer-layout a:hover,
.language:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.language {
  justify-self: end;
  padding: 6px 11px;
  border: 1px solid #ffffff36;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.site-header :focus-visible,
.hero :focus-visible,
.demo :focus-visible {
  outline-color: var(--amber);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--white);
  background: var(--ink);
}
.hero-art {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #151324f9 6%, #151324e8 28%, #15132464 57%, #15132418 100%);
}
.hero-layout {
  min-height: 633px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(26px, 4vw, 70px);
  padding-block: 74px 92px;
}
.hero-copy h1 {
  font-size: clamp(44px, 4.7vw, 69px);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.069em;
}
.hero-copy h1 span {
  display: block;
}
.hero-copy h1 span:last-child {
  color: var(--lavender);
}
.hero-copy p {
  margin-block: 24px 29px;
  max-width: 39ch;
  color: #e2d9f3;
  font-size: clamp(16px, 1.45vw, 20px);
}
.hero-copy small {
  display: block;
  margin-top: 15px;
  color: #d3c7e9;
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 660;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.button-primary {
  background: var(--lavender);
  color: #291d49;
}
.button-primary:hover {
  background: #e9e1ff;
}
.button-outline {
  border-color: #b7a9cd;
  color: #3a2669;
}
.button-outline:hover {
  background: #ebe2ff;
}
.hero-preview {
  width: 100%;
  align-self: center;
  filter: drop-shadow(0 26px 37px #100c20b6);
}
.hero-preview img {
  width: 100%;
}

.demo-section,
.options-section {
  padding-block: 84px;
  scroll-margin-top: 20px;
}
.section-heading {
  max-width: 690px;
  margin-bottom: 32px;
}
.section-heading h2 {
  font-size: clamp(32px, 4.2vw, 55px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.06em;
}
.section-heading p {
  max-width: 57ch;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
}
.showcase {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #51436d;
}
.demo {
  background: var(--violet);
  color: var(--white);
}
.showcase-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 21px;
}
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.showcase-tabs button,
.demo-play {
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e6ddfa;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 580;
}
.showcase-tabs button[aria-selected='true'] {
  background: #dfd4ff;
  color: #2d2050;
}
.showcase-tabs button[aria-selected='false']:hover,
.demo-play:hover {
  background: #ffffff19;
}
.demo-play {
  display: flex;
  align-items: center;
  gap: 8px;
  border-color: #ffffff40;
}
.play-symbol {
  width: 10px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.demo-play[aria-pressed='true'] .play-symbol {
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}
.demo-track {
  display: flex;
  gap: 4px;
  margin-inline: 21px;
}
.demo-track span {
  flex: 1;
  background: #ffffff22;
  height: 2px;
  overflow: hidden;
  border-radius: 9px;
}
.demo-track span[data-step='done'] {
  background: #b69feeb9;
}
.demo-track span[data-step='current'] {
  background: var(--lavender);
}
.demo[data-playing] .demo-track span[data-step='current'] {
  background: #ffffff22;
}
.demo[data-playing] .demo-track span[data-step='current']::after {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: var(--amber);
  content: '';
  animation: demo-progress 5.2s linear both;
}
.showcase-scene {
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(26px, 5vw, 76px);
  padding: 38px clamp(22px, 4vw, 60px) 45px;
}
.demo .showcase-scene {
  background: radial-gradient(52% 85% at 75% 48%, #9a7bc73d, transparent 100%);
}
.showcase-copy h3 {
  font-weight: 660;
  letter-spacing: -0.044em;
  line-height: 1.14;
  font-size: clamp(25px, 3.1vw, 42px);
}
.showcase-copy > p {
  margin-top: 13px;
  color: #e1d7f0;
  max-width: 36ch;
}
.scene-example {
  margin-top: 24px;
  padding: 12px 0 0;
  border-top: 1px solid #ffffff36;
}
.scene-label {
  font-size: 13px;
  color: var(--lavender);
}
.scene-exchange {
  display: grid;
  gap: 10px;
}
.scene-exchange dd {
  margin-top: 4px;
  color: var(--white);
  font-weight: 550;
  text-wrap: pretty;
}
.scene-exchange > div + div dd {
  color: #fae2b9;
}
.scene-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.scene-metrics dt {
  color: #e1d7f0;
  font-size: 13px;
  line-height: 1.25;
}
.scene-metrics dd {
  margin-top: 2px;
  color: var(--white);
  font-weight: 620;
  font-size: 23px;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.showcase-preview {
  min-width: 0;
}
.demo .showcase-preview {
  filter: drop-shadow(0 17px 28px #120e28a8);
}
.showcase-preview a {
  display: block;
  border-radius: 8px;
}
.showcase-preview img {
  width: 100%;
}
.showcase-scene:not([hidden]) .showcase-preview {
  animation: scene-enter 280ms ease-out both;
}

.options-section {
  padding-top: 24px;
}
.settings-showcase {
  border-color: #d3c8e4;
  background: #ede6f8;
}
.settings-showcase .showcase-controls {
  border-bottom: 1px solid #d3c8e4;
  background: #f2edf9;
}
.settings-showcase .showcase-tabs button {
  color: #4a3c61;
}
.settings-showcase .showcase-tabs button[aria-selected='true'] {
  background: #34264d;
  color: var(--white);
}
.settings-showcase .showcase-tabs button[aria-selected='false']:hover {
  background: #e5dbf4;
}
.settings-showcase .showcase-scene {
  background: radial-gradient(67% 93% at 86% 54%, #f6f1fd, #ede6f800 100%);
}
.settings-showcase .showcase-preview img {
  border-radius: 8px;
  box-shadow: 0 12px 25px #34245820;
}
.settings-showcase .showcase-copy > p {
  color: var(--muted);
}

.site-footer {
  color: #e3daf4;
  background: var(--ink);
}
.footer-layout {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  padding-block: 16px;
}
.information {
  padding-block: 66px 85px;
  min-height: 60vh;
}
.information h1 {
  margin-top: 18px;
  font-size: clamp(39px, 5.3vw, 65px);
  line-height: 1.05;
  letter-spacing: -0.062em;
  overflow-wrap: anywhere;
}
.information-intro {
  margin-block: 14px 36px;
  font-size: 19px;
  color: var(--muted);
}
.information section {
  margin-block: 23px;
}
.information h2 {
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: -0.028em;
}
.information .button {
  margin-top: 18px;
}
.back-link {
  color: #533889;
  font-size: 14px;
}

@keyframes demo-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes scene-enter {
  from {
    opacity: 0.72;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .hero-preview {
    animation: scene-enter 640ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
  }
}
@media (max-width: 1000px) {
  .page-width {
    width: calc(100% - 48px);
  }
  .hero-layout {
    min-height: 530px;
    padding-block: 64px;
  }
  .hero-copy h1 {
    font-size: clamp(36px, 4.9vw, 55px);
  }
}
@media (max-width: 740px) {
  .page-width,
  .reading-width {
    width: calc(100% - 36px);
  }
  .header-layout {
    min-height: 64px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .site-nav {
    justify-content: center;
    gap: 14px;
  }
  .site-nav a[href$='#settings'] {
    display: none;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
    padding-block: 45px 29px;
  }
  .hero-copy h1 {
    font-size: clamp(33px, 9.2vw, 59px);
  }
  .hero-copy p {
    margin-block: 17px 20px;
  }
  .hero-art {
    object-position: 64% center;
  }
  .hero::after {
    background: linear-gradient(180deg, #151324f7 4%, #151324c7 45%, #15132430 100%);
  }
  .hero-preview {
    max-width: 630px;
    margin-inline: auto;
  }
  .demo-section,
  .options-section {
    padding-block: 49px;
  }
  .options-section {
    padding-top: 10px;
  }
  .showcase-scene {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 17px;
  }
  .showcase-controls {
    padding: 10px 11px;
  }
  .showcase-tabs {
    gap: 2px;
  }
  .showcase-tabs button,
  .demo-play {
    padding-inline: 8px;
  }
  .demo-track {
    margin-inline: 11px;
  }
  .scene-example {
    margin-top: 15px;
  }
  .footer-layout {
    min-height: 88px;
  }
}
@media (max-width: 420px) {
  .site-nav a[href$='/support/'] {
    display: none;
  }
  .wordmark {
    gap: 7px;
  }
  .wordmark img {
    width: 31px;
    height: 31px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
