:root {
  color-scheme: light;
  --bg: #f4f2ef;
  --surface: #fff;
  --surface-soft: #faf9f7;
  --ink: #1d1b1d;
  --ink-soft: #514b50;
  --muted: #756e73;
  --line: #ded9d4;
  --brand: #b72d45;
  --brand-deep: #941f36;
  --dark: #0d0d0f;
  --success: #247b55;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(33, 22, 25, 0.12);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: clip; margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--dark); }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(1360px, calc(100% - 36px)); min-height: 72px; margin: 14px auto 0; padding: 10px 12px 10px 18px;
  border: 1px solid rgba(218, 211, 207, 0.88); border-radius: 18px; background: rgba(250, 249, 247, 0.88);
  box-shadow: 0 10px 30px rgba(48, 31, 36, 0.06); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; width: max-content; min-height: 44px; gap: 11px; text-decoration: none; }
.brand img { object-fit: contain; }
.brand span { display: grid; line-height: 1.12; }
.brand strong { font-size: 15px; font-weight: 720; letter-spacing: .02em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 680; letter-spacing: .18em; }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 15px; border-radius: 10px; color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 180ms ease, background 180ms ease; }
.site-header nav a:hover { color: var(--ink); background: #ece9e5; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.header-login { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 13px; border-radius: 11px; color: var(--ink-soft); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-login:hover { background: var(--surface); }
.header-cta { padding: 11px 18px; border-radius: 11px; color: white; background: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.header-cta:hover { background: var(--brand); transform: translateY(-1px); }

.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr); gap: clamp(42px, 6vw, 92px); align-items: center; width: min(1320px, calc(100% - 48px)); min-height: 720px; margin: 0 auto; padding: 90px 0 72px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--brand); font-size: 11px; font-weight: 760; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 26px; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: clamp(42px, 5.2vw, 72px); font-weight: 620; line-height: 1.15; letter-spacing: -.045em; }
.hero-lead { max-width: 620px; color: var(--ink-soft); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; font-weight: 680; text-decoration: none; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease; }
.button svg, .text-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: white; background: var(--brand); box-shadow: 0 12px 26px rgba(183, 45, 69, .22); }
.button-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.64); }
.button-secondary:hover { border-color: #c6bdb8; background: #fff; transform: translateY(-1px); }
.button:focus-visible, .header-cta:focus-visible, .header-login:focus-visible, nav a:focus-visible, .text-link:focus-visible { outline: 3px solid rgba(183,45,69,.28); outline-offset: 3px; }
.release-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; color: var(--muted); font-size: 12px; }
.release-note > * { padding-right: 8px; border-right: 1px solid var(--line); }
.release-note > *:last-child { padding-right: 0; border: 0; }
.release-note strong { color: var(--ink); }

.hero-visual { position: relative; padding: 54px 0 58px; }
.visual-halo { position: absolute; inset: 2% -8% -4% 4%; border-radius: 48% 52% 54% 46%; background: radial-gradient(circle at 46% 42%, rgba(183,45,69,.22), rgba(232,216,210,.48) 42%, transparent 72%); filter: blur(12px); }
.app-preview { position: relative; overflow: hidden; margin: 0; border: 1px solid rgba(215,206,201,.92); border-radius: 20px; background: #fff; box-shadow: var(--shadow); transform: rotate(.35deg); }
.app-preview img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top left; }
.preview-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; color: var(--muted); background: #f8f7f5; border-bottom: 1px solid #e7e2de; font-size: 10px; }
.preview-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d8d2ce; }
.preview-bar i:first-child { background: var(--brand); }
.preview-bar span { margin-left: 7px; }
.preview-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid rgba(218,211,207,.9); border-radius: 12px; color: var(--ink-soft); background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(28,19,22,.12); backdrop-filter: blur(12px); font-size: 12px; font-weight: 650; }
.preview-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(183,45,69,.1); }
.preview-chip-one { left: -24px; bottom: 28px; }
.preview-chip-two { right: -20px; top: 22px; }

.platform-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 22px 26px; border-block: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.platform-strip div { display: flex; align-items: center; gap: 18px; color: var(--ink); }
.platform-strip b { font-size: 14px; }
.platform-strip i { width: 3px; height: 3px; border-radius: 50%; background: var(--brand); }

