:root {
  --navy-950: #061126;
  --navy-900: #081832;
  --navy-800: #10264a;
  --navy-700: #193965;
  --paper: #f4f0e7;
  --paper-light: #fffdf8;
  --ink: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.12);
  --coral: #ff6b5c;
  --coral-dark: #d84a40;
  --teal: #32c5bd;
  --blue: #6f9fff;
  --violet: #9b87f5;
  --green: #5ed6a3;
  --shadow: 0 32px 80px rgba(4, 13, 31, 0.24);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection,
body *::selection {
  color: white;
  background: var(--coral-dark);
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

code,
kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--coral-dark);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  color: rgba(255, 255, 255, 0.86);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 17, 38, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  width: min(calc(100% - 48px), var(--content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 580;
}

.primary-nav > a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.68);
  transition: color 160ms ease;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible {
  color: white;
}

.nav-cta {
  padding: 10px 17px;
  color: var(--navy-950);
  background: white;
  border-radius: 100px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: white;
  transition: transform 160ms ease;
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 150px max(24px, calc((100vw - var(--content)) / 2)) 100px;
  display: grid;
  grid-template-columns: minmax(390px, 0.83fr) minmax(580px, 1.17fr);
  align-items: center;
  gap: 62px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 40% -10%, rgba(56, 116, 188, 0.22), transparent 35%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 58%, #0a2040 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-one {
  width: 420px;
  height: 420px;
  top: 18%;
  right: -210px;
  background: rgba(50, 197, 189, 0.1);
}

.hero-glow-two {
  width: 320px;
  height: 320px;
  bottom: -210px;
  left: 25%;
  background: rgba(255, 107, 92, 0.11);
}

