:root {
  color-scheme: light;
  --ink: #10213c;
  --muted: #4e617d;
  --subtle: #596d89;
  --blue: #1655e5;
  --blue-dark: #0b40b9;
  --edge: #e2e8f3;
  --paper: #fff;
  --sky: #f4f7fd;
  --shadow: 0 12px 28px #1b4b9810;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--sky); line-height: 1.56; min-width: 300px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid #377aff; outline-offset: 3px; }
::selection { background: #dbe7ff; }
.wrap { max-width: 1240px; padding-inline: 30px; margin-inline: auto; }
.skip { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 2; padding: 8px; background: #fff; }
.skip:focus { top: 8px; }
.site-header { background: #fff; border-bottom: 1px solid var(--edge); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 1.02rem; font-weight: 750; }
.brand small { color: var(--subtle); margin-top: 4px; font-size: .75rem; letter-spacing: .035em; }
.brand-mark { position: relative; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, #1782f8, #1649df); flex: 0 0 38px; display: grid; place-items: center; box-shadow: 0 5px 12px #1749da36; }
.brand-mark i { position: absolute; width: 18px; height: 12px; border: 2px solid #fff; border-radius: 8px; transform: translate(-4px, 3px) rotate(-41deg); }
.brand-mark i + i { transform: translate(4px, -3px) rotate(-41deg); border-color: #acf6f4; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border-radius: 9px; color: var(--muted); min-height: 40px; font-size: .89rem; white-space: nowrap; }
.nav a:hover { background: #f0f5ff; text-decoration: none; color: var(--blue-dark); }
.nav a[aria-current="page"] { color: var(--blue-dark); background: #eaf1ff; font-weight: 730; }
.nav .demo-link { color: var(--blue-dark); box-shadow: inset 0 0 0 1px #d9e4ff; margin-inline-start: 6px; }
.demo-banner { background: #e9f2ff; border-bottom: 1px solid #d4e4ff; color: #163c7f; font-size: .87rem; }
.demo-inner { display: flex; justify-content: space-between; align-items: center; gap: 9px 18px; padding-block: 8px; flex-wrap: wrap; }
.demo-inner a { text-decoration: underline; text-underline-offset: 3px; }
main { min-height: calc(100vh - 158px); padding-top: 32px; padding-bottom: 48px; }
.initial { margin: 36px auto; text-align: center; color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(320px, 1fr); gap: 22px; align-items: stretch; }
.hero { min-height: 488px; border-radius: 26px; background-color: #061633; color: #fff; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(27px, 4vw, 55px); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("fiber-hero.jpg") 82% 49% / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, #061633 2%, #061633f2 25%, #061633b8 43%, #06163325 75%), linear-gradient(0deg, #061633ba, transparent 47%); }
.eyebrow, .kicker { font-size: .84rem; letter-spacing: .13em; font-weight: 700; }
.eyebrow { color: #a8d7ff; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 100%; background: #85e8e6; box-shadow: 0 0 15px #80fff5; }
.hero h1 { position: relative; font-size: clamp(2.5rem, 5.3vw, 4.45rem); font-weight: 780; line-height: 1.09; letter-spacing: -.065em; }
.hero h1 span { color: #afd8ff; }
.hero p { margin-top: 23px; max-width: 300px; color: #d9e7ff; font-size: .99rem; line-height: 1.8; }
.hero-facts { display: flex; align-items: flex-start; gap: 20px; margin-top: 37px; }
.hero-fact { min-width: 77px; }
.hero-fact + .hero-fact { padding-inline-start: 17px; border-inline-start: 1px solid #8fb9ee4f; }
.hero-fact b { font-family: system-ui, sans-serif; display: block; font-size: 1.58rem; line-height: 1.15; letter-spacing: -.04em; }
.hero-fact span { display: block; font-size: .78rem; margin-top: 5px; color: #cfe1fc; }
.card { border: 1px solid var(--edge); border-radius: 22px; padding: 27px; background: var(--paper); box-shadow: var(--shadow); min-width: 0; }
.entry-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(23px, 3vw, 34px); }
.card h1, .card h2 { font-size: 1.56rem; letter-spacing: -.045em; }
.card-intro { color: var(--muted); font-size: .91rem; margin-top: 8px; }
.form { display: grid; gap: 15px; margin-top: 21px; }
.form label:not(.check), .filter label { font-size: .89rem; font-weight: 680; display: grid; gap: 6px; min-width: 0; }
input:not([type=checkbox]), select { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #dbe3f0; border-radius: 9px; padding: 9px 12px; color: var(--ink); background: #fafcff; }
input::placeholder { color: #64758c; opacity: 1; }
select { appearance: none; background: linear-gradient(45deg, transparent 50%, #4c6590 50%) calc(100% - 17px) 53% / 6px 6px no-repeat, linear-gradient(135deg, #4c6590 50%, transparent 50%) calc(100% - 11px) 53% / 6px 6px no-repeat, #fafcff; padding-right: 28px; }
input#invite-code { text-transform: uppercase; letter-spacing: .09em; font-family: ui-monospace, monospace; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 9px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1px solid #d7e2f8; border-radius: 9px; background: #fff; color: var(--blue-dark); padding: 8px 14px; font-size: .88rem; font-weight: 700; text-align: center; line-height: 1.35; }
.button:hover { text-decoration: none; background: #edf3ff; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 9px #1756e525; }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.soft { background: #edf3ff; }
.button.soft:hover { background: #e1ebff; }
.button.block { width: 100%; min-height: 48px; font-size: .96rem; }
.button:disabled { opacity: .58; box-shadow: none; }
.text-button { appearance: none; border: 0; background: none; color: var(--blue-dark); padding: 2px; font-size: inherit; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-note { color: var(--muted); font-size: .84rem; }
.entry-note { font-size: .83rem; color: var(--muted); margin-top: 16px; }
.form-error { color: #9d2424; background: #fff0f0; border: 1px solid #f0cccc; border-radius: 8px; padding: 8px 11px; font-size: .87rem; }
.form-success { color: #07644c; font-size: .87rem; }
.check { display: flex; gap: 9px; align-items: flex-start; color: var(--ink); font-size: .91rem; }
.check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--blue); }
.rules { margin-top: 29px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.24rem; letter-spacing: -.035em; }
.section-head p, .section-head > button { color: var(--muted); font-size: .84rem; }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rule { display: flex; gap: 13px; align-items: flex-start; padding: 20px 16px; border-radius: 16px; border: 1px solid var(--edge); background: #fff; }
.rule b { display: block; font-size: .99rem; line-height: 1.4; }
.rule p { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.rule-icon { background: #e8f0ff; color: var(--blue-dark); flex: 0 0 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; font-weight: 750; font-size: .86rem; }
.rule:last-child .rule-icon { background: #dbf4ec; color: #006852; }
.foot-divider { border-top: 1px solid var(--edge); }
.site-footer { font-size: .83rem; color: var(--muted); border-top: 1px solid var(--edge); }
.footer-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner div { display: flex; align-items: center; gap: 18px; }
.footer-inner a, .footer-inner button { color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.45rem); letter-spacing: -.05em; }
.page-head p { color: var(--muted); margin-top: 7px; font-size: .91rem; }
.stack { display: grid; gap: 18px; }
.dash-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr); gap: 18px; }
.share-card { color: #fff; background: radial-gradient(ellipse at 105% 5%, #254f99, transparent 66%), #0b1d40; border-color: #223b62; }
.share-card .card-intro, .share-card .share-preview { color: #d3e4ff; }
.invite-code { font: 750 clamp(1.75rem, 5vw, 2.55rem) ui-monospace, monospace; letter-spacing: .1em; margin: 13px 0; display: block; }
.share-preview { font-size: .87rem; margin-top: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.metric { border: 1px solid #e2eafe; background: #f4f7ff; border-radius: 11px; padding: 13px 12px; }
.metric b, .funnel-tile b { font: 750 clamp(1.55rem, 4.5vw, 2.1rem)/1.15 system-ui, sans-serif; letter-spacing: -.055em; }
.metric span { font-size: .8rem; color: var(--muted); display: block; margin-top: 3px; }
.tier-bar { display: block; width: 100%; height: 11px; margin: 15px 0 13px; border: 0; background: #eaf0fa; border-radius: 99px; overflow: hidden; }
.tier-bar::-webkit-progress-bar { background: #eaf0fa; border-radius: 99px; }
.tier-bar::-webkit-progress-value { background: linear-gradient(90deg, #477cff, #1655e5); border-radius: 99px; }
.tier-bar::-moz-progress-bar { background: #1655e5; border-radius: 99px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: .83rem; }
.tiers span { color: var(--muted); display: block; }
.tiers .qualified { color: #006c54; }
.apply-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 20px; align-items: start; }
.apply-side { background: #0b1d40; color: #fff; }
.apply-side .form-note { color: #d3e4ff; }
.apply-side ol { display: grid; padding: 0; margin: 19px 0 0; list-style: none; gap: 14px; }
.apply-side li { border-top: 1px solid #657ea666; padding-top: 12px; }
.apply-side p { margin-top: 7px; }
.apply-art { display: block; width: 100%; border-radius: 12px; margin-top: 18px; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e0f6ed; color: #0a6a50; font-size: 1.6rem; margin-bottom: 14px; }
.receipt { padding: 14px; border-radius: 10px; background: #f1f5ff; margin: 18px 0; color: var(--muted); font-size: .88rem; }
.receipt b { display: block; margin-top: 4px; color: var(--ink); font-family: ui-monospace, monospace; font-size: 1.18rem; letter-spacing: .06em; }
.sign-in { width: min(100%, 480px); margin-inline: auto; }
.standalone { width: min(100%, 590px); margin: 18px auto; }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.funnel-tile { min-width: 0; padding: 16px; border: 1px solid #e3ebf9; border-radius: 12px; background: #f3f7ff; }
.funnel-tile span { font-size: .86rem; display: block; color: var(--muted); margin-bottom: 7px; }
.funnel-tile progress { appearance: none; border: none; width: 100%; height: 5px; margin-top: 10px; display: block; }
.funnel-tile progress::-webkit-progress-bar { background: #dfeaff; border-radius: 99px; }
.funnel-tile progress::-webkit-progress-value { background: #2e6aed; border-radius: 99px; }
.filter { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(175px, 1.45fr) auto; gap: 10px; align-items: end; margin-bottom: 17px; }
.filter .button { min-height: 46px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th, td { text-align: start; padding: 11px 9px; white-space: nowrap; }
th { color: var(--muted); background: #f4f7fc; font-weight: 680; }
td { border-bottom: 1px solid #e7edf5; }
td small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.status { display: inline-flex; border-radius: 8px; padding: 3px 8px; color: #29477a; background: #ecf2ff; font-size: .81rem; font-weight: 700; white-space: nowrap; }
.status.s2 { color: #78530f; background: #fff1d8; }
.status.s3, .status.settled { color: #07664c; background: #ddf5ed; }
.empty { text-align: center; color: var(--muted); padding: 24px 10px; border: 1px dashed #d9e4f5; border-radius: 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 15px; color: var(--muted); font-size: .84rem; }
.pager .button { min-height: 37px; }
dialog { border: 1px solid #d6e1f2; border-radius: 18px; padding: 24px; width: min(95vw, 520px); box-shadow: 0 28px 70px #091c4a45; color: var(--ink); }
dialog::backdrop { background: #0615309e; }
dialog h2 { font-size: 1.35rem; margin-bottom: 13px; }
dialog p + p { margin-top: 8px; }
dialog .actions { margin-top: 16px; justify-content: flex-end; }
dialog dl { display: grid; grid-template-columns: minmax(88px, auto) 1fr; gap: 7px 14px; margin: 0; font-size: .92rem; }
dialog dt { color: var(--muted); }
dialog dd { margin: 0; overflow-wrap: anywhere; }
dialog .check { margin-top: 12px; }
.toast { position: fixed; inset-inline-start: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4; padding: 10px 17px; border-radius: 10px; background: #14294f; color: #fff; box-shadow: var(--shadow); width: max-content; max-width: calc(100vw - 28px); text-align: center; }
@media (max-width: 950px) {
  .wrap { padding-inline: 22px; }
  .entry-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); }
  .hero { min-height: 440px; }
  .hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
  .hero-facts { gap: 11px; }
  .hero-fact + .hero-fact { padding-inline-start: 10px; }
}
@media (max-width: 700px) {
  .wrap { padding-inline: 16px; }
  .header-inner { min-height: 0; padding-top: 13px; padding-bottom: 10px; flex-wrap: wrap; gap: 9px; }
  .nav { width: 100%; gap: 4px; }
  .nav a { padding-inline: 9px; min-height: 37px; font-size: .81rem; }
  .nav .demo-link { margin-inline-start: auto; }
  main { padding-top: 17px; padding-bottom: 30px; }
  .entry-grid, .apply-grid, .dash-top { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .hero { min-height: 345px; border-radius: 20px; padding: 23px; }
  .hero::before { background-position: 69% center; }
  .hero::after { background: linear-gradient(90deg, #061633f8, #061633ad 48%, #06163338 88%), linear-gradient(0deg, #06163399, transparent 51%); }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.7rem); }
  .hero p { margin-top: 14px; }
  .hero-facts { margin-top: 22px; }
  .eyebrow { margin-bottom: 14px; }
  .card { padding: 18px; border-radius: 17px; }
  .rule-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rule { padding: 13px; }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .funnel-tile { padding: 12px; }
  .filter { grid-template-columns: minmax(0, 1fr) auto; }
  .filter label:first-child { grid-column: 1 / -1; }
  .metric { padding: 10px 6px; }
  .apply-art { display: none; }
  th, td { padding: 9px 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, input, select { transition: background-color .15s, border-color .15s, color .15s; }
}
