:root {
  --page: #f7f7f8;
  --page-strong: #ffffff;
  --ink: #171717;
  --muted: #62666d;
  --soft: #8f8f8f;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --panel-soft: #f5f5f5;
  --sidebar: #f9f9f9;
  --line: #ececec;
  --line-strong: rgba(23, 23, 23, 0.18);
  --blue: #0b63ce;
  --blue-soft: #e8f3ff;
  --green: #168a50;
  --red: #c04242;
  --yellow: #f6ca45;
  --radius: 16px;
  --shadow: 0 28px 80px rgba(32, 33, 35, 0.1);
  --shadow-soft: 0 14px 42px rgba(32, 33, 35, 0.07);
  --max: 1160px;
}

[data-theme='dark'] {
  --page: #111216;
  --page-strong: #17191f;
  --ink: #f5f6f8;
  --muted: #a9afba;
  --soft: #7f8795;
  --panel: rgba(27, 30, 38, 0.92);
  --panel-solid: #1b1b1b;
  --panel-soft: #2a2a2a;
  --sidebar: #0d0d0d;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --blue-soft: rgba(72, 124, 255, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family:
    'Suisse Intl',
    'Geist',
    'SF Pro Display',
    'Segoe UI Variable',
    'Helvetica Neue',
    sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.mock-page {
  min-height: 100vh;
  padding: 24px 16px 80px;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 10%, rgba(32, 33, 35, 0.08), transparent 28%),
    linear-gradient(180deg, var(--page-strong) 0%, var(--page) 48%, var(--page-strong) 100%);
}

.mock-nav,
.mock-hero,
.feature-intro,
.feature-row,
.copy-notes {
  width: min(calc(100% - 24px), var(--max));
  margin-inline: auto;
}

.mock-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
  box-shadow: 0 12px 36px rgba(32, 33, 35, 0.06);
  backdrop-filter: blur(18px);
}

.mock-brand,
.mock-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mock-brand {
  font-weight: 760;
  letter-spacing: 0;
}

.mock-brand img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.mock-nav__actions {
  color: var(--muted);
  font-size: 0.92rem;
}

.theme-toggle {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-solid);
}

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 38px;
  align-items: stretch;
  padding: 82px 0 72px;
}

.mock-hero__copy,
.feature-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1 {
  max-width: 780px;
  margin-block-end: 22px;
  font-size: 4.2rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-block-end: 16px;
  font-size: 2.9rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-block-end: 10px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.mock-hero p {
  max-width: 600px;
}

.hero-composite,
.feature-visual {
  min-width: 0;
}

.hero-composite {
  width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 270px;
  grid-template-rows: 34px minmax(0, 1fr);
  overflow: hidden;
  min-height: 520px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--line-strong));
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.app-shell--hero {
  position: relative;
  grid-template-columns: 248px minmax(0, 1fr) 334px;
  min-height: 600px;
  transform-origin: center;
}

.app-titlebar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 88%, var(--sidebar) 12%);
}

