@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1E9F;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000000;
  --s1: #181818;
  --s2: #1f1f1f;
  --s3: #272727;
  --s4: #313131;
  --text: #ffffff;
  --muted: #a3a3a3;
  --faint: #6f6f6f;
  --red: #ff0033;
  --red-hover: #e0002d;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--text); font-family: 'Manrope', system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 24px; height: 24px; flex: none; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 40; padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--black); transform: translateY(-64px); transition: transform 300ms var(--curve); }
.skip:focus { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background-color 300ms var(--curve), opacity 300ms var(--curve), transform 300ms var(--curve); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: var(--text); }
.btn-primary:hover { background: var(--red-hover); }
.btn-primary[disabled] { opacity: 0.5; cursor: progress; }
.btn-quiet { background: var(--s3); color: var(--text); }
.btn-quiet:hover { background: var(--s4); }
.btn .icon { width: 16px; height: 16px; }

/* Navigation */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 24px; padding: 8px 16px 8px 12px; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 16px; background: rgb(24 24 24 / 0.64); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); transition: color 300ms var(--curve); }
.nav-links a:hover { color: var(--text); }
.burger { display: none; position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; left: 8px; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 500ms var(--curve); }
.burger span:first-child { top: 12px; }
.burger span:last-child { top: 18px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 24px; padding: 96px 24px 24px; background: rgb(0 0 0 / 0.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.menu a { opacity: 0; transform: translateY(24px); animation: rise 500ms var(--curve) forwards; }
.menu a:nth-child(2) { animation-delay: 60ms; }
.menu a:nth-child(3) { animation-delay: 120ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; min-height: 100dvh; padding: 96px 16px 48px; overflow: clip; isolation: isolate; }
.hero-stage { position: absolute; z-index: -1; inset: 0; background: var(--black); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: translateY(14%); }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 36dvh; text-align: center; }
.hero-title { max-width: 800px; padding-bottom: 8px; background: linear-gradient(to right, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-title { font-size: 72px; line-height: 72px; }
.hero-sub { max-width: 680px; margin-top: 16px; color: #c4c4c4; }
.get-form { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; margin-top: 32px; padding: 8px; border: 1px solid var(--s4); border-radius: 16px; background: var(--s1); box-shadow: 0 24px 64px rgb(0 0 0 / 0.64); transition: border-color 300ms var(--curve); }
.get-form:focus-within { border-color: var(--faint); }
.get-form.invalid { border-color: var(--red); }
.form-icon { width: 24px; height: 24px; margin-left: 8px; color: var(--faint); }
.get-form input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; outline: 0; }
.get-form input::placeholder { color: var(--faint); }
.form-note { max-width: 640px; margin-top: 12px; color: #c4c4c4; text-shadow: 0 0 12px #000; }
.form-note.error { color: #ff6b81; }
.store { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 640px; margin-top: 24px; text-align: center; }
.store > p:first-child { color: var(--text); font-size: 16px; line-height: 24px; font-weight: 600; text-shadow: 0 0 12px #000, 0 0 4px #000; }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.badges-left { justify-content: flex-start; }
.badge { display: block; border-radius: 8px; transition: transform 300ms var(--curve); cursor: pointer; }
.badge img { height: 56px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: scale(0.98); }
.store-note { flex-basis: 100%; color: var(--text); text-shadow: 0 0 12px #000; }
.hero:has(.result:not([hidden])) { justify-content: flex-start; }
.hero:has(.result:not([hidden])) .hero-copy { margin-bottom: 0; }
.lang-menu { max-width: 104px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--s3); color: var(--text); font-family: inherit; cursor: pointer; transition: background-color 300ms var(--curve); }
.lang-menu:hover { background: var(--s4); }
.lang-menu-big { max-width: none; width: fit-content; height: 36px; }

/* Result */
.result { width: 100%; max-width: 1024px; padding: 16px; border: 1px solid var(--s3); border-radius: 24px; background: var(--s1); animation: rise-in 700ms var(--curve) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.result-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; }
.result-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--black); }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.result-meta { display: flex; flex-direction: column; gap: 4px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lines { max-height: 480px; overflow-y: auto; border-radius: 8px; background: var(--black); scrollbar-color: var(--s4) transparent; scrollbar-width: thin; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; cursor: pointer; transition: background-color 300ms var(--curve); }
.line:hover { background: var(--s2); }
.line.active { background: var(--s3); }
.line time { color: var(--red); font-family: 'Geist Mono', monospace; font-size: 12px; line-height: 20px; }
.result-note { padding: 8px 12px 0; color: var(--muted); }
.status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 16px; }
.status time { font-family: 'Geist Mono', monospace; font-size: 14px; line-height: 20px; color: var(--muted); }
.skeleton { background: var(--s3); border-radius: 4px; animation: breathe 1600ms var(--curve) infinite alternate; }
@keyframes breathe { from { opacity: 0.4; } to { opacity: 1; } }
.sk-player { aspect-ratio: 16 / 9; border-radius: 8px; }
.sk-title { height: 16px; width: 72%; }
.sk-lines { display: flex; flex-direction: column; gap: 16px; padding: 16px 12px; border-radius: 8px; background: var(--black); min-height: 320px; }
.sk-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.sk-row i { display: block; height: 12px; }
.sk-row:nth-child(2n) i:last-child { width: 72%; }
.sk-row:nth-child(3n) i:last-child { width: 88%; }

/* Sections */
.section { width: 100%; max-width: 1120px; margin: 0 auto; padding: 96px 16px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--curve), transform 700ms var(--curve); }
.reveal.seen { opacity: 1; transform: none; }

/* Real recordings and screenshots */
.section-wide { max-width: 1280px; }
.center { align-items: center; margin-left: auto; margin-right: auto; text-align: center; }
.frame { position: relative; overflow: hidden; border: 1px solid var(--s3); border-radius: 24px; background: var(--s1); box-shadow: 0 48px 128px rgb(255 0 51 / 0.12); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--s3); }
.frame-bar i { width: 12px; height: 12px; border-radius: 9999px; background: var(--s4); }
.frame-bar span { margin-left: 8px; color: var(--muted); }
.frame-media { display: block; width: 100%; height: auto; }
.credit { margin-top: 16px; color: var(--muted); text-align: center; }

/* Tagline */
.tagline { display: flex; justify-content: center; padding-top: 160px; padding-bottom: 160px; text-align: center; }
.tagline p { max-width: 800px; }
.word { display: inline-block; opacity: 0.3; transition: opacity 600ms var(--curve); }
.word.lit { opacity: 1; }

/* Features */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 24px; overflow: hidden; padding: 32px 32px 0; border: 1px solid var(--s3); border-radius: 24px; background: var(--s1); transition: border-color 500ms var(--curve), transform 500ms var(--curve); }
.tile:hover { border-color: var(--s4); transform: translateY(-4px); }
.tile-tall { grid-row: span 2; }
.tile-text { display: flex; flex-direction: column; gap: 8px; }
.tile-shot { display: block; width: 100%; height: auto; margin-top: auto; border: 1px solid var(--s3); border-bottom: 0; border-radius: 16px 16px 0 0; }

/* Modes */
.mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.mode-tab { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; width: 100%; padding: 16px; border: 1px solid var(--s2); border-radius: 16px; background: none; text-align: left; cursor: pointer; color: var(--muted); transition: background-color 300ms var(--curve), border-color 300ms var(--curve), color 300ms var(--curve); }
.mode-tab .icon { grid-row: span 2; }
.mode-tab .title-3 { color: var(--text); }
.mode-tab:hover { background: var(--s1); }
.mode-tab:active { transform: translateY(1px); }
.mode-tab[aria-selected='true'] { border-color: var(--red); background: var(--s1); color: var(--red); }
.mode-view { aspect-ratio: 1600 / 962; }
.mode-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(0.99); transition: opacity 500ms var(--curve), transform 500ms var(--curve); }
[data-mode='embed'] [data-shot='embed'], [data-mode='float'] [data-shot='float'], [data-mode='dock'] [data-shot='dock'] { opacity: 1; transform: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-shot { aspect-ratio: 16 / 11; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--s3); border-radius: 16px; background: var(--s1); transition: border-color 500ms var(--curve), transform 500ms var(--curve); }
.step:hover .step-shot { border-color: var(--s4); transform: translateY(-4px); }
.step-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.step-number { color: var(--red); font-family: 'Geist Mono', monospace; font-size: 14px; line-height: 20px; }

