:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #eeeeee;
  --text: #111111;
  --muted: #555555;
  --subtle: #8a8a8a;
  --line: #dfdfdf;
  --line-soft: #eeeeee;
  --primary: #111111;
  --primary-dark: #000000;
  --blue: #3f3f3b;
  --amber: #76766f;
  --code-bg: #111111;
  --code-text: #f5f5f0;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --header-height: 82px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(24px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.brand-mark img,
.hero-brand img,
.sidebar-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.brand-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  margin: 0 auto;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--text);
  content: "";
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.quick-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
}

.icon-link:hover {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.npm-link svg {
  width: 23px;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 82px;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.lang-switch button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.lang-switch button.active {
  background: var(--text);
  color: #ffffff;
}

.search-trigger,
.sidebar-search {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.search-trigger {
  padding: 0 14px;
}

.sidebar-search {
  width: 100%;
  margin: 14px 0;
  padding: 0 12px;
  text-align: left;
}

.search-trigger:hover,
.sidebar-search:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(520px, 0.97fr);
  gap: clamp(44px, 5vw, 84px);
  align-items: center;
  width: min(100%, 1600px);
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 118px) clamp(24px, 4vw, 56px) 56px;
  position: relative;
}

.openai-hero {
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: clamp(38px, 6vw, 76px);
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(54px, 7vw, 92px) clamp(24px, 5vw, 72px) clamp(38px, 5vw, 72px);
}

.landing-hero::after {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  bottom: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.landing-hero-inner,
.landing-preview {
  position: relative;
  z-index: 1;
}

.openai-hero .landing-hero-inner {
  display: grid;
  gap: 26px;
  max-width: min(1220px, 100%);
}

.hero-system {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.openai-hero .hero-system {
  margin-bottom: 0;
}

.hero-system > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 960px;
  font-size: clamp(72px, 10vw, 156px);
  line-height: 0.86;
  font-weight: 900;
}

.openai-hero h1 {
  max-width: 1480px;
  font-size: clamp(76px, 14.5vw, 236px);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-wordmark {
  display: flex;
  align-items: baseline;
  max-width: 100%;
  white-space: nowrap;
}

.hero-ai,
.hero-de {
  position: relative;
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 900;
  line-height: 0.74;
  letter-spacing: 0;
}

.hero-ai {
  margin-right: 0.01em;
  font-size: 1.15em;
  transform: translateY(0.015em) skewX(-5deg);
}

.hero-ai::after {
  content: "";
  position: absolute;
  right: 0.04em;
  bottom: 0.03em;
  width: 0.42em;
  height: 0.045em;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-12deg);
  transform-origin: right center;
}

.hero-de {
  margin-right: 0.03em;
  font-size: 0.88em;
  transform: translateY(-0.005em) skewX(-4deg);
}

.hero-rest {
  display: inline-block;
  font-size: 0.68em;
  font-weight: 760;
  line-height: 0.86;
  letter-spacing: 0;
  transform: translateY(-0.035em);
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 28px 0 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.openai-hero .hero-slogan {
  display: block;
  width: fit-content;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 760;
  line-height: 1.06;
}

.hero-desc {
  max-width: 820px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.62;
}

.openai-hero .hero-desc {
  max-width: 870px;
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.38;
}

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

.openai-hero .hero-actions {
  margin-top: 2px;
}

.hero-utility {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.1fr);
  gap: 12px;
  width: min(100%, 960px);
  margin-top: clamp(14px, 3vw, 42px);
}

.hero-install,
.hero-mini-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-install {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

.hero-install span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-install code {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-mini-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-mini-facts div {
  min-width: 0;
  min-height: 92px;
  padding: 14px;
}

.hero-mini-facts dt {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.hero-mini-facts dd {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.hero-logo-stage {
  position: absolute;
  right: clamp(24px, 5vw, 78px);
  bottom: clamp(42px, 6vw, 96px);
  display: grid;
  justify-items: center;
  gap: 14px;
  opacity: 0.1;
  pointer-events: none;
}

.hero-logo-stage img {
  width: clamp(130px, 18vw, 280px);
  height: clamp(130px, 18vw, 280px);
  border-radius: 28px;
  object-fit: cover;
}

.hero-logo-stage span {
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 850;
  line-height: 1;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 850;
}

.primary-link {
  background: var(--text);
  color: #ffffff;
}

.primary-link:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

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

.secondary-link:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-facts div {
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-facts dt {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.landing-command {
  display: grid;
  gap: 9px;
  max-width: 720px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
}

.landing-command span {
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-command code {
  color: var(--code-text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.landing-preview {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0;
}

.preview-window {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.landing-preview .preview-window {
  max-width: 760px;
  transform: translateY(10px);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.window-controls {
  display: inline-flex;
  gap: 7px;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7d7d2;
}

.window-controls span:first-child {
  background: #b9b9b3;
}

.window-controls span:nth-child(2) {
  background: #c9c9c3;
}

.window-controls span:nth-child(3) {
  background: #e2e2dd;
}

.preview-topbar strong {
  color: var(--muted);
  font-size: 13px;
}

.preview-topbar em {
  margin-left: auto;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.preview-body {
  display: block;
  min-height: 360px;
}

.preview-main {
  padding: 16px;
  background: var(--surface-2);
  min-width: 0;
}

.preview-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: -16px -16px 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.preview-nav strong {
  margin-right: 8px;
  color: var(--text);
  font-size: 13px;
}

.preview-nav span {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.preview-nav .active {
  background: var(--text);
  color: #ffffff;
}

.preview-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-title span,
.preview-title small {
  color: var(--subtle);
  font-size: 12px;
}

.preview-title strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.preview-title small {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.preview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.preview-app-grid div {
  min-height: 94px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-app-grid span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--primary-dark);
  font-weight: 900;
}

.preview-app-grid strong,
.preview-app-grid small {
  display: block;
}

.preview-app-grid strong {
  margin-top: 9px;
  color: var(--text);
  font-size: 13px;
}

.preview-app-grid small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.preview-summary div,
.preview-code,
.preview-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-summary div {
  min-height: 92px;
  padding: 13px;
  min-width: 0;
}

.preview-summary span,
.preview-code span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.preview-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 26px;
}

.preview-summary small {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
  white-space: normal;
}

.preview-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.preview-table {
  overflow: visible;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(66px, 0.72fr) minmax(58px, 0.6fr) minmax(150px, 1.5fr);
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.table-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.head {
  color: var(--text);
  font-weight: 800;
  background: var(--surface-2);
}

.preview-code {
  padding: 13px;
  background: var(--surface);
}

.preview-code code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
  white-space: normal;
  overflow-wrap: anywhere;
}

.preview-im-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-im-dock strong,
.preview-im-dock small {
  display: block;
  line-height: 1.25;
}

.preview-im-dock strong {
  color: var(--text);
  font-size: 13px;
}

.preview-im-dock small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.im-pulse {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
}

.im-pulse::after {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.landing-section {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 72px 34px;
  border-bottom: 1px solid var(--line);
}

.home-announcement {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.home-announcement a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  padding: 0 clamp(24px, 5vw, 72px);
  color: var(--text);
}

.home-announcement span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-announcement strong {
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1.35;
  font-weight: 760;
}

.home-announcement em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.home-announcement a:hover em {
  color: var(--text);
  text-decoration: underline;
}

.landing-section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 0.54fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.openai-section-head {
  display: grid;
  gap: 16px;
  max-width: 1080px;
  margin-bottom: 32px;
}

.openai-section-head h2 {
  max-width: 980px;
  font-size: clamp(38px, 5.2vw, 82px);
  line-height: 1.02;
  font-weight: 780;
}

.openai-section-head p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.58;
}

.split-head {
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: end;
  max-width: none;
}

.split-head p:last-child {
  margin-bottom: 8px;
}

.landing-section-head h2 {
  max-width: 760px;
  font-size: 42px;
}

.landing-section-head p:last-child {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 14px;
}

.editorial-card {
  min-height: 250px;
  padding: clamp(22px, 2.3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.editorial-card.large-card {
  grid-row: span 2;
  min-height: 514px;
  background: var(--text);
  color: #ffffff;
}

.editorial-card span {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.editorial-card h3 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(23px, 2.5vw, 38px);
  line-height: 1.08;
}

.editorial-card p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.large-card h3 {
  margin-top: auto;
  color: #ffffff;
  font-size: clamp(34px, 4.3vw, 70px);
}

.large-card p {
  color: #d8d8d8;
  font-size: clamp(17px, 1.45vw, 22px);
}

.card-logo-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(72px, 10vw, 150px);
}

.card-logo-line img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  object-fit: cover;
}

.card-logo-line span {
  color: #ffffff;
}

.capability-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 0.66fr);
  gap: 14px;
  align-items: stretch;
}

.capability-copy {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 2.8vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.capability-copy img {
  width: 82px;
  height: 82px;
  margin-bottom: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
}

.capability-copy h3 {
  max-width: 420px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
}

.capability-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.capability-showcase .capability-grid {
  margin-top: 0;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.capability-grid > div,
.overview-item {
  min-height: 136px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.capability-grid span,
.overview-item span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.capability-grid strong,
.overview-item strong {
  display: block;
  margin-top: 9px;
  font-size: 17px;
}

.capability-grid p,
.overview-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.product-principles,
.resource-grid,
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.product-principles > div,
.resource-card,
.docs-card-grid a {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.product-principles span,
.resource-card span,
.docs-card-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-principles h3 {
  margin-top: 12px;
}

.product-principles p,
.resource-card p,
.docs-card-grid p {
  margin: 9px 0 0;
}

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

.resource-card,
.docs-card-grid a {
  display: block;
  color: var(--text);
}

.resource-card:hover,
.docs-card-grid a:hover {
  border-color: var(--text);
  background: var(--surface);
}

.resource-card strong,
.docs-card-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.skill-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.skill-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.skill-hero h2 {
  max-width: 980px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.03;
}

.skill-hero p:last-child {
  max-width: 830px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
}

.skill-hero img {
  width: clamp(86px, 11vw, 156px);
  height: clamp(86px, 11vw, 156px);
  border: 1px solid var(--line);
  border-radius: 24px;
  object-fit: cover;
}

.skill-panel > div {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.skill-panel h3 {
  margin: 0 0 14px;
}

.resource-icon-grid .resource-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
}

.resource-icon-grid .resource-card:hover {
  background: var(--text);
  color: #ffffff;
}

.resource-icon-grid .resource-card:hover strong,
.resource-icon-grid .resource-card:hover p {
  color: #ffffff;
}

.resource-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
}

.resource-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.brand-icon {
  overflow: hidden;
  padding: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
  padding: clamp(48px, 6vw, 76px) clamp(24px, 5vw, 72px) 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-main {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

.footer-brand strong,
.footer-brand span {
  display: block;
  line-height: 1.2;
}

.footer-brand span,
.site-footer p,
.footer-links a {
  color: var(--muted);
}

.footer-main p {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
}

.footer-links nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.footer-links a,
.footer-links span {
  width: fit-content;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

.community-links {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.community-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.community-link img {
  display: block;
  width: auto;
  max-width: min(100%, 156px);
  height: 30px;
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
}

.community-copy {
  width: 100%;
  max-width: 240px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 560;
}

.footer-links span {
  color: var(--muted);
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 42px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 34px 34px 86px;
}

.sidebar {
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  max-height: calc(100vh - var(--header-height) - 44px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
  line-height: 1.2;
}

.sidebar-brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toc {
  display: grid;
  gap: 3px;
}

.drawer-site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.drawer-site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.toc a,
.drawer-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.toc a:hover,
.toc a.active,
.drawer-nav a:hover,
.drawer-nav a.active {
  background: var(--surface-3);
  color: var(--primary-dark);
}

.doc-content {
  min-width: 0;
  max-width: 1180px;
}

.doc-section {
  margin-top: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scroll-margin-top: calc(var(--header-height) + 24px);
  box-shadow: var(--shadow);
}

.doc-section h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.doc-section h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 19px;
}

.doc-section p {
  margin: 0 0 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.doc-section ul,
.doc-section ol {
  margin: 0;
  padding-left: 22px;
}

.doc-section li {
  margin: 6px 0;
}

.reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.reference-list a {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
}

.reference-list a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.check-list {
  padding-left: 0 !important;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 6px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--primary-dark);
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

pre {
  position: relative;
  overflow: auto;
  margin: 18px 0;
  padding: 20px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-text);
  line-height: 1.6;
  border: 1px solid #2d2d29;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

:not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--primary-dark);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #3a3a36;
  border-radius: 6px;
  background: #242420;
  color: var(--code-text);
  cursor: pointer;
}

.copy-button:hover {
  background: #33332f;
}

.stack-grid,
.dual-layout,
.feature-grid,
.timeline,
.permission-grid,
.status-grid {
  display: grid;
  gap: 14px;
}

.stack-grid,
.dual-layout,
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid > div,
.dual-layout > div,
.feature-grid > div,
.permission-grid > div,
.timeline > div,
.callout {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.stack-grid h3,
.feature-grid h3 {
  margin-top: 0;
}

.stack-list,
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-list span,
.tag-grid span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.callout {
  margin-top: 18px;
  border-left: 4px solid var(--text);
  background: var(--surface-2);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.callout p {
  margin: 0;
}

.architecture-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin: 22px 0;
}

.arch-node,
.arch-arrow {
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.arch-node span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.arch-node strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.arch-node p {
  margin-top: 8px;
  font-size: 14px;
}

.frontend {
  border-top: 3px solid var(--blue);
}

.backend {
  border-top: 3px solid var(--primary);
}

.infra {
  border-top: 3px solid var(--amber);
}

.arch-arrow {
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 800;
  background: var(--surface-3);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.flow-line span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}

.status-grid div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.status-grid strong {
  display: block;
  color: var(--primary-dark);
  font-size: 24px;
}

.status-grid span {
  color: var(--muted);
}

.permission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.permission-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--primary-dark);
  font-weight: 900;
}

.permission-grid strong {
  display: block;
  margin-top: 12px;
}

.permission-grid p {
  margin-top: 6px;
}

.step-list {
  counter-reset: step;
  padding-left: 0 !important;
  list-style: none;
}

.step-list li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.step-list li::before {
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #ffffff;
  counter-increment: step;
  content: counter(step);
  font-size: 12px;
  font-weight: 800;
}

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

.timeline span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin: 8px 0;
  font-size: 17px;
}

.timeline p {
  margin: 0;
}

.mobile-drawer,
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(0, 0, 0, 0.36);
}

.mobile-drawer.open,
.search-modal.open {
  display: block;
}

.drawer-panel {
  width: min(86vw, 370px);
  height: 100%;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-right: 1px solid var(--line);
}

.drawer-head,
.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-head button,
.search-head button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.search-panel {
  width: min(720px, calc(100vw - 28px));
  margin: 90px auto 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.search-head label {
  font-weight: 800;
}

.search-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.search-panel input:focus {
  border-color: var(--primary);
}

.search-results {
  display: grid;
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
  margin-top: 14px;
}

.search-results a,
.search-empty {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.search-results strong {
  display: block;
  color: var(--text);
}

.search-results span,
.search-empty {
  color: var(--muted);
}

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

  .menu-button {
    display: block;
  }

  .quick-links {
    display: none;
  }

  .brand-meta span:nth-child(n + 2) {
    display: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 58px 24px 40px;
  }

  .openai-hero {
    min-height: auto;
    padding: 58px 24px 48px;
  }

  .hero-utility {
    grid-template-columns: 1fr;
    width: min(100%, 760px);
  }

  .hero-mini-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-logo-stage {
    display: none;
  }

  .landing-preview {
    justify-content: flex-start;
    padding: 0;
  }

  .landing-preview .preview-window {
    max-width: 780px;
    transform: none;
  }

  .landing-section {
    padding: 56px 24px;
  }

  .landing-section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .editorial-grid,
  .capability-showcase,
  .split-head {
    grid-template-columns: 1fr;
  }

  .editorial-card.large-card {
    grid-row: auto;
    min-height: 420px;
  }

  .capability-copy {
    min-height: 360px;
  }

  .skill-panel {
    grid-template-columns: 1fr;
  }

  .skill-hero {
    grid-template-columns: 1fr;
  }

  .skill-hero img {
    order: -1;
  }

  .docs-layout {
    display: block;
    padding: 24px 24px 70px;
  }

  .sidebar {
    display: none;
  }

  .doc-content {
    max-width: none;
  }

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

  .product-principles,
  .resource-grid,
  .docs-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-footer p {
    white-space: normal;
  }

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

  .architecture-map,
  .flow-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    display: none;
  }

  .brand-meta {
    display: none;
  }

  .search-trigger {
    display: none;
  }

  .lang-switch {
    min-width: 74px;
  }

  .docs-layout {
    padding: 16px 14px 56px;
  }

  .landing-hero,
  .landing-section,
  .doc-section {
    padding: 22px;
  }

  .openai-hero {
    padding: 36px 22px 34px;
  }

  h1 {
    font-size: 58px;
    line-height: 0.92;
  }

  .openai-hero h1 {
    font-size: clamp(58px, 19vw, 104px);
    line-height: 0.86;
  }

  .hero-wordmark {
    font-size: clamp(54px, 18vw, 98px);
  }

  .hero-ai {
    font-size: 1.08em;
  }

  .hero-de {
    font-size: 0.82em;
  }

  .hero-rest {
    font-size: 0.64em;
  }

  .hero-system {
    margin-bottom: 22px;
  }

  .hero-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .hero-slogan {
    width: auto;
    justify-content: flex-start;
    text-align: left;
    min-height: 40px;
    font-size: 15px;
  }

  .openai-hero .hero-slogan {
    font-size: clamp(28px, 9vw, 44px);
  }

  .landing-section-head h2 {
    font-size: 30px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .openai-hero .hero-desc {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hero-utility {
    margin-top: 10px;
  }

  .hero-mini-facts {
    grid-template-columns: 1fr;
  }

  .hero-mini-facts div {
    min-height: auto;
  }

  .home-announcement a {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 22px;
  }

  .home-announcement em {
    justify-self: start;
  }

  .openai-section-head h2,
  .skill-hero h2 {
    font-size: 34px;
  }

  .editorial-card,
  .editorial-card.large-card,
  .capability-copy,
  .resource-icon-grid .resource-card {
    min-height: auto;
  }

  .card-logo-line {
    margin-bottom: 70px;
  }

  .site-footer {
    padding: 26px 22px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-facts,
  .preview-summary,
  .overview-strip,
  .capability-grid,
  .product-principles,
  .resource-grid,
  .docs-card-grid,
  .stack-grid,
  .dual-layout,
  .feature-grid,
  .timeline,
  .permission-grid,
  .status-grid,
  .architecture-map,
  .flow-line,
  .reference-list {
    grid-template-columns: 1fr;
  }

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

  .doc-section h2 {
    font-size: 24px;
  }

  table {
    min-width: 680px;
  }
}
