@font-face {
  font-family: "Inter Variable";
  src: url("/assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --yellow: #ffd300;
  --yellow-logo: #ffd302;
  --ink-on-yellow: #2a303e;
  --deep: #11151c;
  --deep-2: #171c24;
  --deep-3: #202630;
  --text: #f8f8f8;
  --muted: #a8aeb8;
  --border: rgba(255, 255, 255, 0.11);
  --card: rgba(255, 255, 255, 0.035);
  --radius: 8px;
  --shell: min(1180px, calc(100% - 40px));
  --font: "Segoe UI", "Inter Variable", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--deep);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink-on-yellow);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 21, 28, 0.92);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 104px; height: auto; }
.brand-divider { width: 1px; height: 24px; background: var(--border); }
.brand-product { color: var(--muted); font-size: 14px; font-weight: 600; }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 160ms ease; }
nav a:hover, nav a:focus-visible { color: var(--text); }

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(410px, .86fr) minmax(550px, 1.34fr);
  align-items: center;
  gap: 44px;
  padding-block: 72px 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - 100%) / -2);
  pointer-events: none;
  opacity: .23;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-copy, .product-stage { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c9cdd3;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}
h1 {
  max-width: 540px;
  margin: 20px 0 20px;
  font-size: clamp(38px, 3.6vw, 46px);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 720;
}
.headline-line, .headline-accent { display: block; }
.headline-line { color: var(--text); }
.headline-accent { margin-top: 7px; color: var(--yellow); }
.hero-lead {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 19px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 3px solid rgba(255, 211, 0, .32); outline-offset: 3px; }
.button-primary { background: var(--yellow); color: var(--ink-on-yellow); }
.button-primary:hover { background: #ffe047; }
.button-secondary { border-color: var(--border); background: rgba(255,255,255,.04); color: var(--text); }
.button-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.button-dark { background: var(--deep); color: var(--text); border-color: var(--border); }
.button-dark:hover { background: var(--deep-3); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 15px; margin: 22px 0 0; padding: 0; list-style: none; color: #c7cbd1; font-size: 12px; }
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta span { color: var(--yellow); font-weight: 800; }

.product-stage { align-self: center; }
.app-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: #0c0f14;
  box-shadow: 0 30px 70px rgba(0,0,0,.32), 0 3px 14px rgba(0,0,0,.25);
  transform: perspective(1400px) rotateY(var(--tilt-y, -2deg)) rotateX(var(--tilt-x, .5deg));
  transform-origin: center;
  transition: transform 260ms cubic-bezier(.16,1,.3,1), border-color 180ms ease, box-shadow 180ms ease;
}
.real-interface { display: grid; grid-template-columns: 166px minmax(0, 1fr); color: #b9bec7; font-family: var(--font); font-size: 8px; }
.real-interface::after { content: ""; position: absolute; z-index: 6; inset: 0; pointer-events: none; opacity: .11; background: radial-gradient(180px circle at var(--spot-x, 70%) var(--spot-y, 35%), rgba(255,211,0,.18), transparent 72%); transition: opacity 180ms ease; }
.real-interface:hover { border-color: rgba(255,211,0,.24); box-shadow: 0 34px 80px rgba(0,0,0,.38), 0 0 0 1px rgba(255,211,0,.05); }
.real-interface:hover::after { opacity: .3; }
.desktop-sidebar { min-width: 0; display: flex; flex-direction: column; padding: 8px 7px 7px; border-right: 1px solid #242933; background: #0d1016; }
.desktop-brand-mark { height: 18px; display: flex; align-items: center; padding-left: 45px; opacity: .85; }
.desktop-brand-mark img { width: 13px; height: 13px; object-fit: contain; }
.desktop-tabs { display: flex; gap: 10px; margin: 5px -7px 7px; padding: 0 7px; border-bottom: 1px solid #20252d; color: #8a9099; font-size: 7px; }
.desktop-tabs span { position: relative; padding: 4px 0 6px; }
.desktop-tabs .active { color: #f0f2f4; }
.desktop-tabs .active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--yellow); }
.desktop-menu { display: grid; gap: 1px; color: #c0c4ca; }
.desktop-menu div { min-width: 0; min-height: 17px; display: flex; align-items: center; gap: 6px; padding: 3px 5px; border-radius: 3px; }
.desktop-menu b { width: 10px; color: #858c96; font-weight: 500; text-align: center; }
.desktop-menu kbd { margin-left: auto; padding: 1px 3px; border: 1px solid #2a3038; border-radius: 2px; color: #676e78; background: #141820; font: inherit; }
.desktop-search { margin: 5px 4px 4px; padding: 4px 1px; color: #464c55; }
.desktop-section-title { display: flex; align-items: center; gap: 5px; margin-top: 5px; padding: 3px 4px; color: var(--yellow); font-size: 6px; font-weight: 750; letter-spacing: .16em; }
.desktop-section-title i { width: 4px; height: 4px; background: var(--yellow); }
.desktop-section-title span { margin-left: auto; color: #737a84; letter-spacing: 0; }
.desktop-hint { padding: 3px 9px 5px; color: #737983; font-size: 6.5px; }
.desktop-sessions { display: grid; gap: 1px; }
.desktop-sessions > div { min-width: 0; display: grid; grid-template-columns: 5px minmax(0,1fr) auto; align-items: center; gap: 4px; min-height: 17px; padding: 3px 5px; border-radius: 2px; color: #a9aeb6; cursor: pointer; transition: color 140ms ease, background 140ms ease, transform 140ms ease; }
.desktop-sessions > div:hover { color: #f0f2f4; background: rgba(255,255,255,.055); transform: translateX(2px); }
.desktop-sessions > div:focus-visible { outline: 1px solid var(--yellow); outline-offset: 1px; }
.desktop-sessions > div.active { color: #e6e8eb; background: rgba(255,211,0,.10); }
.desktop-sessions > div.active b { width: 3px; height: 3px; background: var(--yellow); box-shadow: 0 0 0 2px rgba(255,211,0,.09); }
.desktop-sessions b { width: 2px; height: 2px; border-radius: 50%; background: #7f858e; }
.desktop-sessions span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-sessions small { color: #747b85; font-size: 5.5px; }
.desktop-sidebar-footer { display: flex; gap: 11px; margin-top: auto; padding: 6px 4px 1px; border-top: 1px solid #242933; color: #747b84; font-size: 7px; }
.desktop-workspace { min-width: 0; display: grid; grid-template-rows: 28px minmax(0,1fr) 18px 32px 15px; background: #0d1016; }
.desktop-topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #242933; }
.desktop-session-title { position: relative; height: 100%; display: flex; align-items: center; gap: 4px; padding: 0 8px; color: #dfe2e6; font-size: 6.5px; }
.desktop-session-title::after { content: ""; position: absolute; right: 5px; bottom: 0; left: 5px; height: 1px; background: var(--yellow); }
.desktop-session-title i { width: 3px; height: 3px; border: 1px solid #868c95; border-radius: 50%; }
.desktop-session-title b { color: #676e77; font-size: 10px; font-weight: 400; }
.desktop-tools { padding-right: 8px; color: #717780; font-size: 7px; white-space: nowrap; }
.real-interface:hover .desktop-tools { color: #969da7; }
.desktop-chat { position: relative; min-height: 0; overflow: hidden; padding: 13px 17px 10px; }
.desktop-lockup { position: absolute; inset: 50% auto auto 50%; display: flex; align-items: center; gap: 11px; transform: translate(-50%, -58%); opacity: .84; transition: opacity 220ms ease, transform 280ms cubic-bezier(.16,1,.3,1); }
.desktop-lockup::before { content: ""; position: absolute; z-index: -1; inset: -60px -100px; opacity: .055; background: url('/assets/imbba-icon.svg') center / contain no-repeat; filter: grayscale(1); }
.desktop-lockup img { width: 105px; height: auto; }
.desktop-lockup span { width: 1px; height: 32px; background: #424750; }
.desktop-lockup strong { color: #edf0f3; font-size: 24px; letter-spacing: -.04em; }
.demo-dialog { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 8px 5px 0; }
.demo-user-message { align-self: flex-end; max-width: 74%; padding: 7px 9px; border: 1px solid rgba(255,211,0,.18); border-radius: 4px; background: #24251c; color: #dfe1e4; opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 280ms cubic-bezier(.16,1,.3,1); }
.demo-agent-message { max-width: 82%; color: #aeb4bd; opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 280ms cubic-bezier(.16,1,.3,1); }
.demo-agent-head { display: flex; align-items: center; gap: 6px; color: #f0f2f4; }
.demo-agent-icon { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #2e343d; border-radius: 4px; background: #171b22; }
.demo-agent-head strong { font-size: 8px; }
.demo-working { display: flex; align-items: center; gap: 4px; color: #737b85; }
.demo-working::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,211,0,.08); animation: working-pulse 1.2s ease-in-out infinite; }
.demo-progress { display: grid; gap: 4px; margin: 7px 0 0 25px; }
.demo-progress > div { display: flex; align-items: center; gap: 5px; color: #686f79; transition: color 180ms ease; }
.demo-progress i { width: 7px; height: 7px; display: grid; place-items: center; border: 1px solid #4b525c; border-radius: 50%; transition: background 180ms ease, border-color 180ms ease; }
.demo-result { display: none; margin: 7px 0 0 25px; color: #aeb4bc; line-height: 1.45; }
.demo-result strong { color: #f0f2f4; }
.demo-result ol { margin: 4px 0 0 13px; padding: 0; }
.desktop-consent { overflow: hidden; padding: 4px 10px; border-top: 1px solid #242933; color: #a7acb4; white-space: nowrap; text-overflow: ellipsis; font-size: 6px; }
.desktop-consent span { color: #555c66; }
.desktop-composer { margin: 0 8px; display: flex; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid #37331b; border-radius: 4px; color: #717781; background: #0f1217; }
.desktop-composer > b { color: #8a9098; font-size: 10px; font-weight: 400; }
.typing-text:empty::before { content: "Опишите, что нужно"; color: #656b75; }
.typing-caret { width: 1px; height: 9px; background: var(--yellow); animation: caret-blink .8s step-end infinite; }
.composer-controls { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.composer-controls small { color: #8a9098; font-size: 6px; }
.composer-controls button { width: 20px; height: 20px; border: 0; border-radius: 50%; color: #11151c; background: #d9dde1; font-size: 10px; }
.composer-controls button { cursor: pointer; transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease; }
.composer-controls button:hover { transform: scale(1.08); background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,211,0,.09); }
.composer-controls button:active { transform: scale(.94); }
.desktop-status { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: #7a818b; font-size: 5.5px; }
.desktop-status .connected { color: #b0b5bd; }
.desktop-status .connected i { display: inline-block; width: 4px; height: 4px; margin-right: 3px; border-radius: 50%; background: #22c55e; }
.desktop-status em { margin-left: auto; color: #858b94; font-style: normal; }
.real-interface.show-user .desktop-lockup, .real-interface.show-agent .desktop-lockup { opacity: .055; transform: translate(-50%, -62%) scale(.98); }
.real-interface.show-user .demo-user-message, .real-interface.show-agent .demo-agent-message { opacity: 1; transform: translateY(0); }
.real-interface.step-1 [data-step="1"], .real-interface.step-2 [data-step="1"], .real-interface.step-2 [data-step="2"], .real-interface.step-3 .demo-progress > div { color: #c9ced4; }
.real-interface.step-1 [data-step="1"] i, .real-interface.step-2 [data-step="1"] i, .real-interface.step-2 [data-step="2"] i, .real-interface.step-3 .demo-progress i { border-color: #22c55e; background: #22c55e; }
.real-interface.step-1 [data-step="1"] i::after, .real-interface.step-2 [data-step="1"] i::after, .real-interface.step-2 [data-step="2"] i::after, .real-interface.step-3 .demo-progress i::after { content: "✓"; color: #07120b; font-size: 5px; font-style: normal; font-weight: 900; }
.real-interface.show-result .demo-progress { display: none; }
.real-interface.show-result .demo-result { display: block; animation: result-in 280ms cubic-bezier(.16,1,.3,1) both; }
.real-interface.show-result .demo-working { color: #22c55e; }
.real-interface.show-result .demo-working::after { content: "готово"; }
.real-interface.show-result .demo-working { font-size: 0; }
.real-interface.show-result .demo-working::after { font-size: 6px; }
.real-interface.switching .desktop-session-title i { border-color: var(--yellow); background: var(--yellow); animation: working-pulse .75s ease-in-out infinite; }
.stage-caption { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 18px; color: #8f97a2; font-size: 11px; }

@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes working-pulse { 50% { opacity: .45; transform: scale(.8); } }
@keyframes result-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.benefits { padding-block: 110px; border-block: 1px solid var(--border); background: #0e1218; }
.section-heading { max-width: 660px; }
.section-heading h2 { margin: 18px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading.centered { max-width: 720px; margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered p { color: var(--muted); font-size: 17px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 54px; }
.benefit-grid article { min-height: 240px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.card-index { color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.benefit-grid h3 { margin: 48px 0 10px; font-size: 21px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.downloads { padding-block: 112px 124px; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin: 54px auto 0; }
.download-card { position: relative; padding: 30px; border: 1px solid var(--border); border-radius: 12px; background: #f7f8f9; color: #161b22; }
.download-card.featured { border-color: var(--yellow); box-shadow: inset 0 3px 0 var(--yellow); }
.platform-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #11151c; color: #fff; font-size: 25px; font-weight: 600; }
.windows-icon { grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 2px; }
.windows-icon i { width: 10px; height: 10px; background: #fff; }
.platform-copy { margin: 23px 0 24px; }
.platform-copy h3 { margin: 6px 0 8px; font-size: 28px; letter-spacing: -.03em; }
.platform-copy p { min-height: 44px; margin: 0; color: #626b76; font-size: 14px; line-height: 1.55; }
.recommended, .availability { color: #69717b; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.recommended { color: #725f00; }
.download-button { width: 100%; min-height: 57px; flex-direction: column; gap: 2px; }
.download-button span { font-size: 10px; font-weight: 500; opacity: .72; }
.file-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 0; padding-top: 19px; border-top: 1px solid #dfe2e6; }
.file-details div { min-width: 0; }
.file-details dt { margin-bottom: 4px; color: #8a929b; font-size: 10px; text-transform: uppercase; }
.file-details dd { margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.integrity-note { max-width: 980px; display: flex; align-items: flex-start; gap: 14px; margin: 18px auto 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); color: #d7dae0; }
.integrity-note .shield { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,211,0,.12); color: var(--yellow); font-weight: 800; }
.integrity-note strong { font-size: 13px; }
.integrity-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.integrity-note a { color: #f5f6f8; text-underline-offset: 3px; }
.integrity-note a:hover, .integrity-note a:focus-visible { color: var(--yellow); }

footer { border-top: 1px solid var(--border); background: #0c1015; }
.footer-inner { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; color: #777f8a; font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 88px; }
.footer-brand span { padding-left: 12px; border-left: 1px solid var(--border); }
.footer-inner p { margin: 0; }
.footer-inner > a { justify-self: end; color: #aeb4bc; text-decoration: none; }
.footer-inner > a:hover { color: var(--yellow); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 82px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .hero-meta { justify-content: center; }
  .hero-lead, h1 { margin-inline: auto; }
  .product-stage { width: min(720px, 100%); margin-inline: auto; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 190px; }
  .benefit-grid h3 { margin-top: 28px; }
}

@media (max-width: 720px) {
  :root { --shell: min(1180px, calc(100% - 28px)); }
  .topbar-inner { min-height: 64px; }
  nav { display: none; }
  .hero { min-height: auto; padding-block: 72px 84px; }
  h1 { font-size: clamp(38px, 11vw, 48px); }
  .hero-lead { font-size: 16px; }
  .app-window { width: 100%; min-height: 0; aspect-ratio: 1.5; transform: none; }
  .real-interface { grid-template-columns: 145px minmax(0, 1fr); }
  .desktop-sidebar { padding-inline: 6px; }
  .desktop-lockup img { width: 92px; }
  .desktop-lockup strong { font-size: 21px; }
  .benefits { padding-block: 82px; }
  .downloads { padding-block: 84px 92px; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; padding-block: 28px; }
  .footer-inner > a { justify-self: start; }
}

@media (max-width: 430px) {
  .brand-divider, .brand-product { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-meta { display: grid; justify-items: start; width: fit-content; margin-inline: auto; }
  .app-window { min-height: 0; aspect-ratio: 1.12; }
  .real-interface { grid-template-columns: 1fr; }
  .desktop-sidebar { display: none; }
  .desktop-workspace { grid-template-rows: 28px minmax(0,1fr) 18px 34px 15px; }
  .desktop-chat { padding-inline: 12px; }
  .desktop-tools { display: none; }
  .download-card { padding: 24px; }
  .file-details { grid-template-columns: 1fr 1fr; }
}

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