:root {
  --ink: #10243f;
  --muted: #708096;
  --blue: #1d71f2;
  --cyan: #0ec9d8;
  --line: rgba(31, 103, 197, 0.13);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: #f4f9ff;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.96) 0 22%, transparent 58%),
    linear-gradient(145deg, #f8fbff 0%, #eef7ff 54%, #f9fcff 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .44;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, #000 15%, transparent 76%);
}

.ambient { position: absolute; border-radius: 999px; filter: blur(2px); z-index: -1; pointer-events: none; }
.ambient-one { width: 34rem; height: 34rem; left: -14rem; top: 18%; background: rgba(28, 137, 247, .08); }
.ambient-two { width: 28rem; height: 28rem; right: -8rem; bottom: -9rem; background: rgba(19, 207, 200, .1); }

.topbar {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.brand > span:last-child span { color: var(--blue); }
.brand-mark { width: 34px; height: 34px; display: flex; gap: 3px; align-items: end; justify-content: center; padding: 7px; border-radius: 10px; background: linear-gradient(135deg, #236ff0, #14cdd2); box-shadow: 0 8px 20px rgba(24, 115, 229, .25); }
.brand-mark i { width: 4px; display: block; border-radius: 3px; background: #fff; transform: rotate(20deg); }
.brand-mark i:nth-child(1) { height: 11px; opacity: .72; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: .85; }

.secure-chip { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(37, 121, 218, .13); border-radius: 999px; color: #54708e; background: rgba(255,255,255,.68); backdrop-filter: blur(10px); font-size: 13px; }
.secure-chip span { width: 7px; height: 7px; border-radius: 50%; background: #21bf8a; box-shadow: 0 0 0 4px rgba(33, 191, 138, .13); }

.hero { width: min(890px, calc(100% - 40px)); margin: auto; padding: 42px 0 52px; text-align: center; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 22px; color: #2776cc; font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.eyebrow span { width: 26px; height: 1px; background: #43a4f7; position: relative; }
.eyebrow span::after { content: ""; position: absolute; width: 4px; height: 4px; right: 0; top: -1.5px; border-radius: 50%; background: #43a4f7; }

h1 { margin: 0; color: #142c49; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.14; letter-spacing: -.045em; font-weight: 790; }
h1 em { font-style: normal; color: transparent; background: linear-gradient(92deg, #1d6fe7, #15b9cb); background-clip: text; -webkit-background-clip: text; }
.lead { margin: 22px auto 31px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.route-card {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 31px 34px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 32px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(39, 119, 212, .16);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 22px 65px rgba(48, 97, 151, .13), 0 2px 6px rgba(44, 100, 160, .05);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.card-glow { position: absolute; width: 270px; height: 270px; right: -130px; top: -140px; border-radius: 50%; background: rgba(25, 191, 207, .09); pointer-events: none; }

.progress-ring {
  --progress: 0%;
  width: 122px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, var(--blue) var(--progress), #e5effa 0);
  box-shadow: 0 12px 30px rgba(33, 111, 210, .15);
  transition: background .45s ease;
}
.progress-ring::before { content: ""; position: absolute; width: 132px; height: 132px; border: 1px dashed rgba(29,113,242,.2); border-radius: 50%; animation: orbit 18s linear infinite; }
.ring-inner { width: 102px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #fff; box-shadow: inset 0 0 20px rgba(37,116,222,.06); }
.ring-inner strong { display: block; font-size: 34px; line-height: 1; color: #1d6fe7; }
.ring-inner small { display: block; margin-top: 4px; color: #87a0ba; font-size: 11px; }
.scanner { width: 26px; height: 26px; border: 3px solid #d8e7f8; border-top-color: var(--blue); border-radius: 50%; animation: orbit 1s linear infinite; }

.status-line { display: flex; align-items: center; gap: 8px; color: #56708e; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #e9b548; box-shadow: 0 0 0 4px rgba(233,181,72,.12); }
.pulse-dot.ready { background: #21bf8a; box-shadow: 0 0 0 4px rgba(33,191,138,.12); animation: pulse 1.8s ease-out infinite; }
.route-info h2 { margin: 8px 0 5px; font-size: 25px; letter-spacing: -.02em; }
.route-info > p { margin: 0; color: #8291a4; font-size: 13px; }
.actions { display: flex; gap: 10px; margin-top: 22px; }
.actions button { min-height: 45px; border-radius: 12px; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s; }
.actions button:active { transform: translateY(1px); }
.actions button:disabled { cursor: wait; opacity: .55; }
.primary-button { min-width: 150px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: white; font-weight: 700; background: linear-gradient(100deg, #196cdf, #159cc7); box-shadow: 0 9px 22px rgba(25,111,220,.24); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 27px rgba(25,111,220,.31); }
.primary-button b { font-size: 20px; font-weight: 400; }
.secondary-button { padding: 0 16px; color: #5d7591; background: #edf4fb; font-weight: 600; }

.trust-row { margin: 32px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); width: min(700px, 100%); }
.trust-row > div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 15px; border-right: 1px solid rgba(59,112,171,.12); }
.trust-row > div:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #2176db; background: rgba(37,126,224,.08); font-weight: 700; }
.trust-row p { margin: 0; text-align: left; }
.trust-row strong, .trust-row small { display: block; }
.trust-row strong { color: #405d7e; font-size: 12px; }
.trust-row small { margin-top: 2px; color: #9aa8b7; font-size: 10px; white-space: nowrap; }

footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #91a1b2; font-size: 11px; letter-spacing: .04em; }
footer > span:last-child { text-align: right; }
.footer-center { display: flex; align-items: center; gap: 7px; }
.footer-center i { width: 5px; height: 5px; border-radius: 50%; background: #21bf8a; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33,191,138,.3); } 70% { box-shadow: 0 0 0 7px rgba(33,191,138,0); } 100% { box-shadow: 0 0 0 0 rgba(33,191,138,0); } }

@media (max-width: 720px) {
  .topbar { width: calc(100% - 32px); min-height: 72px; }
  .secure-chip { padding: 8px 10px; font-size: 11px; }
  .hero { width: min(100% - 28px, 560px); padding: 32px 0 40px; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; }
  h1 { font-size: clamp(35px, 11vw, 49px); }
  .lead { width: min(92%, 420px); margin: 18px auto 26px; font-size: 14px; }
  .route-card { grid-template-columns: 1fr; gap: 20px; padding: 27px 22px 23px; text-align: center; }
  .status-side { display: flex; justify-content: center; }
  .progress-ring { width: 108px; }
  .progress-ring::before { width: 118px; height: 118px; }
  .ring-inner { width: 90px; }
  .status-line { justify-content: center; }
  .route-info h2 { font-size: 23px; }
  .actions { justify-content: center; }
  .trust-row { gap: 7px; }
  .trust-row > div { padding: 6px 2px; border: 0; display: block; }
  .trust-icon { margin: 0 auto 7px; }
  .trust-row p { text-align: center; }
  .trust-row small { display: none; }
  footer { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; }
  .footer-center { display: none; }
}

@media (max-width: 390px) {
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .secure-chip { border: 0; background: transparent; padding-right: 0; }
  .hero { padding-top: 20px; }
  h1 { font-size: 33px; }
  .route-card { border-radius: 20px; }
  .actions { flex-direction: column; }
  .actions button { width: 100%; }
  .primary-button { justify-content: center; gap: 22px; }
}

@media (min-width: 1450px) {
  .hero { transform: scale(1.04); }
}

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