.traffic {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.traffic-close {
  background: #ff5f57;
}

.traffic-minimize {
  background: #ffbd2e;
}

.traffic-zoom {
  background: #28c840;
}

.app-titlebar__title {
  margin-left: 8px;
  overflow: hidden;
  color: var(--soft);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-os='windows'] .app-titlebar {
  gap: 0;
  min-height: 36px;
  padding: 0 0 0 12px;
}

[data-os='windows'] .app-titlebar__title {
  order: 0;
  margin-left: 0;
}

[data-os='windows'] .traffic {
  position: relative;
  order: 2;
  display: grid;
  width: 44px;
  height: 36px;
  margin: 0;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-os='windows'] .traffic::before {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1;
}

[data-os='windows'] .traffic-minimize {
  margin-left: auto;
}

[data-os='windows'] .traffic-minimize::before {
  content: '−';
}

[data-os='windows'] .traffic-zoom::before {
  content: '□';
  font-size: 0.72rem;
}

[data-os='windows'] .traffic-close::before {
  content: '×';
  font-size: 1rem;
}

[data-os='windows'] .traffic-close {
  order: 4;
}

[data-os='windows'] .traffic-minimize {
  order: 2;
}

[data-os='windows'] .traffic-zoom {
  order: 3;
}

[data-os='windows'] .traffic:hover {
  background: color-mix(in srgb, var(--line) 65%, transparent);
}

[data-os='windows'] .traffic-close:hover {
  background: #e81123;
}

[data-os='windows'] .traffic-close:hover::before {
  color: #ffffff;
}

.file-tree,
.chat-pane {
  border-color: var(--line);
  background: var(--sidebar);
}

.file-tree {
  position: relative;
  min-height: 420px;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
}

.main-files-panel,
.main-search-panel {
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.main-search-panel {
  display: none;
  gap: 10px;
}

.app-shell--hero[data-search-active='true'] .main-files-panel {
  display: none;
}

.app-shell--hero[data-search-active='true'] .main-search-panel {
  display: grid;
  animation: panel-slide-in 220ms ease both;
}

.panel-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-tabs span {
  padding: 8px 11px;
  border-radius: 999px;
  cursor: default;
}

.panel-tabs .is-active {
  color: var(--ink);
  background: var(--panel-solid);
  box-shadow: 0 1px 2px rgba(32, 33, 35, 0.05);
}

[data-main-tab] {
  cursor: pointer;
}

.main-search-panel .search-box {
  min-height: 40px;
  margin-bottom: 4px;
  padding: 10px 11px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.main-search-panel .search-result {
  gap: 3px;
  padding: 11px 10px 11px 48px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.app-shell--hero[data-demo-phase='search-results'] .main-search-panel .search-result {
  opacity: 1;
  transform: translateY(0);
}

.app-shell--hero[data-demo-phase='search-results'] .main-search-panel .search-result:nth-child(2) {
  transition-delay: 40ms;
}

.app-shell--hero[data-demo-phase='search-results'] .main-search-panel .search-result:nth-child(3) {
  transition-delay: 120ms;
}

.app-shell--hero[data-demo-phase='search-results'] .main-search-panel .search-result:nth-child(4) {
  transition-delay: 200ms;
}

.main-search-panel .search-result strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-search-panel .search-result p {
  white-space: normal;
}

.main-search-panel .file-type {
  left: 9px;
  min-width: 32px;
  padding-inline: 4px;
  font-size: 0.56rem;
}

.tree-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-heading-icon {
  display: inline-block;
  width: 17px;
  height: 14px;
  border-radius: 3px;
  color: var(--blue);
  background: linear-gradient(180deg, transparent 0 32%, currentColor 32% 100%);
  opacity: 0.74;
}

.tree-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.9rem;
}

.tree-list button {
  font: inherit;
}

.tree-folder {
  display: grid;
  gap: 1px;
}

.tree-children {
  display: grid;
  gap: 1px;
  margin: 0 0 3px;
  padding: 0 0 0 28px;
  list-style: none;
}

.tree-list .file,
.tree-list .folder {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 8px 9px 8px 32px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.tree-list .folder {
  color: var(--muted);
  font-weight: 700;
}

.tree-list .file::before,
.tree-list .folder::before {
  position: absolute;
  left: 9px;
  top: 8px;
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
}

.tree-list .folder::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 13px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: 0.58;
  transition: transform 160ms ease;
}

.tree-list .folder.open::after {
  transform: rotate(90deg);
}

.file.word::before,
.file.excel::before,
.file.pdf::before,
.file.md::before,
.icon.word,
.icon.pdf,
.icon.excel {
  color: #ffffff;
}

.tree-list .folder::before {
  content: '';
  background: linear-gradient(180deg, transparent 0 32%, currentColor 32% 100%);
  opacity: 0.5;
}

.file.pdf::before {
  content: 'P';
  border-color: #ef4444;
  background: #ef4444;
}

.file.word::before {
  content: 'W';
  border-color: #2563eb;
  background: #2563eb;
}

.file.excel::before {
  content: 'X';
  border-color: #168a50;
  background: #168a50;
}

.file.md::before {
  content: 'M';
  border-color: #6b7280;
  background: #6b7280;
}

.context-target {
  background: var(--panel-solid);
}

.tree-list .file:hover,
.tree-list .folder:hover {
  background: var(--panel-solid);
}

.tree-list .folder:active {
  transform: translateY(1px);
}

.tree-children[hidden] {
  display: none;
}

.document-pane {
  min-width: 0;
  padding: 0;
  background: var(--panel-solid);
}

.doc-tabs,
.viewer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  overflow: hidden;
}

.doc-tabs {
  min-height: 52px;
  padding: 9px 16px 0;
  border-bottom: 1px solid var(--line);
}

.doc-tabs > span,
.viewer-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
}

.doc-tabs > .active,
.viewer-tabs .active {
  color: var(--ink);
  background: var(--panel-solid);
  border-bottom-color: var(--panel-solid);
}

.document-card,
.pdf-page,
.word-page,
.viewer-panel,
.viewer-demo,
.provider-card,
.composer-demo,
.filetree-demo,
.search-demo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
}

