:root {
  --lime: #c6ff34;
  --lime-2: #a8ef1f;
  --lime-soft: #ecffd0;
  --brown: #100f0c;
  --earth: #ede5d4;
  --earth-2: #b7ae9b;
  --earth-3: #7f7667;
  --ink: #f5efdf;
  --ink-2: #c9bfaa;
  --muted: #9d9382;
  --paper: #100f0c;
  --paper-2: #181611;
  --card: #171510;
  --line: #2c281f;
  --dark: #100f0c;
  --dark-2: #181611;
  --dark-3: #221f18;
  --blue: #007acc;
  --maxw: 1160px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--brown);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 15, 12, .82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--earth-2);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-small {
  min-height: 38px;
  padding: 10px 15px;
  font-size: 14px;
}

.btn-ink {
  background: #f6f1e5;
  color: #100f0c;
  border-color: #f6f1e5;
}

.btn-light {
  background: #f6f1e5;
  color: #100f0c;
  border-color: #f6f1e5;
  box-shadow: 0 16px 34px -28px rgba(0, 0, 0, .8);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: rgba(13, 16, 11, .18);
  box-shadow: 0 16px 36px -24px rgba(72, 100, 0, .9), inset 0 -2px 0 rgba(13, 16, 11, .13);
}

.btn-light:hover {
  background: #fffaf0;
}

.btn-lime:hover {
  background: var(--lime-2);
}

.btn-line,
.btn-dark-line {
  background: rgba(237, 229, 212, .13);
  color: var(--earth);
  border-color: rgba(237, 229, 212, .18);
}

.btn-dark-line {
  background: rgba(237, 229, 212, .08);
}

.vscode-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("assets/vscode.svg") center / contain no-repeat;
  mask: url("assets/vscode.svg") center / contain no-repeat;
}

.hero {
  padding: 104px 0 78px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow,
.kicker {
  margin: 0;
  color: #587400;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--lime-soft);
  border: 1px solid rgba(88, 116, 0, .16);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lime-2);
}

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

h1 {
  margin-bottom: 0;
  margin-top: 130px;
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(3.9rem, 6.6vw, 5.95rem);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 500;
  white-space: nowrap;
}

.lede {
  max-width: 820px;
  margin: 34px auto 0;
  color: var(--earth-2);
  font-size: clamp(1.18rem, 1.65vw, 1.38rem);
  line-height: 1.42;
}

.lede span {
  display: block;
  white-space: nowrap;
}

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

.microcopy {
  margin-top: 15px;
  color: var(--earth-3);
  font-size: 15px;
}

.hero-snapshot-wrap {
  position: relative;
  max-width: 1480px;
  margin-top: 78px;
  padding: 0 8px;
}

.snapshot-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #080806;
  border: 1px solid rgba(237, 229, 212, .14);
  box-shadow: 0 42px 120px -52px rgba(0, 0, 0, .85), 0 0 0 1px rgba(198, 255, 52, .05);
}

.snapshot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(246, 241, 229, .06);
}

/* window chrome — reads as a real editor; drop the screenshot under it */
.snapshot-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: rgba(16, 15, 12, .72);
  border-bottom: 1px solid rgba(237, 229, 212, .08);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 12px;
}

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

.snapshot-traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34302636;
  border: 1px solid rgba(237, 229, 212, .14);
}

.snapshot-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--earth-2);
}

.snapshot-tab .vscode-icon {
  width: 15px;
  height: 15px;
  background: var(--earth-2);
}

.snapshot-run {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(198, 255, 52, .22);
  color: var(--lime);
  font-size: 11px;
  letter-spacing: .04em;
}

.snapshot-run i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 255, 52, .5);
  animation: runPulse 1.6s ease-out infinite;
}

.snapshot-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 44px 24px 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(198, 255, 52, .05), transparent 55%),
    linear-gradient(90deg, rgba(237, 229, 212, .03) 1px, transparent 1px),
    linear-gradient(rgba(237, 229, 212, .03) 1px, transparent 1px),
    #0b0a08;
  background-size: auto, 40px 40px, 40px 40px;
  color: var(--ink-2);
  font-family: var(--sans);
  text-align: center;
}

