:root {
  --ink: #0b1220;
  --ink-soft: #263449;
  --muted: #64748b;
  --muted-2: #8b98aa;
  --line: #dfe6f0;
  --line-strong: #cbd6e5;
  --bg: #f4f7fb;
  --card: #ffffff;
  --navy: #08111f;
  --navy-2: #0d1d33;
  --navy-3: #122944;
  --cyan: #36d6d0;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #e11d48;
  --green: #16a34a;
  --violet: #8b5cf6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(8, 17, 31, 0.1);
  --shadow-soft: 0 10px 30px rgba(8, 17, 31, 0.06);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(54, 214, 208, 0.1), transparent 24rem),
    radial-gradient(circle at 96% 12%, rgba(59, 130, 246, 0.09), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(223, 230, 240, 0.8);
  background: rgba(244, 247, 251, 0.84);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--navy);
  color: var(--cyan);
  box-shadow: 0 6px 18px rgba(8, 17, 31, 0.18);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.nav a {
  transition: color 0.16s ease;
}

.nav a:hover {
  color: var(--ink);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  margin: 22px 20px 0;
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(54, 214, 208, 0.12), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.25), transparent 28rem),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 58%, #0a1a2e 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 84%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -250px;
  border-radius: 50%;
  border: 1px solid rgba(54, 214, 208, 0.25);
  box-shadow: 0 0 0 60px rgba(54, 214, 208, 0.035), 0 0 0 120px rgba(54, 214, 208, 0.02);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
  padding: 64px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.62);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(54, 214, 208, 0.12);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(54, 214, 208, 0.35);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  max-width: 650px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 780;
}

