:root {
  color-scheme: light;
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ink: #11110f;
  --ink-soft: #292925;
  --muted: #686862;
  --muted-2: #8a8a83;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --line: rgba(17, 17, 15, 0.11);
  --line-strong: rgba(17, 17, 15, 0.18);
  --violet: #7467ee;
  --violet-soft: #eeeaff;
  --blue: #4b88f4;
  --blue-soft: #e7f0ff;
  --mint: #2b977e;
  --mint-soft: #dff6ef;
  --amber: #d39135;
  --shadow-small: 0 10px 28px rgba(20, 20, 28, 0.08);
  --shadow-window: 0 30px 90px rgba(34, 29, 73, 0.2), 0 4px 14px rgba(18, 18, 24, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content: 1280px;
  --header-height: 76px;
  font-family: var(--font-ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  color: #ffffff;
  background: #6155d7;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #ffffff;
  background: #11110f;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(247, 247, 244, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 247, 244, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20, 20, 20, 0.035);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), 1480px);
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: max-content;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.brand-mark circle {
  fill: currentColor;
  stroke: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.desktop-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    background 220ms ease;
}

.nav-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-cta:hover {
  background: #2a2a27;
  box-shadow: 0 8px 20px rgba(17, 17, 15, 0.15);
  transform: translateY(-1px);
}

.nav-cta:focus-visible,
.brand:focus-visible,
.desktop-nav a:focus-visible,
.button:focus-visible,
.session-button:focus-visible,
.new-query:focus-visible,
.footnote:focus-visible,
.source-close:focus-visible,
.source-footer button:focus-visible {
  outline: 3px solid rgba(116, 103, 238, 0.34);
  outline-offset: 3px;
}

.hero {
  overflow: clip;
  padding: 80px 24px 0;
}

.hero-copy {
  width: min(960px, 100%);
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(116, 103, 238, 0.1);
}

.hero-copy .eyebrow {
  justify-content: center;
}

.hero h1 {
  max-width: 930px;
  margin: 0 auto;
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 560;
  letter-spacing: -0.066em;
  line-height: 0.99;
}

.hero-lede {
  max-width: 770px;
  margin: 30px auto 0;
  color: #51514c;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    background 220ms ease,
    border-color 220ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

.button--dark {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 17, 15, 0.14);
}

.button--dark:hover {
  background: #2b2b28;
  box-shadow: 0 14px 30px rgba(17, 17, 15, 0.2);
}

.button--quiet {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line-strong);
}

.button--quiet:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 15, 0.28);
  box-shadow: var(--shadow-small);
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 27px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof i {
  width: 5px;
  height: 5px;
  background: #9a9a93;
  border-radius: 50%;
}

.hero-stage {
  position: relative;
  width: min(1500px, 100%);
  min-height: 795px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  padding: 54px 54px 80px;
  background:
    radial-gradient(circle at 6% 10%, rgba(218, 250, 249, 0.94), transparent 33%),
    radial-gradient(circle at 92% 18%, rgba(212, 225, 255, 0.95), transparent 38%),
    radial-gradient(circle at 50% 104%, rgba(192, 181, 255, 0.92), transparent 47%),
    linear-gradient(135deg, #eef9f7 0%, #d8defe 44%, #e9dcff 100%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  box-shadow:
    inset 0 0 0 1px rgba(116, 103, 238, 0.05),
    0 30px 90px rgba(66, 64, 112, 0.12);
}

.hero-stage,
#workflow,
#traceability,
#use-cases {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.hero-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.19) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.44), transparent 82%);
}

.aurora {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.7;
  pointer-events: none;
  animation: aurora-drift 14s ease-in-out infinite alternate;
}

.aurora--one {
  top: -110px;
  left: 17%;
  width: 520px;
  height: 340px;
  background: rgba(255, 255, 255, 0.48);
}

.aurora--two {
  right: 2%;
  bottom: -170px;
  width: 560px;
  height: 420px;
  background: rgba(118, 106, 255, 0.24);
  animation-delay: -6s;
}

@keyframes aurora-drift {
  to {
    transform: translate3d(42px, 18px, 0) scale(1.09);
  }
}

.product-window {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 2;
  width: min(1320px, 100%);
  height: 660px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 17, 15, 0.13);
  border-radius: 19px;
  box-shadow: var(--shadow-window);
  transform: perspective(1600px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 300ms var(--ease);
}

.product-window::after {
  position: absolute;
  z-index: 30;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.window-bar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding: 0 17px;
  background: rgba(250, 250, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

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

.traffic-lights span:nth-child(1) { background: #ff635c; }
.traffic-lights span:nth-child(2) { background: #ffbd3f; }
.traffic-lights span:nth-child(3) { background: #31c84a; }

.window-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #565651;
  font-size: 12px;
  font-weight: 600;
}

.window-title svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.window-status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  color: #777771;
  font-size: 11px;
  font-weight: 550;
}

.window-status i {
  width: 6px;
  height: 6px;
  background: #39a981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(57, 169, 129, 0.1);
}

.app-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(328px, 0.8fr);
  height: calc(100% - 48px);
  transition: grid-template-columns 520ms var(--ease);
}

.product-window:not(.source-open) .app-grid {
  grid-template-columns: 220px minmax(0, 1fr) 0fr;
}

.session-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px 11px 12px;
  background: #f5f5f3;
  border-right: 1px solid var(--line);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-brand svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.new-query {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: #4c4c48;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 590;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.new-query:hover {
  background: #eaeae7;
}

.new-query svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.session-label {
  margin: 22px 10px 7px;
  color: #9a9a94;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-list {
  display: grid;
  gap: 4px;
}

.session-button {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 5px 8px;
  color: #5c5c57;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease);
}

.session-button:hover {
  color: var(--ink);
  background: #ebebe8;
  transform: translateX(1px);
}

.session-button.is-active {
  color: var(--ink);
  background: #e6e6e3;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 15, 0.025);
}

.session-button > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.session-button b,
.session-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-button b {
  font-size: 10.5px;
  font-weight: 620;
}

.session-button small {
  color: #9a9a94;
  font-size: 9px;
}

.session-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
}

.session-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.session-icon--violet { color: #6559d8; background: #e7e3ff; }
.session-icon--blue { color: #397ad3; background: #deebff; }
.session-icon--green { color: #24856c; background: #dcf3ec; }

.sidebar-foot {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 7px 2px;
  border-top: 1px solid var(--line);
}

.mini-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #ffffff;
  background: #171715;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
}

.sidebar-foot > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.sidebar-foot b {
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-foot small {
  color: #989892;
  font-size: 8px;
}

.sidebar-foot svg {
  width: 15px;
  fill: currentColor;
  color: #92928d;
}

.conversation-panel {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #ffffff;
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.conversation-kicker {
  display: block;
  margin-bottom: 4px;
  color: #9a9a94;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.conversation-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.depth-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  color: #62625d;
  background: #f7f7f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}

.depth-pill span {
  width: 6px;
  height: 6px;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(116, 103, 238, 0.12);
}

.conversation-scroll {
  overflow: auto;
  padding: 22px 22px 12px;
  scrollbar-width: thin;
  scrollbar-color: #d7d7d3 transparent;
}

.user-query {
  width: min(82%, 470px);
  margin-left: auto;
  padding: 13px 15px;
  background: #f0f0ee;
  border-radius: 16px 16px 4px 16px;
  font-size: 10.5px;
  line-height: 1.55;
}

.agent-intro {
  margin: 18px 4px 0;
  color: #4d4d49;
  font-size: 10px;
  line-height: 1.55;
}

.search-process {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.process-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 7px 10px 7px 7px;
  background: #fafaf9;
  border: 1px solid rgba(17, 17, 15, 0.075);
  border-radius: 10px;
}

.js .is-running .process-step {
  opacity: 0;
  transform: translateY(8px);
  animation: step-in 480ms var(--ease) forwards;
  animation-delay: var(--step-delay);
}

@keyframes step-in {
  to { opacity: 1; transform: translateY(0); }
}

.step-state {
  position: relative;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  background: #e8f5ef;
  border-radius: 7px;
}

.step-state i {
  width: 8px;
  height: 4px;
  border-bottom: 1.6px solid #278267;
  border-left: 1.6px solid #278267;
  transform: translateY(-1px) rotate(-45deg);
}

.process-step > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.process-step b {
  font-size: 9.5px;
  font-weight: 620;
}

.process-step small {
  overflow: hidden;
  color: #96968f;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-step em {
  color: #408875;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
}

.answer-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.js .is-running .answer-card {
  opacity: 0;
  transform: translateY(10px);
  animation: answer-in 580ms var(--ease) 1.18s forwards;
}

@keyframes answer-in {
  to { opacity: 1; transform: translateY(0); }
}

.answer-avatar {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.answer-body {
  min-width: 0;
}

.answer-body p {
  margin: 0 0 9px;
  color: #363633;
  font-size: 9.8px;
  line-height: 1.65;
}

.footnote {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin: 0 1px;
  place-items: center;
  color: #5145c3;
  background: #ece9ff;
  border: 0;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 720;
  vertical-align: 2px;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms var(--ease),
    box-shadow 160ms ease;
}

.footnote:hover,
.footnote.is-active {
  color: #ffffff;
  background: #675bd8;
  box-shadow: 0 4px 12px rgba(103, 91, 216, 0.26);
  transform: translateY(-1px);
}

.footnote.is-pulsing {
  animation: footnote-pulse 1.6s ease-in-out infinite;
}

@keyframes footnote-pulse {
  50% { box-shadow: 0 0 0 7px rgba(103, 91, 216, 0.11); }
}

.answer-note {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  margin-top: 10px;
  padding: 9px 10px;
  color: #7a5724;
  background: #fff8eb;
  border: 1px solid #f1dfbd;
  border-radius: 9px;
  font-size: 8.4px;
  line-height: 1.45;
}

.answer-note svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ba7928;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.composer {
  min-height: 77px;
  margin: 0 17px 15px;
  padding: 11px 12px 8px;
  color: #a1a19a;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 15, 0.13);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(17, 17, 15, 0.045);
  font-size: 9px;
}

.composer-actions {
  display: flex;
  align-items: center;
  margin-top: 11px;
}

.composer-actions > span {
  margin-left: auto;
  margin-right: 8px;
  color: #777771;
  font-size: 8.5px;
}

.composer button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  color: #7f7f79;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.composer svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.composer .send-button {
  color: #ffffff;
  background: #b1b1ac;
}

.source-browser {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #f4f4f1;
  border-left: 1px solid var(--line);
  opacity: 1;
  transition:
    opacity 280ms ease,
    transform 520ms var(--ease);
}

.product-window:not(.source-open) .source-browser {
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
}

.source-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 320px;
  min-height: 46px;
  padding: 0 10px;
  background: #fbfbfa;
  border-bottom: 1px solid var(--line);
}

.source-nav {
  display: flex;
  gap: 2px;
}

.source-nav button,
.source-close {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  color: #757570;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.source-close {
  cursor: pointer;
  transition: background 160ms ease;
}

.source-close:hover {
  background: #ecece9;
}

.source-nav svg,
.source-close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.source-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 27px;
  padding: 0 10px;
  color: #777771;
  background: #efefec;
  border-radius: 7px;
  font-size: 8px;
}

.source-address span {
  width: 6px;
  height: 6px;
  background: #36a67e;
  border-radius: 50%;
}

.source-address b {
  overflow: hidden;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-meta {
  display: flex;
  min-width: 320px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.source-meta > div {
  min-width: 0;
}

.source-meta span:first-child {
  display: block;
  margin-bottom: 4px;
  color: #9c9c96;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-meta h3 {
  overflow: hidden;
  margin: 0;
  font-size: 9px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-chip {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #5b50c9;
  background: #ece9ff;
  border-radius: 999px;
  font-size: 8px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.document-canvas {
  min-width: 320px;
  overflow: auto;
  padding: 20px 24px 30px;
  background:
    linear-gradient(rgba(17, 17, 15, 0.025) 1px, transparent 1px) 0 0 / 20px 20px,
    #e9e9e5;
}

.paper-page {
  position: relative;
  min-height: 430px;
  padding: 33px 30px 40px;
  color: #383834;
  background: #fffefb;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(17, 17, 15, 0.14);
}

.paper-heading {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 11px;
  font-weight: 700;
}

.paper-rule {
  width: 100%;
  height: 1px;
  margin: 9px 0 15px;
  background: #55554f;
  opacity: 0.32;
}

.paper-lines {
  height: 19px;
  margin-bottom: 10px;
  background: repeating-linear-gradient(to bottom, #d6d5d0 0 2px, transparent 2px 8px);
  opacity: 0.62;
}

.paper-lines--short {
  width: 76%;
}

.paper-copy {
  margin: 10px 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 8.5px;
  line-height: 1.85;
}

.paper-highlight {
  position: relative;
  margin: 12px -4px;
  padding: 9px 9px 9px 11px;
  background: rgba(255, 225, 94, 0.42);
  border-left: 2px solid #df9f22;
  border-radius: 3px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 8.7px;
  line-height: 1.75;
  transition:
    background 260ms ease,
    box-shadow 260ms ease,
    transform 260ms var(--ease);
}

.paper-highlight.is-flashing {
  background: rgba(255, 217, 54, 0.72);
  box-shadow: 0 0 0 6px rgba(238, 176, 42, 0.12);
  transform: scale(1.012);
}

.paper-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  border-top: 1px solid #c7c6c0;
  border-left: 1px solid #c7c6c0;
}

.paper-table span {
  height: 22px;
  border-right: 1px solid #c7c6c0;
  border-bottom: 1px solid #c7c6c0;
}

.paper-page-number {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  color: #aaa9a3;
  font-family: serif;
  font-size: 8px;
  text-align: center;
}

.source-footer {
  display: flex;
  min-width: 320px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 7.8px;
}

.source-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4e6d63;
}

.source-footer i {
  width: 6px;
  height: 6px;
  background: #35a47d;
  border-radius: 50%;
}

.source-footer button {
  padding: 4px 7px;
  color: #6559cb;
  background: #efedff;
  border: 0;
  border-radius: 6px;
  font-size: 7.5px;
  font-weight: 600;
  cursor: pointer;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
  color: rgba(27, 27, 30, 0.68);
  font-size: 12px;
}

.demo-caption > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #39383f;
  font-weight: 650;
}

.demo-caption i {
  width: 7px;
  height: 7px;
  background: #6f61df;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(111, 97, 223, 0.13);
}

.principles {
  padding: 115px 24px 140px;
}

.principles-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--content), 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.principles-inner > div {
  min-height: 185px;
  padding: 26px 28px 28px;
  border-right: 1px solid var(--line);
}

.principles-inner > div:last-child {
  border-right: 0;
}

.principles-inner span {
  display: block;
  margin-bottom: 42px;
  color: #a0a099;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.principles-inner b {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.principles-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.js .reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease);
}

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

.story-section {
  padding: 0 24px 150px;
}

.section-heading {
  width: min(var(--content), 100%);
  margin: 0 auto 94px;
}

.section-heading h2,
.use-cases-head h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 560;
  letter-spacing: -0.062em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 630px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(55px, 7vw, 110px);
  width: min(var(--content), 100%);
  margin: 0 auto 154px;
}

.story-row--reverse {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
}

.story-row--reverse .story-copy {
  grid-column: 2;
  grid-row: 1;
}

.story-row--reverse .feature-stage {
  grid-column: 1;
  grid-row: 1;
}

.story-copy {
  align-self: center;
}

.story-index {
  display: block;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 570;
  letter-spacing: -0.052em;
  line-height: 1.08;
}

.story-copy > p {
  margin: 26px 0 0;
  color: #5d5d57;
  font-size: 16px;
  line-height: 1.82;
}

.story-points {
  display: grid;
  gap: 13px;
  margin: 27px 0 0;
  padding: 23px 0 0;
  border-top: 1px solid var(--line);
  color: #3f3f3b;
  font-size: 13px;
  line-height: 1.55;
  list-style: none;
}

.story-points li {
  position: relative;
  padding-left: 18px;
}

.story-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--violet);
  border-radius: 50%;
  content: "";
}

.feature-stage {
  position: relative;
  min-width: 0;
  min-height: 610px;
  overflow: hidden;
  isolation: isolate;
  padding: 58px;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 26px 70px rgba(45, 47, 77, 0.1);
}

.feature-stage::before,
.feature-stage::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(10px);
}

.feature-stage::before {
  top: -170px;
  right: -70px;
  width: 460px;
  height: 460px;
  background: rgba(255, 255, 255, 0.46);
}

.feature-stage::after {
  bottom: -230px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: rgba(116, 103, 238, 0.18);
}

.feature-stage--violet {
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 255, 252, 0.95), transparent 32%),
    linear-gradient(140deg, #dee7ff, #c9bcff 62%, #e7ddff);
}

.feature-stage--blue {
  background:
    radial-gradient(circle at 91% 11%, rgba(255, 255, 255, 0.7), transparent 35%),
    linear-gradient(145deg, #d9f3f3, #b7d5ff 55%, #c7c2ff);
}

.feature-stage--mint {
  background:
    radial-gradient(circle at 9% 16%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(140deg, #d7f5ea, #b8e3de 48%, #cdd2ff);
}

.mini-window {
  position: relative;
  width: min(650px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 17, 15, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 65px rgba(35, 35, 67, 0.17);
  backdrop-filter: blur(18px);
}

.mini-window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 17px;
  background: rgba(249, 249, 247, 0.85);
  border-bottom: 1px solid var(--line);
}

.mini-window-bar > span {
  width: 10px;
  height: 10px;
  background: #a79fe9;
  border-radius: 50%;
  box-shadow:
    16px 0 0 #c7c2f2,
    32px 0 0 #dedbf5;
}

.mini-window-bar b {
  color: #51514d;
  font-size: 11px;
  font-weight: 620;
}

.mini-window-bar em {
  justify-self: end;
  padding: 5px 8px;
  color: #6257c8;
  background: #eeebff;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 620;
}

.decomposition-shot {
  padding-bottom: 21px;
  transform: translateY(12px);
}

.query-ribbon {
  margin: 22px 22px 15px;
  padding: 15px 17px;
  color: #32322f;
  background: #f2f2ef;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.need-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  margin: 0 22px 9px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 15, 0.09);
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(30, 30, 50, 0.045);
}

.need-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #777771;
  background: #f0f0ed;
  border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.need-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.need-card b {
  font-size: 11px;
  font-weight: 630;
}

.need-card small {
  overflow: hidden;
  color: #8d8d87;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.need-card > em {
  padding: 5px 8px;
  color: #777771;
  background: #f1f1ee;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
}

.need-card.is-done > span,
.need-card.is-done > em {
  color: #267961;
  background: #e1f5ee;
}

.need-card.is-reading {
  border-color: rgba(103, 91, 216, 0.32);
  box-shadow: 0 8px 24px rgba(103, 91, 216, 0.1);
}

.need-card.is-reading > span,
.need-card.is-reading > em {
  color: #5c50c4;
  background: #ece9ff;
}

.need-card.is-reading > em {
  animation: reading-pill 1.8s ease-in-out infinite;
}

@keyframes reading-pill {
  50% { box-shadow: 0 0 0 6px rgba(103, 91, 216, 0.08); }
}

.mini-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 24px 0;
  color: #73736d;
  font-size: 9px;
}

.mini-progress i {
  position: relative;
  width: 78px;
  height: 4px;
  overflow: hidden;
  background: #e6e6e2;
  border-radius: 99px;
}

.mini-progress i::after {
  position: absolute;
  inset: 0;
  width: 43%;
  background: #6c60dc;
  border-radius: inherit;
  content: "";
  animation: progress-scan 2.4s var(--ease) infinite;
}

@keyframes progress-scan {
  0% { transform: translateX(-105%); }
  60%, 100% { transform: translateX(235%); }
}

.context-shot {
  display: grid;
  grid-template-columns: 142px minmax(250px, 1fr) 150px;
  width: min(760px, 100%);
  height: 500px;
  margin: -3px auto 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 15, 0.12);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(33, 46, 76, 0.17);
}

.context-sidebar {
  padding: 19px 10px;
  background: #f1f3f3;
  border-right: 1px solid var(--line);
}

.context-sidebar > span,
.context-inspector > span {
  display: block;
  margin: 0 7px 13px;
  color: #989892;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.context-sidebar button {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 5px;
  padding: 10px 9px;
  color: #686863;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
}

.context-sidebar button.is-active {
  color: #30302d;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(26, 33, 38, 0.055);
}

.context-sidebar b {
  font-size: 9px;
  font-weight: 620;
}

.context-sidebar small {
  color: #969691;
  font-size: 7.5px;
}

.context-page {
  display: grid;
  min-width: 0;
  grid-template-rows: 44px minmax(0, 1fr);
  background: #e9ebeb;
}

.context-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}

.context-page-head b {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-page-head span {
  color: #8d8d87;
}

.context-document {
  width: 78%;
  min-width: 230px;
  height: 404px;
  margin: 21px auto 0;
  padding: 31px 25px;
  background: #fffefb;
  box-shadow: 0 12px 28px rgba(27, 34, 38, 0.13);
}

.doc-title-line,
.doc-line {
  display: block;
  height: 5px;
  background: #d8d7d1;
  border-radius: 2px;
}

.doc-title-line {
  width: 50%;
  height: 8px;
  margin-bottom: 22px;
  background: #aaa9a3;
}

.doc-line {
  margin-bottom: 10px;
}

.doc-line--a { width: 94%; }
.doc-line--b { width: 78%; }
.doc-line--c { width: 86%; margin-top: 18px; }
.doc-line--d { width: 66%; }

.doc-highlight-box {
  position: relative;
  margin: 21px -5px 0;
  padding: 18px 13px 13px;
  color: #4b4330;
  background: #fff2b7;
  border-left: 3px solid #e0a31d;
  border-radius: 4px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 9px;
  line-height: 1.7;
}

.doc-highlight-box small {
  position: absolute;
  top: -10px;
  left: 9px;
  padding: 4px 7px;
  color: #79601f;
  background: #ffe987;
  border-radius: 4px;
  font-family: var(--font-ui, sans-serif);
  font-size: 7px;
  font-weight: 650;
}

.context-inspector {
  padding: 19px 12px;
  background: #fbfbfa;
  border-left: 1px solid var(--line);
}

.context-inspector dl {
  margin: 0;
}

.context-inspector dl > div {
  padding: 11px 7px;
  border-bottom: 1px solid var(--line);
}

.context-inspector dt {
  margin-bottom: 6px;
  color: #999993;
  font-size: 7.5px;
}

.context-inspector dd {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #454541;
  font-size: 8px;
  line-height: 1.45;
}

.context-inspector dd i {
  width: 5px;
  height: 5px;
  background: #31a079;
  border-radius: 50%;
}

.citation-shot {
  display: grid;
  grid-template-columns: minmax(245px, 0.86fr) 46px minmax(245px, 1fr);
  align-items: center;
  width: min(760px, 100%);
  height: 500px;
  margin: -3px auto 0;
}

.citation-answer,
.citation-browser {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 17, 15, 0.12);
  border-radius: 17px;
  box-shadow: 0 25px 65px rgba(27, 51, 55, 0.14);
  backdrop-filter: blur(18px);
}

.citation-answer {
  padding: 22px 21px;
}

.citation-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.citation-head span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #ffffff;
  background: #161614;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.citation-head b {
  font-size: 10px;
  font-weight: 640;
}