.snapshot-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  opacity: .9;
}

.snapshot-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.snapshot-line {
  max-width: 36ch;
  color: var(--earth);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.4;
}

.snapshot-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--earth-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.snapshot-cue i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-2);
}

.product-card {
  min-width: 0;
}

.editor-shell {
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: var(--dark);
  border: 1px solid #2e3828;
  box-shadow: 0 40px 90px -45px rgba(13, 16, 11, .72);
}

.editor-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
  background: var(--dark-2);
  border-bottom: 1px solid #2e3828;
  color: #a7b09d;
  font-family: var(--mono);
  font-size: 12px;
}

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

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #3a4434;
}

.editor-title {
  margin: 0 auto;
}

.editor-body {
  display: grid;
  grid-template-columns: 38px 118px minmax(0, 1fr) 214px;
  min-height: 462px;
}

.activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 15px;
  background: var(--dark-2);
  border-right: 1px solid #2e3828;
}

.activity span {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1px solid #64705c;
}

.activity .active {
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-family: var(--mono);
  font-weight: 700;
}

.files {
  background: #171c14;
  border-right: 1px solid #2e3828;
  padding: 16px 10px;
  color: #a8b19d;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
}

.files-label {
  margin-bottom: 8px;
  color: #69735e;
  font-size: 10px;
  letter-spacing: .12em;
}

.indent {
  padding-left: 14px;
}

.active-file {
  margin-left: -5px;
  padding-left: 19px;
  border-radius: 6px;
  background: rgba(198, 255, 52, .1);
  color: var(--lime);
}

.code {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tabs {
  height: 38px;
  display: flex;
  background: #171c14;
  border-bottom: 1px solid #2e3828;
  color: #8e9985;
  font-family: var(--mono);
  font-size: 11px;
}

.tabs span {
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-right: 1px solid #2e3828;
}

.tabs span:first-child {
  color: #edf8dc;
  border-top: 2px solid var(--lime);
  background: var(--dark);
}

.code-lines {
  flex: 1;
  padding: 26px 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2.05;
  color: #e9f0df;
}

.code-lines div {
  display: grid;
  grid-template-columns: 32px 17px minmax(0, 1fr);
  padding: 0 12px 0 0;
  background: rgba(198, 255, 52, .06);
}

.code-lines span {
  color: #65715d;
  text-align: right;
  padding-right: 9px;
  user-select: none;
}

.code-lines b {
  color: var(--lime);
}

.code-lines code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal {
  height: 124px;
  border-top: 1px solid #2e3828;
  background: #0d100b;
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: #dce8cf;
}

.terminal span {
  color: var(--lime);
}

.terminal .bad {
  color: #ff8f7a;
}

.terminal .good {
  color: var(--lime);
}

.agent {
  display: flex;
  flex-direction: column;
  background: var(--dark-2);
  border-left: 1px solid #2e3828;
  color: #e8f1dd;
}

.agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 13px;
  border-bottom: 1px solid #2e3828;
}

.agent-head span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
}

.task {
  padding: 14px 13px;
  border-bottom: 1px solid #2e3828;
  color: #cdd8c0;
  font-size: 12px;
}

.run-list {
  flex: 1;
  margin: 0;
  padding: 16px 13px 16px 31px;
  color: #aab5a0;
  font-size: 12px;
}

.run-list li {
  margin-bottom: 13px;
}

.run-list .done {
  color: #dce8cf;
}

.run-list .active {
  color: var(--lime);
}

.complete {
  margin: 0 13px 13px;
  padding: 13px;
  border-radius: 10px;
  background: rgba(198, 255, 52, .14);
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .52);
}

.strip-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 34px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
}

.strip-inner span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--lime-2);
}

/* ============ PRODUCT FLOW / STUDENTS EXHIBIT ============ */
.product-flow {
  --accent: var(--lime);
  --accent-soft: rgba(198, 255, 52, .16);
  padding: 130px 0 138px;
  background: var(--brown);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.product-flow[data-cluster-view="code"] {
  --accent: #5cc6ff;
  --accent-soft: rgba(92, 198, 255, .16);
}

.product-flow[data-cluster-view="research"] {
  --accent: #f2b057;
  --accent-soft: rgba(242, 176, 87, .16);
}

.ascii-source {
  display: none;
}

.ascii-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: .92;
  pointer-events: none;
}

