:root {
  color-scheme: light;
  --paper: #fff8ee;
  --surface: #fffefa;
  --ink: #10263a;
  --muted: #465561;
  --line: #efdcc9;
  --brand: #ad3c00;
  --brand-deep: #8e3000;
  --navy: #163e5c;
  --gutter: clamp(1rem, 4vw, 10rem);
  --content: 240rem;
  --section-space: clamp(4rem, 6.3vw, 10rem);
  --body: clamp(1rem, .96rem + .13vw, 1.125rem);
  --small: clamp(.875rem, .84rem + .1vw, .975rem);
  --title: clamp(1.75rem, 1.4rem + 1.5vw, 3.25rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: var(--body)/1.65 var(--font); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--brand-deep); }
[id] { scroll-margin-top: 7rem; }

.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #f0dfce; background: #fffaf2f5; backdrop-filter: blur(16px); }
.topbar-inner, .hero-inner, .section-intro, .platform-list, .feature-grid, .workflow-steps, .site-footer-inner, .download-shell {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.topbar-inner { min-height: clamp(4.4rem, 4.1vw, 6.5rem); display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2.5vw, 4rem); }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; width: fit-content; }
.brand img, .footer-brand img { width: clamp(2.45rem, 2.9vw, 3.75rem); height: auto; }
.brand > span { display: grid; gap: .22rem; line-height: 1.08; }
.brand strong { font-size: clamp(1rem, .9rem + .28vw, 1.25rem); font-weight: 780; }
.brand small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.topbar nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 3.2rem); margin-left: auto; }
.topbar nav a, .footer-links a { color: var(--muted); font-size: var(--small); font-weight: 620; white-space: nowrap; }
.topbar nav a:hover, .footer-links a:hover { color: var(--brand); }
.top-actions, .hero-actions, .cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.button, .nav-login, .nav-download {
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  min-height: clamp(3.15rem, 3vw, 4.1rem); padding: .65rem clamp(.95rem, 1.6vw, 2rem);
  border: 1px solid transparent; border-radius: .85rem; font-size: var(--small); font-weight: 700;
  line-height: 1.3; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.nav-login, .nav-download { min-height: 2.7rem; padding-inline: clamp(.65rem, 1.15vw, 1.45rem); white-space: nowrap; }
.nav-login { color: var(--ink); }
.button-primary, .nav-download { color: #fff; background: linear-gradient(118deg, #a93600, #b64300); box-shadow: 0 .4rem 1rem #d04e002b; }
.button-secondary { color: #163750; border-color: #d9e2e8; background: #ffffffcf; }
.button:hover, .nav-download:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.4rem #1e3a5226; }
.nav-login:hover, .button-secondary:hover { background: #ffedd8; }

.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(3.5rem, 5.4vw, 9rem); background: linear-gradient(125deg, #fffaf3 6%, #fff3e4 56%, #ffe9cc 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(1.75rem, 3.7vw, 7rem); }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .8rem; border: 1px solid #f3c59b; border-radius: 99rem; color: #8d3909; background: #fff2df; font-size: var(--small); font-weight: 680; }
.eyebrow span { width: .43rem; height: .43rem; border-radius: 50%; background: #dd5a05; box-shadow: 0 0 0 .22rem #ffb36446; }
.hero h1 { margin: clamp(1.3rem, 2.05vw, 2.8rem) 0 1rem; font-size: clamp(2rem, 1.4rem + 2.55vw, 4.125rem); font-weight: 810; letter-spacing: -.061em; line-height: 1.13; }
.hero h1 > span { display: inline-block; color: var(--ink); }
.hero h1 em { display: inline-block; color: var(--brand); font-style: normal; }
.hero-lead { max-width: 35em; margin: 0; color: var(--muted); font-size: clamp(1rem, .96rem + .16vw, 1.175rem); line-height: 1.75; }
.hero-actions { margin-top: clamp(1.5rem, 2.6vw, 3.3rem); }
.hero-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: clamp(1.4rem, 2.3vw, 3rem); color: var(--muted); font-size: var(--small); font-weight: 650; }
.hero-platforms a { display: inline-flex; align-items: center; gap: clamp(.42rem, .64vw, .95rem); border-radius: .5rem; }
.hero-platforms img { width: clamp(1.38rem, 1.6vw, 2rem); height: clamp(1.38rem, 1.6vw, 2rem); object-fit: contain; border-radius: 23%; }

.register-card { width: min(100%, 32rem); justify-self: center; min-width: 0; padding: clamp(1.4rem, 3.2vw, 3.3rem); border: 1px solid var(--line); border-radius: clamp(1.2rem, 2vw, 2rem); background: #fffefa; box-shadow: 0 1.3rem 3.8rem #613d1418; }
.register-card [hidden] { display: none; }
.register-card h2 { margin: 0; color: var(--ink); font-size: clamp(1.5rem, 1.13rem + 1vw, 2.25rem); line-height: 1.22; letter-spacing: -.03em; }
.register-card p { margin: .65rem 0 1.4rem; color: var(--muted); }
.register-card .button { width: 100%; margin-top: .9rem; font-family: inherit; cursor: pointer; }
.register-card .register-note { margin: 1rem 0 0; text-align: center; font-size: var(--small); }
.register-note a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.platforms, .capabilities, .workflow { padding-block: var(--section-space); }
.platforms { background: #fffdfa; }
.section-intro { display: grid; gap: .5rem; margin-bottom: clamp(1.65rem, 3.6vw, 4.7rem); }
.section-intro > p, .final-cta > p, .download-kicker { margin: 0; color: var(--brand); font-size: var(--small); font-weight: 730; letter-spacing: .115em; }
.section-intro h2, .final-cta h2 { margin: 0; font-size: var(--title); font-weight: 790; line-height: 1.17; letter-spacing: -.045em; }
.section-intro > span { margin-top: .35rem; max-width: 35em; color: var(--muted); }
.platform-list, .feature-grid, .workflow-steps { display: grid; gap: clamp(.65rem, 1.25vw, 2rem); }
.platform-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.platform-list a { --tint: #edf4f9; position: relative; min-width: 0; min-height: clamp(9rem, 12vw, 17rem); padding: clamp(.8rem, 1.45vw, 2.3rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .28rem; border: 1px solid #eedfcf; border-radius: clamp(1rem, 1.5vw, 2rem); background: linear-gradient(155deg, var(--tint), #fff 85%); transition: transform .18s ease, box-shadow .18s ease; }
.platform-list a:hover { transform: translateY(-4px); box-shadow: 0 .8rem 2rem #19354d1b; }
.platform-list a:nth-child(2) { --tint: #fff0df; }
.platform-list a:nth-child(3) { --tint: #fff5db; }
.platform-list a:nth-child(4) { --tint: #fff0e6; }
.platform-list a:nth-child(5), .platform-list a:nth-child(6) { --tint: #fff0e4; }
.platform-list img { width: clamp(2.25rem, 3.5vw, 5.25rem); height: clamp(2.25rem, 3.5vw, 5.25rem); object-fit: contain; border-radius: 24%; margin-bottom: clamp(.5rem, 1vw, 1.2rem); }
.platform-list span { font-size: clamp(1rem, .95rem + .24vw, 1.3rem); font-weight: 750; }
.platform-list small { color: var(--muted); font-size: var(--small); font-weight: 650; }
.platform-list i { position: absolute; top: .65rem; right: .75rem; font-size: 1.15rem; font-style: normal; color: var(--navy); }

.capabilities { background: #eff5f9; border-block: 1px solid #dfe8ee; }
.feature-grid, .workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { --tone: #a13a00; --wash: #fff0da; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: clamp(13rem, 16vw, 23rem); padding: clamp(1.15rem, 2.1vw, 3.5rem); border: 1px solid #dce7ee; border-radius: clamp(1rem, 1.5vw, 2.1rem); background: #fff; }
.feature-card:nth-child(2), .feature-card:nth-child(4) { --tone: #1a526f; --wash: #e7f1f6; }
.feature-card:nth-child(3), .feature-card:nth-child(5) { --tone: #8e4626; --wash: #fff0dc; }
.feature-card:nth-child(6) { --tone: #315a93; --wash: #e7efff; }
.feature-number { margin-bottom: clamp(.65rem, 1.35vw, 1.6rem); padding: .22rem .68rem; color: var(--tone); background: var(--wash); border-radius: .5rem; font-size: var(--small); font-weight: 750; }
.feature-card small, .workflow-steps small { color: var(--tone, var(--navy)); font-size: var(--small); font-weight: 700; letter-spacing: .05em; }
.feature-card h3, .workflow-steps h3 { margin: .45rem 0 .38rem; font-size: clamp(1.125rem, .99rem + .47vw, 1.6rem); line-height: 1.27; letter-spacing: -.02em; }
.feature-card p, .workflow-steps p { margin: 0; color: var(--muted); }
.tag-row, .wave { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-row span { padding: .2rem .62rem; border-radius: .45rem; color: var(--tone); background: var(--wash); font-size: var(--small); font-weight: 640; }
.wave { height: 3rem; align-items: center; }
.wave i { width: .24rem; height: .65rem; border-radius: 99rem; background: #367798; }
.wave i:nth-child(2n) { height: 1.25rem; }
.wave i:nth-child(4) { height: 1.65rem; background: #ba4300; }

.workflow { background: #fffaf6; }
.workflow-steps { padding: 0; list-style: none; }
.workflow-steps li { display: grid; align-content: start; gap: .75rem; min-width: 0; padding: clamp(1rem, 2vw, 3.4rem); border-top: 2px solid #ed9a55; background: #fffefa; }
.workflow-steps li:nth-child(2) { border-color: #5188a4; }
.workflow-steps li:nth-child(3) { border-color: #edb281; }
.workflow-steps li > span { color: var(--brand); font-size: clamp(1.4rem, 1.2rem + .65vw, 2rem); font-weight: 700; line-height: 1.2; }
.workflow-button { margin: clamp(1.3rem, 2vw, 2.5rem) var(--gutter) 0; }
.final-cta { display: grid; justify-items: center; gap: clamp(.8rem, 1.5vw, 1.8rem); padding: var(--section-space) var(--gutter); text-align: center; background: linear-gradient(120deg, #ffedd7, #fff6e9 52%, #eaf2f7); border-block: 1px solid var(--line); }
.cta-actions { justify-content: center; }

.site-footer { padding-block: clamp(1.5rem, 3vw, 4.5rem); background: #fffdfa; }
.site-footer-inner { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, max-content); align-items: center; gap: 1.25rem; }
.footer-brand, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span, .site-footer-inner > p { color: var(--muted); font-size: var(--small); }
.footer-links { gap: .75rem clamp(.85rem, 1.45vw, 2rem); }
.site-footer-inner > p { grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }

.download-page { background: linear-gradient(130deg, #ffedd8, #fffaf2 56%, #edf4f8); }
.download-shell { padding-block: clamp(1.7rem, 4.5vw, 6.5rem); }
.download-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.download-header > a:last-child, .download-page .detected, .download-page .muted a { color: var(--navy); font-weight: 670; }
.download-intro { padding-block: clamp(2.2rem, 4.5vw, 6.5rem) clamp(1.4rem, 2.6vw, 3rem); }
.download-intro h1 { margin: .55rem 0; font-size: var(--title); line-height: 1.17; letter-spacing: -.04em; }
.download-page h2 { margin: 0 0 .5rem; font-size: clamp(1.2rem, 1.02rem + .55vw, 1.65rem); line-height: 1.3; }
.download-intro > p:last-child, .download-card p, .download-card ol { max-width: 55em; color: var(--muted); }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 2rem); }
.download-card { min-width: 0; padding: clamp(1.1rem, 2.4vw, 3.4rem); border: 1px solid var(--line); border-radius: 1.4rem; background: #fffefa; }
.download-card [hidden] { display: none; }
.download-options { display: flex; flex-wrap: wrap; gap: .6rem; margin: .85rem 0; }
.download-card ol { padding-left: 1.4rem; }
.download-page .muted, .download-footer { color: var(--muted); font-size: var(--small); }
.download-footer { margin-top: 1.8rem; }

@media (max-width: 70rem) {
  .topbar nav { gap: .85rem; }
  .topbar nav a:nth-child(3) { display: none; }
  .platform-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .topbar nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 43rem; }
  .register-card { width: min(100%, 43rem); justify-self: start; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .download-grid, .workflow-steps { grid-template-columns: 1fr; }
  .topbar-inner { gap: .4rem; }
  .top-actions { gap: .2rem; }
  .nav-login, .nav-download { padding-inline: .5rem; gap: .35rem; }
  .nav-download span, .brand small { display: none; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
}
@media (max-width: 24rem) {
  .brand { gap: .35rem; }
  .brand img { width: 2rem; }
  .topbar .brand strong { font-size: .93rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