.citation-answer p {
  margin: 0 0 13px;
  color: #373733;
  font-size: 10.5px;
  line-height: 1.75;
}

.citation-answer sup {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #5146bf;
  background: #eae7ff;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
  vertical-align: 3px;
}

.citation-warning {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  margin-top: 19px;
  padding: 10px;
  color: #765422;
  background: #fff7e7;
  border: 1px solid #f0dcb6;
  border-radius: 9px;
  font-size: 8px;
  line-height: 1.55;
}

.citation-warning i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #ffffff;
  background: #d4983c;
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.citation-connector {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.citation-connector span {
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(73, 75, 75, 0.32);
}

.citation-connector span::before,
.citation-connector span::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #6e62d8;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.citation-connector span::before { left: -1px; }
.citation-connector span::after { right: -1px; }

.citation-browser {
  overflow: hidden;
}

.citation-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  background: #f6f6f4;
  border-bottom: 1px solid var(--line);
}

.citation-toolbar i {
  width: 7px;
  height: 7px;
  background: #c8c8c3;
  border-radius: 50%;
}

.citation-toolbar span {
  flex: 1;
  margin-left: 4px;
  padding: 5px 8px;
  color: #85857f;
  background: #eaeae7;
  border-radius: 6px;
  font-size: 7.5px;
  text-align: center;
}

