:root, html[data-theme="day"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-deep: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #f0f3f6;
  --text: #17202a;
  --text-soft: rgba(23, 32, 42, .68);
  --text-muted: rgba(23, 32, 42, .46);
  --line: rgba(23, 32, 42, .12);
  --line-strong: rgba(23, 32, 42, .2);
  --blue: #1d6fc8;
  --blue-bright: #2c85e4;
  --accent: #ed7600;
  --shadow: rgba(30, 55, 75, .12);
  --header-bg: rgba(255, 255, 255, .9);
  --purple: #2458d8;
  --cyan: #0b9b7c;
  --yellow: #c98a16;
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #151819;
  --bg-deep: #101213;
  --surface: #1a1e20;
  --surface-soft: #202528;
  --text: #f4f5f6;
  --text-soft: rgba(244, 245, 246, .68);
  --text-muted: rgba(244, 245, 246, .42);
  --line: rgba(244, 245, 246, .11);
  --line-strong: rgba(244, 245, 246, .2);
  --blue: #247bd8;
  --blue-bright: #3d91ef;
  --accent: #ff8c16;
  --cyan: #52dfca;
  --yellow: #f2d565;
  --purple: #996bff;
  --shadow: rgba(0, 0, 0, .26);
  --header-bg: rgba(21, 24, 25, .88);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; transition: background .25s ease, color .25s ease; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(18px); }
