:root {
  color-scheme: light;
  --bg: oklch(0.982 0.012 178);
  --surface: oklch(1 0 0);
  --surface-soft: oklch(0.966 0.011 178);
  --surface-warm: oklch(0.967 0.022 58);
  --surface-blue: oklch(0.93 0.04 225);
  --surface-mint: oklch(0.92 0.048 168);
  --surface-peach: oklch(0.925 0.052 43);
  --surface-lavender: oklch(0.94 0.035 292);
  --ink: oklch(0.22 0.018 235);
  --muted: oklch(0.47 0.018 235);
  --line: oklch(0.88 0.014 210);
  --teal: oklch(0.45 0.085 187);
  --teal-dark: oklch(0.34 0.075 190);
  --teal-soft: oklch(0.91 0.042 184);
  --warm: oklch(0.66 0.078 55);
  --shadow: 0 8px 18px oklch(0.4 0.02 230 / 0.08);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, oklch(0.975 0.018 178) 0, var(--bg) 420px),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: oklch(0.97 0.006 220);
  padding: 0.08rem 0.32rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid oklch(0.9 0.012 205 / 0.75);
  background: oklch(0.982 0.012 178 / 0.9);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 760;
  text-decoration: none;
}

.nav-links {
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  padding: clamp(72px, 11vw, 132px) 16px 56px;
  background:
    linear-gradient(120deg, oklch(0.94 0.035 170), oklch(0.975 0.03 70) 48%, oklch(0.95 0.032 225));
  border-bottom: 1px solid oklch(0.83 0.03 190);
}

.hero-inner,
.section-heading {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--teal-dark);
  font-size: 0.98rem;
  font-weight: 680;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7.5vw, 6.2rem);
  line-height: 0.95;
  font-weight: 560;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  font-weight: 560;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-copy,
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.mission-strip {
  width: min(900px, calc(100% - 32px));
  margin: clamp(44px, 6vw, 72px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.mission-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.72rem 0.8rem;
  text-align: center;
  font-weight: 650;
}

.mission-strip span:nth-child(1) {
  background: oklch(0.95 0.032 168);
}

.mission-strip span:nth-child(2) {
  background: oklch(0.965 0.032 70);
}

.mission-strip span:nth-child(3) {
  background: oklch(0.952 0.03 225);
}

.mission-strip span:nth-child(4) {
  background: oklch(0.958 0.028 292);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.15rem;
  font-weight: 680;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 3px;
}

.button.primary {
  border: 1px solid var(--teal-dark);
  background: var(--teal-dark);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.product-stage {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.preview-heading {
  width: min(620px, 100%);
  margin: 0 auto 1.25rem;
  text-align: center;
}

.preview-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.studio-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.studio-topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0 1.1rem;
  font-weight: 680;
}

.status-pill,
.badge,
.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.studio-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 430px;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-right: 1px solid var(--line);
  background: oklch(0.975 0.009 185);
  padding: 1rem;
}

.rail-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.72rem 0.8rem;
  color: var(--muted);
  font-weight: 650;
}

.rail-item.active {
  border-color: oklch(0.78 0.044 185);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.workspace-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 1rem;
  padding: 1rem;
}

.tool-panel,
.assistant-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
}

.tool-panel {
  min-height: 170px;
}

.tool-panel + .tool-panel {
  margin-top: 1rem;
}

.panel-label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 720;
}

.quiet-line {
  display: block;
  width: 92%;
  height: 10px;
  margin-top: 1.1rem;
  border-radius: 999px;
  background: oklch(0.91 0.01 220);
}

.quiet-line.short {
  width: 56%;
  margin-top: 0.55rem;
}

.chunk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.chunk-row span {
  border: 1px solid oklch(0.83 0.03 185);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: oklch(0.96 0.017 185);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 650;
}

.assistant-preview {
  align-self: stretch;
  background:
    linear-gradient(180deg, oklch(0.985 0.007 92), oklch(0.966 0.012 185));
}

.assistant-preview p {
  width: min(300px, 100%);
  margin: 2.5rem 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.95rem;
  color: var(--ink);
  font-weight: 560;
}

.assistant-preview .chat-pair {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0.8rem;
}

.assistant-preview .chat-pair p {
  margin: 0;
}

.assistant-preview .user-bubble {
  justify-self: end;
  background: var(--teal-dark);
  color: white;
}

.product-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 48px);
  background:
    linear-gradient(135deg, oklch(0.98 0.018 165), oklch(0.99 0.015 72) 50%, oklch(0.97 0.02 225));
}

.product-hero .hero-inner {
  width: min(860px, 100%);
}

.product-hero h1 {
  max-width: 860px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
}

