:root { color-scheme: light; --bg: #f9fafb; --surface-solid: #ffffff; --text: #111827; --muted: #4b5563; --line: #e5e7eb; --brand: #0f766e; --brand-strong: #115e59; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #020617; --surface-solid: #1e293b; --text: #f3f4f6; --muted: #cbd5e1; --line: #1e293b; --brand: #0f766e; --brand-strong: #5eead4; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); background: var(--bg); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: rgba(8,127,115,.16); }
button { cursor: pointer; }
svg { width: 18px; height: 18px; flex: 0 0 auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 6px; color: #fff; background: #111827; transform: translateY(-160%); }
.skip-link:focus-visible { transform: translateY(0); }
.site-header { z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px max(24px, calc((100% - 1024px) / 2)); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand:hover { color: var(--brand-strong); }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.usage-link, .icon-text-button, .login-button, .details-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 10px; font-size: 14px; border-radius: 8px; }
.usage-link, .icon-text-button, .icon-button, .details-link { color: var(--muted); }
.icon-text-button, .icon-button { border: 0; background: transparent; }
.icon-button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border-radius: 8px; }
.usage-link:hover, .icon-text-button:hover, .icon-button:hover { background: var(--surface-solid); color: var(--text); }
.login-button { padding: 8px 16px; color: var(--bg); background: var(--text); font-weight: 600; }
.login-button:hover { color: #ffffff; background: #000000; }
:root[data-theme="dark"] .login-button:hover { color: #000000; background: #ffffff; }
.language-picker { position: relative; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 140px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-solid); box-shadow: 0 8px 24px #00000014; }
.language-menu[hidden] { display: none; }
.language-menu button { width: 100%; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; }
.language-menu button:hover { background: var(--bg); }
#language-flag { font-size: 16px; }
.icon-text-button svg { width: 14px; height: 14px; }
.icon-text-button[aria-expanded="true"] svg { transform: rotate(180deg); }
main { width: min(1024px, calc(100% - 48px)); margin: 0 auto; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); align-items: center; gap: 64px; padding: 64px 0 48px; }
.hero-copy { width: 100%; max-width: 540px; min-width: 0; text-align: left; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: 22px; border-radius: 14px; }
.hero h1 { margin: 0; font-size: 36px; line-height: 1.2; text-wrap: balance; }
.hero-description { max-width: 640px; margin: 16px 0 0; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.hero-support { max-width: 540px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.terminal-side { min-width: 0; }
.terminal-preview { min-width: 0; overflow: hidden; border: 1px solid #26364d; border-radius: 12px; background: #0f172a; color: #e5edf5; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16); }
.terminal-toolbar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-bottom: 1px solid #26364d; color: #94a3b8; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-lights { position: absolute; left: 16px; display: flex; gap: 7px; }
.terminal-lights i { width: 9px; height: 9px; border-radius: 50%; background: #fb7185; }
.terminal-lights i:nth-child(2) { background: #fbbf24; }
.terminal-lights i:nth-child(3) { background: #4ade80; }
.terminal-body { min-height: 190px; padding: 24px 22px; font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-body p { margin: 0; white-space: nowrap; }
.terminal-line { opacity: 0; transform: translateY(4px); animation: terminal-line-appear 0.5s ease forwards; }
.terminal-line-1 { animation-delay: 0.4s; }
.terminal-line-2 { animation-delay: 1s; }
.terminal-line-3 { animation-delay: 1.7s; }
.terminal-line-4 { animation-delay: 2.4s; }
.terminal-body b, .terminal-body em { color: #2dd4bf; font-style: normal; }
.terminal-body mark { padding: 2px 5px; border-radius: 4px; background: #115e59; color: #99f6e4; }
.terminal-body span { color: #fbbf24; }
.terminal-body .terminal-comment { margin-top: 3px; color: #64748b; font-style: italic; }
.terminal-cursor { margin-top: 4px; }
.terminal-cursor i { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: #2dd4bf; animation: terminal-cursor-blink 1s step-end 5; }
:root[data-theme="dark"] .terminal-preview { border-color: #334155; background: #0f172a; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); }
@keyframes terminal-line-appear {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes terminal-cursor-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; width: min(100%, 460px); }
.usage-shortcut { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 10px; padding: 7px 4px; color: var(--brand-strong); font-size: 13px; font-weight: 600; }
.usage-shortcut:hover { color: var(--text); }
.usage-shortcut svg { width: 15px; height: 15px; }
.usage-shortcut svg:last-child { transition: transform 200ms ease; }
.usage-shortcut:hover svg:last-child { transform: translateX(2px); }
.setup-entry { min-width: 0; }
.setup-entry .secondary-action { width: 100%; }
.entry-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; }
.primary-action { color: #ffffff; background: var(--brand); box-shadow: 0 1px 3px #0000000a, 0 1px 2px #0000000f; }
.primary-action:hover { background: #115e59; }
.secondary-action { background: var(--surface-solid); border-color: var(--line); }
.secondary-action:hover { border-color: var(--brand-strong); }
.usage-link { display: flex; width: min(100%, 224px); min-height: 44px; margin: 14px auto 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-solid); font-size: 14px; font-weight: 600; color: var(--brand-strong); justify-content: center; gap: 9px; }
.usage-link:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.usage-link svg { width: 16px; height: 16px; }
.access-info { border-top: 1px solid var(--line); padding: 28px 0 40px; scroll-margin-top: 24px; }
.section-heading { display: flex; flex-direction: column; gap: 6px; }
.access-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; }
.api-activity { display: inline-flex; align-items: center; gap: 7px; margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.api-activity[hidden] { display: none; }
.api-activity-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #0f9f6e; }
.section-heading h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.section-heading > span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.capability-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
.capability-list.provider-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 20px; }
.provider-list img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
:root[data-theme="dark"] .provider-list img { filter: invert(1); }
.capability-group + .capability-group { padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .capability-list.provider-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .capability-list.provider-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.capability-group { min-width: 0; }
.capability-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; }
.capability-list li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; min-width: 0; }
.capability-list b { overflow-wrap: anywhere; }
.service-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 6px; color: #ffffff; }
.service-icon.openai { background: #263848; }
.service-icon.grok { background: #52545a; }
.service-icon.responses { background: #0f766e; }
.service-icon.chat { background: #2563eb; }
.capability-list b { font-weight: 500; }
.related-resources { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.related-resources > span { flex: 0 0 auto; font-weight: 500; }
.related-resources nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; }
.related-resources a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--muted); }
.related-resources a:hover { color: var(--text); }
.related-resources a svg { width: 14px; height: 14px; }
.related-resources a svg:last-child { width: 12px; height: 12px; color: var(--brand-strong); }
.live-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 3px color-mix(in srgb, #94a3b8 14%, transparent); }
.live-status-dot.is-none { background: #0f9f6e; box-shadow: 0 0 0 3px color-mix(in srgb, #0f9f6e 14%, transparent); }
.live-status-dot.is-minor, .live-status-dot.is-major { background: #d97706; box-shadow: 0 0 0 3px color-mix(in srgb, #d97706 14%, transparent); }
.live-status-dot.is-critical { background: #dc2626; box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 14%, transparent); }
.live-status-dot.is-maintenance, .live-status-dot.is-unavailable { background: #64748b; box-shadow: 0 0 0 3px color-mix(in srgb, #64748b 14%, transparent); }
.address-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.address-value { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; min-width: 0; }
.address-value > span { color: var(--muted); font-size: 13px; }
.address-value code { color: var(--text); font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; min-width: 0; user-select: all; }
.copy-button { flex: 0 0 40px; border: 1px solid var(--line); background: var(--surface-solid); }
.copy-button:disabled { opacity: .6; cursor: wait; }
.copy-status { min-height: 20px; margin: 5px 0; font-size: 12px; line-height: 20px; color: var(--brand-strong); }
footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links a:hover { color: var(--brand-strong); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .hero-copy { max-width: 560px; margin: 0 auto; text-align: center; }
  .hero-description, .hero-support { margin-right: auto; margin-left: auto; }
  .hero-actions { margin-right: auto; margin-left: auto; }
  .terminal-side { width: min(100%, 560px); margin: 0 auto; text-align: left; }
}
@media (max-width: 620px) {
  .site-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .brand span { display: none; }
  .header-actions { gap: 2px; }
  .icon-text-button { padding-right: 6px; padding-left: 6px; font-size: 12px; }
  main { width: calc(100% - 40px); }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 30px; }
  .hero-description { max-width: 340px; font-size: 16px; }
  .hero-support { max-width: 340px; font-size: 13px; }
  .hero-actions { grid-template-columns: 1fr; width: min(100%, 300px); margin: 24px auto 0; }
  .usage-shortcut { justify-content: center; }
  .terminal-body { min-height: 168px; padding: 20px 16px; font-size: 11px; overflow-x: auto; }
  .usage-link { width: min(100%, 300px); }
  .primary-action, .secondary-action { width: 100%; }
  .capability-grid { grid-template-columns: 1fr; gap: 24px; }
  .related-resources { align-items: flex-start; flex-direction: column; gap: 6px; }
  .related-resources nav { justify-content: flex-start; }
  .access-info { padding: 24px 0 28px; }
}
@media (min-width: 621px) and (max-width: 900px) {
  .capability-list { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .site-header { padding-right: max(24px, calc((100% - 1152px) / 2)); padding-left: max(24px, calc((100% - 1152px) / 2)); }
  main { width: min(1024px, 100%); padding-inline: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr); gap: 72px; padding-top: 76px; }
  .terminal-body { min-height: 210px; padding: 28px 26px; }
}
@media (max-width: 360px) {
  .capability-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .terminal-line { opacity: 1; transform: none; animation: none; }
  .terminal-cursor i { animation: none; }
}