/* Comparison */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--s3); border-radius: 24px; background: var(--s1); }
.plan-lit { border-color: var(--red); box-shadow: 0 32px 96px rgb(255 0 51 / 0.16); }
.plan-shot { aspect-ratio: 16 / 9; overflow: hidden; }
.plan-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.plan-body { display: flex; flex-direction: column; gap: 8px; padding: 32px; }
.ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ticks li { display: flex; gap: 8px; }
.ticks .icon { width: 20px; height: 20px; color: var(--red); }
.ticks .off { color: var(--muted); }
.ticks .off .icon { color: var(--faint); }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.faq-head { position: sticky; top: 96px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--s3); border-radius: 16px; background: var(--s1); transition: border-color 300ms var(--curve); }
.faq details:hover, .faq details[open] { border-color: var(--s4); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-radius: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 500ms var(--curve); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details p { padding: 0 16px 16px; animation: rise-small 500ms var(--curve) both; }
@keyframes rise-small { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Closing */
.closing { position: relative; display: flex; justify-content: center; min-height: 80dvh; padding: 128px 16px 240px; overflow: clip; isolation: isolate; text-align: center; }
.closing-art { position: absolute; z-index: -1; left: 50%; bottom: 0; width: max(1584px, 110vw); max-width: none; height: auto; transform: translateX(-50%); }
.closing-copy { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 800px; }
.closing-copy .btn { margin-top: 16px; }

/* Footer */
.footer { overflow: clip; border: 1px solid var(--s2); border-width: 1px 0 0; background: var(--black); }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 1280px; margin: 0 auto; padding: 64px 16px 48px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand p { max-width: 320px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col h2 { margin-bottom: 4px; color: var(--muted); }
.footer-col a { padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; transition: color 300ms var(--curve); }
.footer-col a:hover { color: var(--red); }
.footer-word { margin: 0; color: var(--s1); font-size: 128px; line-height: 128px; font-weight: 700; letter-spacing: -0.05em; text-align: center; white-space: nowrap; user-select: none; }
.footer-legal { max-width: 1280px; margin: 0 auto; padding: 24px 16px 32px; color: var(--muted); }

[data-words] { text-wrap: balance; }

.sk-tail { min-height: 0; background: none; }
.result-actions .btn:disabled { opacity: 0.5; cursor: default; }

.i18n-pending body { visibility: hidden; }
.lang-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--muted); }
.lang-links:empty { display: none; }
.guide { display: flex; flex-direction: column; gap: 16px; }
.guide h1, .guide h2 { margin: 0; }
.guide h2 { margin-top: 16px; }
.guide-steps { display: grid; gap: 8px; padding-left: 24px; list-style: decimal; }
.guide-shot { width: 100%; height: auto; border-radius: 16px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.guide a:not(.btn) { color: var(--muted); }
.lang-links a:hover, .lang-links [aria-current] { color: var(--text); }

/* Documents and 404 */
html[lang='ru'] [data-lang='en'], html:not([lang='ru']) [data-lang='ru'] { display: none !important; }
.doc { max-width: 680px; margin: 0 auto; padding: 128px 16px 64px; }
.doc h1 { margin-bottom: 24px; }
.doc h2 { margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.doc .btn { margin-top: 32px; }
.lost { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 100dvh; padding: 16px; text-align: center; }
.lost time { color: var(--red); font-family: 'Geist Mono', monospace; font-size: 14px; line-height: 20px; }

@media (max-width: 960px) {
  .result-grid, .steps, .compare, .faq-section { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .tile-tall { grid-row: auto; }
  .faq-head { position: static; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-word { font-size: 72px; line-height: 72px; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .hero .hero-title { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .nav { width: 100%; justify-content: space-between; padding-right: 8px; }
  .burger { display: block; }
  .hero { padding-top: 96px; justify-content: flex-start; }
  .hero-copy { margin-bottom: 0; }
  .hero-video { object-position: 50% 60%; transform: translateY(20%); }
  .closing-art { width: 1000px; }
  .get-form { flex-wrap: wrap; }
  .form-icon { display: none; }
  .get-form input { flex: 1 1 100%; padding: 8px; }
  .get-form .btn { flex: 1 1 100%; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head { margin-bottom: 32px; }
  .tagline { padding-top: 96px; padding-bottom: 96px; }
  .closing { padding: 96px 16px 160px; min-height: 0; }
  .result { padding: 8px; border-radius: 16px; }
  .result-actions .btn { flex: 1 1 auto; }
  .mode-tabs { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 24px 24px 0; }
  .plan-body { padding: 24px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 48px; }
  .footer-word { font-size: 36px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 200ms !important; }
  .reveal, .mode-view img, .menu a, .result { transform: none !important; }
  .word { opacity: 1; }
  .skeleton { animation: none; opacity: 0.7; }
}