.product-preview {
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 104px) 0;
}

.about-section,
.library-section,
.setup-section,
#download {
  background: var(--section-bg, transparent);
  box-shadow: 0 0 0 100vmax var(--section-bg, transparent);
  clip-path: inset(0 -100vmax);
}

.about-section {
  --section-bg: oklch(0.935 0.035 168);
}

#products,
#assistant {
  --section-bg: oklch(0.965 0.032 72);
  background: var(--section-bg);
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
}

.library-section,
.setup-section {
  --section-bg: oklch(0.93 0.04 225);
}

#download {
  --section-bg: oklch(0.95 0.042 43);
}

.product-download {
  background: oklch(0.972 0.024 72);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(300px, 1.08fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.product-card,
.notes-panel,
.step-card,
.library-item,
.about-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.about-grid article {
  padding: 1.15rem;
}

.about-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-card {
  padding: 1.15rem;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(0.79 0.046 185);
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.product-mark svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-mark path,
.step-icon path {
  fill: none;
}

.product-card-header p,
.fine-print,
.notes-panel p,
.library-item p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.05rem;
}

.tag-row span {
  border: 1px solid oklch(0.82 0.035 185);
  border-radius: 999px;
  background: oklch(0.965 0.017 185);
  color: var(--teal-dark);
  padding: 0.26rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 680;
}

.clean-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
}

.product-actions {
  display: grid;
  gap: 0.6rem;
}

.fine-print {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.notes-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--surface-warm);
}

.notes-panel > div {
  padding: 1.15rem;
}

.notes-panel > div + div {
  border-left: 1px solid var(--line);
}

.setup-section {
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.step-card {
  padding: 1.15rem;
}

.step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.step-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(0.82 0.035 185);
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.step-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-number {
  display: inline-flex;
  color: var(--warm);
  font-weight: 760;
}

.step-card ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.integration-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: -0.1rem 0 0.85rem;
  border: 1px solid oklch(0.78 0.046 185);
  border-radius: 999px;
  background: oklch(0.985 0.011 180);
  color: var(--teal-dark);
  padding: 0.28rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 720;
  text-decoration: none;
}

.ollama-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 1.7px solid currentColor;
  border-radius: 50% 50% 44% 44%;
  position: relative;
}

.ollama-mark::before,
.ollama-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: currentColor;
}

.ollama-mark::before {
  left: 4px;
}

.ollama-mark::after {
  right: 4px;
}

.library-section {
  border-top: 1px solid var(--line);
}

.library-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.library-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.15rem;
}

.library-item span {
  color: var(--teal-dark);
  font-weight: 760;
}

.library-item p {
  margin-bottom: 0;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: oklch(0.955 0.028 168);
  box-shadow: 0 0 0 100vmax oklch(0.955 0.028 168);
  clip-path: inset(0 -100vmax);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.product-download .product-card,
.product-download .notes-panel,
.preview-section .studio-frame,
.setup-section .step-card {
  border-radius: 18px;
}

.product-download .feature-layout {
  align-items: stretch;
}

.product-download .notes-panel > div {
  padding: 1.35rem;
}

.preview-section {
  background: oklch(0.965 0.032 72);
}

.preview-section .studio-frame {
  overflow: hidden;
}

.setup-section {
  background: oklch(0.94 0.034 225);
}

.site-footer span {
  color: var(--ink);
  font-weight: 700;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .brand {
    width: 100%;
  }

  .hero {
    padding-top: 58px;
  }

  .studio-layout,
  .workspace-preview,
  .feature-layout,
  .steps,
  .notes-panel,
  .library-item,
  .about-grid,
  .mission-strip,
  .product-preview {
    grid-template-columns: 1fr;
  }

  .rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notes-panel > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  #hero-title {
    font-size: clamp(2.45rem, 11.2vw, 3.25rem);
  }

  .product-hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
  }

  .studio-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* v6 homepage: rounded resource hub feel without new deps. */
body {
  background:
    radial-gradient(circle at 18% 8%, oklch(0.92 0.04 168), transparent 28%),
    radial-gradient(circle at 82% 12%, oklch(0.94 0.032 225), transparent 30%),
    oklch(0.982 0.01 180);
}

.site-header {
  background: oklch(0.99 0.007 180 / 0.82);
}

.hero {
  padding: clamp(38px, 6vw, 72px) 16px 32px;
  background: transparent;
  border-bottom: 0;
}

.hero-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  border: 1px solid oklch(0.84 0.025 190);
  border-radius: 28px;
  background:
    linear-gradient(135deg, oklch(0.98 0.018 165), oklch(0.99 0.015 72) 50%, oklch(0.97 0.02 225)),
    var(--surface);
  padding: clamp(28px, 6vw, 64px);
}