.header-inner { width: min(1150px, calc(100% - 64px)); height: 70px; margin: auto; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand strong { font-size: 13px; letter-spacing: .02em; }.brand strong span { color: var(--text-soft); font-weight: 500; }
.brand-mark { position: relative; width: 25px; height: 25px; transform: rotate(45deg); }.brand-mark i { position: absolute; width: 10px; height: 10px; border-radius: 2px; background: #3b9df5; }.brand-mark i:nth-child(1) { inset: 0 auto auto 0; }.brand-mark i:nth-child(2) { inset: 0 0 auto auto; background: #7a5bff; }.brand-mark i:nth-child(3) { inset: auto auto 0 0; background: #ff8020; }.brand-mark i:nth-child(4) { inset: auto 0 0 auto; background: #44d6a1; }
.desktop-nav { display: flex; align-items: stretch; gap: 30px; height: 100%; margin-left: auto; }.desktop-nav a { position: relative; display: flex; align-items: center; color: var(--text-soft); font-size: 13px; }.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }.desktop-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: 4px; }.icon-button, .menu-button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; }.icon-button { color: var(--text-soft); }.theme-button span { font-size: 20px; line-height: 1; }.notification-button { position: relative; font-size: 18px; }.notification-button b { position: absolute; top: -1px; right: -1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 10px; background: #a63b54; color: #fff; font-size: 9px; line-height: 15px; }.login-button { padding: 6px 16px; border-radius: 18px; background: var(--blue); color: #fff; font-size: 12px; }.login-button:hover { background: var(--blue-bright); }.menu-button { display: none; gap: 4px; }.menu-button span { width: 19px; height: 2px; background: currentColor; }.mobile-nav { display: none; }

.hero-section { padding: 74px 0 88px; background: var(--bg); }.hero-grid { width: min(1150px, calc(100% - 64px)); margin: auto; display: grid; grid-template-columns: minmax(0, .98fr) minmax(460px, 1.02fr); align-items: center; gap: 52px; }.hero-copy { max-width: 640px; }.eyebrow, .section-kicker { margin: 0 0 20px; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; }.eyebrow { display: flex; align-items: center; gap: 10px; }.eyebrow span { width: 7px; height: 7px; border: 2px solid var(--blue); border-radius: 50%; }.hero-copy h1 { margin: 0; font-size: clamp(40px, 4.3vw, 62px); line-height: 1.13; letter-spacing: -.03em; }.hero-copy h1 em { color: var(--purple); font-style: normal; }.hero-description { max-width: 580px; margin: 22px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.9; }.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }.button { min-height: 44px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease, border .18s ease; }.button:hover { transform: translateY(-1px); }.button-primary { background: var(--blue); color: #fff; box-shadow: 0 9px 18px var(--shadow); }.button-primary:hover { background: var(--blue-bright); }.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--text); }.button-secondary:hover { background: var(--surface-soft); border-color: var(--text-muted); }.button-docs { gap: 7px; }
.support-area { margin-top: 39px; }.support-label { margin: 0; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; }.support-caption { margin: 4px 0 15px; color: var(--text-muted); font-size: 12px; }.support-pills { display: flex; flex-wrap: wrap; gap: 9px; }.support-pills a, .more-pill { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text-soft); font-size: 12px; }.support-pills a:hover, .more-pill:hover { border-color: var(--line-strong); color: var(--text); }.more-pill { color: var(--text-muted); cursor: pointer; }.app-icon { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; }.cherry { color: #ee5c65; }.switch { color: var(--accent); }

.api-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); box-shadow: 0 18px 50px var(--shadow); }.api-topline, .api-endpoint, .api-metrics { display: flex; align-items: center; border-bottom: 1px solid var(--line); }.api-topline { min-height: 52px; justify-content: space-between; padding: 0 20px; }.api-tabs { display: flex; align-self: stretch; gap: 25px; }.api-tab { position: relative; border: 0; padding: 0; background: transparent; color: var(--text-muted); font-size: 12px; cursor: pointer; }.api-tab.is-selected { color: var(--purple); }.api-tab.is-selected::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--purple); }.api-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }.api-status span { width: 6px; height: 6px; border-radius: 50%; background: #44d68f; box-shadow: 0 0 8px #44d68f; }.api-endpoint { min-height: 58px; gap: 14px; padding: 0 20px; }.method { padding: 4px 7px; border-radius: 4px; background: rgba(74, 219, 198, .1); color: var(--cyan); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.api-endpoint code { color: var(--text); font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; }.route-label { margin-left: auto; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--text-muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }.api-body { background: var(--bg-deep); }.code-block { min-height: 198px; padding: 19px 20px; border-bottom: 1px solid var(--line); }.code-label { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; }.code-block pre { margin: 0; color: var(--text-soft); font: 11px/1.85 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }.muted { color: var(--text-muted); }.cyan { color: var(--cyan); }.orange { color: var(--accent); }.yellow { color: var(--yellow); }.blue { color: #80aaff; }.green { color: #68dfa0; }.api-metrics { min-height: 38px; gap: 10px; padding: 0 20px; border-bottom: 0; color: var(--text-muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }.api-metrics strong { color: var(--text-soft); font-weight: 500; }.api-metrics b { color: var(--text-muted); font-weight: 400; }.metric-stream { margin-left: auto; }

.feature-section, .workflow-section { width: min(1150px, calc(100% - 64px)); margin: auto; }.feature-section { padding: 75px 0 82px; border-top: 1px solid var(--line); }.section-kicker { color: var(--accent); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }.section-heading h2, .workflow-copy h2 { margin: 0; font-size: clamp(30px, 3.5vw, 47px); line-height: 1.2; letter-spacing: -.03em; }.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 38px; }.feature-card { min-height: 160px; padding: 19px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }.feature-card:hover { border-color: var(--line-strong); }.feature-card > span { color: var(--accent); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.feature-card h3 { margin: 22px 0 8px; font-size: 18px; }.feature-card p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.7; }
.workflow-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 80px 0 96px; border-top: 1px solid var(--line); }.workflow-copy > p:last-child { max-width: 340px; margin: 18px 0 0; color: var(--text-soft); font-size: 14px; }.workflow-list { margin: 0; padding: 0; list-style: none; }.workflow-list li { display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding: 0 0 23px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }.workflow-list li:last-child { margin-bottom: 0; }.workflow-list li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }.workflow-list h3 { margin: 0 0 5px; font-size: 19px; }.workflow-list p { margin: 0 0 5px; color: var(--text-soft); font-size: 13px; }.workflow-list small { color: var(--text-muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.cta-section { padding: 84px 0; border-top: 1px solid var(--line); background: var(--bg-deep); }.cta-section > div { width: min(1150px, calc(100% - 64px)); margin: auto; }.cta-section h2 { max-width: 620px; margin: 0; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.18; }.cta-section > div > p:not(.section-kicker) { margin: 16px 0 0; color: var(--text-soft); font-size: 14px; }.cta-section .button { margin-top: 26px; }.site-footer { padding: 22px 0; border-top: 1px solid var(--line); background: var(--surface); }.footer-inner { width: min(1150px, calc(100% - 64px)); margin: auto; display: flex; justify-content: space-between; gap: 20px; color: var(--text-muted); font-size: 10px; }.footer-inner a:hover { color: var(--text); }

/* Local preview polish: mirrors the production visual direction without changing interactions. */
.site-header { box-shadow: 0 8px 28px rgba(16, 24, 40, .06); }
.brand-logo-slot { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; }
.brand-mark { width: 23px; height: 23px; }
.brand strong { font-size: 14px; }
.brand strong span { margin-left: 7px; color: var(--text-soft); font-weight: 500; }
.desktop-nav a { padding-inline: 11px; border-radius: 8px; }
.desktop-nav a:hover { background: rgba(36, 88, 216, .07); }
.desktop-nav a.active::after { height: 2px; background: var(--accent); }
.icon-button { width: 34px; height: 34px; border-radius: 8px; }
.icon-button:hover { background: rgba(36, 88, 216, .08); }
.avatar-button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.hero-section { padding-top: 92px; background-image: linear-gradient(180deg, #f8fbff 0, #fff 60%); }
.hero-grid { width: min(1200px, calc(100% - 64px)); gap: 64px; }
.hero-copy h1 { font-size: clamp(44px, 5vw, 70px); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy h1 em { color: var(--blue); }
.hero-actions { margin-top: 30px; }
.button { border-radius: 10px; }
.button-primary { box-shadow: 0 10px 22px rgba(36, 88, 216, .2); }
.button-ghost { border-color: var(--line); background: #fff; color: var(--text); }
.button-ghost:hover { border-color: rgba(36, 88, 216, .3); background: #f7f9fc; }
.button-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.api-card { border-radius: 14px; border-color: rgba(36, 88, 216, .18); box-shadow: 0 24px 60px rgba(42, 61, 92, .11); }
.api-tab.is-selected { color: var(--blue); }
.api-tab.is-selected::after { background: var(--blue); }
.feature-section { padding-top: 96px; padding-bottom: 100px; }
.feature-card { min-height: 190px; padding: 24px; border-radius: 8px; }
.feature-card { position: relative; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.feature-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: #2458d8; }
.feature-card:nth-child(2)::before { background: #0b9b7c; }
.feature-card:nth-child(3)::before { background: #ed8b16; }
.feature-card:nth-child(4)::before { background: #6b59c8; }
.feature-card:nth-child(2) > span { color: #0b9b7c; }
.feature-card:nth-child(3) > span { color: #ed8b16; }
.feature-card:nth-child(4) > span { color: #6b59c8; }
.feature-card:hover { transform: translateY(-2px); border-color: rgba(36, 88, 216, .25); box-shadow: 0 12px 28px rgba(42, 61, 92, .08); }
.workflow-section { padding-top: 92px; padding-bottom: 104px; background: var(--surface-soft); }
.workflow-list li > span { border-radius: 8px; }
.cta-section { background: #f5f8fd; }

@media (max-width: 1000px) { .header-inner, .hero-grid, .feature-section, .workflow-section, .cta-section > div, .footer-inner { width: min(100% - 44px, 760px); }.desktop-nav { gap: 20px; }.hero-grid { grid-template-columns: 1fr; }.hero-copy { max-width: 700px; }.api-card { max-width: 700px; }.feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .header-inner, .hero-grid, .feature-section, .workflow-section, .cta-section > div, .footer-inner { width: calc(100% - 36px); }.header-inner { height: 64px; }.brand strong span { display: none; }.desktop-nav, .login-button { display: none; }.header-actions { margin-left: auto; }.menu-button { display: grid; }.mobile-nav.is-open { width: calc(100% - 36px); margin: auto; padding: 0 0 14px; display: grid; gap: 5px; }.mobile-nav a { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 12px; }.hero-section { padding: 50px 0 60px; }.hero-copy h1 { font-size: clamp(37px, 11vw, 54px); }.hero-description { font-size: 14px; }.hero-actions { gap: 9px; }.button { min-height: 42px; padding: 9px 13px; font-size: 12px; }.button-docs { flex-basis: 100%; }.support-area { margin-top: 33px; }.api-topline { padding-inline: 14px; }.api-tabs { gap: 14px; }.api-tab { font-size: 10px; }.api-status { font-size: 9px; }.api-endpoint { padding-inline: 14px; }.api-endpoint code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.route-label { display: none; }.code-block { min-height: 0; padding: 17px 14px; }.code-block pre { font-size: 9px; line-height: 1.75; }.api-metrics { padding-inline: 14px; }.metric-stream { margin-left: 0; }.feature-section { padding: 62px 0; }.section-heading h2, .workflow-copy h2 { font-size: 34px; }.feature-grid { grid-template-columns: 1fr; margin-top: 28px; }.feature-card { min-height: 0; }.workflow-section { grid-template-columns: 1fr; gap: 39px; padding: 62px 0 74px; }.cta-section { padding: 65px 0; }.cta-section h2 { font-size: 38px; }.footer-inner { flex-direction: column; gap: 6px; } }

/* Support links use the original application marks and a quieter editorial layout. */
.support-area { margin-top: 36px; }
.support-label { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.support-caption { font-size: 13px; line-height: 1.7; color: var(--text-muted); }
.support-pills { gap: 12px; }
.support-pills a, .more-pill { min-height: 52px; padding: 0 22px; gap: 12px; border-radius: 27px; font-size: 15px; color: var(--text); background: rgba(255,255,255,.86); }
.support-pills a:first-child { min-width: 178px; }
.support-pills a:nth-child(2) { min-width: 164px; }
.more-pill { min-width: 100px; color: var(--text-soft); }
.app-icon { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 6px; object-fit: contain; }
.more-icon { color: #a0a6af; font-size: 17px; letter-spacing: 2px; line-height: 1; }
.workflow-section { width: min(1150px, calc(100% - 64px)); margin: auto; padding: 104px 0 112px; background: transparent; }
.workflow-section > * { min-width: 0; }
.workflow-copy { padding-top: 6px; }
.workflow-copy > p:last-child { max-width: 360px; font-size: 15px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--blue); font-size: 14px; font-weight: 700; }
.text-link:hover { color: var(--blue-bright); }
.workflow-list { display: grid; gap: 12px; padding: 0; }
.workflow-list li { min-height: 126px; align-items: center; grid-template-columns: 48px 1fr; gap: 18px; margin: 0; padding: 23px 24px; border: 1px solid #e5eaf2; border-radius: 8px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workflow-list li:hover { transform: translateY(-2px); border-color: rgba(36, 88, 216, .28); box-shadow: 0 12px 28px rgba(42, 61, 92, .08); }
.workflow-list li > span { width: 38px; height: 38px; border-color: rgba(36, 88, 216, .35); border-radius: 8px; background: rgba(36, 88, 216, .06); color: var(--blue); }
.workflow-list li:nth-child(2) > span { border-color: rgba(11, 155, 124, .35); background: rgba(11, 155, 124, .06); color: #0b9b7c; }
.workflow-list li:nth-child(3) > span { border-color: rgba(237, 139, 22, .4); background: rgba(237, 139, 22, .07); color: #d47909; }
.workflow-list h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: 0; }
.workflow-list p { margin-bottom: 6px; font-size: 14px; line-height: 1.65; }
.workflow-list small { color: var(--blue); font-weight: 700; letter-spacing: .08em; }
.workflow-list li:nth-child(2) small { color: #0b9b7c; }
.workflow-list li:nth-child(3) small { color: #d47909; }
.cta-section { position: relative; padding: 96px 0; overflow: hidden; border-top: 1px solid #e2e8f1; background: #f6f8fc; }
.cta-section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1150px, calc(100% - 64px)); height: 3px; background: var(--blue); transform: translateX(-50%); }
.cta-section::after { content: ""; position: absolute; top: 0; left: calc(50% + min(1150px, calc(100% - 64px)) / 2 - 160px); width: 160px; height: 3px; background: var(--accent); }
.cta-section > div { position: relative; z-index: 1; }
.cta-section h2 { max-width: 760px; font-size: clamp(36px, 4.2vw, 56px); }
.cta-section > div > p:not(.section-kicker) { max-width: 620px; font-size: 15px; line-height: 1.8; }

html[data-theme="night"] .workflow-section { background: transparent; }
html[data-theme="night"] .workflow-list li { border-color: var(--line); background: var(--surface); }
html[data-theme="night"] .workflow-list li:hover { border-color: rgba(124, 156, 255, .5); box-shadow: 0 12px 28px rgba(0, 0, 0, .24); }
html[data-theme="night"] .cta-section { border-color: var(--line); background: #141922; }

@media (max-width: 680px) {
  .workflow-section { width: calc(100% - 36px); padding: 70px 0 76px; }
  .workflow-copy { padding-top: 0; }
  .workflow-list li { min-height: 0; padding: 20px 18px; }
  .cta-section { padding: 72px 0; }
  .cta-section::before { width: calc(100% - 36px); }
  .cta-section::after { left: auto; right: 18px; width: 82px; }
}

/* Exact live-site header alignment for the local preview. */
.site-header { position: fixed; inset: 0 0 auto; height: 64px; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.header-inner { width: calc(100% - 48px); max-width: none; height: 64px; margin: 0 auto; padding: 0 8px; gap: 0; }
.brand { gap: 10px; height: 28px; }
.brand-logo-slot { width: 28px; height: 28px; }
.brand-mark { display: none; }
.brand-image { display: block; width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.brand-text { display: inline-flex; align-items: center; white-space: nowrap; font: 600 14px/20px "Public Sans", Inter, ui-sans-serif, sans-serif; letter-spacing: 0; color: var(--text); }
.desktop-nav { height: 64px; margin-left: auto; display: flex; align-items: center; gap: 2px; }
.desktop-nav a { height: 32px; padding: 6px 12px; border-radius: 8px; font: 500 14px/20px "Public Sans", Inter, ui-sans-serif, sans-serif; color: var(--text-soft); }
.desktop-nav a.active, .desktop-nav a:hover { color: var(--text); background: transparent; }
.desktop-nav a.active::after { display: none; }
.nav-divider, .header-divider { display: block; width: 1px; height: 16px; background: var(--line); }
.nav-divider { margin: 0 8px; }
.header-actions { height: 64px; margin-left: 0; padding-left: 0; display: flex; align-items: center; gap: 2px; border-left: 0; }
.icon-button { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 8px; color: var(--text); background: transparent; }
.icon-button:hover { background: var(--surface-soft); color: var(--text); }
.language-button svg, .notification-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-button .theme-icon { font-size: 23px; line-height: 1; }
.notification-button { position: relative; font-size: 0; }
.notification-badge { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font: 600 10px/16px "Public Sans", sans-serif; }
.header-divider { margin: 0 8px; }
.avatar-button { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: #fff; font: 500 12px/16px "Public Sans", sans-serif; box-shadow: none; }
.menu-button { display: none; }
html[data-theme="night"] .site-header { background: transparent; }
html[data-theme="night"] .icon-button:hover { background: rgba(255,255,255,.08); }

@media (max-width: 680px) {
  .site-header, .header-inner { height: 64px; }
  .header-inner { width: calc(100% - 32px); padding: 0; }
  .brand-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .language-button { display: none; }
  .header-divider { display: none; }
  .menu-button { display: grid; }
}

/* Keep the header visually aligned with the original live site. */
.site-header { box-shadow: none; background: rgba(255, 255, 255, .9); }
.header-inner { width: min(100% - 64px, 1480px); height: 82px; gap: 26px; }
.brand-logo-slot { width: 38px; height: 38px; }
.brand-mark { width: 30px; height: 30px; }
.brand strong { font-size: 16px; font-weight: 750; }
.brand-text { display: inline-flex; align-items: baseline; gap: 8px; }
.brand-text > span::before { content: "|"; margin-right: 8px; color: var(--text-muted); }
.brand strong span { margin: 0; }
.brand-text > span { color: var(--text); font-size: 16px; font-weight: 700; }
.desktop-nav { gap: 6px; }
.desktop-nav a { padding: 10px 12px; border-radius: 0; font-size: 15px; font-weight: 700; }
.desktop-nav a:hover { background: transparent; }
.desktop-nav a.active::after { bottom: 5px; left: 50%; right: auto; width: 24px; transform: translateX(-50%); border-radius: 999px; }
.header-actions { gap: 10px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.icon-button { width: 36px; height: 36px; padding: 0; border-radius: 0; color: var(--text); }
.icon-button:hover { background: transparent; color: var(--blue); }
.notification-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar-button { width: 38px; height: 38px; background: #6fd227; font-size: 15px; box-shadow: none; }
html[data-theme="night"] .site-header { background: rgba(21, 24, 25, .9); }
html[data-theme="night"] .brand-text > span { color: var(--text); }

@media (max-width: 680px) {
  .header-inner { width: calc(100% - 36px); height: 68px; gap: 12px; }
  .brand-logo-slot { width: 30px; height: 30px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand strong { font-size: 14px; }
  .brand-text > span { display: none; }
  .header-actions { border-left: 0; padding-left: 0; }
}

/* Final v06 header correction: one height system, centered text, circular user mark. */
.site-header { height: 82px; min-height: 82px; }
.header-inner { width: min(100% - 64px, 1480px); height: 82px; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 26px; }
.brand { height: 38px; display: inline-flex; align-items: center; gap: 10px; }
.brand-logo-slot { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.brand-image { width: 38px; height: 38px; display: block; border-radius: 8px; object-fit: contain; }
.brand-text { height: 38px; display: inline-flex; align-items: center; white-space: nowrap; font: 700 16px/24px "Public Sans", Inter, ui-sans-serif, sans-serif; letter-spacing: 0; color: var(--text); }
.desktop-nav { height: 82px; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.desktop-nav a { height: 42px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; font: 700 15px/24px "Public Sans", Inter, ui-sans-serif, sans-serif; }
.desktop-nav a.active::after { bottom: 5px; }
.header-actions { height: 82px; display: flex; align-items: center; gap: 10px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.language-button svg, .notification-button svg { width: 22px; height: 22px; }
.theme-button .theme-icon { font-size: 22px; line-height: 1; }
.avatar-button { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; display: grid; place-items: center; background: #6fd227; color: #fff; font: 700 15px/24px "Public Sans", Inter, sans-serif; }

@media (max-width: 680px) {
  .site-header { height: 68px; min-height: 68px; }
  .header-inner { width: calc(100% - 36px); height: 68px; gap: 12px; }
  .brand { height: 30px; }
  .brand-logo-slot, .brand-image { width: 30px; height: 30px; }
  .brand-text { height: 30px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; line-height: 20px; }
  .desktop-nav { display: none; }
  .header-actions { height: 68px; margin-left: auto; padding-left: 0; border-left: 0; gap: 4px; }
  .language-button { display: none; }
  .avatar-button { width: 34px; height: 34px; min-width: 34px; font-size: 14px; }
}

/* Final night-mode correction: keep every section on the same dark surface. */
html[data-theme="night"] body,
html[data-theme="night"] main { background: #151819 !important; color: #f4f5f6 !important; }
html[data-theme="night"] .site-header { background: rgba(21, 24, 25, .94) !important; border-bottom-color: rgba(244, 245, 246, .12) !important; }
html[data-theme="night"] .brand-text,
html[data-theme="night"] .desktop-nav a,
html[data-theme="night"] .icon-button { color: #f4f5f6 !important; }
html[data-theme="night"] .desktop-nav a:not(.active) { color: rgba(244, 245, 246, .68) !important; }
html[data-theme="night"] .desktop-nav a:hover { background: rgba(255,255,255,.06) !important; }
html[data-theme="night"] .header-divider,
html[data-theme="night"] .nav-divider { background: rgba(244,245,246,.16) !important; }
html[data-theme="night"] .avatar-button { background: #6fd227 !important; color: #fff !important; }

html[data-theme="night"] .hero-section {
  background: #151819 !important;
  background-image: linear-gradient(180deg, #191d20 0, #151819 66%) !important;
}
html[data-theme="night"] .hero-copy h1,
html[data-theme="night"] .section-heading h2,
html[data-theme="night"] .workflow-copy h2,
html[data-theme="night"] .cta-section h2 { color: #f4f5f6 !important; }
html[data-theme="night"] .hero-copy h1 em { color: #5f9cff !important; }
html[data-theme="night"] .eyebrow,
html[data-theme="night"] .hero-description,
html[data-theme="night"] .section-heading > p:last-child,
html[data-theme="night"] .workflow-copy > p:last-child,
html[data-theme="night"] .feature-card p,
html[data-theme="night"] .workflow-list p,
html[data-theme="night"] .cta-section > div > p:not(.section-kicker) { color: rgba(244,245,246,.68) !important; }
html[data-theme="night"] .button-secondary,
html[data-theme="night"] .button-ghost { border-color: rgba(244,245,246,.2) !important; background: rgba(255,255,255,.04) !important; color: #f4f5f6 !important; }
html[data-theme="night"] .button-secondary:hover,
html[data-theme="night"] .button-ghost:hover { background: rgba(255,255,255,.1) !important; border-color: rgba(244,245,246,.34) !important; }
html[data-theme="night"] .support-label { color: rgba(244,245,246,.72) !important; }
html[data-theme="night"] .support-caption { color: rgba(244,245,246,.5) !important; }
html[data-theme="night"] .support-pills a,
html[data-theme="night"] .more-pill { border-color: rgba(244,245,246,.16) !important; background: #1d2226 !important; color: #f4f5f6 !important; }
html[data-theme="night"] .support-pills a:hover,
html[data-theme="night"] .more-pill:hover { border-color: rgba(124,156,255,.5) !important; background: #242b31 !important; }

html[data-theme="night"] .api-card { border-color: rgba(124,156,255,.28) !important; background: #1a1e20 !important; box-shadow: 0 24px 60px rgba(0,0,0,.28) !important; }
html[data-theme="night"] .api-body { background: #101213 !important; }
html[data-theme="night"] .api-topline,
html[data-theme="night"] .api-endpoint,
html[data-theme="night"] .code-block { border-color: rgba(244,245,246,.12) !important; }
html[data-theme="night"] .api-tab { color: rgba(244,245,246,.52) !important; }
html[data-theme="night"] .api-tab.is-selected { color: #72a5ff !important; }
html[data-theme="night"] .api-tab.is-selected::after { background: #72a5ff !important; }

html[data-theme="night"] .feature-section { background: #151819 !important; border-color: rgba(244,245,246,.12) !important; }
html[data-theme="night"] .feature-card { border-color: rgba(244,245,246,.14) !important; background: #1a1e20 !important; }
html[data-theme="night"] .feature-card:hover { background: #20262b !important; border-color: rgba(124,156,255,.5) !important; }
html[data-theme="night"] .workflow-section { background: #111416 !important; border-color: rgba(244,245,246,.12) !important; }
html[data-theme="night"] .workflow-list li { border-color: rgba(244,245,246,.14) !important; background: #1a1e20 !important; }
html[data-theme="night"] .workflow-list li:hover { background: #20262b !important; border-color: rgba(124,156,255,.5) !important; }
html[data-theme="night"] .cta-section { background: #1a1f24 !important; border-color: rgba(244,245,246,.14) !important; }
html[data-theme="night"] .site-footer { background: #151819 !important; border-color: rgba(244,245,246,.12) !important; }