.section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-heading { max-width: 680px; margin-bottom: 46px; }
.section-heading h2, .workflow-copy h2, .final-cta h2 { margin-bottom: 18px; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 620; line-height: 1.2; letter-spacing: -.035em; }
.section-heading > p:last-child, .workflow-copy > p:last-child { color: var(--ink-soft); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 350px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); transition: transform 220ms ease, box-shadow 220ms ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(34,22,26,.08); }
.feature-card-dark { color: #f4f1ee; border-color: #242429; background: var(--dark); box-shadow: 0 18px 48px rgba(13,13,15,.18); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 76px; border: 1px solid rgba(183,45,69,.26); border-radius: 14px; color: var(--brand); background: rgba(183,45,69,.08); }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.feature-card > p { margin-bottom: 8px; color: var(--brand); font-size: 11px; font-weight: 760; letter-spacing: .13em; }
.feature-card h3 { margin-bottom: 14px; font-size: 22px; line-height: 1.35; }
.feature-card > span { color: var(--ink-soft); font-size: 14px; }
.feature-card-dark > span { color: #bbb5ba; }

.workflow-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; width: min(1320px, calc(100% - 48px)); margin: 20px auto; padding: 82px; border-radius: var(--radius-lg); color: #f5f1ed; background: var(--dark); }
.eyebrow-light { color: #e54158; }
.workflow-copy > p:last-child { color: #b8b2b6; }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li { position: relative; display: grid; grid-template-columns: 145px 1fr auto; gap: 20px; align-items: center; min-height: 82px; border-bottom: 1px solid #2b292d; }
.workflow-list li:first-child { border-top: 1px solid #2b292d; }
.workflow-list b { font-size: 15px; }
.workflow-list span { color: #b8b2b6; font-size: 13px; }
.workflow-list em { color: #686268; font-size: 12px; font-style: normal; }

.download-section { padding-bottom: 90px; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download-card { display: flex; flex-direction: column; min-height: 390px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 34px rgba(30,20,23,.045); }
.platform-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 48px; border-radius: 15px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.download-card > div:nth-child(2) p { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.download-card h3 { margin-bottom: 20px; font-size: 24px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 7px; min-height: 38px; margin-bottom: auto; }
.download-meta span { height: fit-content; padding: 5px 8px; border-radius: 7px; color: var(--ink-soft); background: #f0eeeb; font-size: 10px; font-weight: 650; }
.download-card .button { width: 100%; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; align-self: center; min-height: 44px; margin-top: 6px; color: var(--brand); font-size: 12px; font-weight: 650; text-underline-offset: 3px; }
.text-static { color: var(--muted); text-decoration: none; }
.is-disabled { pointer-events: none; opacity: .5; }
.checksum-note { margin: 24px auto 0; color: var(--muted); font-size: 12px; text-align: center; }

.architecture { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; padding-top: 70px; }
.architecture-heading { margin: 0; }
.architecture-map { display: grid; grid-template-columns: 1fr 54px 1.2fr 62px 1.05fr; align-items: center; min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #eeebe7; }
.node { display: flex; flex-direction: column; justify-content: center; min-height: 112px; padding: 18px; border: 1px solid #d8d1cc; border-radius: 15px; background: rgba(255,255,255,.86); box-shadow: 0 8px 22px rgba(42,27,31,.05); }
.node small { color: var(--brand); font-size: 10px; font-weight: 760; letter-spacing: .1em; }
.node strong { margin-top: 4px; font-size: 15px; }
.node em { margin-top: 8px; color: var(--muted); font-size: 10px; font-style: normal; }
.node-hk { min-height: 150px; color: #fff; border-color: var(--dark); background: var(--dark); }
.connector { height: 1px; background: #bdb4af; }
.connector i { display: block; width: 8px; height: 8px; margin: -4px auto 0; border: 2px solid var(--brand); border-radius: 50%; background: var(--bg); }
.branch { position: relative; height: 160px; border-left: 1px solid #bdb4af; }
.branch::before, .branch::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: #bdb4af; }
.branch::before { top: 24%; }
.branch::after { bottom: 24%; }
.node-stack { display: grid; gap: 16px; }
.node-stack .node { min-height: 92px; }

.final-cta { width: min(1100px, calc(100% - 48px)); margin: 80px auto 130px; padding: 70px 24px; text-align: center; }
.final-cta img { margin: 0 auto 22px; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { max-width: 760px; margin-inline: auto; }
.final-cta .button { margin-top: 14px; }
footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; padding: 34px max(24px, calc((100% - 1320px)/2)); border-top: 1px solid var(--line); color: var(--muted); background: #eeebe7; font-size: 11px; }
footer p { margin: 0; }

@media (max-width: 1100px) {
  .hero-visual { overflow: clip; }
}

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 74px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { overflow: clip; width: min(820px, 100%); margin: 0 auto; }
  .feature-grid, .download-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child, .download-card:last-child { grid-column: 1 / -1; }
  .workflow-section, .architecture { grid-template-columns: 1fr; }
  .workflow-section { padding: 56px; }
  .architecture-map { max-width: 760px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  footer p:last-child { justify-self: end; grid-column: 2; grid-row: 1; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 20px); min-height: 62px; margin-top: 8px; padding: 8px 9px 8px 12px; border-radius: 15px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 6px; }
  .header-cta { min-height: 44px; padding: 10px 13px; }
  .header-login { display: none; }
  .hero, .section, .workflow-section, .platform-strip, .architecture, .final-cta { width: calc(100% - 28px); }
  .hero { min-height: 0; padding: 64px 0 54px; }
  h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { display: grid; }
  .button { width: 100%; min-height: 50px; }
  .hero-visual { overflow: clip; padding-block: 38px 44px; }
  .preview-chip { display: none; }
  .app-preview { border-radius: 14px; }
  .platform-strip { display: grid; justify-content: center; padding-inline: 12px; text-align: center; }
  .platform-strip div { justify-content: center; }
  .section { padding: 84px 0; }
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .feature-card:last-child, .download-card:last-child { grid-column: auto; }
  .feature-card { min-height: 310px; }
  .feature-icon { margin-bottom: 52px; }
  .workflow-section { gap: 40px; margin: 0 auto; padding: 44px 24px; border-radius: 22px; }
  .workflow-list li { grid-template-columns: 100px 1fr auto; gap: 12px; }
  .workflow-list span { font-size: 12px; }
  .architecture-map { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .connector { width: 1px; height: 28px; margin: 0 auto; }
  .branch { width: 1px; height: 28px; margin: 0 auto; }
  .branch::before, .branch::after { display: none; }
  .final-cta { margin-block: 40px 90px; padding-inline: 0; }
  footer { grid-template-columns: 1fr; padding: 30px 20px; text-align: center; }
  .footer-brand { justify-self: center; }
  footer p:nth-child(2), footer p:last-child { grid-column: auto; grid-row: auto; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