.document-card {
  min-height: 514px;
  margin: 24px;
  padding: 28px;
  box-shadow: none;
}

.doc-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.doc-toolbar span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--panel-soft);
}

.document-card h3,
.pdf-page h3,
.word-page h3 {
  font-size: 1.45rem;
}

.word-change-line {
  line-height: 1.58;
}

.word-change-line del {
  color: var(--red);
  background: rgba(192, 66, 66, 0.1);
}

.word-change-line ins {
  color: var(--green);
  background: rgba(22, 138, 80, 0.1);
  text-decoration: none;
}

.hero-comment {
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.selected-text,
.selected-cell {
  position: relative;
  color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.app-shell--hero .selected-text {
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.app-shell--hero .selected-text .selection-cursor,
.app-shell--hero .floating-action {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.app-shell--hero[data-demo-phase='select'] .selected-text .selection-cursor,
.app-shell--hero[data-demo-phase='select'] .floating-action,
.app-shell--hero[data-demo-phase='provider-click'] .selected-text .selection-cursor,
.app-shell--hero[data-demo-phase='provider-click'] .floating-action,
.app-shell--hero[data-demo-phase='provider'] .selected-text .selection-cursor,
.app-shell--hero[data-demo-phase='provider'] .floating-action {
  opacity: 1;
  transform: translateY(0);
}

.selection-cursor {
  position: absolute;
  right: -16px;
  bottom: -17px;
  width: 20px;
  height: 27px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.24));
}

.selection-cursor::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 0 100%, 7px 76%, 12px 100%, 17px 98%, 12px 72%, 20px 72%);
  background: #ffffff;
}

.selection-cursor::after {
  content: '';
  position: absolute;
  inset: 2px 5px 5px 2px;
  clip-path: polygon(0 0, 0 100%, 6px 74%, 10px 100%, 13px 98%, 9px 70%, 17px 70%);
  background: #111111;
}

.selection-inline {
  padding-right: 128px;
}

.floating-action {
  position: absolute;
  left: 26px;
  bottom: 28px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #111111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.floating-action.inline-action {
  left: auto;
  right: 10px;
  bottom: -28px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.82rem;
}

.chat-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  gap: 14px;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.hero-composer {
  position: relative;
  min-height: 88px;
  margin-top: auto;
  padding-left: 16px;
  padding-right: 16px;
  align-content: flex-start;
  border-radius: 24px;
}

.hero-model-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  margin-top: -5px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  background: var(--panel-solid);
  box-shadow: 0 1px 2px rgba(32, 33, 35, 0.05);
}

.hero-model-row::after {
  content: '';
  position: absolute;
  left: 30px;
  bottom: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--panel-solid);
  border-radius: 999px;
  background: var(--green);
}

.hero-model-row strong,
.hero-model-row small {
  display: block;
}

.hero-model-row strong {
  font-size: 0.8rem;
  line-height: 1.05;
}