.hero h1 span {
  color: rgba(255, 255, 255, 0.54);
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.trust-pill {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 650;
}

.hero-proof {
  display: flex;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}

.hero-proof > div {
  display: flex;
  flex-direction: column;
  min-width: 128px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-proof > div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-proof strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.hero-form-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.form-heading h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.secure-badge svg {
  width: 14px;
  height: 14px;
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.field-group {
  margin-bottom: 17px;
}

.field-group legend,
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.optional {
  color: var(--muted-2);
  font-weight: 500;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1f5f9;
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px;
  border-radius: 9px;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.segmented span strong {
  font-size: 12px;
}

.segmented span small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.segmented input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(8, 17, 31, 0.1);
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-row .field {
  margin-bottom: 16px;
}

.input-shell {
  position: relative;
}

.input-shell svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-shell input {
  padding-left: 38px;
}

input,
select {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:hover,
select:hover {
  border-color: #aebbd0;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

input::placeholder {
  color: #a3afbf;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.advanced {
  margin: 2px 0 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}

.advanced summary {
  padding: 11px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.advanced summary::-webkit-details-marker {
  display: none;
}

.advanced summary::after {
  content: "+";
  float: right;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1;
}

.advanced[open] summary::after {
  content: "-";
}

.advanced .field-row {
  padding: 2px 12px 0;
}

.advanced .field {
  margin-bottom: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 17, 31, 0.2);
}

.btn-primary:hover {
  background: #12233a;
}

.btn-trace {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  font-size: 13px;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn-small {
  min-height: 34px;
  padding: 7px 11px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
}

.alerts {
  margin: 0;
}

.alert {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
}

.alert-error {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.loading {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.loading-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.loading-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  animation: loading 1.4s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

.loading-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.loading-hint {
  color: var(--muted-2);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
}

.example-chip {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.example-chip:hover {
  border-color: var(--line-strong);
  background: #f8fafc;
  color: var(--ink);
}

.result {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 0;
  animation: fade-up 0.4s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.grade-ring {
  --score: 0;
  --grade-color: #64748b;
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--grade-color) calc(var(--score) * 1%), #e9eef5 0);
  box-shadow: inset 0 0 0 1px rgba(8, 17, 31, 0.03);
}

.grade-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--card);
}

.grade-ring span,
.grade-ring small {
  position: relative;
  z-index: 1;
}

.grade-ring span {
  color: var(--grade-color);
  font-size: 46px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.grade-ring small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.result-title h2 {
  margin: 4px 0 7px;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.result-address {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mono {
  font-family: var(--mono);
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.route-box {
  margin-top: 14px;
  padding: 17px 18px;
  border: 1px solid #c7d2fe;
  border-left: 4px solid #4f46e5;
  border-radius: 12px;
  background: #eef2ff;
  color: #312e81;
  font-size: 13px;
  font-weight: 550;
}

.route-box.grade-A { border-color: #bbf7d0; border-left-color: var(--green); background: #f0fdf4; color: #14532d; }
.route-box.grade-B { border-color: #bfdbfe; border-left-color: var(--blue); background: #eff6ff; color: #1e3a8a; }
.route-box.grade-C { border-color: #fde68a; border-left-color: var(--amber); background: #fffbeb; color: #78350f; }
.route-box.grade-D { border-color: #fecdd3; border-left-color: var(--red); background: #fff1f2; color: #881337; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(8, 17, 31, 0.03);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.stat small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 4px 18px rgba(8, 17, 31, 0.035);
}

.panel-grid .panel {
  margin-top: 0;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.panel-head-wrap {
  flex-wrap: wrap;
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.panel-note {
  color: var(--muted-2);
  font-size: 10px;
}

.score-bars {
  display: grid;
  gap: 13px;
}

.score-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.score-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}

.score-row strong {
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.score-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.5s ease;
}

.reason-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
}

.reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.graph-wrap {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 45%, rgba(54, 214, 208, 0.08), transparent 55%),
    #fbfdff;
}

.graph-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.graph-edge {
  stroke: #b8c5d8;
  stroke-width: 1.2;
  opacity: 0.55;
}

.graph-edge.hot {
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0.7;
}

.graph-node circle {
  fill: #fff;
  stroke: #94a3b8;
  stroke-width: 1.5;
}

.graph-node.root circle {
  fill: var(--navy);
  stroke: var(--cyan);
  stroke-width: 3;
}

.graph-node.endpoint circle {
  fill: #fff1f2;
  stroke: var(--red);
}

.graph-node text {
  fill: var(--muted);
  font-size: 9px;
  font-family: var(--mono);
  text-anchor: middle;
}

.graph-node.root text {
  fill: #fff;
}

.graph-empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: var(--muted);
  font-size: 12px;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.endpoint-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdff;
}

.endpoint-card .endpoint-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.endpoint-card strong {
  font-size: 12px;
}

.endpoint-card code {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.endpoint-meta {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
}

.endpoint-copy {
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.endpoint-copy:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.pill.exchange { background: #eff6ff; color: #1d4ed8; }
.pill.bridge { background: #f5f3ff; color: #6d28d9; }
.pill.burn { background: #fff1f2; color: #be123c; }
.pill.sanctioned_or_mixer { background: #fff1f2; color: #9f1239; }
.pill.flagged { background: #fffbeb; color: #b45309; }

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.transfer-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
}

.tab {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(8, 17, 31, 0.08);
}

.search {
  position: relative;
  display: block;
}

.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 210px;
  min-height: 35px;
  padding: 7px 9px 7px 31px;
  font-size: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: top;
  font-size: 10px;
}

.data-table th {
  background: #f8fafc;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfdff;
}

.data-table code {
  font-family: var(--mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.data-table .muted {
  color: var(--muted-2);
}

.amount {
  font-weight: 700;
  white-space: nowrap;
}

.details-panel {
  padding: 0;
}

.details-panel > summary {
  padding: 17px 20px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.details-panel > summary::-webkit-details-marker {
  display: none;
}

.details-panel > summary::after {
  content: "+";
  float: right;
  color: var(--muted-2);
}

.details-panel[open] > summary::after {
  content: "-";
}

.details-panel .table-wrap {
  margin: 0 20px 20px;
}

.count-pill {
  display: inline-flex;
  min-width: 20px;
  justify-content: center;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 9px;
}

.warnings-panel {
  border-color: #fde68a;
  background: #fffdf5;
}

.warning-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #854d0e;
  font-size: 11px;
}

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 2px 0;
  border-top: 1px solid var(--line);
}

.result-foot p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.content-section {
  width: min(1180px, calc(100% - 40px));
  margin: 80px auto 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(8, 17, 31, 0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 7px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.limits-section {
  padding: 36px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
}

.limits-section .eyebrow {
  color: rgba(255, 255, 255, 0.52);
}

.limits-section .section-heading h2 {
  color: #fff;
}

.limits-section .section-heading p {
  color: rgba(255, 255, 255, 0.55);
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.limit-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.limit-card h3 {
  margin: 0 0 7px;
  font-size: 13px;
}

.limit-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: #eef3f9;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 40px;
}

.brand-footer {
  margin-bottom: 18px;
}

.footer-inner p {
  max-width: 780px;
  margin: 5px 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 320px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 16px 40px rgba(8, 17, 31, 0.25);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 48px));
    padding: 48px 0;
  }

  .hero-form-card {
    max-width: 620px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps,
  .limits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .endpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: calc(100% - 28px);
  }

  .nav {
    display: none;
  }

  .hero {
    margin: 14px 10px 0;
    border-radius: 22px;
  }

  .hero-grid {
    width: calc(100% - 32px);
    padding: 38px 0 32px;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-proof {
    gap: 0;
  }

  .hero-proof > div {
    min-width: 0;
    flex: 1;
    padding-right: 12px;
    margin-right: 12px;
  }

  .hero-proof strong {
    font-size: 19px;
  }

  .hero-form-card {
    padding: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .result {
    width: calc(100% - 20px);
    margin-top: 20px;
  }

  .result-head {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .grade-ring {
    width: 96px;
    height: 96px;
  }

  .grade-ring span {
    font-size: 38px;
  }

  .result-actions {
    justify-content: flex-start;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }

  .endpoint-grid {
    grid-template-columns: 1fr;
  }

  .transfer-tools {
    width: 100%;
  }

  .search {
    flex: 1;
  }

  .search input {
    width: 100%;
  }

  .result-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    width: calc(100% - 24px);
    margin-top: 54px;
  }

  .steps,
  .limits-grid {
    grid-template-columns: 1fr;
  }

  .limits-section {
    padding: 24px;
    border-radius: 18px;
  }

  .site-footer {
    margin-top: 54px;
  }

  .footer-inner {
    width: calc(100% - 28px);
  }
}

@media (max-width: 480px) {
  .segmented span {
    flex-direction: column;
    gap: 1px;
  }

  .stat strong {
    font-size: 16px;
  }

  .score-row {
    grid-template-columns: 90px minmax(0, 1fr) 38px;
  }
}

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