.citation-paper {
  min-height: 315px;
  margin: 18px;
  padding: 27px 22px;
  background: #fffefb;
  box-shadow: 0 9px 24px rgba(24, 36, 38, 0.12);
}

.citation-paper > span {
  display: block;
  width: 84%;
  height: 5px;
  margin-bottom: 9px;
  background: #d6d5d0;
  border-radius: 3px;
}

.citation-paper > span:nth-child(2) { width: 64%; }

.citation-paper p,
.citation-paper div {
  margin: 20px 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 8.5px;
  line-height: 1.75;
}

.citation-paper div {
  margin-right: -4px;
  margin-left: -4px;
  padding: 9px 10px;
  background: #fff0a7;
  border-left: 2px solid #e3a31d;
}

.use-cases {
  padding: 140px 24px 150px;
  background: #ecece8;
}

.use-cases-head {
  width: min(var(--content), 100%);
  margin: 0 auto 75px;
}

.use-cases-head h2 {
  max-width: 1240px;
  font-size: clamp(48px, 5.4vw, 78px);
}

.use-cases-head > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--content), 100%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 65px rgba(25, 25, 25, 0.06);
}

.case-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  padding: 32px 33px;
  border-right: 1px solid var(--line);
  transition:
    background 260ms ease,
    transform 300ms var(--ease);
}