/* atmospheric veil: keeps copy legible without hiding the ASCII.
   A neutral local-reveal (no colour orb) lifts the scene under the cursor,
   while a left-side scrim protects the headline + cards. */
.ascii-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 15, 12, .92) 0%, rgba(16, 15, 12, .64) 34%, rgba(16, 15, 12, .28) 62%, rgba(16, 15, 12, .5) 100%),
    radial-gradient(135% 90% at 50% 0%, transparent 30%, rgba(16, 15, 12, .55) 78%),
    linear-gradient(180deg, var(--brown), rgba(16, 15, 12, .2) 30%, rgba(16, 15, 12, .85));
}

.exhibit {
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.exhibit-head {
  max-width: 660px;
  margin-bottom: 40px;
}

.exhibit-head .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(237, 229, 212, .16);
  background: rgba(12, 11, 9, .5);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.exhibit-head h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
}

.exhibit-head p {
  margin: 0;
  max-width: 560px;
  color: var(--earth-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cluster-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 30px;
  border-radius: 16px;
  border: 1px solid rgba(237, 229, 212, .1);
  background: rgba(20, 18, 14, .6);
  backdrop-filter: blur(8px);
}

.cluster-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--earth-2);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.cluster-tabs button:hover {
  color: var(--ink);
}

.cluster-tabs .active {
  background: var(--ink);
  color: #100f0c;
}

.mini-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: .85;
}

.office-icon { border-radius: 50%; }
.code-icon { transform: rotate(45deg); }
.research-icon { border-radius: 2px; border-style: dashed; }

/* ---- stage layout: input -> spine -> artifact ---- */
.exhibit-stage {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) auto minmax(440px, 1.35fr);
  align-items: center;
  gap: 28px;
  position: relative;
}

.flow-input {
  display: grid;
  gap: 16px;
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--earth-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.prompt-card,
.files-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(237, 229, 212, .1);
  background: rgba(18, 17, 13, .74);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, .9);
}

.prompt-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.55;
  font-family: var(--serif);
}

.files-card {
  position: relative;
}

.file-stack {
  position: relative;
  height: 220px;
  isolation: isolate;
}

.file-card {
  position: absolute;
  width: 230px;
  min-height: 124px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(237, 229, 212, .16);
  background: linear-gradient(160deg, #211f18, #14130f);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  box-shadow: 0 22px 48px -30px rgba(0, 0, 0, .95);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease, border-color .32s ease;
}

.file-card img {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 9px;
  background: rgba(246, 241, 229, .07);
  border: 1px solid rgba(237, 229, 212, .12);
}

.file-card strong {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.25;
}

.file-card small {
  color: var(--earth-3);
  font-family: var(--mono);
  font-size: 11px;
}

.file-0 { left: 0; top: 0; transform: rotate(-5deg); z-index: 3; }
.file-1 { left: 50%; top: 36px; transform: translateX(-50%) rotate(2deg); z-index: 2; }
.file-2 { right: 0; bottom: 4px; transform: rotate(5deg); z-index: 1; }

.file-stack:hover .file-0 {
  transform: translate(-14px, -22px) rotate(-9deg);
  border-color: var(--accent);
  box-shadow: 0 34px 72px -34px rgba(0, 0, 0, .95);
}
.file-stack:hover .file-1 {
  transform: translateX(-50%) translateY(-6px) rotate(0deg) scale(1.04);
  border-color: rgba(237, 229, 212, .3);
}
.file-stack:hover .file-2 {
  transform: translate(14px, 18px) rotate(9deg);
  border-color: rgba(237, 229, 212, .3);
  box-shadow: 0 34px 72px -34px rgba(0, 0, 0, .95);
}

.stack-hint {
  display: block;
  margin-top: 4px;
  text-align: right;
  color: var(--earth-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  opacity: .7;
}

/* ---- connector spine ---- */
.flow-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 260px;
  justify-content: center;
}

.spine-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(237, 229, 212, .25), transparent);
}

