@font-face {
  font-family: "OpenAI Sans";
  src: url("assets/openai-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "OpenAI Sans";
  src: url("assets/openai-medium.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "OpenAI SC Common";
  src: url("assets/openai-sc-0.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF, U+2A700-2B73F, U+F000-F8FF;
}

@font-face {
  font-family: "OpenAI SC Extended";
  src: url("assets/openai-sc-1.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+2B740-2B81F, U+2B820-2CEAF, U+2CEB0-2EBEF, U+30000-3134F;
}

@font-face {
  font-family: "OpenAI SC Additional";
  src: url("assets/openai-sc-2.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+31F0-31FF, U+FF00-FFEF, U+FFA0-FFDC;
}

@font-face {
  font-family: "OpenAI SC Rare";
  src: url("assets/openai-sc-3.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+F900-FAFF, U+2F800-2FA1F, U+2E80-2EFF, U+2F00-2FDF, U+31C0-31EF;
}

:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #fff;
  --muted: #b4b4b4;
  --surface: #303030;
  --border: #3b3b3b;
  --card: #242424;
  --header-height: 64px;
  --content-width: 1152px;
  --gutter: 24px;
  --title-size: 44px;
  --title-line: 53px;
  --subhead-size: 28px;
  --subhead-line: 38px;
  --radius: 6px;
  --font: "OpenAI Sans", "OpenAI SC Common", "OpenAI SC Extended",
    "OpenAI SC Additional", "OpenAI SC Rare", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 17px/28px var(--font); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h2 { font-size: var(--title-size); line-height: var(--title-line); text-wrap: balance; }
h3 { font-size: var(--subhead-size); line-height: var(--subhead-line); }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none; }
:focus-visible { outline: 2px solid #9cafff; outline-offset: 4px; }
.wrap { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section-center { text-align: center; }
main :is(section, article)[id] { scroll-margin-top: calc(var(--header-height) + 24px); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  transition: background-color .18s, color .18s, border-color .18s;
}
.pill-light { background: #fafafa; color: #0d0d0d; }
.pill-light:hover { background: #dedede; }
.pill-outline { color: inherit; background: transparent; border-color: var(--border); }
.pill-outline:hover { background: #ffffff18; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 32px;
  color: #0d0d0d;
  transition: color .3s, background-color .3s;
}
.site-header.is-scrolled, .site-header:has(.nav-disclosure[open]), .site-header.is-menu-open {
  background: #212121;
  color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 6px; width: max-content; font-size: 20px; font-weight: 500; }
.site-header.is-scrolled .brand img, .site-header:has(.nav-disclosure[open]) .brand img,
.site-header.is-menu-open .brand img, .site-footer .brand img { filter: invert(1); }
.navigation, .header-actions { display: flex; align-items: center; }
.navigation { gap: 12px; }
.header-actions { justify-content: flex-end; gap: 8px; }
.nav-item {
  display: block;
  padding: 8px 12px;
  color: color-mix(in srgb, currentColor 75%, transparent);
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-item:hover, [open] > .nav-item { color: inherit; }
.nav-item::-webkit-details-marker { display: none; }
.nav-panel {
  position: absolute;
  inset: 100% 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 250px));
  justify-content: center;
  padding: 24px 32px 40px;
  gap: 32px;
  background: #212121;
}
.nav-panel a { display: block; padding: 4px 12px; }
.nav-panel a:hover { text-decoration: underline; }
.header-actions .pill { padding-inline: 20px; }
.web-action { background: #0d0d0d; color: #fff; }
.site-header:is(.is-scrolled, .is-menu-open, :has(.nav-disclosure[open])) .web-action {
  background: #fafafa;
  color: #0d0d0d;
}
.header-actions .menu-toggle { display: none; width: 44px; padding-inline: 0; background: #fff; color: #0d0d0d; }

.hero { position: relative; isolation: isolate; padding-top: 128px; }
/* The preview overlaps the landscape. The fade belongs to the video layer. */
.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
}
.hero-scene { height: 1000px; mask-image: linear-gradient(#000, transparent); }
.scene video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-copy { display: flex; flex-direction: column; align-items: center; padding: 0 24px 64px; text-align: center; }
.app-icon { width: 92px; height: 92px; }
.hero h1 { margin-top: 40px; font-size: 57px; line-height: 60px; text-wrap: balance; }
.hero-copy > p { margin-top: 24px; font-size: 21.5px; line-height: 27px; font-weight: 500; text-wrap: balance; }
.hero-copy .download { margin-top: 36px; }
.trusted { padding-inline: 36px; text-align: center; }
.trusted p { color: #ffffffb3; }
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; justify-items: center; }
.trusted-logos { min-height: 76px; margin-top: 16px; }
.trusted-logos img { width: auto; max-width: 82%; height: 44px; object-fit: contain; filter: brightness(0) invert(1); }
.hero-preview { display: block; width: min(1392px, calc(100% - 112px)); margin: 48px auto 0; }
.hero-preview img { width: 100%; height: auto; aspect-ratio: 5/3; }

.pricing { max-width: 1067px; margin-inline: auto; padding-top: 192px; padding-bottom: 44px; }
.section-center > h2 + p { margin: 20px auto 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; text-align: start; }
.plan-main {
  min-height: 309px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 15px 24px;
  border: 1px solid #ffffff0d;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.plan-action { display: grid; gap: 16px; }
.price { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.price strong { font-size: var(--title-size); line-height: 1.12; font-weight: 500; font-variant-numeric: tabular-nums; }
.price span, .price-note, .plan-footnote { color: var(--muted); font-size: 14px; line-height: 20px; }
.plan-footnote { padding: 0 16px; }
.plan-footnote a { text-decoration: underline; }

.features { width: min(1536px, 100%); margin-inline: auto; padding: 80px 64px 32px; }
.features > h2 { margin-bottom: 64px; text-align: center; }
.feature-list { display: grid; gap: 128px; }
/* Alternating grid areas keep the copy aligned with the bottom of each image. */
.feature { display: grid; grid-template-columns: minmax(0, 29.5fr) minmax(0, 63.1fr); grid-template-areas: "copy image"; align-items: end; gap: 7.4%; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 63.1fr) minmax(0, 29.5fr); grid-template-areas: "image copy"; }
.feature-copy { grid-area: copy; }
.feature-copy p { margin-top: 24px; }
.feature img { grid-area: image; width: 100%; height: auto; aspect-ratio: 727/520; object-fit: cover; border-radius: var(--radius); }

.integrations { padding-top: 128px; }
.integrations > p { max-width: 700px; text-wrap: pretty; }
.integrations > .pill { margin-top: 24px; }
.integration-logos { min-height: 92px; margin-top: 64px; padding-inline: 36px; }
.integration-logos img { object-fit: contain; }
.integration-logos img[alt="GitHub"] { filter: brightness(0) invert(1); }

.platforms { padding: 112px 0 96px; }
.platforms > h2 { font-size: 39px; }
.platforms > .text-link { display: inline-block; margin-top: 24px; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 95px 24px 0;
}
.platform { display: flex; flex-direction: column; padding: 10px 10px 24px; background: var(--card); border-radius: var(--radius); text-align: start; }
.platform img { width: 100%; height: auto; aspect-ratio: 232/189; object-fit: cover; border-radius: 8px; }
.platform h3 { margin: 18px 10px; font-size: 21px; line-height: 28px; }
.platform > .pill, .ide-picker { align-self: stretch; margin: auto 10px 0; }
.ide-picker { position: relative; }
.ide-picker summary { display: flex; cursor: pointer; }
.ide-picker summary::-webkit-details-marker { display: none; }
.ide-picker[open] summary svg { transform: rotate(180deg); }
.ide-options {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 8px) 0 auto;
  display: grid;
  padding: 4px;
  background: #212121;
  border: 1px solid #ffffff0d;
  border-radius: 8px;
}
.ide-options a { padding: 6px 12px; border-radius: 4px; font-size: 14px; line-height: 24px; }
.ide-options a:hover { background: #ffffff18; }
.copy-command code { font-size: 11px; white-space: nowrap; }
.copy-command svg { flex: none; }

.testimonials { padding: 55px 0 96px; }
.testimonials > h2 { text-align: center; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.quotes figure { display: flex; flex-direction: column; gap: 32px; padding: 32px; background: var(--surface); border-radius: var(--radius); }
.quotes img { border-radius: 16px; object-fit: cover; }
.quotes blockquote { font-size: 16.8px; }
.quotes figcaption { margin-top: auto; color: var(--muted); font-size: 14px; line-height: 23px; }

.faq {
  padding-block: 56px 64px;
  border-top: 1px solid var(--border);
}
.faq > h2 {
  text-align: center;
  margin-bottom: 48px;
}
.faqs {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.faqs details {
  border-bottom: 1px solid var(--border);
}
.faqs details:first-child {
  border-top: 1px solid var(--border);
}
.faqs summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary span {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.faqs details[open] > summary span {
  transform: rotate(45deg);
}
.faqs details > p {
  padding: 0 0 20px;
  color: #d8d8d8;
  font-size: 16px;
  line-height: 26px;
  max-width: 60ch;
}

.closing { position: relative; isolation: isolate; }
.closing .scene { mask-image: linear-gradient(transparent, #000); }
.closing-copy { display: grid; justify-items: center; gap: 24px; padding: 128px 24px 96px; }
.site-footer { max-width: 1536px; padding: 44px 32px 24px; margin-inline: auto; font-size: 14px; line-height: 23px; }
.footer-top { display: grid; grid-template-columns: 3fr 1fr .9fr; gap: 24px; }
.footer-links { display: grid; align-content: start; gap: 4px; }
.footer-links h2 { margin-bottom: 8px; font-size: 14px; line-height: inherit; }
.footer-links a, .footer-legal { color: var(--muted); }
.footer-links a:hover, .footer-legal button:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-top: 55px; }
.footer-bottom > .pill { justify-self: end; }
.footer-legal, .social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-legal button { padding: 0; background: none; border: 0; }
.social-links { gap: 16px; font-weight: 500; }
.social-links img { filter: brightness(0) invert(1); }

dialog { width: min(452px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--border); border-radius: 8px; background: #212121; color: white; }
dialog::backdrop { background: #0009; }
dialog h2 { margin-bottom: 24px; font-size: 24px; line-height: 32px; }
dialog p { margin-bottom: 24px; }
.close-dialog { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 24px; }
.close-dialog:hover { background: #ffffff20; }
.dialog-links { display: grid; gap: 8px; }
.dialog-links a { padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); }
.dialog-links a:hover { background: var(--surface); }

@media (max-width: 1120px) {
  .pricing { padding-inline: 24px; }
  .navigation { gap: 0; }
  .nav-item { padding-inline: 9px; }
  .platform-grid { margin-inline: 0; gap: 16px; }
  .copy-command { gap: 4px; padding-inline: 8px; }
  .copy-command code { font-size: 10px; }
}

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 16px; }
  .site-header .navigation { display: none; }
  .header-actions .menu-toggle { display: inline-flex; }
  .site-header:is(.is-scrolled, .is-menu-open) .menu-toggle { background: transparent; color: white; }
  .site-header.is-menu-open .navigation {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 10px 16px 24px;
    background: #212121;
  }
  .nav-item { font-size: 17px; padding: 10px 0; }
  .nav-panel { position: static; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0 16px; }
  .nav-panel a { padding-inline: 0; }
  .features { padding-inline: 32px; }
  .feature, .feature:nth-child(even) { gap: 4%; }
  .platform-grid, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --title-size: 31px; --title-line: 37px; --subhead-size: 24px; --subhead-line: 32px; }
  .hero { padding-top: 112px; }
  .hero-scene { height: 500px; }
  .hero-copy { padding-bottom: 48px; }
  .app-icon { width: 72px; height: 72px; }
  .hero h1 { margin-top: 28px; max-width: min(360px, calc(100vw - 48px)); font-size: 31px; line-height: 35.6px; text-wrap: wrap; overflow-wrap: break-word; }
  .hero-copy > p { max-width: min(260px, calc(100vw - 48px)); margin-top: 20px; font-size: 20px; line-height: 24px; }
  .hero-copy .download { margin-top: 36px; }
  .trusted { width: 100%; padding-inline: 12px; }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trusted-logos img { max-width: 64%; height: 28px; }
  .trusted-logos img:nth-child(3) { height: 28px; }
  .hero-preview { width: min(480px, 100%); margin-top: 24px; }
  .hero-preview img { aspect-ratio: 3/4; object-fit: contain; }

  .pricing { padding: 88px 16px 58px; }
  .plans { grid-template-columns: 1fr; margin-top: 48px; }
  .plan-main { min-height: 236px; }
  .features { padding: 56px 24px 32px; }
  .features > h2 { margin-bottom: 82px; }
  .feature-list { gap: 116px; }
  .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "image"; gap: 24px; }
  .feature-copy p { margin-top: 16px; }
  .feature img { aspect-ratio: 16/9; }
  .integrations { padding-top: 88px; }
  .integration-logos { margin-top: 48px; padding-inline: 0; }

  .platforms { padding: 112px 0 96px; }
  .platforms > h2 { font-size: var(--title-size); }
  .platform-grid, .quotes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .platform-grid { margin-top: 79px; }
  .platform { padding: 8px 8px 20px; }
  .platform > .pill, .ide-picker { margin-inline: 8px; }
  .testimonials { padding: 55px 0 96px; }
  .quotes figure { gap: 20px; }
  .closing-copy { padding-top: 128px; }
  .site-footer { padding-inline: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > .brand { grid-column: 1/-1; }
  .footer-bottom { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .footer-bottom > .pill { justify-self: start; }
  .plan-compare { font-size: 13px; }
  .plan-compare th, .plan-compare td { padding: 6px 10px; }
}

/* ── Skip link (shared by home and download) ── */
.skip-download {
  position: fixed;
  z-index: 6;
  inset: 12px auto auto 16px;
  padding: 8px 16px;
  background: var(--background);
  transform: translateY(-150%);
}
.skip-download:focus { transform: none; }

/* ── New Phase 3 sections ── */
.about {
  max-width: 800px;
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--border);
}
.about h2 {
  font-size: var(--title-size);
  line-height: var(--title-line);
  text-align: center;
  margin-bottom: 20px;
}
.about p {
  color: #d8d8d8;
  font-size: 17px;
  line-height: 28px;
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}

.plan-compare {
  width: 100%;
  max-width: 820px;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 14px;
  line-height: 20px;
}
.plan-compare th,
.plan-compare td {
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.plan-compare th:first-child,
.plan-compare td:first-child {
  text-align: left;
}
.plan-compare thead th {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.plan-compare tbody tr:last-child td { border-bottom: none; }
.plan-compare tbody tr:hover td { background: var(--surface); }

.plan-updated {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 12px;
  opacity: 0.7;
  display: block;
  margin-top: 4px;
}

.integration-list {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.breadcrumb {
  position: absolute;
  top: calc(var(--header-height) + 10px);
  left: var(--gutter);
  z-index: 1;
  padding: 0;
  font-size: 11px;
  letter-spacing: .03em;
  line-height: 1;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "›";
  padding: 0 5px;
  color: rgba(255,255,255,0.3);
}
.breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
