@font-face {
  font-family: "Source Han Sans SC";
  src: local("Source Han Sans SC"), local("Source Han Sans CN"), local("思源黑体"), local("Noto Sans SC");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --bg: #1a1a1a;
  --bg-deep: #11161d;
  --surface: #1d1d1d;
  --surface-soft: #202020;
  --surface-raised: #242424;
  --text: #f5f7f6;
  --muted: #9a9d9c;
  --muted-2: #707574;
  --line: #303232;
  --line-soft: #272929;
  --blue: #2f9deb;
  --blue-strong: #168edc;
  --purple: #9a55ee;
  --green: #05b983;
  --yellow: #ffd33d;
  --cyan: #39c5ff;
  --danger: #e47c63;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
}

body.light {
  --bg: #f7fafb;
  --bg-deep: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f7f7;
  --surface-raised: #eef3f3;
  --text: #131818;
  --muted: #6f7876;
  --muted-2: #98a2a0;
  --line: #dde5e3;
  --line-soft: #edf1f0;
  --shadow: 0 24px 70px rgba(39, 64, 56, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100%; margin: 0; color: var(--text); background: var(--bg); }
html, body, body *, body *::before, body *::after { font-family: var(--font-ui) !important; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; }
a.primary-button, a.secondary-button { text-decoration: none; }
svg { display: block; }

.site-shell { min-height: 100vh; overflow-x: clip; }
.page-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; height: 68px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid rgba(48, 50, 50, .45); background: rgba(26, 26, 26, .92); backdrop-filter: blur(16px); }
body.light .site-header { background: rgba(255, 255, 255, .9); }
.header-inner { width: min(1210px, calc(100% - 40px)); height: 100%; display: flex; align-items: center; gap: 34px; margin: 0 auto; }
.brand { min-width: 285px; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 25px; height: 25px; object-fit: contain; }
.brand strong { font-size: 14px; font-weight: 800; white-space: nowrap; }
.main-nav { height: 100%; display: flex; align-items: stretch; gap: 27px; margin-left: auto; }
.nav-link { position: relative; display: flex; align-items: center; color: #a7aaa9; text-decoration: none; font-size: 12px; font-weight: 700; }
body.light .nav-link { color: #68716f; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 5px; padding-left: 16px; border-left: 1px solid var(--line); }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #d8dcda; background: transparent; }
body.light .icon-button { color: #4e5956; }
.icon-button:hover { color: #fff; background: var(--surface-raised); }
body.light .icon-button:hover { color: #111; }
.icon-button svg { width: 17px; height: 17px; stroke-width: 1.8; }
.login-button { height: 34px; min-width: 62px; display: inline-flex; align-items: center; justify-content: center; margin-left: 7px; padding: 0 18px; border: 1px solid var(--blue-strong); border-radius: 18px; color: #fff; background: var(--blue-strong); font-size: 12px; font-weight: 800; box-shadow: 0 8px 20px rgba(22, 142, 220, .2); }
.login-button:hover { border-color: #36a9f4; background: #36a9f4; }
.login-button > svg { width: 16px; height: 16px; flex: 0 0 16px; stroke-width: 2; }
.login-button span { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-button.authenticated { gap: 7px; border-color: var(--line); color: var(--text); background: var(--surface-raised); box-shadow: none; }
.login-button.authenticated:hover { border-color: #4b5050; background: #303232; }
body.light .login-button.authenticated:hover { background: #e8eeec; }

.hero { position: relative; min-height: 707px; display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(460px, .8fr); gap: 54px; align-items: center; padding-top: 74px; padding-bottom: 80px; }
.hero-copy { min-width: 0; }
.hero-badge { width: max-content; display: flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 13px 20px; border: 1px solid rgba(47, 157, 235, .46); border-radius: 24px; color: #63b7f0; background: rgba(47, 157, 235, .08); font-size: 14px; font-weight: 800; }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47,157,235,.11); }
.hero-grid--single { grid-template-columns: minmax(0, 1fr); }
.hero-grid--single .hero-copy { max-width: 820px; }
.hero h1 { max-width: none; margin: 0; font-size: 49px; line-height: 1.14; letter-spacing: 0; font-weight: 850; }
.hero h1 #heroTitlePrefix { white-space: nowrap; }
.headline-blue { color: #4f9eff; }
.headline-purple { margin-left: 8px; color: #aa5df1; }
.hero-lead { max-width: 590px; margin: 23px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 31px; }
.primary-button, .secondary-button { height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 19px; border-radius: 16px; font-size: 12px; font-weight: 800; }
.primary-button { border: 1px solid var(--blue-strong); color: #fff; background: var(--blue-strong); box-shadow: 0 9px 22px rgba(22, 142, 220, .17); }
.primary-button:hover { border-color: #36a9f4; background: #36a9f4; }
.secondary-button { border: 1px solid #3a3c3d; color: #e4e7e6; background: rgba(255, 255, 255, .025); }
body.light .secondary-button { border-color: var(--line); color: #3d4945; background: #fff; }
.secondary-button:hover { border-color: #5c6060; background: rgba(255, 255, 255, .055); }
body.light .secondary-button:hover { background: #f1f5f4; }
.primary-button svg, .secondary-button svg { width: 16px; height: 16px; stroke-width: 2; }
.app-support { margin-top: 42px; }
.app-support > p { margin: 0 0 7px; color: var(--muted-2); font-size: 10px; font-weight: 800; }
.support-note { display: block; color: #777c7a; font-size: 10px; }
.support-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.support-list > span { min-height: 43px; display: inline-flex; align-items: center; gap: 9px; padding: 0 17px; border: 1px solid var(--line); border-radius: 22px; color: #c1c5c3; background: rgba(255, 255, 255, .015); font-size: 11px; font-weight: 700; }
body.light .support-list > span { color: #53605b; background: #fff; }
.support-list > span:hover { border-color: #474a4a; background: rgba(255, 255, 255, .035); }
.model-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; }
.model-mark.gpt { background: #3f8ddd; }
.model-mark.nano { background: #e98841; }
.model-mark.seedance { background: #20a27a; }
.more-chip { color: #8b908e !important; }

.api-demo { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-soft); box-shadow: var(--shadow); }
body.light .api-demo { border-color: var(--line); background: var(--surface); }
.demo-tabs { height: 48px; display: flex; align-items: stretch; gap: 24px; padding: 0 23px; border-bottom: 1px solid var(--line); }
body.light .demo-tabs { border-color: var(--line); }
.demo-tab { position: relative; padding: 0; border: 0; color: #666f7b; background: transparent; font: 700 11px Consolas, monospace; }
body.light .demo-tab { color: #929b98; }
.demo-tab.active { color: #4aa7ff; }
.demo-tab.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #4aa7ff; }
.demo-ok { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #5f6872; font: 700 9px Consolas, monospace; }
.demo-ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.demo-route { height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); }
body.light .demo-route { border-color: var(--line); }
.demo-route span { padding: 4px 7px; border-radius: 9px; color: #4aa7ff; background: rgba(47, 157, 235, .12); font: 800 8px Consolas, monospace; }
.demo-route code { color: var(--muted); font: 10px Consolas, monospace; }
body.light .demo-route code { color: var(--muted); }
.demo-block { padding: 18px 22px; }
.demo-block > p { margin: 0 0 13px; color: #56606c; font: 800 9px Consolas, monospace; }
.demo-block pre { min-height: 130px; margin: 0; overflow: auto; color: #b8c5d1; font: 10px/1.75 Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-word; }
body.light .demo-block pre { color: #56645f; }
.demo-block .key { color: #56c7ff; }
.demo-block .string { color: var(--yellow); }
.demo-block .number { color: #b783ff; }
.demo-block .command { color: #27d49d; }
.response-block { border-top: 1px solid var(--line); }
body.light .response-block { border-color: var(--line); }
.response-block pre { min-height: 112px; }
.demo-footer { height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 21px; border-top: 1px solid var(--line); color: var(--muted-2); font: 700 8px Consolas, monospace; }
body.light .demo-footer { border-color: var(--line); color: var(--muted-2); }

.stats-band { min-height: 163px; display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid div { display: grid; justify-items: center; gap: 8px; }
.stats-grid strong { font-size: 27px; font-weight: 850; }
.stats-grid span { color: #c1c4c3; font-size: 11px; }
body.light .stats-grid span { color: #66716d; }

.scenarios-section {
  padding: 72px 0 94px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  background: var(--bg);
}
.scenarios-heading { text-align: center; }
.scenarios-heading h2 { margin: 0; font-size: 29px; line-height: 1.25; font-weight: 850; letter-spacing: 0; }
.scenarios-heading p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 31px; }
.scenario-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 21px 21px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.scenario-icon { width: 51px; height: 51px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; color: var(--blue); background: var(--surface-raised); font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 25px; line-height: 1; }
.scenario-card h3 { margin: 0; color: var(--text); font-size: 17px; line-height: 1.35; font-weight: 800; }
.scenario-card > p { flex: 0 0 auto; margin: 10px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.scenario-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: flex-start; margin-top: auto; }
.scenario-tags span { padding: 4px 9px; border: 1px solid rgba(47, 157, 235, .4); border-radius: 12px; color: var(--blue); background: rgba(47, 157, 235, .08); font-size: 11px; line-height: 1.2; white-space: nowrap; }
body.light .scenario-card { box-shadow: 0 10px 24px rgba(39, 64, 56, .08); }

.section-space { padding-top: 104px; padding-bottom: 100px; }
.section-heading p { margin: 0 0 12px; color: #919593; font-size: 11px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 31px; line-height: 1.22; letter-spacing: 0; font-weight: 850; }
.section-heading.centered { text-align: center; }

.feature-matrix { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 220px 218px; margin-top: 62px; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; }
.feature-cell { min-width: 0; padding: 31px 33px; }
.feature-cell:nth-child(1), .feature-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
.feature-cell:nth-child(1), .feature-cell:nth-child(3) { border-right: 1px solid var(--line); }
.feature-title { display: flex; align-items: center; gap: 13px; }
.feature-title > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #aeb2b0; background: #353636; font: 800 9px Consolas, monospace; }
body.light .feature-title > span { background: #e9eeec; }
.feature-title strong { font-size: 13px; }
.feature-cell > p { margin: 16px 0 0; color: #aaaead; font-size: 12px; line-height: 1.6; }
body.light .feature-cell > p { color: #68726f; }
.model-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.model-pills span { height: 34px; display: grid; place-items: center; border: 1px solid #303333; border-radius: 17px; color: #bfc3c1; font-size: 10px; }
body.light .model-pills span { border-color: var(--line); color: #59645f; background: #fbfdfc; }
.security-cell { position: relative; }
.shield-visual { position: absolute; right: 50%; bottom: 30px; width: 58px; height: 58px; transform: translateX(50%); }
.shield-visual > span { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(5,185,131,.45); border-radius: 50%; color: var(--green); background: rgba(5,185,131,.04); }
.shield-visual svg { width: 25px; height: 25px; stroke-width: 1.6; }
.shield-visual b { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 10px; }
.routing-list { display: grid; gap: 8px; margin-top: 17px; }
.routing-list div { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; }
.routing-list b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #c4c7c6; background: #343636; font: 700 9px Consolas, monospace; }
.routing-list div.active b { color: #63b7ff; background: rgba(47,157,235,.2); box-shadow: inset 0 0 0 1px rgba(47,157,235,.5); }
.routing-list i { height: 1px; background: var(--line); }
.routing-list span { color: #b8bcba; font-size: 10px; }
body.light .routing-list span { color: #63706a; }
.developer-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 23px; }
.developer-tags span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #bec3c0; background: #333535; font: 700 8px Consolas, monospace; }
body.light .developer-tags span { color: #65706c; background: #ebefee; }
.developer-tags svg { width: 15px; height: 15px; margin-left: 7px; color: var(--blue); }
.developer-tags em { color: #aeb3b0; font-size: 10px; font-style: normal; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 47px; }
.benefit-grid article { display: grid; justify-items: center; text-align: center; }
.benefit-icon { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #d4d8d6; }
body.light .benefit-icon { color: #505d58; }
.benefit-icon svg { width: 19px; height: 19px; stroke-width: 1.6; }
.benefit-grid h3 { margin: 13px 0 8px; font-size: 13px; }
.benefit-grid p { margin: 0; color: #a2a6a4; font-size: 10px; }
body.light .benefit-grid p { color: #6b7571; }

.capability-heading h2 span { color: #68b9f2; }
.capability-heading > div { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 41px; }
.capability-card { position: relative; min-width: 0; min-height: 214px; display: flex; flex-direction: column; overflow: hidden; padding: 25px 25px 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.capability-card::before { content: ""; position: absolute; top: 0; left: 25px; width: 52px; height: 2px; background: var(--blue); }
.capability-card:nth-child(2)::before { background: var(--cyan); }
.capability-card:nth-child(3)::before { background: var(--green); }
.capability-card:nth-child(4)::before { background: var(--yellow); }
.capability-card:nth-child(5)::before { background: var(--purple); }
.capability-card:nth-child(6)::before { background: var(--danger); }
.capability-icon { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 12px; }
.capability-icon svg { width: 23px; height: 23px; stroke-width: 1.9; }
.capability-icon.blue { color: #63b7f0; background: rgba(47, 157, 235, .13); }
.capability-icon.cyan { color: #48cbd2; background: rgba(57, 197, 255, .12); }
.capability-icon.green { color: #52d3a7; background: rgba(24, 184, 131, .12); }
.capability-icon.amber { color: #f0bc5c; background: rgba(229, 166, 47, .13); }
.capability-icon.purple { color: #bc95ed; background: rgba(155, 103, 232, .13); }
.capability-icon.red { color: #ec8e7c; background: rgba(226, 121, 101, .13); }
.capability-card h3 { margin: 20px 0 9px; color: var(--text); font-size: 17px; line-height: 1.35; font-weight: 800; }
.capability-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
body.light .capability-card { box-shadow: 0 10px 24px rgba(39, 64, 56, .08); }

.cta-band { min-height: 360px; display: flex; align-items: center; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--text); background: var(--bg); }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 76px; padding-bottom: 68px; text-align: center; }
.cta-band-copy { margin: 0; color: var(--text); font-size: 28px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.cta-band-copy span { color: var(--blue); }
.cta-band-button { min-width: 120px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-top: 66px; padding: 0 22px; border: 1px solid var(--blue-strong); border-radius: 8px; color: #fff; background: var(--blue-strong); font-size: 16px; font-weight: 600; box-shadow: 0 8px 18px rgba(22, 142, 220, .18); }
.cta-band-button:hover { border-color: var(--blue); background: var(--blue); }

.quick-start-section { padding: 78px 0 86px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.quick-start-heading { text-align: center; }
.quick-start-heading p { margin: 0 0 9px; color: var(--blue); font: 800 11px/1 Consolas, monospace; letter-spacing: .08em; }
.quick-start-heading h2 { margin: 0; color: var(--text); font-size: 30px; line-height: 1.25; font-weight: 850; }
.quick-start-heading span { display: block; margin-top: 10px; color: var(--danger); font-size: 14px; line-height: 1.5; }
.quick-start-steps { display: grid; grid-template-columns: minmax(0, 1fr) 1.1fr minmax(0, 1fr) 1.1fr minmax(0, 1fr); align-items: start; gap: 16px; margin: 32px auto 34px; }
.quick-step { min-width: 0; text-align: center; }
.quick-step-number { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #3d8df5, #29bfa8); box-shadow: 0 10px 24px rgba(47, 157, 235, .18); font-size: 24px; font-weight: 850; }
.quick-step h3 { margin: 0; color: var(--text); font-size: 17px; line-height: 1.35; font-weight: 800; }
.quick-step p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.quick-step-line { height: 1px; margin-top: 29px; background: linear-gradient(90deg, rgba(47,157,235,.7), rgba(5,185,131,.45)); }
.quick-code-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 16px 36px rgba(0, 0, 0, .16); }
.quick-code-tabs { height: 58px; display: flex; align-items: stretch; gap: 34px; padding: 0 21px; background: #293247; }
.quick-code-tab { position: relative; padding: 0 1px; border: 0; color: #788397; background: transparent; font: 700 13px/1 Consolas, monospace; }
.quick-code-tab.active { color: #55a4ff; }
.quick-code-tab.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #4d8eff; }
.quick-copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 60px; height: 28px; margin: auto 0 auto auto; padding: 0 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; color: #d7dce5; background: rgba(255,255,255,.05); font-size: 11px; }
.quick-copy-button:hover { border-color: rgba(86,164,255,.75); color: #fff; background: rgba(86,164,255,.14); }
.quick-copy-button svg { width: 14px; height: 14px; }
.quick-code-body { padding: 27px 25px 30px; background: var(--surface); }
.quick-code-label { display: block; margin-bottom: 17px; color: var(--muted); font-size: 12px; }
.quick-code-body pre { min-height: 195px; margin: 0; overflow: auto; color: var(--muted); font: 13px/1.85 Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-word; }
body.light .quick-code-tabs { background: #253149; }
.quick-start-section .api-demo { width: 100%; border-radius: 15px; }
.quick-start-section .api-demo .demo-tabs { height: 58px; padding-right: 21px; padding-left: 21px; background: #293247; }
.quick-start-section .api-demo .demo-route { height: 50px; }
.quick-start-section .api-demo .demo-block { padding: 24px 25px; }
.quick-start-section .api-demo .demo-block pre { min-height: 148px; font-size: 13px; line-height: 1.8; }
.quick-start-section .api-demo .response-block pre { min-height: 128px; }
.quick-start-section .api-demo .demo-footer { height: 42px; }

.site-footer { min-height: 72px; display: flex; align-items: center; border-top: 1px solid var(--line-soft); color: var(--muted-2); background: var(--bg); font-size: 9px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

.auth-dialog { width: min(450px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 22px; color: var(--text); background: #1c1d1d; box-shadow: 0 28px 90px rgba(0, 0, 0, .48); }
body.light .auth-dialog { background: #fff; }
.auth-dialog::backdrop { background: rgba(0, 0, 0, .68); backdrop-filter: blur(5px); }
.auth-shell { padding: 25px; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.auth-brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 31px; height: 31px; object-fit: contain; }
.auth-brand span { min-width: 0; }
.auth-brand small, .auth-brand strong { display: block; }
.auth-brand small { margin-bottom: 4px; color: var(--blue); font: 800 8px Consolas, monospace; }
.auth-brand strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 23px; padding: 4px; border-radius: 13px; background: #252626; }
.auth-tabs[hidden] { display: none !important; }
body.light .auth-tabs { background: #f0f3f2; }
.auth-tabs button { height: 35px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.auth-tabs button.active { color: #fff; background: #353737; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
body.light .auth-tabs button.active { color: #17201d; background: #fff; }
.auth-message { min-height: 0; margin-top: 0; overflow: hidden; border-radius: 8px; color: #75c9ff; background: rgba(47, 157, 235, .08); font-size: 10px; line-height: 1.55; }
.auth-message:not(:empty) { min-height: 36px; margin-top: 15px; padding: 10px 12px; }
.auth-message.error { color: #f2a18e; background: rgba(228, 124, 99, .09); }
.auth-message.success { color: #5bd4ae; background: rgba(5, 185, 131, .09); }
.auth-form { display: grid; gap: 15px; margin-top: 19px; }
.auth-form[hidden], .account-panel[hidden] { display: none !important; }
.auth-form label > span { display: block; margin: 0 0 7px 2px; color: #babfbd; font-size: 10px; font-weight: 750; }
body.light .auth-form label > span { color: #55615c; }
.auth-form label > span em { color: var(--muted-2); font-size: 9px; font-style: normal; font-weight: 500; }
.auth-input { height: 42px; position: relative; display: flex; align-items: center; border: 1px solid #343737; border-radius: 11px; background: #161818; }
body.light .auth-input { border-color: var(--line); background: #fbfcfc; }
.auth-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,157,235,.1); }
.auth-input > svg { width: 16px; height: 16px; flex: 0 0 16px; margin-left: 13px; color: #6f7774; stroke-width: 1.7; }
.auth-input input { width: 100%; height: 40px; min-width: 0; padding: 0 12px 0 10px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.auth-input input::placeholder { color: #5f6663; }
body.light .auth-input input::placeholder { color: #9ba5a1; }
.auth-submit { margin-top: 2px; border-radius: 13px; }
.auth-switch { margin: -2px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.auth-switch button { padding: 2px 4px; border: 0; color: #4eaff2; background: transparent; font-size: inherit; font-weight: 800; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; }
.verification-button { border: 1px solid #3a3d3d; border-radius: 11px; color: #d2d6d4; background: #292b2b; font-size: 10px; font-weight: 750; }
body.light .verification-button { border-color: var(--line); color: #4f5c56; background: #f3f6f5; }
.verification-button:disabled { opacity: .5; }
.twofa-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 5px auto 0; border: 1px solid rgba(5,185,131,.45); border-radius: 50%; color: var(--green); background: rgba(5,185,131,.05); }
.twofa-icon svg { width: 25px; height: 25px; }
.twofa-copy { margin: 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.65; }
.account-panel { display: grid; gap: 17px; margin-top: 24px; }
.account-user { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #171919; text-align: left; }
body.light .account-user { background: #f8faf9; }
.account-user-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 50%; color: #65b8f2; background: rgba(47,157,235,.13); }
.account-user-icon svg { width: 19px; height: 19px; stroke-width: 1.8; }
.account-user > span:last-child { min-width: 0; }
.account-user small, .account-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-user small { color: var(--muted); font-size: 8px; }
.account-user strong { margin-top: 5px; font-size: 13px; }
.full-button { width: 100%; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: min(340px, calc(100vw - 40px)); display: grid; gap: 8px; }
.toast { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; color: var(--text); background: var(--surface-raised); box-shadow: var(--shadow); font-size: 11px; }

@media (max-width: 1050px) {
  .main-nav { gap: 18px; }
  .brand { min-width: 245px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero h1 #heroTitlePrefix { white-space: normal; }
  .hero-copy { max-width: 720px; }
  .api-demo { width: min(650px, 100%); }
  .hero { min-height: auto; }
  .feature-matrix { grid-template-columns: 1.55fr 1fr; }
}

@media (max-width: 800px) {
  .site-header { height: auto; min-height: 68px; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .brand { min-width: 0; }
  .main-nav { order: 3; width: 100%; height: 32px; gap: 20px; overflow-x: auto; }
  .nav-link { flex: 0 0 auto; }
  .header-actions { margin-left: auto; }
  .hero-grid { padding-top: 62px; }
  .hero h1 { font-size: 41px; }
  .feature-matrix { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-cell { min-height: 215px; }
  .feature-cell:nth-child(1), .feature-cell:nth-child(2), .feature-cell:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 20px; }
}

@media (max-width: 560px) {
  .page-container, .header-inner { width: min(100% - 28px, 1160px); }
  .brand strong { font-size: 11px; }
  .header-actions { gap: 1px; }
  .header-actions .icon-button:first-child { display: none; }
  .login-button { min-width: 52px; padding: 0 13px; }
  .hero-grid { padding-top: 48px; padding-bottom: 58px; }
  .hero h1 { font-size: 34px; line-height: 1.18; }
  .hero-badge { max-width: 100%; padding: 11px 15px; font-size: 12px; }
  .headline-purple { margin-left: 5px; }
  .hero-lead { font-size: 12px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .secondary-button:last-child { grid-column: 1 / 3; }
  .support-list > span { min-height: 38px; padding: 0 13px; }
  .api-demo { border-radius: 14px; }
  .demo-tabs { gap: 15px; padding: 0 15px; overflow-x: auto; }
  .demo-ok { display: none; }
  .demo-route, .demo-block { padding-right: 15px; padding-left: 15px; }
  .demo-block pre { font-size: 9px; }
  .scenarios-section { padding: 58px 0 70px; }
  .scenario-grid { grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 27px; }
  .scenario-card { min-height: 300px; padding: 19px 17px 18px; }
  .scenario-card > p { font-size: 12px; line-height: 1.65; }
  .scenario-tags { gap: 5px; }
  .scenario-tags span { padding: 4px 7px; font-size: 10px; }
  .section-space { padding-top: 74px; padding-bottom: 70px; }
  .section-heading h2 { font-size: 27px; }
  .feature-matrix { margin-top: 40px; border-radius: 15px; }
  .feature-cell { padding: 25px 21px; }
  .model-pills { grid-template-columns: 1fr 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { min-height: 280px; }
  .cta-band-inner { padding-top: 57px; padding-bottom: 53px; }
  .cta-band-copy { max-width: 330px; font-size: 22px; line-height: 1.55; }
  .cta-band-button { margin-top: 36px; }
  .quick-start-section { padding: 60px 0 64px; }
  .quick-start-heading h2 { font-size: 27px; }
  .quick-start-heading span { font-size: 12px; }
  .quick-start-steps { gap: 11px; margin-top: 28px; }
  .quick-step h3 { font-size: 15px; }
  .quick-step p { font-size: 11px; }
  .quick-code-tabs { gap: 22px; padding: 0 15px; }
  .quick-code-body { padding: 22px 17px 24px; }
  .quick-code-body pre { min-height: 220px; font-size: 11px; line-height: 1.7; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1050px) {
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .scenarios-heading h2 { font-size: 25px; }
  .scenarios-heading p { font-size: 12px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 0; }
  .quick-start-steps { grid-template-columns: 1fr; gap: 22px; }
  .quick-step-line { width: 58px; height: 1px; margin: -2px auto 0; }
  .quick-code-tabs { gap: 17px; overflow-x: auto; }
  .quick-code-tab { flex: 0 0 auto; font-size: 11px; }
  .quick-copy-button { flex: 0 0 auto; margin-left: auto; }
}

/* Match the console typography: 14px for primary reading and controls, 12px for supporting labels. */
body { font-size: 14px; }
.brand strong, .nav-link, .login-button, .hero-lead, .primary-button, .secondary-button,
.support-list > span, .demo-tab, .stats-grid span, .feature-title strong, .feature-cell > p,
.model-pills span, .routing-list span, .benefit-grid h3, .benefit-grid p, .site-footer, .auth-tabs button,
.auth-message, .auth-form label > span, .auth-input input, .auth-switch, .verification-button,
.twofa-copy, .account-user strong, .toast { font-size: 14px; }
.hero-badge, .app-support > p, .support-note, .model-mark, .demo-ok, .demo-route span,
.demo-route code, .demo-block > p, .demo-block pre, .demo-footer, .section-heading p,
.developer-tags span, .developer-tags em, .auth-brand small, .auth-form label > span em,
.account-user small { font-size: 12px; }

@media (max-width: 560px) {
  .brand { flex: 1 1 0; }
  .brand img { flex: 0 0 auto; }
  .brand strong { line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
  .header-actions { flex: 0 0 auto; }
  .header-actions .icon-button { display: none; }
  .login-button span { max-width: 60px; }
}

@media (max-width: 1050px) {
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .capability-heading h2 { font-size: 25px; }
  .capability-heading > div { font-size: 12px; }
  .capability-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .capability-card { min-height: 0; padding: 22px 20px 21px; }
  .capability-card h3 { margin-top: 17px; }
}

/* Homepage visual system: a tighter product surface with clear action hierarchy. */
:root {
  --bg: #0f141b;
  --bg-deep: #0b1016;
  --surface: #151c24;
  --surface-soft: #19222c;
  --surface-raised: #202b37;
  --text: #f2f6f8;
  --muted: #94a2ad;
  --muted-2: #667582;
  --line: #2a3946;
  --line-soft: #1c2934;
  --blue: #55b6ff;
  --blue-strong: #248fd3;
  --purple: #a78bfa;
  --green: #35c99a;
  --yellow: #f2c35e;
  --shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

body.light {
  --bg: #f5f8fa;
  --bg-deep: #edf2f5;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --surface-raised: #e8eff3;
  --text: #12202a;
  --muted: #647583;
  --muted-2: #8b9aa5;
  --line: #d9e3e9;
  --line-soft: #e8eef2;
  --shadow: 0 22px 58px rgba(35, 63, 79, .11);
}

.site-header {
  height: 72px;
  border-top: 0;
  border-bottom-color: var(--line-soft);
  background: rgba(15, 20, 27, .94);
}
body.light .site-header { background: rgba(245, 248, 250, .95); }
.header-inner { width: min(1240px, calc(100% - 48px)); gap: 28px; }
.brand { min-width: 240px; gap: 12px; }
.brand img { width: 28px; height: 28px; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.main-nav { gap: 30px; }
.nav-link { font-size: 13px; }
.header-actions { padding-left: 18px; gap: 6px; }
.login-button { height: 36px; border-radius: 10px; padding: 0 15px; }

.hero {
  min-height: 620px;
  align-items: center;
  border-bottom-color: var(--line-soft);
  background: var(--bg);
}
.hero-grid { padding-top: 86px; padding-bottom: 92px; }
.hero-grid--single { grid-template-columns: minmax(0, 1fr); }
.hero-grid--single .hero-copy { max-width: 980px; }
.hero-badge {
  margin-bottom: 24px;
  padding: 9px 13px;
  border-color: #315a76;
  border-radius: 10px;
  color: #8bd0ff;
  background: #152936;
  font-size: 13px;
  letter-spacing: .01em;
}
.hero-badge i { width: 7px; height: 7px; box-shadow: none; }
.hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.headline-blue { color: #63c1ff; }
.headline-purple { color: #b19aff; }
.hero-lead { max-width: 670px; margin-top: 26px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { margin-top: 32px; gap: 10px; }
.primary-button, .secondary-button { height: 45px; border-radius: 10px; padding: 0 18px; font-size: 14px; }
.secondary-button { border-color: var(--line); background: var(--surface); }
.app-support { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.app-support > p { margin-bottom: 5px; color: var(--text); font-size: 13px; }
.support-note { color: var(--muted-2); font-size: 12px; }
.support-list { gap: 8px; margin-top: 16px; }
.support-list > span { min-height: 39px; padding: 0 13px; border-radius: 10px; color: #c8d2d9; background: var(--surface); font-size: 13px; }
body.light .support-list > span { color: #435866; }
.model-mark { width: 23px; height: 23px; font-size: 11px; }

.scenarios-section { padding: 82px 0 96px; background: var(--bg-deep); }
.scenarios-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; text-align: left; }
.scenarios-heading h2 { font-size: 30px; }
.scenarios-heading p { max-width: 360px; margin: 0; text-align: right; font-size: 14px; }
.scenario-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.scenario-card { min-height: 245px; padding: 20px; border-radius: 12px; border-color: var(--line); background: var(--surface); box-shadow: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.scenario-card:hover { transform: translateY(-3px); border-color: #3b6b88; background: #192632; }
.scenario-icon { width: 42px; height: 42px; margin-bottom: 15px; border-radius: 10px; background: var(--surface-raised); font-size: 21px; }
.scenario-card h3 { font-size: 16px; }
.scenario-card > p { margin: 9px 0 17px; font-size: 12px; line-height: 1.7; }
.scenario-tags { gap: 5px; }
.scenario-tags span { padding: 4px 8px; border-radius: 7px; font-size: 10px; }

.quick-start-section { padding: 86px 0 96px; border-color: var(--line-soft); background: var(--bg); }
.quick-start-section > .page-container { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px 36px; align-items: start; }
.quick-start-heading { grid-column: 1 / -1; text-align: left; }
.quick-start-heading p { margin-bottom: 11px; color: var(--blue); font-size: 12px; }
.quick-start-heading h2 { font-size: 32px; }
.quick-start-heading span { margin-top: 8px; color: var(--muted); font-size: 14px; }
.quick-start-steps { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.quick-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; }
.quick-step-number { width: 34px; height: 34px; margin: 0; border-radius: 9px; color: #bfe6ff; background: #163b53; box-shadow: none; font-size: 16px; }
.quick-step h3 { margin: 1px 0 0; font-size: 14px; }
.quick-step p { grid-column: 2; margin: -5px 0 0; font-size: 11px; line-height: 1.55; }
.quick-step-line { display: none; }
.quick-start-section .api-demo { grid-column: 2; grid-row: 2; width: 100%; border-radius: 13px; box-shadow: var(--shadow); }
.quick-start-section .api-demo .demo-tabs { height: 54px; background: #182b3a; }
.quick-start-section .api-demo .demo-block { padding: 22px 24px; }
.quick-start-section .api-demo .demo-block pre { min-height: 130px; font-size: 12px; line-height: 1.75; }
.quick-start-section .api-demo .response-block pre { min-height: 110px; }

.features.section-space { padding-top: 92px; padding-bottom: 100px; background: var(--bg-deep); }
.capability-heading { text-align: left !important; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.capability-heading p { display: none; }
.capability-heading h2 { font-size: 30px; }
.capability-heading > div { margin: 0; max-width: 360px; text-align: right; }
.capability-grid { gap: 12px; margin-top: 30px; }
.capability-card { min-height: 190px; padding: 21px; border-radius: 12px; background: var(--surface); box-shadow: none; }
.capability-card::before { left: 21px; width: 40px; }
.capability-icon { width: 42px; height: 42px; border-radius: 10px; }
.capability-icon svg { width: 20px; height: 20px; }
.capability-card h3 { margin: 17px 0 8px; font-size: 15px; }
.capability-card p { font-size: 12px; line-height: 1.65; }

.cta-band { min-height: 300px; background: var(--bg); }
.cta-band-inner { padding-top: 62px; padding-bottom: 57px; }
.cta-band-copy { font-size: 27px; }
.cta-band-button { margin-top: 30px; border-radius: 10px; font-size: 14px; }

.site-footer { min-height: 62px; font-size: 12px; }

@media (max-width: 1050px) {
  .header-inner { width: min(100% - 36px, 1240px); }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .hero-grid { padding-top: 62px; padding-bottom: 68px; }
  .scenarios-heading, .capability-heading { display: block; }
  .scenarios-heading p, .capability-heading > div { max-width: none; margin-top: 10px; text-align: left; }
  .quick-start-section > .page-container { display: block; }
  .quick-start-heading { margin-bottom: 27px; }
  .quick-start-steps { margin-bottom: 22px; }
}

@media (max-width: 560px) {
  .header-inner { width: calc(100% - 28px); }
  .brand { min-width: 0; }
  .brand strong { font-size: 12px; }
  .hero-grid { padding-top: 48px; padding-bottom: 58px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .app-support { margin-top: 38px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 0; }
  .quick-start-section { padding: 65px 0 70px; }
  .quick-start-heading h2 { font-size: 28px; }
  .quick-start-section .api-demo .demo-block { padding: 18px 16px; }
  .quick-start-section .api-demo .demo-block pre { font-size: 10px; }
  .capability-heading h2 { font-size: 27px; }
  .cta-band-copy { max-width: 340px; font-size: 23px; }
}

/* Console visual language shared by the public landing page. */
:root {
  --console-primary: #4f46e5;
  --console-primary-hover: #4338ca;
  --console-primary-soft: rgba(79, 70, 229, .08);
  --console-radius-sm: 8px;
  --console-radius-md: 10px;
  --console-radius-lg: 14px;
}
body.light { --console-primary-soft: rgba(79, 70, 229, .07); }
.site-header { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(17,24,39,.03); }
.nav-link.active::after { background: var(--console-primary); }
.primary-button, .login-button, .cta-band-button { border-radius: var(--console-radius-md); background: var(--console-primary); border-color: var(--console-primary); box-shadow: 0 7px 18px rgba(79,70,229,.16); }
.primary-button:hover, .login-button:hover, .cta-band-button:hover { background: var(--console-primary-hover); border-color: var(--console-primary-hover); }
.secondary-button { border-radius: var(--console-radius-md); border-color: var(--line); background: var(--surface); }
.secondary-button:hover { border-color: var(--console-primary); color: var(--console-primary); background: var(--console-primary-soft); }
.icon-button:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible, .login-button:focus-visible, .cta-band-button:focus-visible, .auth-tabs button:focus-visible, .quick-code-tab:focus-visible, .quick-copy-button:focus-visible, .verification-button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--console-primary-soft); }
.api-demo, .scenario-card, .capability-card, .feature-matrix, .quick-start-section .api-demo { border-radius: var(--console-radius-lg); border-color: var(--line); }
.scenario-card:hover, .capability-card:hover { border-color: var(--console-primary); background: color-mix(in srgb, var(--surface) 95%, var(--console-primary-soft)); }
.auth-input, .verification-button { border-radius: var(--console-radius-md); }
.auth-input:focus-within { border-color: var(--console-primary); box-shadow: 0 0 0 3px var(--console-primary-soft); }
.auth-tabs button.active { color: var(--console-primary); background: var(--console-primary-soft); box-shadow: none; }
body.light .auth-tabs button.active { color: var(--console-primary); background: var(--console-primary-soft); }
