/* NTranscript one-pager — dark flat monochrome */
:root {
  --bg: #0d0d0d;
  --surface: #131315;
  --surface-2: #222224;
  --line: #232326;
  --line-soft: #1c1c1e;
  --app-line: #2a2a2c;
  --text: #e6e6e6;
  --text-bright: #ffffff;
  --text-dim: #98989c;
  --text-faint: #55555a;
  --text-ghost: #3a3a3e;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}
a { color: var(--text); }
a:hover { color: var(--text-bright); }
.mono { font-family: var(--font-mono); }
.section-index { font-size: 11px; color: var(--text-faint); }

/* ---- Scrollbars ----
   The same thin rounded bar the app draws (src/App.css), instead of the
   platform's pale square one. Chromium and Safari take the -webkit rules;
   setting scrollbar-color there too would switch them off, so the standard
   properties are kept for Firefox only. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background-color: #2c2c31;
}
::-webkit-scrollbar-thumb:hover { background-color: #8e8e95; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-color: #2c2c31 transparent; scrollbar-width: thin; }
}
html { color-scheme: dark; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes blink { 0%, 55% { opacity: 1; } 65%, 100% { opacity: .15; } }
@keyframes caretBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ---- Nav ---- */
.nav {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
}
.nav__brand img { width: 22px; height: 22px; }
.nav__guide { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); text-decoration: none; }
.nav__guide:hover { color: var(--text-bright); }
.nav__github { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.lang-switch { display: flex; gap: 2px; }
.lang-switch__btn {
  border: 1px solid #2e2e31;
  padding: 3px 9px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  transition: background .2s, color .2s;
}
.lang-switch__btn.is-active { background: var(--text); color: #111111; }

/* ---- Hero ---- */
.hero {
  padding: 88px 40px 64px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero__main { max-width: 720px; margin: 0 auto; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__title {
  margin: 0;
  font-size: 76px;
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--text-bright);
  text-wrap: balance;
}
.hero__sub {
  margin: 26px auto 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 2px solid var(--text-bright);
  padding-bottom: 6px;
  transition: gap .3s;
}
.hero__cta:hover { gap: 20px; }
.hero__note { margin: 14px 0 0; font-size: 11px; color: var(--text-faint); }

/* ---- Mockup section ---- */
.mock {
  padding: 56px 40px;
  border-bottom: 1px solid var(--line);
  animation: fadeUp .9s .2s cubic-bezier(.2,.7,.2,1) both;
}
.mock .section-index { margin-bottom: 18px; max-width: 980px; margin-left: auto; margin-right: auto; }

/* App window */
.app {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  overflow: hidden;
  background: #111111;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.app__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #0d0d0d;
  border-bottom: 1px solid var(--app-line);
}
.app__titlebar img { width: 16px; height: 16px; }
.app__titlebar span { font-size: 12px; color: var(--text-dim); }
.app__winbtns { display: flex; gap: 18px; color: var(--text-faint); font-size: 13px; margin-left: auto; }
.app__body { display: flex; min-height: 490px; }
.app__sidebar {
  width: 200px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #0d0d0d;
  border-right: 1px solid var(--app-line);
  padding: 12px 8px;
}
.app__sidebar-spacer { flex: 1; }

/* Sidebar mode switcher (Файл / Live) */
.app__switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #161618;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  padding: 3px;
  margin: 2px 2px 10px;
}
.app__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  padding: 6px 8px;
  color: var(--text-faint);
  font-size: 12.5px;
}
.app__tab.is-active { background: #2c2c2f; color: var(--text-bright); font-weight: 600; }

.app-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  padding: 8px 10px;
  color: #b5b5b8;
}
.app-nav svg { width: 17px; height: 17px; opacity: .7; flex: none; }
.app-nav.is-active { background: #2c2c2f; color: var(--text-bright); font-weight: 600; }
.app-nav.is-active svg { opacity: 1; }
.app-nav--dim { color: #808083; }
.app-nav--dim svg { opacity: .55; }
.app__content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app__actionbar-spacer { flex: 1; }
.app__statusbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  border-top: 1px solid var(--app-line);
  font-size: 12px;
  color: var(--text-dim);
}
.app__statusbar-spacer { flex: 1; }
.app__status-item { display: flex; align-items: center; gap: 6px; }
.dot-ok { width: 7px; height: 7px; border-radius: 50%; background: #8a8a8e; flex: none; }

/* Blinking dot for a running Live session */
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e5484d; flex: none;
  animation: blink 1.4s ease-in-out infinite;
}

/* ---- Transcript view (File page mockup) ---- */
.tscript { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tscript__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--app-line);
}
.tscript__file { color: var(--text-bright); font-weight: 600; }
.tscript__done { font-size: 11px; color: var(--text-faint); }
.tscript__copy {
  background: var(--surface-2);
  border: 1px solid #333336;
  border-radius: 5px;
  padding: 5px 12px;
  color: var(--text);
  font-size: 12px;
}
.tscript__body { flex: 1; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.seg { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: baseline; }
.seg__t { font-size: 11px; color: var(--text-faint); padding-top: 2px; }
.seg__x { font-size: 14.5px; line-height: 1.5; color: var(--text); }

/* ---- Live view ---- */
.live { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.live__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--app-line);
}
.live__stop {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid #3a2a2b;
  border-radius: 5px;
  padding: 5px 12px;
  color: var(--text);
  font-size: 12px;
}
.live__src { font-size: 11px; color: var(--text-dim); }
.live__time { font-size: 12px; color: var(--text-faint); }
.live__body { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.utt { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 6px 10px; border-radius: 6px; }
.utt--alt { background: #161618; }
.utt--live .utt__x { color: var(--text-bright); }
.utt__who { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.utt__x { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.caret {
  display: inline-block;
  width: 7px; height: 1.1em;
  background: var(--text-bright);
  margin-left: 3px;
  transform: translateY(2px);
  animation: caretBlink 1s step-end infinite;
}

/* ---- Features ---- */
.features { border-bottom: 1px solid var(--line); padding: 0 40px; }
.features__index { max-width: 980px; margin: 0 auto; padding: 28px 0 0; }
.feature {
  display: grid;
  grid-template-columns: 80px 320px 1fr;
  gap: 32px;
  align-items: baseline;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
  transition: background .3s;
}
.feature:first-of-type { border-top: none; margin-top: 12px; }
.feature:hover { background: var(--surface); }
.feature__num { font-size: 12px; color: var(--text-faint); }
.feature__title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: var(--text-bright); }
.feature__desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-dim); text-wrap: pretty; }

/* ---- Philosophy ---- */
.philosophy { padding: 88px 40px; border-bottom: 1px solid var(--line); text-align: center; }
.philosophy .section-index { margin-bottom: 24px; }
.philosophy__lead {
  margin: 0 auto;
  max-width: 880px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text-bright);
  text-wrap: balance;
}
.philosophy__body {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ---- FAQ ---- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 56px;
}
.faq__label { padding: 0 0 8px; text-align: center; }
.faq__item { padding: 28px 0; border-top: 1px solid var(--line-soft); }
.faq__list .faq__item:first-child { border-top: none; }
.faq__q { margin: 0 0 10px; font-size: 17px; font-weight: 500; color: var(--text-bright); }
.faq__a { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dim); text-wrap: pretty; }

