/* CLODEx model guides: server-rendered content, progressively enhanced controls. */
:root {
  color-scheme: dark;
  --bg: #101114;
  --surface: #191b1f;
  --panel: #15171a;
  --line: #2c3035;
  --text: #f1f3ee;
  --muted: #a1a8a8;
  --accent: #c8f59c;
  --accent-ink: #17210c;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
input,
summary {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
}
code,
pre,
.eyebrow,
.provider,
.brand-tag,
.sidebar-foot,
.terminal-bar,
.visual-note {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(38px, 5.1vw, 70px);
  font-weight: 650;
  white-space: pre-line;
  margin-bottom: 26px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 550;
  margin-bottom: 24px;
}
h3 {
  font-size: 22px;
  font-weight: 550;
}
p {
  margin-bottom: 18px;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand-mark {
  font: 700 25px monospace;
  color: var(--accent);
}
.brand-mark span {
  font-size: 19px;
}
.brand-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 4px;
  margin-left: 3px;
}
.header-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  color: #bac0bf;
  font-size: 13px;
}
.header-links a:hover,
.text-link:hover {
  color: var(--accent);
}
.language {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.language a {
  padding: 12px 0;
}
.language [aria-current] {
  color: var(--accent);
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: #24282b;
  border-color: #7a837e;
}
.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.button.primary:hover {
  background: #defbbd;
}
.button.compact {
  min-height: 39px;
  padding: 7px 14px;
}
.button.full {
  width: 100%;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 23px;
  text-transform: uppercase;
}
.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero {
  padding: 64px 0 54px;
}
.hero-copy {
  max-width: 690px;
}
.summary {
  font-size: 17px;
  line-height: 1.75;
  color: #b1b8b6;
  max-width: 680px;
}
.catalog-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
  padding-top: 78px;
}
.catalog-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--accent);
  font: 500 22px/1.8 monospace;
  letter-spacing: 0.05em;
  user-select: none;
}
.big-bracket {
  font: 200 190px/1 sans-serif;
  color: #3b4633;
}
.catalog-section {
  padding: 14px 0 90px;
}
.catalog-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.category-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  color: #b8bfbd;
}
.category-nav a:hover {
  background: var(--surface);
}
.category-nav [aria-current] {
  background: #283123;
  color: var(--accent);
  border-color: #3b4931;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 0 12px;
}
.search span {
  font-size: 24px;
  color: var(--muted);
}
.search input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  min-width: 0;
}
.search input::placeholder {
  color: var(--muted);
}
.result-count {
  margin: 22px 0;
  color: var(--muted);
  font-size: 11px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    border-color 0.18s,
    background 0.18s;
  min-width: 0;
}
.model-card:hover,
.model-card:focus-within {
  border-color: #647650;
  background: #1a1d1b;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.model-symbol {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b4931;
  border-radius: 12px;
  background: #252e21;
  color: var(--accent);
  font: 17px monospace;
}
.category-label {
  font-size: 10px;
  color: var(--muted);
}
.card-arrow {
  margin-left: auto;
  font-size: 22px;
  color: #6f7a73;
}
.provider {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  margin: 0 0 9px;
}
.model-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.model-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.card-id {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.card-summary {
  font-size: 13px;
  line-height: 1.75;
  color: #b2b9b6;
  margin: 19px 0 26px;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 10px;
}
.card-bottom strong {
  font: 500 20px/1.2 monospace;
  color: var(--accent);
}
.model-card[data-category="video"] .model-symbol {
  color: #b5c8ff;
  background: #212838;
  border-color: #35415c;
}
.model-card[data-category="images"] .model-symbol {
  color: #e8c1ff;
  background: #302437;
  border-color: #4a3656;
}
.empty-state {
  padding: 60px 10px;
  text-align: center;
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 30px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.model-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 55px;
  align-items: center;
  padding-top: 40px;
}
.heading-suffix {
  color: var(--accent);
  font-weight: 400;
}
.model-id {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.model-id code {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 22px;
}
.availability {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 510px;
}
.status-label {
  color: var(--accent);
}
.workflow {
  background: #141819;
  border: 1px solid #354034;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.terminal-bar {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.terminal-dots {
  font-size: 9px;
  color: #52634b;
  letter-spacing: 3px;
}
.workflow-stage {
  height: 200px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(#c8f59c07 1px, transparent 1px),
    linear-gradient(90deg, #c8f59c07 1px, transparent 1px);
  background-size: 25px 25px;
}
.orbit {
  position: absolute;
  border: 1px solid #6d845149;
  border-radius: 50%;
  width: 165px;
  height: 165px;
  transform: rotateX(50deg) rotateY(20deg);
}
.orbit-2 {
  width: 240px;
  height: 240px;
  transform: rotateX(50deg) rotateY(-20deg);
}
.orbit-3 {
  width: 325px;
  height: 325px;
  transform: rotateX(50deg) rotateY(10deg);
}
.core-symbol {
  font: 30px monospace;
  color: var(--accent);
  border: 1px solid #6d8451;
  background: #212c20;
  border-radius: 20px;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  z-index: 1;
  box-shadow: 0 0 65px #c8f59c10;
}
.pipeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font: 9px monospace;
  padding: 18px 10px 10px;
  color: #c7cfc8;
}
.visual-note {
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  margin: 0 12px 18px;
}
.section-nav {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 3px;
  scrollbar-width: thin;
}
.section-nav a {
  padding: 18px 0;
  font-size: 12px;
  white-space: nowrap;
}
.section-nav a:hover {
  color: var(--accent);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 68px;
  padding-top: 24px;
}
.section {
  padding: 36px 0;
  scroll-margin-top: 24px;
}
.section .eyebrow {
  font-size: 9px;
  margin-bottom: 16px;
}
.prompt-panel {
  border: 1px solid #43503a;
  border-radius: 12px;
  background: #1b2118;
  padding: 24px;
}
.prompt-panel p {
  font-size: 15px;
  line-height: 1.85;
  color: #d5dfca;
}
.copy-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  min-height: 40px;
  font-size: 11px;
}
.copy-button:hover {
  color: var(--accent);
  border-color: #607650;
}
.prompt-panel + .muted {
  margin-top: 14px;
}
.scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.scenarios article {
  padding: 20px 0 5px;
  border-top: 1px solid var(--line);
}
.scenarios h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
.scenarios p,
.note-panel p {
  font-size: 14px;
  line-height: 1.85;
  color: #b1b9b4;
}
.facts {
  font-size: 13px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.facts > div {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child {
  border: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts code {
  font-size: 11px;
}
.code-panel {
  background: #0b0d0f;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.code-panel pre {
  padding: 22px;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #cee5b8;
  tab-size: 2;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--accent);
  font-size: 13px;
}
.note-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 18px 0;
}
.note-panel h2 {
  font-size: 23px;
}
.note-panel p {
  margin: 0;
}
.price-sidebar {
  padding: 36px 0;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 25px;
}
.price-card h2 {
  font-size: 22px;
  margin: 0 0 22px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.price-row strong {
  font: 500 25px monospace;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.price-row small {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 10px;
}
.price-card .muted {
  font-size: 11px;
  line-height: 1.8;
  margin: 18px 0;
}
.quote-price {
  font-size: 22px;
  line-height: 1.3;
  color: var(--accent);
  padding: 15px 0;
}
.sidebar-foot {
  font-size: 8px;
  line-height: 2.4;
  color: var(--muted);
  padding: 25px 7px;
  letter-spacing: 0.08em;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
}
.related {
  padding-bottom: 75px;
}
.related .model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.related .model-card {
  padding: 20px;
}
.related .card-summary {
  font-size: 12px;
}
.related h3 {
  font-size: 19px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font: 20px monospace;
  color: var(--accent);
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  font-size: 14px;
  line-height: 1.8;
  color: #abb5ae;
  margin: 18px 0 4px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 45px max(24px, calc((100vw - 1192px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 35px;
  color: var(--muted);
}
.site-footer p {
  margin: 15px 0 8px;
  font-size: 14px;
}
.site-footer small {
  display: block;
  max-width: 550px;
  font-size: 10px;
  line-height: 1.8;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
  font-size: 12px;
}
.site-footer nav a {
  padding: 8px 0;
}
@media (min-width: 1400px) {
  .site-header {
    gap: 38px;
  }
  .model-hero {
    gap: 85px;
  }
}
@media (max-width: 1000px) {
  .header-links {
    gap: 15px;
  }
  .site-header {
    gap: 18px;
  }
  .brand-tag {
    display: none;
  }
  .model-hero {
    gap: 26px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
  }
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-decoration {
    font-size: 17px;
    gap: 10px;
  }
  .big-bracket {
    font-size: 130px;
  }
  .site-footer {
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 0 20px;
  }
  .site-header {
    height: 72px;
    padding: 0 20px;
    gap: 16px;
  }
  .brand {
    font-size: 19px;
  }
  .header-links {
    display: none;
  }
  .language {
    margin-left: auto;
  }
  .button.compact {
    min-height: 40px;
    gap: 8px;
  }
  .catalog-hero {
    display: block;
    padding: 48px 0 28px;
  }
  .catalog-decoration {
    display: none;
  }
  .summary {
    font-size: 15px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .catalog-toolbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .category-nav {
    gap: 3px;
  }
  .category-nav a {
    padding: 9px 12px;
    font-size: 12px;
  }
  .search {
    width: 100%;
  }
  .model-grid,
  .related .model-grid {
    grid-template-columns: 1fr;
  }
  .model-card {
    padding: 22px;
  }
  .catalog-section {
    padding-bottom: 50px;
  }
  .model-hero {
    display: block;
    padding: 30px 0;
  }
  .model-hero h1 {
    font-size: 43px;
  }
  .workflow {
    margin-top: 30px;
  }
  .workflow-stage {
    height: 165px;
  }
  .terminal-bar {
    font-size: 8px;
  }
  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .price-sidebar {
    order: -1;
    padding: 16px 0;
  }
  .price-card {
    position: static;
  }
  .price-card .price-row {
    padding: 12px 0;
  }
  .sidebar-foot {
    display: none;
  }
  .section {
    padding: 28px 0;
  }
  .section-nav {
    gap: 24px;
  }
  .section-nav a {
    font-size: 11px;
  }
  .scenarios {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .prompt-panel {
    padding: 20px;
  }
  .prompt-panel p {
    font-size: 14px;
  }
  .facts > div {
    padding: 14px;
    font-size: 12px;
  }
  .site-footer {
    padding: 32px 20px;
    gap: 20px;
  }
  .site-footer nav {
    gap: 20px;
  }
  .hero-actions .button {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading .text-link {
    font-size: 11px;
  }
  .breadcrumbs {
    font-size: 10px;
  }
  .availability {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