.run-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(237, 229, 212, .14);
  background: rgba(12, 11, 9, .85);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.run-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: runPulse 1.6s ease-out infinite;
}

@keyframes runPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- artifact card (the result) ---- */
.artifact-card {
  padding: 30px;
  border-radius: 20px;
  background: #faf8f3;
  color: #1a1813;
  border: 1px solid rgba(20, 18, 14, .07);
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .85), 0 2px 10px -6px rgba(0, 0, 0, .4);
  position: relative;
  z-index: 1;
}

.artifact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(150deg, var(--accent), transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .28;
  pointer-events: none;
}

@keyframes artifactSwap {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.artifact-card.swap {
  animation: artifactSwap .4s cubic-bezier(.22, 1, .36, 1);
}

.artifact-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(20, 18, 14, .08);
}

.artifact-kind {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #100f0c;
  color: #f6f1e5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.artifact-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  letter-spacing: -.02em;
}

.artifact-head p {
  margin: 5px 0 0;
  color: #625a4e;
  font-size: 13px;
}

.trust-logos {
  display: flex;
  gap: 7px;
}

.trust-logos img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  border: 1px solid rgba(20, 18, 14, .07);
}

.artifact-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
}

.artifact-metrics div {
  padding: 2px 18px;
}

.artifact-metrics div + div {
  border-left: 1px solid rgba(20, 18, 14, .09);
}

.artifact-metrics div:first-child {
  padding-left: 2px;
}

.artifact-metrics span {
  display: block;
  color: #8c8273;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.artifact-metrics strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: -.02em;
}

.artifact-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(20, 18, 14, .08);
  border-bottom: 1px solid rgba(20, 18, 14, .08);
}

.artifact-timeline span {
  position: relative;
  padding-left: 18px;
  color: #6b6354;
  font-size: 12.5px;
  font-weight: 550;
}

.artifact-timeline span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #2f9f75;
}

.artifact-timeline .live {
  color: #1a1813;
  font-weight: 650;
}

.artifact-timeline .live::before {
  background: #1a1813;
  box-shadow: 0 0 0 4px rgba(26, 24, 19, .1);
}

.artifact-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.artifact-output div {
  min-height: 64px;
}

.artifact-output div:first-child {
  padding-right: 22px;
  border-right: 1px solid rgba(20, 18, 14, .08);
}

.artifact-output span {
  display: block;
  margin-bottom: 8px;
  color: #8c8273;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.artifact-output strong {
  display: block;
  color: #2b261f;
  font-weight: 550;
  font-size: 14px;
  line-height: 1.4;
}

/* ---- per-cluster preview panes ---- */
.artifact-preview {
  min-height: 220px;
}

.preview-pane {
  display: none;
}

.product-flow[data-cluster-view="office"] .preview-office,
.product-flow[data-cluster-view="code"] .preview-code,
.product-flow[data-cluster-view="research"] .preview-research {
  display: grid;
}

/* office: bars + donut */
.preview-office {
  grid-template-columns: 1.25fr .85fr;
  gap: 12px;
}

.bar-chart,
.donut-chart {
  min-height: 200px;
  border: 1px solid rgba(20, 18, 14, .08);
  border-radius: 12px;
  background: #fcfaf5;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 20px;
}

.bar-chart span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: #8cd8bd;
}