.case-card:first-child { border-radius: 21px 0 0 21px; }
.case-card:last-child { border-right: 0; border-radius: 0 21px 21px 0; }

.case-card:hover {
  z-index: 2;
  background: #fbfbf9;
  transform: translateY(-5px);
}

.case-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(116, 103, 238, 0.16), transparent 68%);
  border-radius: 50%;
  content: "";
  transition: transform 500ms var(--ease);
}

.case-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(75, 136, 244, 0.15), transparent 68%);
}

.case-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(43, 151, 126, 0.16), transparent 68%);
}

.case-card:hover::after {
  transform: scale(1.3) translate(-16px, -12px);
}

.case-card > span {
  color: #aaa9a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.case-card svg {
  width: 46px;
  height: 46px;
  margin: 60px 0 32px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.case-card h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 610;
  letter-spacing: -0.035em;
}

.case-card p {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.closing-cta {
  position: relative;
  display: flex;
  width: min(calc(100% - 48px), 1480px);
  min-height: 580px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 24px auto;
  overflow: hidden;
  isolation: isolate;
  padding: 76px 78px;
  color: #ffffff;
  background:
    radial-gradient(circle at 74% 18%, rgba(105, 91, 231, 0.55), transparent 38%),
    radial-gradient(circle at 23% 91%, rgba(46, 149, 126, 0.28), transparent 39%),
    #10100f;
  border-radius: 30px;
}

.closing-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: radial-gradient(circle at 70% 35%, #000, transparent 70%);
}

.closing-glow {
  position: absolute;
  z-index: -1;
  top: -170px;
  right: 3%;
  width: 620px;
  height: 420px;
  background: rgba(138, 126, 255, 0.25);
  border-radius: 50%;
  filter: blur(40px);
  animation: aurora-drift 12s ease-in-out infinite alternate;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.58);
}

