:root {
  --bg: #ffffff;
  --soft: #f4f4f4;
  --ink: #0a0a0a;
  --body: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e3e3e3;
  --strong-line: #0a0a0a;
  --panel: #0a0a0a;
  --panel-ink: #ffffff;
  --panel-muted: #8f8f8f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --soft: #151515;
    --ink: #f4f4f4;
    --body: #b8b8b8;
    --muted: #7d7d7d;
    --line: #262626;
    --strong-line: #f4f4f4;
    --panel: #1c1c1c;
    --panel-ink: #ffffff;
    --panel-muted: #7d7d7d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; }
p { margin: 0 0 14px; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }

/* Small uppercase labels, as used for section names and numbering */
.label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--ink); margin-right: 10px; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.arrow-link i { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-style: normal; font-size: 12px; letter-spacing: 0; transition: transform .2s; }
.arrow-link:hover i { transform: translateX(3px); }

/* Navigation */
.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; height: 72px; }
.nav .logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: -.01em; }
.nav .logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links { margin-left: auto; display: flex; gap: 22px; }
.nav .links a { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav .links a:hover { color: var(--ink); }
.nav .hide-sm { display: none; }
@media (min-width: 860px) { .nav .hide-sm { display: inline; } }

/* Hero: text on white, product diagram on a black diagonal panel */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-text { padding: 40px 0 48px; }
.hero-text .rule { width: 48px; height: 2px; background: var(--strong-line); margin-bottom: 28px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
.hero .lede { margin: 22px 0 30px; font-size: 17px; max-width: 470px; color: var(--body); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-art { background: var(--panel); padding: 36px 16px 32px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 5fr 7fr; min-height: 600px; }
  .hero-text { padding: 96px 40px 96px 0; align-self: center; }
  .hero-art { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; margin: 0; padding: 0 32px 0 11%; display: flex; align-items: center; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
}

/* Hero illustration: the same conversation in Codex Desktop (host) and a browser (guest), bridged by Co² */
.ends { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; width: 100%; max-width: 700px; margin: 0 auto; }
.end { margin: 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ends .lbl { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--panel-muted); }
.ends .lbl b { color: var(--panel-ink); margin-right: 8px; }
.window { background: #fff; color: #1a1a1a; border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.4); font-size: 13px; line-height: 1.45; }
.window svg { display: block; }
.lights { display: flex; gap: 6px; flex: none; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.cx-title { position: relative; height: 36px; display: flex; align-items: center; padding: 0 12px; background: #f7f7f7; border-bottom: 1px solid #ececec; }
.cx-title .toggle { margin-left: 14px; color: #555; }
.cx-title .name { margin-left: 12px; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #222; white-space: nowrap; }
.cx-body { display: flex; }
.rail { width: 46px; flex: none; background: #f7f7f7; border-right: 1px solid #ececec; display: flex; flex-direction: column; align-items: center; gap: 13px; padding-top: 11px; }
.rail .on { background: #e9e9e9; border-radius: 8px; padding: 5px; margin: -5px; }
.chat { flex: 1; min-width: 0; position: relative; padding: 16px 14px 80px; }
.bubble-row { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 12px; }
.bubble { background: #f0f0f0; border-radius: 16px; padding: 6px 12px; color: #111; max-width: 85%; }
.who { font-size: 10.5px; color: #8a8a8a; margin: 0 6px 3px 0; }
.who b { color: #111; font-weight: 700; }
.ag { color: #1a1a1a; }
.ag .dim { color: #9a9a9a; font-size: 12px; }
.ag .dim span { color: #3b82f6; }
.ag .dim .add { color: #16a34a; }
.ag .dim .del { color: #dc2626; }
.ag { margin-bottom: 11px; }
.ag p { margin: 3px 0 0; }
.cx-composer { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 56px; border: 1px solid #e6e6e6; border-radius: 14px; padding: 8px 11px; font-size: 12px; color: #aaa; }
.cx-composer .row { position: absolute; left: 11px; right: 9px; bottom: 7px; display: flex; align-items: center; color: #555; font-size: 14px; }
.cx-composer .send { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #8f8f8f; color: #fff; display: grid; place-items: center; font-size: 13px; }
.ch-tabs { height: 36px; background: #dfe1e5; display: flex; align-items: flex-end; gap: 6px; padding: 0 9px; }
.ch-tabs .lights { align-self: center; margin-right: 6px; }
.tab { flex: 1; min-width: 0; max-width: 200px; height: 29px; background: #fff; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 7px; padding: 0 9px; font-size: 11.5px; color: #222; white-space: nowrap; }
.tab img { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.tab span { overflow: hidden; text-overflow: ellipsis; }
.tab .x { margin-left: auto; color: #666; font-size: 10px; flex: none; }
.ch-tabs .plus { align-self: center; color: #444; font-size: 16px; }
.ch-bar { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #5f6368; border-bottom: 1px solid #e8eaed; font-size: 14px; }
.omni { flex: 1; min-width: 0; height: 26px; border-radius: 13px; background: #f1f3f4; display: flex; align-items: center; gap: 7px; padding: 0 11px; font-size: 11.5px; color: #202124; white-space: nowrap; }
.gpage { padding: 12px 14px 2px; }
.guests { display: grid; gap: 28px; align-content: start; min-width: 0; }
.hub { position: relative; z-index: 2; justify-self: center; width: 54px; height: 54px; margin: -14px 0; border-radius: 50%; background: #0a0a0a; border: 2px solid #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.hub img { width: 34px; height: 34px; border-radius: 7px; }
@media (min-width: 640px) {
  .ends { grid-template-columns: 1.3fr 0 1fr; gap: 0 12px; }
  .hub { margin: 0; align-self: center; transform: translate(-17px, -14px); }
  .chat .ag { padding-right: 22px; }
  .guests { gap: 22px; }
}

/* Sections */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { section { padding: 104px 0; } }
.split { display: grid; gap: 28px; }
.split > * { min-width: 0; }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 6fr; gap: 80px; } }
.section-head { border-top: 1px solid var(--line); padding-top: 22px; }
.section-head .label { margin-bottom: 22px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 18px; }
.split p { font-size: 16px; }
.split p.big { font-size: 18px; color: var(--ink); }

.numbered { display: grid; gap: 36px 48px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 640px) { .numbered { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .numbered { grid-template-columns: repeat(3, 1fr); } }
.numbered .num { font-size: 15px; color: var(--muted); font-weight: 500; }
.numbered h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 10px; }
.numbered p { font-size: 14.5px; color: var(--body); margin: 0; }

.three { display: grid; gap: 0; grid-template-columns: 1fr; margin-top: 48px; border-top: 1px solid var(--strong-line); }
@media (min-width: 860px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three > div { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .three > div { padding: 26px 36px 8px 0; border-bottom: 0; } .three > div + div { padding-left: 36px; border-left: 1px solid var(--line); } }
.three h3 { font-size: 20px; letter-spacing: -0.015em; margin: 10px 0 8px; }
.three p { font-size: 14.5px; margin: 0; }

/* Black band */
.band { background: var(--panel); color: #bdbdbd; border-bottom: 0; }
.band h2 { color: #fff; }
.band .label { color: #8f8f8f; }
.band .section-head { border-top-color: #2a2a2a; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.band li { padding: 18px 0; border-bottom: 1px solid #2a2a2a; font-size: 15px; }
.band li:first-child { padding-top: 0; }
.band li b { color: #fff; display: block; margin-bottom: 2px; font-size: 16px; }

.demo video { width: 100%; background: #000; margin-top: 40px; }

/* Comparison */
.table-scroll { overflow-x: auto; margin-top: 40px; }
table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 14.5px; }
th, td { padding: 15px 16px 15px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--strong-line); }
tbody th { font-weight: 500; color: var(--ink); width: 34%; }
td.us, th.us { color: var(--ink); font-weight: 700; }
td.dim { color: var(--muted); }

/* Install */
.cmd { display: flex; align-items: stretch; background: #0a0a0a; color: #eaeaea; border-radius: 4px; overflow: hidden; margin: 8px 0 22px; border: 1px solid #2a2a2a; }
.cmd code { flex: 1; min-width: 0; padding: 16px 18px; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.cmd button { flex: none; border: 0; border-left: 1px solid #333; background: transparent; color: #fff; font: 700 11px/1 -apple-system, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 0 18px; cursor: pointer; }
.cmd button:hover { background: #1c1c1c; }
.steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.steps li::before { content: "0" counter(s); color: var(--muted); font-size: 13px; padding-top: 2px; }
.fine { font-size: 13.5px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; }

/* FAQ list, styled like a news list */
.faq { margin-top: 40px; border-top: 1px solid var(--strong-line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 24px; align-items: baseline; padding: 18px 0; color: var(--ink); font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; text-align: right; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -4px 0 20px 56px; font-size: 15px; max-width: 720px; }

footer { padding: 40px 0 56px; font-size: 13px; color: var(--muted); border-bottom: 4px solid var(--strong-line); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
footer .row a { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
footer p { max-width: 760px; }
:lang(zh-CN) .hero h1 { font-size: clamp(28px, 2.9vw, 37px); line-height: 1.25; }
