:root {
  color-scheme: dark;
  --ink: #f6f8ff;
  --muted: #aab6ce;
  --panel: rgba(19, 31, 56, .78);
  --line: rgba(181, 198, 232, .17);
  --blue: #5b91ff;
  --teal: #4ed0c0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #0b1222; }
body { min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; color: var(--ink); background: radial-gradient(circle at 13% 0%, #1c376d 0, transparent 38rem), radial-gradient(circle at 100% 100%, #123c54 0, transparent 34rem), #0b1222; }
a { color: inherit; text-decoration: none; }
.page-shell { width: min(1120px, calc(100% - 48px)); min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.1); box-shadow: 0 8px 25px rgba(0,0,0,.2); }
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 16px; letter-spacing: .04em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.secure-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(126, 218, 211, .25); border-radius: 999px; color: #a9e9e1; background: rgba(65, 189, 178, .08); font-size: 12px; }
.secure-pill svg, .privacy-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.hero { max-width: 720px; padding: clamp(44px, 7vw, 76px) 0 38px; }
h1 { max-width: 620px; margin: 0 0 13px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.hero p { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.ledger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ledger-card { position: relative; min-height: 340px; overflow: hidden; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 25px; background: var(--panel); box-shadow: 0 22px 70px rgba(0,0,0,.2); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ledger-card::after { position: absolute; width: 180px; height: 180px; right: -50px; bottom: -80px; border-radius: 50%; content: ""; opacity: .14; filter: blur(2px); }
.card-main::after { background: var(--blue); }
.card-branch::after { background: var(--teal); }
.ledger-card:hover, .ledger-card:focus-visible { transform: translateY(-5px); border-color: rgba(153, 183, 255, .58); box-shadow: 0 28px 80px rgba(0,0,0,.3); outline: none; }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.card-label { width: fit-content; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.label-main { color: #b9ceff; background: rgba(91, 145, 255, .15); }
.label-branch { color: #a9ede5; background: rgba(78, 208, 192, .13); }
.card-index { color: rgba(220,230,255,.4); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-top: 36px; border-radius: 16px; }
.icon-main { color: #bcd1ff; background: rgba(91, 145, 255, .14); }
.icon-branch { color: #b8f1e9; background: rgba(78, 208, 192, .13); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }
.ledger-card h2 { margin: 22px 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.ledger-card p { margin: 0; color: var(--muted); font-size: 14px; }
.enter-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 35px; color: #dce6ff; font-size: 14px; font-weight: 700; }
.card-branch .enter-link { color: #c9f6f1; }
.enter-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .2s ease; }
.ledger-card:hover .enter-link svg, .ledger-card:focus-visible .enter-link svg { transform: translateX(4px); }
.privacy-note { width: fit-content; display: flex; align-items: center; gap: 10px; margin: 30px auto 0; padding: 12px 16px; border: 1px solid rgba(181,198,232,.12); border-radius: 14px; color: #9eacc4; background: rgba(9, 17, 32, .3); font-size: 12px; line-height: 1.45; }
.privacy-note svg { flex: 0 0 auto; color: #7eafff; }
.privacy-note strong { color: #d8e3fa; font-size: 12px; }
.privacy-note small { color: #8998b2; }
footer { margin-top: auto; padding: 42px 0 25px; color: #72819a; font-size: 12px; text-align: center; }
footer span { padding: 0 5px; color: #4b658f; }
@media (max-width: 680px) {
  .page-shell { width: min(100% - 30px, 540px); }
  .topbar { padding: 18px 0; }
  .secure-pill { padding: 7px 9px; font-size: 11px; }
  .hero { padding: 28px 0 24px; }
  h1 { margin-bottom: 9px; font-size: 30px; }
  .hero p { font-size: 14px; line-height: 1.7; }
  .ledger-grid { grid-template-columns: 1fr; gap: 14px; }
  .ledger-card { min-height: 238px; padding: 21px; border-radius: 21px; }
  .card-icon { width: 46px; height: 46px; margin-top: 20px; border-radius: 14px; }
  .card-icon svg { width: 23px; height: 23px; }
  .ledger-card h2 { margin-top: 17px; font-size: 24px; }
  .enter-link { padding-top: 20px; }
  .privacy-note { margin-top: 23px; }
  footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

@media (max-width: 370px) {
  .brand-copy small { display: none; }
  .secure-pill { padding-inline: 8px; }
  .ledger-card { min-height: 226px; }
}
@media (prefers-reduced-motion: reduce) { .ledger-card, .enter-link svg { transition: none; } }