.bar-chart span:nth-child(1) { height: 32%; }
.bar-chart span:nth-child(2) { height: 46%; }
.bar-chart span:nth-child(3) { height: 58%; }
.bar-chart span:nth-child(4) { height: 73%; }
.bar-chart span:nth-child(5) { height: 91%; background: #2f9f75; }

.donut-chart {
  display: grid;
  place-items: center;
}

.donut-chart::before {
  content: "";
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#2f9f75 0 38%, #3a8edb 38% 62%, #5a4bb7 62% 86%, #c47b13 86% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 43%, #000 44%);
  mask: radial-gradient(circle, transparent 0 43%, #000 44%);
}

/* code: diff + tests */
.preview-code {
  gap: 12px;
}

.code-diff {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #14130f;
  color: #d7cfbe;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
}

.code-diff .ln { display: block; padding: 0 6px; border-radius: 4px; }
.code-diff .add { background: rgba(92, 198, 255, .14); color: #bfe6ff; }
.code-diff .rem { background: rgba(220, 110, 90, .14); color: #e7b3a6; }

.test-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.test-row .pass {
  padding: 9px 14px;
  border-radius: 10px;
  background: #e4f3ea;
  color: #1f7a52;
  font-weight: 700;
  font-size: 13px;
}

.test-row .pill {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(20, 18, 14, .08);
  color: #625a4e;
  font-family: var(--mono);
  font-size: 12px;
}

/* research: source list + claim map */
.preview-research {
  grid-template-columns: 1.3fr .7fr;
  gap: 12px;
}

.source-list {
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(20, 18, 14, .08);
  border-radius: 12px;
  background: #fcfaf5;
}

.source-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #2b261f;
  font-size: 13px;
}

.source-list li + li { border-top: 1px solid rgba(20, 18, 14, .06); }

.source-list li i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.source-list li em {
  margin-left: auto;
  color: #8a8071;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.claim-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(20, 18, 14, .08);
  border-radius: 12px;
  background: #fcfaf5;
}

.claim-map span {
  border-radius: 6px;
  background: #ece7da;
  min-height: 26px;
}

.claim-map span:nth-child(3n) { background: var(--accent); opacity: .6; }

.faq-section {
  padding: 120px 0;
  background: var(--brown);
}

.faq-wrap {
  max-width: 760px;
  text-align: center;
}

.faq-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 2px solid #f6f1e5;
  border-radius: 50%;
  color: #f6f1e5;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.faq-wrap h2,
.rundown-head h2 {
  max-width: none;
  margin: 0;
  color: #f6f1e5;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.045em;
}

.faq-list {
  margin-top: 86px;
  border-top: 1px solid rgba(237, 229, 212, .18);
  text-align: left;
}

.faq-list details {
  border-bottom: 1px solid rgba(237, 229, 212, .18);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 8px;
  color: #f6f1e5;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--earth-2);
  font-family: var(--sans);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: -10px 8px 28px;
  color: var(--earth-2);
  line-height: 1.6;
}

.technical-rundown {
  padding: 122px 0 132px;
  background: #12110e;
  border-top: 1px solid rgba(237, 229, 212, .08);
}

.rundown-head {
  text-align: center;
}

.rundown-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 229, .8);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 5px, rgba(246, 241, 229, .9) 6px 7px, transparent 8px),
    linear-gradient(35deg, transparent 44%, rgba(246, 241, 229, .75) 45% 46%, transparent 47%),
    linear-gradient(100deg, transparent 44%, rgba(246, 241, 229, .75) 45% 46%, transparent 47%),
    linear-gradient(155deg, transparent 44%, rgba(246, 241, 229, .75) 45% 46%, transparent 47%);
}

.rundown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 82px auto 0;
}

.rundown-card {
  position: relative;
  min-height: 198px;
  padding: 34px 34px 28px;
  border-radius: 22px;
  border: 1px solid rgba(237, 229, 212, .12);
  background: #1a1815;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.rundown-card::after {
  content: "↗";
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--earth-3);
  font-size: 16px;
  transition: color .18s ease, transform .18s ease;
}

.rundown-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 229, 212, .24);
  background: #1e1c18;
}

.rundown-card:hover::after {
  color: var(--lime);
  transform: translate(2px, -2px);
}