/* ---- Marquee (static) ---- */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__track {
  display: flex;
  justify-content: center;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-ghost);
}

/* ---- Footer ---- */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 40px;
  font-size: 11px;
  color: var(--text-faint);
}
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text-bright); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__title { font-size: 52px; }
  .feature { grid-template-columns: 60px 1fr; }
  .feature__desc { grid-column: 2; }
}

/* ---- Mobile ---- */
@media (max-width: 825px) {
  .nav { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 14px 20px; }
  .nav__brand { margin-right: auto; }
  .hero { padding: 56px 20px 44px; }
  .hero__title { font-size: 40px; line-height: 1.02; }
  .hero__sub { font-size: 15.5px; }
  .hero__cta { font-size: 17px; }
  .mock { padding: 36px 20px; }
  /* The window has no room for its rail on a phone: drop the sidebar and
     let the transcript fill the width. */
  .app__body { min-height: 0; }
  .app__sidebar { display: none; }
  .seg { grid-template-columns: 46px 1fr; gap: 12px; }
  .utt { grid-template-columns: 1fr; gap: 2px; }
  .features { padding: 0 20px; }
  .features__index { padding-top: 24px; }
  .feature, .feature:first-of-type {
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 18px 18px 20px;
    margin: 14px 0;
  }
  .feature:first-of-type { margin-top: 18px; }
  .feature:hover { background: var(--surface); }
  .feature__title { font-size: 19px; }
  .philosophy { padding: 56px 20px; }
  .philosophy__lead { font-size: 24px; }
  .faq { padding: 36px 20px 44px; }
  .marquee__track { font-size: 11px; }
  .footer { flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 18px 20px; }
}
