:root {
  color-scheme: light dark;
  --ink: #111c30;
  --muted: #66758c;
  --line: #d8e1ed;
  --action: #2457e6;
  --action-soft: #edf3ff;
  --surface: #ffffff;
  --canvas: #f5f7fa;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }
button { font: inherit; }
.gateway-shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.gateway-panel {
  width: min(100%, 430px);
  padding: 34px 36px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(24, 49, 84, .1);
}
.gateway-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.gateway-brand img { width: 38px; height: 38px; }
.gateway-brand span { display: grid; gap: 1px; }
.gateway-brand strong { font-size: 15px; }
.gateway-brand small { color: var(--muted); font-size: 10px; }
.gateway-progress { height: 3px; margin: 34px 0 28px; overflow: hidden; border-radius: 2px; background: var(--action-soft); }
.gateway-progress i { display: block; width: 38%; height: 100%; background: var(--action); animation: gateway-progress 1.15s cubic-bezier(.65,0,.35,1) infinite alternate; }
h1 { margin: 0; font-size: clamp(24px, 6vw, 30px); line-height: 1.18; letter-spacing: -.03em; }
p { max-width: 36ch; margin: 13px 0 0; color: var(--muted); }
.gateway-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.gateway-actions a, .gateway-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.gateway-actions button { color: #fff; border-color: var(--action); background: var(--action); }
.gateway-actions a:hover { background: var(--action-soft); }
.gateway-actions button:hover { background: #1747cc; }
.gateway-actions a:focus-visible, .gateway-actions button:focus-visible, .gateway-brand:focus-visible { outline: 3px solid rgba(36,87,230,.28); outline-offset: 3px; }
@keyframes gateway-progress { from { transform: translateX(-18%); } to { transform: translateX(182%); } }
@media (max-width: 520px) {
  .gateway-shell { place-items: start center; padding: 16px; }
  .gateway-panel { margin-top: 12vh; padding: 28px 24px 26px; }
  .gateway-actions > * { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { .gateway-progress i { animation: none; width: 100%; } }
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef4ff; --muted: #a7b4c7; --line: #30415a; --action: #7fa4ff; --action-soft: #17284a; --surface: #101a2b; --canvas: #091321; }
  .gateway-actions button { color: #0b1627; }
  .gateway-actions button:hover { background: #a9c1ff; }
}