.hero-inner {
  text-align: left;
}

.hero-inner h1 {
  margin-left: 0;
  font-size: clamp(3.2rem, 5.2vw, 4.8rem);
}

.hero-actions {
  justify-content: flex-start;
}

.hero-visual {
  border: 1px solid oklch(0.82 0.028 200);
  border-radius: 22px;
  background: oklch(0.995 0.004 190 / 0.82);
  padding: 18px;
}

.visual-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.visual-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: oklch(0.72 0.07 185);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.visual-card {
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  border: 1px solid oklch(0.84 0.026 200);
  border-radius: 18px;
  background: oklch(0.97 0.018 205);
  padding: 14px;
  color: var(--ink);
  font-weight: 720;
}

.visual-card.strong {
  background: oklch(0.90 0.045 168);
}

.visual-card.wide {
  grid-column: 1 / -1;
  min-height: 76px;
  background: oklch(0.955 0.035 72);
}

.mission-strip {
  grid-column: 1 / -1;
  width: 100%;
  margin: 6px 0 0;
}

.mission-strip span {
  border-radius: 16px;
}

.section {
  width: min(1180px, calc(100% - 32px));
}

.rounded-section {
  border: 1px solid oklch(0.84 0.022 200);
  border-radius: 28px;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: clamp(46px, 7vw, 82px) clamp(18px, 4vw, 48px);
  box-shadow: none;
  clip-path: none;
}

.about-section {
  background: oklch(0.94 0.034 168);
}

.product-market {
  background: oklch(0.972 0.024 72);
}

.library-section {
  background: oklch(0.94 0.034 225);
}

#products,
#assistant,
.about-section,
.library-section,
.setup-section,
#download {
  box-shadow: none;
  clip-path: none;
}

.feature-layout {
  grid-template-columns: minmax(320px, 0.85fr) minmax(320px, 1.15fr);
  gap: 20px;
}

.product-card,
.notes-panel,
.about-grid article,
.library-item {
  border-radius: 18px;
}

.product-card {
  padding: 22px;
}

.notes-panel {
  overflow: hidden;
}

