
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-1.8.1.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111214;
  --ink-2: #3a3d44;
  --dim: #6e717a;
  --muted: #62656d;
  --bg: #f1f1ef;
  --surface: #fff;
  --line: #e1e1dd;
  --focus: #2f5bd3;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dim { color: var(--dim); }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; background: #e9e9e5; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* Шапка */
.nav { position: fixed; inset: 16px 24px auto; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-logo { justify-self: start; display: block; width: 52px; height: 52px; padding: 6px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px #0000000f, 0 6px 20px #0000000d; }
.logo { display: block; width: 40px; height: 40px; border-radius: 50%; }
.nav-links { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 2px #0000000f, 0 6px 20px #0000000d; }
.nav-links a { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { background: var(--bg); color: var(--ink); }
.nav-actions { justify-self: end; display: flex; gap: 8px; }

.pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background-color .15s, box-shadow .15s; }
.pill-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.pill-ink { background: var(--ink); color: #fff; box-shadow: 0 6px 18px #11121433; }
.pill-ink:hover { background: #2b2d33; }
.pill-ghost { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px #0000000f, inset 0 0 0 1px var(--line); }
.pill-ghost:hover { background: #fafaf8; box-shadow: 0 1px 2px #0000000f, inset 0 0 0 1px #c9c9c3; }

/* Первый экран */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 120px; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Окно продукта */
.showcase { padding: 120px 24px 140px; }
.center-title { text-align: center; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.center-lead { max-width: 540px; margin: 22px auto 0; text-align: center; font-size: 18px; color: var(--muted); }
.stage { position: relative; max-width: 960px; margin: 72px auto 0; }
.window { background: var(--surface); border-radius: 18px; box-shadow: 0 1px 2px #0000000d, 0 30px 80px #1112141f, inset 0 0 0 1px var(--line); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 18px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #d8d8d3; }
.crumbs { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs b { color: #b0b0aa; font-weight: 400; margin: 0 4px; }
.window-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.side { padding: 18px 12px; background: #f7f7f5; border-right: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.side p { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; }
.side .side-h { margin-top: 10px; font-size: 12px; font-weight: 600; color: #9a9a94; }
.side .side-h:first-child { margin-top: 0; }
.side .on { background: #e9e9e5; color: var(--ink); font-weight: 600; }
.side-logo { width: 16px; height: 16px; border-radius: 50%; }
.files { padding: 10px 14px; font-size: 14px; }
.row { display: grid; grid-template-columns: 1fr 96px 130px; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); }
.row span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.row span:not(:first-child) { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-h { font-size: 12px; font-weight: 600; padding-top: 4px; padding-bottom: 4px; }
.row-h span:first-child { color: var(--muted); }
.row.sel { background: #e9edf8; }
.ic { width: 16px; height: 18px; flex: none; border-radius: 3px; background: #c9ccd3; position: relative; }
.ic-video { background: #4c5a7d; }
.ic-audio { background: #8a7a63; }
.ic-doc { background: #c9ccd3; }
.term { position: absolute; left: -36px; bottom: -48px; width: min(420px, 62%); padding: 16px 18px; border-radius: 14px; background: #16171a; color: #e7e7e3; font: 13px/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; box-shadow: 0 24px 60px #11121440; }
.term p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .pr { color: #8b8f99; margin-right: 8px; }
.term .out { color: #a9adb6; }
.info { position: absolute; right: -36px; top: 92px; width: 280px; padding: 18px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); box-shadow: 0 24px 60px #1112142b, inset 0 0 0 1px var(--line); font-size: 13px; }
.info-t { font-weight: 600; font-size: 14px; margin-bottom: 12px; overflow-wrap: anywhere; }
.info dl { margin: 0; display: grid; gap: 8px; }
.info dl div { display: flex; justify-content: space-between; gap: 12px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 550; font-variant-numeric: tabular-nums; }
.info .hl { background: #e1e8fb; color: #1f3f99; padding: 0 6px; border-radius: 5px; }

/* Возможности */
.features { max-width: 1200px; margin: 0 auto; padding: 120px 24px; }
.features-head { max-width: 640px; }
.features-head h2, .faq-head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.features-head p, .faq-head p { margin-top: 20px; font-size: 18px; color: var(--muted); }
.rows { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 64px 1fr minmax(260px, 340px); gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.num { font: 13px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #9a9a94; }
.rows h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.15; font-weight: 550; letter-spacing: -.025em; }
.rows p { font-size: 15px; color: var(--muted); }

/* Сценарии */
.uses { max-width: 1200px; margin: 0 auto; padding: 120px 24px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 64px; }
.tile { display: flex; flex-direction: column; border-radius: 24px; background: #f8f8f6; box-shadow: 0 1px 2px #0000000a, inset 0 0 0 1px var(--line); overflow: hidden; }
.tile-art { display: grid; place-items: center; min-height: 300px; padding: 36px; background: linear-gradient(180deg, #ececea, #f4f4f2); }
.tile-text { padding: 28px 32px 32px; background: var(--surface); flex: 1; }
.tag { font-size: 14px; color: var(--muted); }
.tile h3 { margin-top: 8px; font-size: 24px; line-height: 1.25; font-weight: 550; letter-spacing: -.02em; }
.code { width: 100%; max-width: 440px; margin: 0; padding: 20px 22px; border-radius: 14px; background: #16171a; color: #e7e7e3; font: 13px/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre; overflow: hidden; box-shadow: 0 20px 50px #11121433; }
.code .k { color: #c7a0ff; }
.code .s { color: #9fd3a4; }
.media { width: 100%; max-width: 420px; padding: 22px; border-radius: 14px; background: var(--surface); box-shadow: 0 20px 50px #1112141f; font-size: 14px; }
.media-row { display: flex; align-items: center; gap: 10px; }
.media-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-row b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 8px; margin: 12px 0 20px; border-radius: 999px; background: #ececea; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 8%; width: 6%; border-radius: 999px; background: #4c5a7d; box-shadow: 140px 0 0 #4c5a7d, 220px 0 0 #4c5a7d; }
.bar-2 i { left: 30%; width: 4%; }
.media-note { font-size: 12px; color: var(--muted); }
.keys { width: 100%; max-width: 380px; display: grid; gap: 12px; }
.key { padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px #1112141a, inset 0 0 0 1px var(--line); font-size: 14px; }
.key-child { margin-left: 36px; }
.key-n { font: 600 14px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; margin-bottom: 8px; }
.key p:last-child { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.lvl { padding: 2px 8px; border-radius: 6px; background: #ffe9dc; color: #8a3b12; font-size: 12px; font-weight: 600; }
.lvl-r { background: #e1e8fb; color: #1f3f99; }
.fork { display: flex; align-items: center; gap: 0; width: 100%; max-width: 460px; }
.drive { flex: 1; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px #1112141a, inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.blocks { display: flex; gap: 6px; margin-top: 12px; }
.blocks i { flex: 1; height: 26px; border-radius: 5px; background: #c9ccd3; }
.blocks i.new { background: #4c5a7d; }
.fork-line { width: 56px; flex: none; }
.fork-line path { fill: none; stroke: #9a9a94; stroke-width: 2; stroke-dasharray: 4 5; }
.wide { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 18px; padding: 44px 48px; border-radius: 24px; background: var(--surface); box-shadow: 0 1px 2px #0000000a, inset 0 0 0 1px var(--line); }
.wide h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.wide p { max-width: 560px; margin-top: 14px; font-size: 17px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Вопросы */
.faq { max-width: 1200px; margin: 0 auto; padding: 120px 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 550; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline-offset: -2px; border-radius: 8px; }
.plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px #0000000f, inset 0 0 0 1px var(--line); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink-2); transform: translate(-50%, -50%); transition: transform .2s; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
details p { padding: 0 56px 26px 0; color: var(--muted); }

/* Финал и подвал */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 140px 24px 160px; }
.final-logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 20px 50px #11121440; }
.final h2 { margin-top: 36px; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.foot { max-width: 1280px; margin: 0 auto; padding: 0 24px; overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; padding: 64px 16px 48px; border-top: 1px solid var(--line); }
.foot-brand p { margin-top: 18px; max-width: 280px; color: var(--muted); }
.foot-cols { display: flex; gap: 72px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-h { font-weight: 600; margin-bottom: 4px; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.foot-copy { padding: 0 16px; font-size: 13px; color: var(--muted); }
.wordmark { margin: 24px 0 -0.22em; text-align: center; font-size: clamp(120px, 24vw, 340px); line-height: 1; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; color: transparent; background: radial-gradient(circle, #b9bcc5 1.1px, transparent 1.4px) 0 0 / 6px 6px; -webkit-background-clip: text; background-clip: text; user-select: none; }

@media (max-width: 1080px) {
  .term { left: 12px; bottom: -40px; }
  .info { right: 12px; }
}
@media (max-width: 860px) {
  .nav { inset: 12px 16px auto; grid-template-columns: auto 1fr; }
  .nav-links, .nav-signup { display: none; }
  .nav-logo { width: 46px; height: 46px; padding: 5px; }
  .nav-logo .logo { width: 36px; height: 36px; }
  .hero { padding: 120px 20px 96px; min-height: 92svh; }
  .center-lead { font-size: 17px; }
  .showcase, .features, .uses, .faq { padding: 88px 20px; }
  .stage { margin-top: 48px; }
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .side { display: none; }
  .row { grid-template-columns: 1fr 74px; }
  .row span:nth-child(3) { display: none; }
  .term { position: relative; left: auto; bottom: auto; width: auto; margin: -24px 12px 0; }
  .info { position: relative; right: auto; top: auto; width: auto; margin: 12px 12px 0; }
  .rows li { grid-template-columns: 40px 1fr; gap: 8px 12px; padding: 26px 0; }
  .rows p { grid-column: 2; }
  .tiles { grid-template-columns: 1fr; }
  .tile-art { min-height: 240px; padding: 24px; }
  .tile-text { padding: 22px 22px 26px; }
  .tile h3 { font-size: 21px; }
  .wide { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  summary { font-size: 17px; }
  details p { padding-right: 0; }
  .final { padding: 100px 20px 120px; }
  .foot-top { flex-direction: column; padding: 48px 4px 36px; }
  .foot-cols { gap: 48px; }
  .foot-copy { padding: 0 4px; }
}