.rundown-card h3 {
  margin: 0;
  max-width: 14ch;
  color: #f6f1e5;
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.rundown-card span {
  color: var(--earth-3);
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

h2 {
  margin: 14px 0 0;
  max-width: 12ch;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: .96;
  letter-spacing: -.045em;
}

.split > p,
.section-head > p,
.docs-grid p,
.download-card p {
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.62;
}

.loop {
  background: var(--dark);
  color: white;
}

.loop .kicker {
  color: var(--lime);
}

.loop .section-head p,
.loop .steps p {
  color: #b8c5ad;
}

.section-head {
  max-width: 720px;
}

.section-head.compact {
  max-width: 660px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.steps article,
.use-grid article {
  min-height: 230px;
  padding: 24px;
  border-radius: 18px;
}

.steps article {
  background: var(--dark-2);
  border: 1px solid #2d3827;
}

.num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}

h3 {
  margin: 22px 0 10px;
  font-size: 1.24rem;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.cards {
  background: var(--paper-2);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.use-grid article {
  background: var(--card);
  border: 1px solid var(--line);
}

.use-grid p {
  color: var(--muted);
  font-size: 14.5px;
}

.docs-band {
  background: #fafd37;
}

.docs-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.docs-grid h2 {
  max-width: 13ch;
}

.docs-grid .btn {
  margin-top: 18px;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.doc-preview {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(13, 16, 11, .18);
  box-shadow: 0 32px 70px -45px rgba(13, 16, 11, .65);
}

.doc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  background: #eef6d9;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.doc-sidebar span {
  padding: 8px 10px;
  border-radius: 9px;
}

.doc-sidebar .on {
  background: var(--ink);
  color: white;
}

.doc-page {
  padding: 30px;
}

.doc-k {
  color: #587400;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.doc-page h3 {
  margin-top: 10px;
  font-size: 2rem;
}

.mini-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.mini-diagram span {
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--lime-soft);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.download {
  padding: 120px 0 132px;
  border-top: 1px solid rgba(237, 229, 212, .08);
}

.download-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.download-head h2 {
  max-width: none;
  margin: 14px auto 16px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
}

.download-head p {
  margin: 0 auto;
  max-width: 48rem;
  color: var(--earth-2);
  font-size: 1.06rem;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.download-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(237, 229, 212, .1);
  background: #15140f;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.download-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 229, 212, .2);
  background: #18160f;
}

.tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(237, 229, 212, .14);
  background: rgba(246, 241, 229, .04);
}

.tile-icon svg {
  width: 24px;
  height: 24px;
}

.tile-icon-web img {
  width: 24px;
  height: 24px;
  opacity: .9;
}

.download-tile-web {
  position: relative;
}

.tile-tag {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(198, 255, 52, .24);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tile-icon-desktop {
  position: relative;
}

.tile-icon-desktop::before {
  content: "";
  width: 24px;
  height: 17px;
  border: 1.6px solid var(--lime);
  border-radius: 4px;
}

.tile-icon-desktop::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
}

.download-tile h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}

.download-tile p {
  margin: 0;
  flex: 1;
  color: var(--earth-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.download-tile .btn {
  width: 100%;
  margin-top: 6px;
}

.tile-note {
  width: 100%;
  text-align: center;
  color: var(--earth-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--brown);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--earth-3);
  font-size: 14px;
}

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split,
  .docs-grid,
  .download-card {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

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

  .hero-grid {
    gap: 38px;
  }

  h1 {
    max-width: 9.2ch;
  }

  .product-card {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .editor-shell {
    min-width: 900px;
  }

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

  .cluster-tabs {
    overflow-x: auto;
    max-width: 100%;
  }

  .exhibit-stage {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-spine {
    flex-direction: row;
    min-height: 0;
    height: auto;
    width: 100%;
    padding: 18px 0;
  }

  .spine-line {
    width: auto;
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(237, 229, 212, .25), transparent);
  }

  .file-stack {
    max-width: 430px;
    margin: 0 auto;
  }

  .download-actions {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .steps,
  .use-grid,
  .doc-preview,
  .mini-diagram {
    grid-template-columns: 1fr;
  }

  .product-flow {
    padding: 76px 0 88px;
  }

  .prompt-card,
  .files-card,
  .artifact-card {
    padding: 20px;
  }

  .file-stack {
    height: 300px;
  }

  .file-card {
    width: min(240px, 74vw);
  }

  .file-1 { top: 40px; }

  .artifact-output,
  .artifact-timeline,
  .preview-office,
  .preview-research {
    grid-template-columns: 1fr;
  }

  .artifact-head {
    flex-direction: column;
  }

  .doc-sidebar {
    display: none;
  }

  .section,
  .download {
    padding: 68px 0;
  }

  .download-card {
    padding: 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