.library-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.library-item {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.site-footer {
  border-top: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

@media (max-width: 860px) {
  .hero-shell {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 24px;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .mission-strip,
  .feature-layout,
  .notes-panel,
  .visual-grid,
  .library-list {
    grid-template-columns: 1fr;
  }

  .rounded-section {
    border-radius: 22px;
  }

  .product-hero {
    margin-top: 18px;
  }
}

/* v8 SkillsMP-style resource directory layer. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-panel {
  display: flex;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  border: 1px solid oklch(0.82 0.026 200);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.45rem;
}

.search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.72rem 0.9rem;
  color: var(--ink);
  font: inherit;
}

.search-panel input:focus {
  outline: none;
}

.search-panel button {
  border: 1px solid var(--teal-dark);
  border-radius: 999px;
  background: var(--teal-dark);
  color: white;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 720;
}

.stats-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-top: 8px;
}

.stats-strip span {
  border: 1px solid oklch(0.84 0.024 200);
  border-radius: 18px;
  background: oklch(0.99 0.006 180 / 0.82);
  padding: 0.85rem;
  text-align: center;
  color: var(--muted);
}

.stats-strip strong {
  color: var(--teal-dark);
}

.catalog-section {
  background: oklch(0.955 0.025 178);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.8rem 0 1.2rem;
}

.filter-row span {
  border: 1px solid oklch(0.82 0.028 190);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.48rem 0.85rem;
  color: var(--muted);
  font-weight: 680;
}

.filter-row .active {
  background: var(--teal-dark);
  color: white;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.catalog-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid oklch(0.84 0.024 200);
  border-radius: 20px;
  background: var(--surface);
  padding: 1.15rem;
}

.catalog-card.featured {
  background: linear-gradient(180deg, oklch(0.99 0.006 180), oklch(0.94 0.03 168));
}

.catalog-card h3 {
  margin-top: 1.1rem;
  font-size: 1.25rem;
}

.catalog-card p {
  color: var(--muted);
}

.catalog-card .button {
  margin-top: auto;
}

.badge.soft {
  background: oklch(0.96 0.02 225);
}

.note-panel {
  max-width: 760px;
  margin: 2rem auto 0;
  border: 1px solid oklch(0.82 0.028 190);
  border-radius: 22px;
  background: oklch(0.99 0.006 85 / 0.78);
  padding: 1.25rem 1.35rem;
}

.note-panel h3,
.faq-grid h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.note-panel p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.faq-section {
  background: oklch(0.955 0.022 198);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.faq-grid article {
  border: 1px solid oklch(0.82 0.026 200);
  border-radius: 20px;
  background: var(--surface);
  padding: 1.2rem;
}

.browser-hero {
  background:
    linear-gradient(135deg, oklch(0.98 0.018 165), oklch(0.965 0.025 225) 52%, oklch(0.985 0.02 72));
}

.browser-app-section,
.browser-callout {
  background: oklch(0.955 0.025 178);
}

.browser-app {
  overflow: hidden;
  border: 1px solid oklch(0.82 0.026 200);
  border-radius: 24px;
  background: var(--surface);
}

.browser-app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 3vw, 28px);
}

.browser-app-topbar h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.browser-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 640px;
}

.browser-sidebar {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  border-right: 1px solid var(--line);
  background: oklch(0.972 0.014 185);
  padding: 1rem;
}

.browser-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  padding: 0.8rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.browser-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: oklch(0.91 0.026 185);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 780;
}

.browser-step.active {
  border-color: oklch(0.78 0.044 185);
  background: var(--surface);
  color: var(--ink);
}

.browser-main {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
}

.browser-panel {
  display: none;
}

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

.panel-heading {
  max-width: 760px;
  margin-bottom: 1.3rem;
}

.panel-heading h3 {
  margin-bottom: 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 560;
  line-height: 1.05;
}

.panel-heading p {
  color: var(--muted);
}

.file-surface,
.artifact-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: oklch(0.99 0.006 180);
  padding: 1.2rem;
}

.file-surface strong,
.artifact-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.file-surface p,
.artifact-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.file-meta,
.privacy-strip,
.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.file-meta {
  justify-content: flex-end;
}

.file-meta span,
.privacy-strip span {
  border: 1px solid oklch(0.82 0.035 185);
  border-radius: 999px;
  background: oklch(0.965 0.017 185);
  color: var(--teal-dark);
  padding: 0.34rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 720;
}

.privacy-strip {
  margin: 1rem 0 1.25rem;
}

.pipeline-grid,
.source-grid,
.handoff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.35rem;
}

.pipeline-grid article,
.source-card,
.handoff-grid article {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 1rem;
}

.pipeline-grid article {
  position: relative;
  overflow: hidden;
}

.pipeline-grid article::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 8px;
  border-radius: 999px;
  background: oklch(0.9 0.012 220);
}

.pipeline-grid article.complete {
  border-color: oklch(0.72 0.062 168);
  background: oklch(0.975 0.02 168);
}

.pipeline-grid article.complete::after {
  background: var(--teal-dark);
}

.pipeline-grid span,
.source-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 780;
}

.pipeline-grid p,
.source-card p,
.handoff-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.artifact-panel {
  margin-top: 1rem;
  background: oklch(0.985 0.018 72);
}

.prompt-row {
  margin-bottom: 1rem;
}

.chat-window {
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, oklch(0.99 0.006 85), oklch(0.972 0.014 185));
  padding: 1rem;
}

.assistant-empty {
  color: var(--muted);
}

.chat-bubble {
  max-width: min(680px, 90%);
  border-radius: 18px;
  padding: 1rem;
}

.chat-bubble.user {
  justify-self: end;
  background: var(--teal-dark);
  color: white;
}

.chat-bubble.assistant {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--surface);
}

.chat-bubble.assistant p {
  margin-bottom: 0.8rem;
}

.source-jump {
  margin-top: 0.85rem;
}

.source-card {
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.source-card:hover,
.source-card:focus-visible {
  border-color: oklch(0.72 0.062 168);
}

.source-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: oklch(0.22 0.018 235 / 0.48);
  padding: 1rem;
}

.source-modal[hidden] {
  display: none;
}

.source-modal-card {
  position: relative;
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: clamp(20px, 4vw, 32px);
}

.source-modal-card h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.source-modal-file {
  color: var(--muted);
}

.source-quote {
  border-left: 4px solid var(--teal-dark);
  background: oklch(0.97 0.014 185);
  padding: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.handoff-section {
  background: oklch(0.955 0.022 198);
}

.handoff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .search-panel,
  .stats-strip,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    border-radius: 18px;
    flex-direction: column;
  }

  .stats-strip {
    display: grid;
  }

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

  .browser-app-topbar,
  .file-surface,
  .artifact-panel {
    flex-direction: column;
  }

  .browser-workspace,
  .pipeline-grid,
  .source-grid,
  .handoff-grid {
    grid-template-columns: 1fr;
  }

  .browser-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .file-meta {
    justify-content: flex-start;
  }
}