.hero-copy,
.hero-product {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow,
.eyebrow.light {
  color: rgba(255, 255, 255, 0.64);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(50, 197, 189, 0.12);
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(54px, 5.4vw, 82px);
  font-weight: 740;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 570px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.primary-nav a:focus-visible,
.site-footer a:focus-visible,
.privacy-card a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button-primary {
  color: white;
  background: var(--coral-dark);
  box-shadow: 0 12px 32px rgba(216, 74, 64, 0.25);
}

.button-primary:hover {
  background: #e7564a;
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.hero-product {
  perspective: 1200px;
}

.app-window {
  width: 760px;
  max-width: 68vw;
  overflow: hidden;
  color: #d9e2f2;
  background: #0d1a2d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 55px 120px rgba(0, 0, 0, 0.48), 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: rotateY(-3deg) rotateX(1deg);
  transform-origin: center left;
  transition: transform 300ms ease-out;
}

.window-bar {
  height: 42px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #152339;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 11px;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.traffic-lights span:nth-child(2) { background: #febc2e; }
.traffic-lights span:nth-child(3) { background: #28c840; }

.window-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.8);
  font-weight: 650;
}

.window-title img {
  border-radius: 5px;
}

.build-state {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.52);
}

.build-state span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.app-toolbar {
  height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #101f35;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.app-toolbar button {
  width: 28px;
  height: 28px;
  color: #aebbd0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
}

.toolbar-spacer { flex: 1; }

.compile-pill {
  height: 29px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: white;
  background: rgba(50, 197, 189, .16);
  border: 1px solid rgba(50, 197, 189, .26);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.play-icon { color: var(--teal); }

.compile-pill kbd {
  color: rgba(255,255,255,.45);
  font-size: 8px;
}

.workspace-grid {
  height: 430px;
  display: grid;
  grid-template-columns: 142px minmax(270px, 1fr) minmax(250px, .92fr);
}

.files-pane,
.code-pane {
  border-right: 1px solid rgba(255,255,255,.07);
}

.files-pane {
  position: relative;
  padding: 15px 8px;
  background: #111f32;
}

.pane-label {
  margin: 0 8px 12px;
  color: #64748e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.file-row {
  height: 27px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #98a7bd;
  border-radius: 5px;
  font-size: 9px;
}

.file-row.folder {
  color: #d3dceb;
}

.file-row.selected {
  color: white;
  background: rgba(111, 159, 255, .18);
}

.file-icon {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 900;
}

.file-icon.tex { color: #ffb3aa; background: rgba(255,107,92,.14); }
.file-icon.bib { color: #b6a9ff; background: rgba(155,135,245,.14); }
.file-icon.img { color: #75ded7; background: rgba(50,197,189,.14); }

.git-mini {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  color: #65758e;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 8px;
}

.git-up { color: var(--teal); }

.code-pane { background: #0b1729; }

.tab-bar {
  height: 34px;
  display: flex;
  align-items: stretch;
  background: #0f1c2f;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tab-bar span {
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #5f718b;
  font-size: 9px;
}

.tab-bar span.active {
  color: #dfe7f3;
  background: #0b1729;
  border-top: 2px solid var(--coral);
}

.code-lines {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  row-gap: 0;
  font: 9px/1.85 "SFMono-Regular", Consolas, monospace;
}

.code-lines .ln {
  padding-right: 9px;
  color: #3f516c;
  text-align: right;
  user-select: none;
}

.code-lines code {
  min-height: 16px;
  color: #bdc8d9;
  white-space: nowrap;
}

.code-lines code b { color: #84aafa; font-weight: 500; }
.code-lines code i { color: #e7ba78; font-style: normal; }

.caret {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--coral);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.pdf-pane {
  min-width: 0;
  background: #19283e;
}

.pdf-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8291a7;
  background: #111f32;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 8px;
}

.pdf-toolbar strong { color: #cad3e0; font-weight: 600; }
.pdf-sep { width: 1px; height: 14px; background: rgba(255,255,255,.1); }

.paper {
  width: 194px;
  min-height: 275px;
  margin: 34px auto;
  padding: 31px 25px;
  color: #172033;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.paper-kicker {
  margin: 0 0 17px;
  color: #a05b54;
  font: 5px/1.2 -apple-system, sans-serif;
  letter-spacing: .14em;
}

.paper h2 {
  margin: 0;
  font: 700 17px/1.03 Georgia, serif;
  letter-spacing: -.03em;
}

.paper-author {
  margin: 8px 0 15px;
  color: #6c7480;
  font: 6px/1.3 -apple-system, sans-serif;
}

.paper-rule { width: 28px; height: 2px; margin-bottom: 17px; background: var(--coral-dark); }
.paper h3 { margin: 0 0 7px; font: 700 7px/1.2 Georgia, serif; }
.paper > p:not(.paper-kicker):not(.paper-author):not(.paper-caption) { margin: 0; color: #555e6d; font: 5px/1.6 Georgia, serif; }

.paper-chart {
  height: 52px;
  margin: 17px 0 4px;
  padding: 0 9px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  border-bottom: 1px solid #d9dce2;
}

.paper-chart span { width: 15px; background: #15325b; border-radius: 2px 2px 0 0; }
.paper-chart span:nth-child(1) { height: 18px; }
.paper-chart span:nth-child(2) { height: 27px; }
.paper-chart span:nth-child(3) { height: 22px; }
.paper-chart span:nth-child(4) { height: 38px; background: var(--coral-dark); }
.paper-chart span:nth-child(5) { height: 44px; background: var(--teal); }
.paper .paper-caption { margin: 5px 0 0; color: #828996; font: italic 4px/1.4 Georgia, serif; }

.floating-chip {
  position: absolute;
  min-width: 150px;
  padding: 11px 14px 11px 43px;
  display: grid;
  color: #142033;
  background: rgba(255, 253, 248, .96);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}

.floating-chip > span {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #087c66;
  background: #d9f8ed;
  border-radius: 50%;
  font-size: 10px;
}

.floating-chip strong { font-size: 10px; }
.floating-chip small { margin-top: 2px; color: #7d8796; font-size: 8px; }
.chip-local { right: -20px; bottom: -20px; }
.chip-git { top: 72px; left: -48px; }
.chip-git > span { color: #3e65c7; background: #e2eaff; }

.trust-strip {
  min-height: 74px;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 25px;
  color: #596377;
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.trust-strip i {
  width: 3px;
  height: 3px;
  background: var(--coral);
  border-radius: 50%;
}

.section {
  padding: 120px max(24px, calc((100vw - var(--content)) / 2));
}

.section-heading {
  max-width: 680px;
  margin-bottom: 58px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.workspace-copy h2,
.references-copy h2,
.privacy-card h2,
.download-inner h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.section-heading > p:last-child,
.workspace-copy > p,
.references-copy > p,
.privacy-card p,
.download-inner > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  background: rgba(255, 253, 248, .74);
  border: 1px solid rgba(16,24,40,.1);
  border-radius: var(--radius-lg);
}

.feature-card-large {
  min-height: 420px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 62px minmax(280px, .85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: 28px;
}

.feature-card-wide {
  min-height: 340px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 62px .9fr 1.1fr;
  align-items: center;
  gap: 28px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
}

.feature-icon.coral { background: #ffe0dc; }
.feature-icon.teal { background: #d7f5f1; }
.feature-icon.blue { background: #dee8ff; }
.feature-icon.violet { background: #e9e4ff; }

.card-number {
  margin: 0 0 16px;
  color: #8b93a1;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .14em;
}

.feature-card h3 {
  max-width: 500px;
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.feature-card > p,
.feature-card > div > p:last-child {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.completion-demo {
  width: 100%;
  padding: 24px;
  color: #ccd6e7;
  background: var(--navy-950);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(4,13,31,.16);
  font: 12px/1.4 "SFMono-Regular", monospace;
}

.completion-demo > div:first-child {
  height: 34px;
  padding: 8px 10px;
}

.prompt { color: #8fb3ff; }
.cursor { display: inline-block; width: 1px; height: 15px; margin-left: 2px; vertical-align: -3px; background: var(--coral); }

.suggestion {
  min-height: 53px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 8px;
}

.suggestion.active { background: rgba(111,159,255,.16); }
.suggestion > b { width: 22px; height: 22px; display: grid; place-items: center; color: #ff9c91; background: rgba(255,107,92,.15); border-radius: 5px; }
.suggestion > span { display: grid; flex: 1; }
.suggestion strong { color: #e7ecf5; font-size: 11px; font-weight: 500; }
.suggestion small { color: #687a95; font-size: 9px; }
.suggestion kbd { color: #7e8da5; font-size: 9px; }

.mini-terminal {
  position: absolute;
  right: 30px;
  bottom: 30px;
  left: 30px;
  min-height: 55px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c9d3e2;
  background: var(--navy-950);
  border-radius: 12px;
  font-size: 11px;
}

.mini-terminal > span { color: var(--green); }
.mini-terminal code { flex: 1; }
.mini-terminal strong { color: #7f91aa; font-size: 9px; }

.page-stack {
  position: absolute;
  right: 45px;
  bottom: 25px;
  width: 190px;
  height: 125px;
}

.page-stack > span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 145px;
  height: 105px;
  background: white;
  border: 1px solid #dfe2e7;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 8px 24px rgba(20,32,55,.08);
  transform: rotate(-7deg) translate(-34px, 4px);
}

.page-stack > span:nth-child(2) { transform: rotate(5deg) translate(-8px, 2px); }
.page-stack > span:nth-child(3) { padding-top: 35px; display: grid; place-items: center; align-content: center; transform: none; }
.page-stack b { font: 700 30px/1 Georgia, serif; }
.page-stack i { margin-top: 5px; color: #9aa2af; font: normal 9px/1 -apple-system, sans-serif; text-transform: uppercase; letter-spacing: .12em; }

.branch-line {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
}

.branch-line .line { height: 2px; flex: 1; background: #d9dce2; }
.branch-line .node { position: relative; z-index: 2; width: 16px; height: 16px; background: white; border: 4px solid #b9c1ce; border-radius: 50%; }
.branch-line .node.done { border-color: var(--teal); }
.branch-line .node.current { border-color: var(--coral); box-shadow: 0 0 0 7px rgba(255,107,92,.12); }

.commit {
  position: absolute;
  top: 77px;
  display: grid;
  font-size: 10px;
}

.commit small { margin-top: 2px; color: #9199a6; font-size: 8px; }
.commit.c-one { left: 0; }
.commit.c-two { left: calc(50% - 23px); }
.commit.c-three { right: 0; text-align: right; }

.workspace-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 100px;
  color: white;
  background: var(--navy-900);
}

.workspace-copy > p { color: rgba(255,255,255,.61); }

.check-list {
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 15px;
  list-style: none;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.check-list li { display: flex; align-items: flex-start; gap: 11px; }
.check-list span { width: 20px; height: 20px; display: grid; flex: 0 0 auto; place-items: center; color: var(--teal); background: rgba(50,197,189,.12); border-radius: 50%; font-size: 9px; }

.project-tree-card {
  max-width: 540px;
  padding: 22px;
  justify-self: end;
  color: #cdd6e5;
  background: #0a1628;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  box-shadow: 0 35px 80px rgba(0,0,0,.3);
}

.tree-head {
  padding: 0 5px 14px;
  display: flex;
  justify-content: space-between;
  color: #63728a;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .12em;
}

.tree-row {
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 12px;
}

.tree-row.root { margin-top: 9px; }
.tree-row.active { color: white; background: rgba(111,159,255,.14); }
.tree-row.indent { padding-left: 42px; color: #93a2b8; }
.tree-row i { margin-left: auto; color: var(--teal); font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .1em; }

.tree-type {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
}

.tree-type.tex { color: #ffaaa1; background: rgba(255,107,92,.12); }
.tree-type.image { color: #71ddd6; background: rgba(50,197,189,.12); }
.tree-type.bib { color: #b6a9ff; background: rgba(155,135,245,.12); }
.tree-type.cls { color: #a8c1ff; background: rgba(111,159,255,.12); }

.project-health {
  min-height: 62px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #6f809a;
  border: 1px dashed #34455e;
  border-radius: 10px;
  font-size: 10px;
}

.project-health span { color: var(--teal); font-size: 13px; }

.compare-section { background: var(--paper-light); }
.compare-section .section-heading > p:last-child { max-width: 620px; margin-right: auto; margin-left: auto; }

.diff-window {
  max-width: 1030px;
  margin: 0 auto;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(25,36,57,.1);
}

.diff-topbar {
  min-height: 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #687286;
  background: #f8f9fb;
  border-bottom: 1px solid #e7e9ee;
  font-size: 11px;
}

.diff-topbar > div { display: flex; align-items: center; gap: 8px; }
.diff-topbar > div:last-child { justify-self: end; }
.diff-topbar strong { color: #293448; }
.diff-dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; }

.segmented {
  padding: 3px;
  background: #e9ebef;
  border-radius: 8px;
}

.segmented span { padding: 6px 13px; border-radius: 6px; }
.segmented span.active { color: #263247; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.diff-body {
  min-height: 340px;
  display: grid;
  grid-template-columns: 48px 1fr;
  background: #0c1728;
  font: 12px/2.7 "SFMono-Regular", monospace;
}

.diff-gutter {
  padding: 28px 12px;
  color: #40516c;
  background: #0a1423;
  border-right: 1px solid rgba(255,255,255,.05);
  text-align: right;
}

.diff-code { padding: 28px 0; }
.diff-code p { position: relative; min-height: 32px; padding: 0 100px 0 45px; margin: 0; color: #b8c4d6; }
.diff-code p > i { position: absolute; left: 18px; font-style: normal; }
.diff-code p.removed { color: #ffd2ce; background: rgba(232,77,65,.18); }
.diff-code p.added { color: #c8f8e7; background: rgba(50,197,189,.16); }
.diff-code p.removed i { color: #ff7b6f; }
.diff-code p.added i { color: #5ce0c4; }
.diff-code mark { padding: 3px 4px; color: inherit; background: rgba(255,107,92,.32); border-radius: 3px; }
.diff-code .added mark { background: rgba(50,197,189,.28); }
.diff-code button { position: absolute; top: 6px; right: 14px; padding: 5px 9px; color: #bac5d5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 5px; font-size: 8px; }

.diff-footer {
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8790a0;
  background: #f8f9fb;
  font-size: 10px;
}

.diff-footer b { color: var(--coral-dark); }

.references-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 95px;
}

.references-visual {
  min-height: 490px;
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(25,36,57,.1);
}

.reference-sidebar {
  padding: 18px 10px;
  background: #f8f7f3;
  border-right: 1px solid #e3e1dc;
}

.ref-search {
  height: 33px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: #8b929d;
  background: white;
  border: 1px solid #dfddd7;
  border-radius: 7px;
  font-size: 9px;
}

.ref-group {
  margin: 22px 8px 7px;
  display: flex;
  justify-content: space-between;
  color: #475369;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.ref-group span { color: #a0a6af; }
.ref-subgroup { margin: 13px 8px 5px; color: #9b6b65; font: italic 10px/1.3 Georgia, serif; }

.ref-item {
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  border-radius: 7px;
}

.ref-item.selected { background: #e8edf8; }
.ref-item strong { color: #344056; font-size: 9px; }
.ref-item span { overflow: hidden; color: #9299a4; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.reference-detail { padding: 48px 38px; }
.ref-kind { margin: 0 0 14px; color: var(--coral-dark); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.reference-detail h3 { margin: 0 0 34px; font: 700 30px/1.08 Georgia, serif; letter-spacing: -.03em; }
.ref-field { min-height: 46px; display: grid; grid-template-columns: 72px 1fr; align-items: center; border-bottom: 1px solid #ebe9e4; font-size: 10px; }
.ref-field span { color: #9aa0aa; }
.ref-field strong { color: #4b5567; font-weight: 600; }
.ref-actions { margin-top: 28px; display: flex; gap: 8px; }
.ref-actions button { padding: 8px 10px; color: #535f72; background: white; border: 1px solid #dcd9d3; border-radius: 7px; font-size: 9px; }
.ref-actions button:first-child { color: white; background: var(--navy-800); border-color: var(--navy-800); }

.references-copy h2 { font-size: clamp(40px, 4.5vw, 62px); }
.cite-chip { width: fit-content; margin-top: 30px; padding: 10px 10px 10px 14px; display: flex; align-items: center; gap: 18px; color: #dbe4f2; background: var(--navy-950); border-radius: 9px; font-size: 11px; }
.cite-chip span { padding: 5px 7px; color: #7adfc9; background: rgba(50,197,189,.13); border-radius: 5px; font-size: 8px; }

.privacy-section { padding-top: 40px; background: var(--paper-light); }

.privacy-card {
  max-width: var(--content);
  min-height: 360px;
  margin: 0 auto;
  padding: 68px 80px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: start;
  gap: 45px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(50,197,189,.12), transparent 34%),
    var(--navy-900);
  border-radius: 30px;
}

.privacy-mark {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(50,197,189,.1);
  border: 1px solid rgba(50,197,189,.17);
  border-radius: 28px;
  font-size: 48px;
}

.privacy-card h2 { font-size: clamp(40px, 4.7vw, 62px); }
.privacy-card p { max-width: 750px; color: rgba(255,255,255,.62); }
.privacy-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: white; font-size: 13px; font-weight: 700; }
.privacy-card a span { color: var(--teal); }

.faq-section { background: var(--paper-light); }
.faq-section .section-heading { margin-bottom: 30px; }

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 670;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; color: var(--coral-dark); background: #f4dedb; border-radius: 50%; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { max-width: 780px; margin: -8px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.download-section {
  padding: 120px 24px;
  color: white;
  background:
    radial-gradient(circle at 50% 5%, rgba(65, 133, 218, .22), transparent 30%),
    var(--navy-950);
  text-align: center;
}

.download-inner { max-width: 780px; margin: 0 auto; }
.download-inner img { margin: 0 auto 28px; border-radius: 25px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.download-inner h2 { font-size: clamp(46px, 6vw, 76px); }
.download-inner > p { max-width: 610px; margin: 24px auto 30px; color: rgba(255,255,255,.64); }
.button-light { color: var(--navy-950); background: white; }
.download-inner small { display: block; margin-top: 18px; color: rgba(255,255,255,.38); font-size: 11px; }

.site-footer {
  min-height: 140px;
  padding: 34px max(24px, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: #9299a6;
  background: #040d1d;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 11px; }
.footer-brand div { display: grid; gap: 3px; }
.footer-brand strong { color: white; font-size: 14px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: #b7bfcc; }
.site-footer > p { justify-self: end; }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.7,.2,1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 140px;
    text-align: center;
  }

  .hero-copy { max-width: 780px; margin: 0 auto; }
  .hero h1, .hero-lede { margin-right: auto; margin-left: auto; }
  .hero-actions { justify-content: center; }
  .app-window { max-width: 100%; margin: 20px auto 0; transform: none; }
  .hero-product { width: min(100%, 780px); margin: 0 auto; }
  .chip-git { left: -10px; }
  .chip-local { right: -10px; }

  .workspace-section,
  .references-section { gap: 55px; }

  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p { grid-column: 1 / -1; justify-self: start; margin: 0; }
}

@media (max-width: 900px) {
  .section { padding-top: 88px; padding-bottom: 88px; }
  .feature-card-large,
  .feature-card-wide { grid-template-columns: 52px 1fr; }
  .completion-demo,
  .branch-line { grid-column: 1 / -1; }
  .workspace-section,
  .references-section { grid-template-columns: 1fr; }
  .project-tree-card { width: 100%; max-width: none; justify-self: stretch; }
  .references-visual { order: 2; }
  .references-copy { order: 1; }
  .privacy-card { padding: 52px; grid-template-columns: 90px 1fr; }
  .privacy-mark { width: 86px; height: 86px; border-radius: 22px; font-size: 36px; }
}

@media (max-width: 760px) {
  .nav-shell { width: min(calc(100% - 32px), var(--content)); }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:not(.sr-only):last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .primary-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    padding: 20px;
    display: none;
    align-items: stretch;
    gap: 6px;
    color: white;
    background: rgba(8, 24, 50, .98);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
  }

  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 10px; }
  .primary-nav .nav-cta { margin-top: 8px; text-align: center; }

  .hero { min-height: auto; padding: 124px 18px 80px; gap: 48px; }
  .hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-lede { font-size: 17px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-product { padding-bottom: 30px; }
  .app-window { position: absolute; top: 0; left: 0; width: 720px; max-width: none; transform: scale(.72); transform-origin: top left; }
  .hero-product { width: 100%; height: 405px; overflow: visible; }
  .floating-chip { display: none; }

  .trust-strip { gap: 12px 17px; font-size: 9px; }
  .trust-strip i:nth-of-type(even) { display: none; }

  .section { padding-right: 18px; padding-left: 18px; }
  .section-heading h2,
  .workspace-copy h2,
  .references-copy h2,
  .privacy-card h2,
  .download-inner h2 { font-size: 43px; }
  .section-heading > p:last-child,
  .workspace-copy > p,
  .references-copy > p,
  .privacy-card p,
  .download-inner > p { font-size: 16px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card,
  .feature-card-large,
  .feature-card-wide { min-height: auto; grid-column: auto; padding: 26px; display: block; }
  .feature-card .feature-icon { margin-bottom: 28px; }
  .completion-demo,
  .branch-line { margin-top: 28px; }
  .mini-terminal { position: relative; right: auto; bottom: auto; left: auto; margin-top: 30px; }
  .page-stack { position: relative; right: auto; bottom: auto; height: 140px; margin: 30px auto 0; }
  .branch-line { height: 125px; }

  .workspace-section { gap: 50px; }
  .project-tree-card { padding: 15px; }

  .diff-topbar { padding: 12px; grid-template-columns: 1fr auto; gap: 10px; }
  .diff-topbar > div:last-child { grid-column: 1 / -1; justify-self: start; }
  .diff-body { grid-template-columns: 37px 1fr; font-size: 9px; }
  .diff-gutter { padding-right: 8px; padding-left: 6px; }
  .diff-code p { padding-right: 10px; padding-left: 30px; overflow-x: auto; white-space: nowrap; }
  .diff-code button { display: none; }
  .diff-code p > i { left: 10px; }
  .diff-footer { align-items: flex-start; gap: 5px; flex-direction: column; justify-content: center; }

  .references-visual { min-height: 450px; grid-template-columns: 145px 1fr; }
  .reference-detail { padding: 36px 18px; }
  .reference-detail h3 { font-size: 22px; }
  .ref-field { grid-template-columns: 55px 1fr; font-size: 8px; }
  .ref-actions { flex-direction: column; }
  .ref-item { padding-right: 6px; padding-left: 6px; }

  .privacy-section { padding-top: 18px; }
  .privacy-card { padding: 38px 28px; display: block; border-radius: 22px; }
  .privacy-mark { margin-bottom: 35px; }

  .faq-list summary { min-height: 76px; font-size: 16px; }
  .download-section { padding: 90px 18px; }

  .site-footer { padding: 38px 24px; grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; gap: 16px 22px; }
  .site-footer > p { grid-column: auto; }
}

@media (max-width: 470px) {
  .hero-product { height: 323px; }
  .app-window { transform: scale(.56); }
  .references-visual { grid-template-columns: 125px 1fr; }
  .reference-sidebar { padding: 12px 6px; }
  .ref-group { letter-spacing: .06em; }
  .reference-detail { padding: 30px 14px; }
  .reference-detail h3 { font-size: 19px; }
  .ref-field { display: grid; grid-template-columns: 1fr; align-content: center; gap: 2px; }
}

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

/* Support and privacy pages */
.subpage {
  background: var(--paper-light);
}

.subpage .site-header {
  position: absolute;
}

.page-hero {
  min-height: 520px;
  padding: 165px max(24px, calc((100vw - 920px) / 2)) 90px;
  color: white;
  background:
    radial-gradient(circle at 75% 0, rgba(50,197,189,.15), transparent 35%),
    radial-gradient(circle at 20% 100%, rgba(255,107,92,.12), transparent 34%),
    var(--navy-900);
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(56px, 7vw, 88px);
  letter-spacing: -.065em;
  line-height: .98;
}

.page-hero > p:not(.eyebrow) {
  max-width: 680px;
  margin: 28px 0 30px;
  color: rgba(255,255,255,.66);
  font-size: 18px;
  line-height: 1.65;
}

.page-hero > small {
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

.page-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 24px 120px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.support-grid article {
  min-height: 250px;
  padding: 30px;
  background: #f6f3ec;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.support-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy-800);
  background: #dbe4f4;
  border-radius: 12px;
  font-weight: 800;
}

.support-grid article:nth-child(2) .support-icon { color: #087c66; background: #d7f5f1; }
.support-grid article:nth-child(3) .support-icon { color: #6652c7; background: #e9e4ff; }
.support-grid h2 { margin: 24px 0 10px; font-size: 21px; letter-spacing: -.025em; }
.support-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.support-faq {
  margin-top: 90px;
}

.support-faq > h2 {
  margin: 0 0 28px;
  font-size: 40px;
  letter-spacing: -.045em;
}

.support-faq details {
  border-top: 1px solid var(--line);
}

.support-faq details:last-child { border-bottom: 1px solid var(--line); }
.support-faq summary { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 670; }
.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary span { color: var(--coral-dark); }
.support-faq details[open] summary span { transform: rotate(45deg); }
.support-faq details p { max-width: 760px; margin: -4px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.support-faq a,
.legal-copy a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }

.contact-panel {
  margin-top: 90px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #f6f3ec;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.contact-panel .eyebrow { margin-bottom: 10px; }
.contact-panel h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.contact-panel p { margin: 8px 0 0; color: var(--muted); }

.privacy-hero { min-height: 560px; }

.legal-copy {
  max-width: 820px;
  color: #384357;
}

.legal-summary {
  margin: -145px 0 80px;
  padding: 34px 38px;
  color: white;
  background: rgba(16,38,74,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(4,13,31,.2);
}

.legal-summary strong { color: var(--teal); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.legal-summary p { margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.legal-copy h2 { margin: 58px 0 18px; color: var(--ink); font-size: 28px; letter-spacing: -.035em; }
.legal-copy h3 { margin: 28px 0 8px; color: var(--ink); font-size: 17px; }
.legal-copy > p,
.legal-copy li { font-size: 15px; line-height: 1.75; }
.legal-copy ul { padding-left: 21px; }
.legal-copy li { margin-bottom: 10px; }

.compact-footer { min-height: 120px; }

@media (max-width: 760px) {
  .subpage-nav { position: static; padding: 0; display: flex; background: transparent; border: 0; box-shadow: none; }
  .subpage-nav > a:not(.nav-cta) { display: none; }
  .subpage-nav .nav-cta { margin: 0; padding: 9px 14px; }
  .page-hero { min-height: 480px; padding: 140px 20px 72px; }
  .page-hero h1 { font-size: 52px; }
  .page-hero > p:not(.eyebrow) { font-size: 16px; }
  .page-content { padding: 72px 18px 90px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-grid article { min-height: 0; }
  .support-faq { margin-top: 65px; }
  .support-faq > h2 { font-size: 34px; }
  .contact-panel { margin-top: 65px; padding: 30px; align-items: stretch; flex-direction: column; }
  .contact-panel .button { width: 100%; overflow-wrap: anywhere; }
  .privacy-hero { min-height: 520px; }
  .legal-summary { margin-top: -115px; padding: 28px; }
  .legal-copy h2 { font-size: 25px; }
}