.eyebrow--light > span {
  background: #b5adff;
  box-shadow: 0 0 0 5px rgba(181, 173, 255, 0.11);
}

.closing-cta h2 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 520;
  letter-spacing: -0.068em;
  line-height: 0.99;
}

.closing-cta > div > p:last-child {
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
}

.button--light {
  flex: 0 0 auto;
  color: #11110f;
  background: #ffffff;
}

.button--light:hover {
  background: #f0f0ed;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), 1480px);
  min-height: 120px;
  margin: 0 auto;
  color: #777771;
  font-size: 12px;
}

.brand--footer {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer > span {
  justify-self: end;
}

@media (max-width: 1180px) {
  .hero-stage {
    min-height: 735px;
    padding: 38px 32px 68px;
  }

  .product-window {
    height: 620px;
  }

  .app-grid {
    grid-template-columns: 190px minmax(0, 1fr) minmax(300px, 0.8fr);
  }

  .product-window:not(.source-open) .app-grid {
    grid-template-columns: 190px minmax(0, 1fr) 0fr;
  }

  .session-button b { font-size: 9.7px; }
  .source-toolbar,
  .source-meta,
  .document-canvas,
  .source-footer { min-width: 295px; }

  .feature-stage {
    min-height: 560px;
    padding: 42px;
  }

  .context-shot,
  .citation-shot {
    transform: scale(0.93);
    transform-origin: center;
  }
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-copy {
    margin-bottom: 54px;
  }

  .hero-stage {
    min-height: 700px;
  }

  .product-window {
    height: 595px;
  }

  .app-grid,
  .product-window:not(.source-open) .app-grid {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .source-browser {
    position: absolute;
    z-index: 24;
    top: 48px;
    right: 0;
    bottom: 0;
    width: min(390px, 72%);
    border-left: 1px solid var(--line-strong);
    box-shadow: -20px 0 50px rgba(20, 20, 24, 0.16);
    transform: translateX(0);
  }

  .product-window:not(.source-open) .source-browser {
    opacity: 0;
    transform: translateX(105%);
  }

  .principles-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles-inner > div:nth-child(2) {
    border-right: 0;
  }

  .principles-inner > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .story-row,
  .story-row--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 130px;
  }

  .story-row--reverse .story-copy,
  .story-row--reverse .feature-stage {
    grid-column: 1;
  }

  .story-row--reverse .story-copy { grid-row: 1; }
  .story-row--reverse .feature-stage { grid-row: 2; }

  .story-copy {
    max-width: 680px;
  }

  .feature-stage {
    min-height: 610px;
  }

  .context-shot,
  .citation-shot {
    transform: none;
  }

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

  .case-card {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-card:first-child { border-radius: 21px 21px 0 0; }
  .case-card:last-child { border-bottom: 0; border-radius: 0 0 21px 21px; }
  .case-card svg { margin: 40px 0 25px; }

  .closing-cta {
    min-height: 520px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    padding: 58px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .nav-shell,
  .site-footer {
    width: min(calc(100% - 30px), 1480px);
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .nav-cta svg {
    display: none;
  }

  .hero {
    padding: 62px 12px 0;
  }

  .hero-copy {
    margin-bottom: 45px;
    padding: 0 12px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 62px);
    line-height: 1.02;
  }

  .hero h1 br {
    display: none;
  }

  .hero-lede {
    margin-top: 23px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px;
  }

  .button {
    min-height: 49px;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 11px 20px;
    font-size: 11px;
  }

  .hero-stage {
    min-height: 650px;
    padding: 12px 12px 58px;
    border-radius: 24px;
  }

  .product-window {
    height: 570px;
    border-radius: 14px;
  }

  .window-bar {
    grid-template-columns: auto 1fr;
    height: 42px;
    gap: 15px;
    padding: 0 12px;
  }

  .window-title {
    justify-self: end;
    max-width: 62%;
  }

  .window-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window-status {
    display: none;
  }

  .app-grid,
  .product-window:not(.source-open) .app-grid {
    grid-template-columns: 64px minmax(0, 1fr);
    height: calc(100% - 42px);
  }

  .session-sidebar {
    align-items: center;
    padding: 12px 7px 9px;
  }

  .sidebar-brand {
    padding: 0 0 12px;
  }

  .sidebar-brand svg {
    width: 24px;
    height: 24px;
  }

  .sidebar-brand span,
  .new-query:not(:focus) > :not(svg),
  .new-query { font-size: 0; }

  .new-query {
    justify-content: center;
    width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .session-label,
  .session-button > span:last-child,
  .sidebar-foot > span:nth-child(2),
  .sidebar-foot > svg {
    display: none;
  }

  .session-list {
    width: 100%;
    margin-top: 17px;
  }

  .session-button {
    display: grid;
    width: 100%;
    min-height: 46px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 5px;
  }

  .session-icon {
    width: 29px;
    height: 29px;
  }

  .sidebar-foot {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 0 1px;
  }

  .conversation-head {
    min-height: 58px;
    padding: 0 12px;
  }

  .conversation-head h2 {
    max-width: 150px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .depth-pill {
    padding: 0 8px;
    font-size: 8px;
  }

  .conversation-scroll {
    padding: 15px 12px 8px;
  }

  .user-query {
    width: 92%;
    font-size: 9px;
  }

  .agent-intro {
    font-size: 8.8px;
  }

  .process-step {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 43px;
  }

  .process-step em {
    display: none;
  }

  .process-step b { font-size: 8.6px; }
  .process-step small { font-size: 7.7px; }
  .answer-body p { font-size: 8.8px; }
  .answer-note { font-size: 7.6px; }

  .composer {
    min-height: 68px;
    margin: 0 10px 10px;
    font-size: 8px;
  }

  .source-browser {
    top: 42px;
    width: calc(100% - 64px);
  }

  .demo-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin: 18px 8px 0;
    font-size: 10px;
  }

  .principles {
    padding: 85px 20px 105px;
  }

  .principles-inner {
    grid-template-columns: 1fr;
  }

  .principles-inner > div,
  .principles-inner > div:nth-child(2) {
    min-height: 148px;
    padding: 22px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles-inner > div:last-child {
    border-bottom: 0;
  }

  .principles-inner span {
    margin-bottom: 26px;
  }

  .story-section {
    padding: 0 20px 90px;
  }

  .section-heading {
    margin-bottom: 65px;
  }

  .section-heading h2,
  .use-cases-head h2 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .section-heading > p:last-child,
  .use-cases-head > p:last-child {
    margin-top: 22px;
    font-size: 15px;
  }

  .story-row,
  .story-row--reverse {
    gap: 35px;
    margin-bottom: 96px;
  }

  .story-copy h3 {
    font-size: 37px;
  }

  .story-copy > p {
    margin-top: 21px;
    font-size: 15px;
    line-height: 1.75;
  }

  .feature-stage {
    min-height: 510px;
    margin: 0 -8px;
    padding: 28px 20px;
    border-radius: 21px;
  }

  .decomposition-shot {
    transform: translateY(5px);
  }

  .mini-window-bar {
    min-height: 46px;
  }

  .query-ribbon,
  .need-card {
    margin-right: 13px;
    margin-left: 13px;
  }

  .need-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
  }

  .need-card > em {
    display: none;
  }

  .context-shot {
    grid-template-columns: 86px minmax(215px, 1fr);
    height: 450px;
  }

  .context-inspector {
    display: none;
  }

  .context-sidebar {
    padding: 14px 6px;
  }

  .context-sidebar button {
    padding: 9px 6px;
  }

  .context-sidebar b { font-size: 7.5px; }
  .context-sidebar small { display: none; }
  .context-document { width: 88%; min-width: 200px; }

  .citation-shot {
    position: relative;
    display: block;
    height: 450px;
  }

  .citation-answer {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 74%;
  }

  .citation-browser {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 76%;
  }

  .citation-connector {
    display: none;
  }

  .citation-paper {
    min-height: 250px;
  }

  .use-cases {
    padding: 95px 20px;
  }

  .use-cases-head {
    margin-bottom: 50px;
  }

  .case-card {
    min-height: 245px;
    padding: 26px;
  }

  .case-card svg {
    width: 39px;
    height: 39px;
    margin: 32px 0 22px;
  }

  .case-card h3 {
    font-size: 21px;
  }

  .closing-cta {
    width: calc(100% - 24px);
    min-height: 520px;
    margin: 12px auto;
    padding: 38px 28px;
    border-radius: 22px;
  }

  .closing-cta h2 {
    font-size: clamp(45px, 13vw, 64px);
  }

  .closing-cta > div > p:last-child {
    font-size: 15px;
    line-height: 1.6;
  }

  .site-footer {
    min-height: 100px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .hero-stage {
    padding-right: 8px;
    padding-left: 8px;
  }

  .product-window {
    height: 555px;
  }

  .conversation-kicker,
  .depth-pill span {
    display: none;
  }

  .depth-pill {
    font-size: 7px;
  }

  .answer-note {
    grid-template-columns: 1fr;
  }

  .answer-note svg {
    display: none;
  }

  .composer > span {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feature-stage {
    min-height: 485px;
  }

  .need-card small {
    max-width: 190px;
  }

  .citation-answer {
    width: 84%;
  }

  .citation-browser {
    width: 83%;
  }

  .site-footer > span {
    display: none;
  }
}

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

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

  .product-window {
    transform: none !important;
  }
}