.hero-model-row small {
  overflow: hidden;
  color: var(--soft);
  font-size: 0.67rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-chevron {
  color: var(--soft);
  font-size: 0.74rem;
}

.hero-tag-dropdown,
.hero-provider-menu {
  position: absolute;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hero-tag-dropdown {
  left: 54px;
  right: 20px;
  bottom: 72px;
  width: auto;
  margin: 0;
}

.hero-provider-menu {
  left: 18px;
  right: 18px;
  bottom: 68px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
}

.hero-provider-menu button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 5px 8px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 720;
}

.hero-provider-menu button:hover,
.hero-provider-menu button:first-child {
  background: var(--panel-soft);
}

.app-shell--hero[data-demo-phase='tag-company'] .hero-tag-dropdown,
.app-shell--hero[data-demo-phase='tag-pdf'] .hero-tag-dropdown,
.app-shell--hero[data-demo-phase='provider'] .hero-provider-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.demo-mouse {
  position: absolute;
  z-index: 8;
  left: 70%;
  top: 83%;
  width: 22px;
  height: 30px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-12deg);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.26));
  transition:
    left 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    transform 220ms ease;
}

.demo-mouse::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 0 100%, 8px 74%, 13px 100%, 19px 98%, 13px 69%, 22px 69%);
  background: #ffffff;
}

.demo-mouse::after {
  content: '';
  position: absolute;
  inset: 2px 5px 5px 2px;
  clip-path: polygon(0 0, 0 100%, 7px 72%, 11px 100%, 15px 98%, 10px 67%, 19px 67%);
  background: #111111;
}

.app-shell--hero[data-demo-phase='tag-company'] .demo-mouse,
.app-shell--hero[data-demo-phase='type-pdf-tag'] .demo-mouse,
.app-shell--hero[data-demo-phase='tag-pdf'] .demo-mouse,
.app-shell--hero[data-demo-phase='tag-picked'] .demo-mouse,
.app-shell--hero[data-demo-phase='provider-click'] .demo-mouse,
.app-shell--hero[data-demo-phase='provider'] .demo-mouse,
.app-shell--hero[data-demo-phase='search-click'] .demo-mouse,
.app-shell--hero[data-demo-phase='search-typing'] .demo-mouse,
.app-shell--hero[data-demo-phase='search-results'] .demo-mouse {
  opacity: 1;
}

.app-shell--hero[data-demo-phase='tag-company'] .demo-mouse {
  left: 79%;
  top: 63%;
}

.app-shell--hero[data-demo-phase='type-pdf-tag'] .demo-mouse {
  left: 84%;
  top: 53%;
}

.app-shell--hero[data-demo-phase='tag-pdf'] .demo-mouse {
  left: 80%;
  top: 63%;
}

.app-shell--hero[data-demo-phase='tag-picked'] .demo-mouse {
  left: 83%;
  top: 55%;
  transform: translate(-50%, -50%) rotate(-12deg) scale(0.92);
}

.app-shell--hero[data-demo-phase='provider-click'] .demo-mouse,
.app-shell--hero[data-demo-phase='provider'] .demo-mouse {
  left: 80%;
  top: 72%;
}

.app-shell--hero[data-demo-phase='provider'] .demo-mouse {
  transform: translate(-50%, -50%) rotate(-12deg) scale(0.92);
}

.app-shell--hero[data-demo-phase='search-click'] .demo-mouse {
  left: 10.2%;
  top: 11.8%;
}

.app-shell--hero[data-demo-phase='search-typing'] .demo-mouse,
.app-shell--hero[data-demo-phase='search-results'] .demo-mouse {
  left: 9%;
  top: 18.8%;
}

.chat-message {
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chat-message p {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.source-tags,
.provider-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px 3px 8px;
  border: 1px solid rgba(11, 99, 206, 0.28);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.tag::before {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.52rem;
  line-height: 1;
  opacity: 0.82;
}

.tag.folder::before {
  content: '';
  background: linear-gradient(180deg, transparent 0 34%, currentColor 34% 100%);
  opacity: 0.7;
}

.tag.word::before {
  content: 'W';
}

.tag.excel::before {
  content: 'X';
}

.tag.pdf::before {
  content: 'P';
}

.composer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--ink);
  background: var(--panel-solid);
  box-shadow: 0 1px 2px rgba(32, 33, 35, 0.03);
  font-size: 0.9rem;
  line-height: 1.5;
}

.type-cursor {
  display: inline-block;
  width: 1px;
  height: 1.12em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--ink);
  animation: cursor-blink 900ms steps(2, start) infinite;
}

.feature-intro {
  max-width: 850px;
  padding: 44px 0 20px;
  text-align: center;
}

.feature-intro h2 {
  margin-inline: auto;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: 54px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.feature-intro.is-visible,
.feature-row.is-visible,
.copy-notes.is-visible {
  animation: section-lift 520ms ease both;
}

.feature-row--reverse {
  grid-template-columns: minmax(480px, 1.18fr) minmax(0, 0.82fr);
}

.feature-row--reverse .feature-copy {
  order: 2;
}

.feature-row--reverse .feature-visual {
  order: 1;
}

.feature-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.feature-copy li {
  position: relative;
  padding-left: 22px;
}

.feature-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.provider-card,
.composer-demo,
.filetree-demo,
.viewer-demo,
.word-review-demo,
.search-demo {
  padding: 22px;
}

.mock-window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
}

.mock-window-bar--inset,
.mock-window-bar--compact {
  width: min(100%, 430px);
  margin-inline: auto;
}

.mock-window-bar--compact {
  width: 100%;
}

.mock-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-strong);
}

[data-os='windows'] .mock-window-bar {
  justify-content: flex-end;
  gap: 0;
}

[data-os='windows'] .mock-window-bar span {
  display: grid;
  width: 34px;
  height: 24px;
  place-items: center;
  border-radius: 0;
  background: transparent;
}

[data-os='windows'] .mock-window-bar span::before {
  color: var(--muted);
  font-size: 0.72rem;
}

[data-os='windows'] .mock-window-bar span:nth-child(1)::before {
  content: '−';
}

[data-os='windows'] .mock-window-bar span:nth-child(2)::before {
  content: '□';
  font-size: 0.64rem;
}

[data-os='windows'] .mock-window-bar span:nth-child(3)::before {
  content: '×';
  font-size: 0.9rem;
}

.search-box {
  min-height: 46px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--panel-soft);
}

.provider-group {
  display: grid;
  gap: 9px;
}

.provider-group p {
  margin: 0;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.provider-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  text-align: left;
  background: var(--panel-solid);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.provider-row.active {
  border-color: rgba(47, 111, 242, 0.34);
  background: color-mix(in srgb, var(--blue-soft) 58%, var(--panel-solid));
}

.provider-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(32, 33, 35, 0.08);
}

.provider-row small,
.provider-row em {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.provider-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  font-weight: 800;
}

.provider-dot img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.provider-dot.managed {
  background: #eef2ff;
  color: #4f46e5;
}

.provider-dot.chatgpt,
.provider-dot.openai {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.provider-dot.openrouter {
  background: #edf2f8;
  color: #5f7189;
}

.provider-dot.eurouter {
  background: #003399;
  color: #ffcc00;
}

.provider-dot.greenpt {
  background: #0f8b5f;
}

.provider-dot.inceptron {
  background: #343c9a;
}

.provider-dot.infercom {
  background: #0e7490;
}

.provider-dot.mistral {
  background: #ff7000;
}

.provider-dot.scaleway {
  background: #4f0599;
}

.provider-dot.tensorix {
  background: #1f7a8c;
}

.provider-dot.lmstudio {
  background: #6d5dfc;
}

.provider-glyph {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.provider-glyph--eu {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.eu-stars {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  place-items: center;
  border-radius: 999px;
  color: #ffcc00;
  background: #003399;
  font-size: 0.62rem;
}

.composer-demo {
  min-height: 320px;
  padding-top: 26px;
}

.composer--large {
  min-height: 138px;
  padding: 20px;
  font-size: 1.05rem;
}

.at-anchor {
  display: inline-grid;
  min-width: 20px;
  place-items: center;
  color: var(--ink);
  font-weight: 760;
}

.tag-dropdown {
  position: relative;
  width: min(100%, 520px);
  margin: 12px 0 0 auto;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
  animation: dropdown-breathe 3.8s ease-in-out infinite;
}

.dropdown-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
}

.dropdown-item.selected {
  background: var(--panel-soft);
}

.dropdown-item small {
  display: block;
  color: var(--soft);
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.icon.folder {
  background: linear-gradient(180deg, transparent 0 35%, var(--blue) 35% 100%);
}

.icon.pdf,
.icon.word,
.icon.excel {
  position: relative;
}

.icon.pdf::after {
  content: 'P';
}

.icon.word::after {
  content: 'W';
}

.icon.excel::after {
  content: 'X';
}

.icon.pdf::after,
.icon.word::after,
.icon.excel::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
}

.icon.pdf {
  border-color: #ef4444;
  background: #ef4444;
}

.icon.word {
  border-color: #2563eb;
  background: #2563eb;
}

.icon.excel {
  border-color: #168a50;
  background: #168a50;
}

.filetree-demo {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.file-tree--wide {
  width: min(100%, 430px);
  min-height: 380px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.context-menu {
  position: absolute;
  left: calc(50% + 14px);
  top: 128px;
  display: grid;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
}

.context-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.context-menu .hovered {
  color: var(--blue);
  background: var(--blue-soft);
}

.viewer-demo {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
}

.viewer-panel {
  display: none;
  min-height: 300px;
  padding: 24px;
  box-shadow: none;
}

.viewer-panel.active {
  display: block;
}

.viewer-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.viewer-tab-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
}

.viewer-tab-icon.pdf {
  background: #ef4444;
}

.viewer-tab-icon.word {
  background: #2563eb;
}

.viewer-tab-icon.excel {
  background: #168a50;
}

.viewer-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.pdf-page,
.word-page {
  padding: 18px;
  box-shadow: none;
}

.word-page del {
  color: var(--red);
  background: rgba(192, 66, 66, 0.1);
}

.word-page ins {
  color: var(--green);
  background: rgba(22, 138, 80, 0.1);
  text-decoration: none;
}

.comment {
  padding: 12px;
  border-left: 3px solid var(--yellow);
  border-radius: 10px;
  background: rgba(246, 202, 69, 0.12);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.9rem;
}

.sheet th,
.sheet td {
  padding: 13px;
  border: 1px solid var(--line);
  text-align: left;
}

.sheet th {
  background: var(--panel-soft);
}

.selected-cell {
  min-width: 190px;
  padding-right: 132px !important;
}

.selected-cell .inline-action {
  right: 8px;
  bottom: -25px;
}

.selected-cell .selection-cursor {
  right: -11px;
  bottom: -15px;
}

.viewer-action {
  left: 32px;
  bottom: 30px;
}

.word-review-demo {
  padding: 0;
}

.word-review-demo .doc-tabs {
  border-radius: var(--radius) var(--radius) 0 0;
}

.word-page--review {
  margin: 22px;
  min-height: 360px;
}

.review-note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.review-note p {
  margin: 0;
  font-size: 0.88rem;
}

.search-demo {
  display: grid;
  gap: 12px;
}

.search-result {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 14px 14px 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-solid);
}

.search-result p {
  margin: 0;
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type {
  position: absolute;
  left: 14px;
  top: 15px;
  min-width: 42px;
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.file-type.pdf {
  color: #9b3b3b;
}

.file-type.word {
  color: #265db3;
}

.file-type.excel {
  color: #157447;
}

.file-type.md {
  color: #6f5fd4;
}

.copy-notes {
  padding: 72px 0 20px;
  border-top: 1px solid var(--line);
}

.copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.copy-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

@keyframes dropdown-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes panel-slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-lift {
  from {
    opacity: 0.82;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .feature-intro.is-visible,
  .feature-row.is-visible,
  .copy-notes.is-visible {
    animation: none;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .mock-hero,
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-copy,
  .feature-row--reverse .feature-visual {
    order: initial;
  }

  .app-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .chat-pane {
    grid-column: 1 / -1;
    min-height: 210px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .copy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .mock-page {
    padding-inline: 8px;
  }

  .mock-nav {
    align-items: flex-start;
    border-radius: 22px;
  }

  .mock-nav,
  .mock-nav__actions {
    flex-direction: column;
  }

  .mock-hero {
    padding-top: 54px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .file-tree,
  .chat-pane {
    border-right: 0;
    border-left: 0;
  }

  .document-pane {
    padding: 14px;
  }

  .feature-row {
    padding: 54px 0;
  }
}
