:root {
  --yellow: #f0f00a;
  --blue: #3643f6;
  --coral: #fb8a80;
  --black: #000000;
  --white: #ffffff;
  --paper: #fffdf2;
  --border: 3px solid var(--black);
  --shadow: 6px 6px 0 var(--black);
  --shadow-blue: 6px 6px 0 var(--blue);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}
a { color: var(--black); font-weight: 800; }
h1, h2, h3 { font-weight: 900; line-height: 1.1; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 26px; }
.hidden { display: none !important; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }

/* Navigation: floating capsule */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0; max-width: 1100px; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: var(--border); border-radius: 999px;
  box-shadow: var(--shadow-blue); padding: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--yellow); border: var(--border); border-radius: 50%;
  font-size: 16px; animation: spin-in 0.8s ease-out;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; }
.nav-links a { text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap; transition: transform 0.15s ease, background 0.15s ease; }
.nav-links a:hover { background: var(--yellow); border-color: var(--black); transform: translateY(-2px); }
.api-status { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 15px; border: 2px solid var(--black); border-radius: 999px; padding: 4px 10px; }
.api-status i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid var(--black); }
.api-status.online i { background: #19c26b; animation: pulse 1.6s ease-in-out infinite; }

/* Hero */
.hero { max-width: 1100px; margin: 0 auto; padding: 56px 16px 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.tag { display: inline-block; background: var(--coral); border: var(--border); border-radius: 999px; padding: 4px 14px; font-weight: 900; margin: 0 0 16px; }
.lead { font-size: 21px; font-weight: 700; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 900; color: var(--black);
  border: var(--border); border-radius: 12px; padding: 12px 20px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--black); text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--black); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-yellow { background: var(--yellow); }
.btn-coral { background: var(--coral); }
.btn-white { background: var(--white); }

/* Cards */
.section { max-width: 1100px; margin: 0 auto; padding: 40px 16px; }
.card { border: var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); background: var(--white); }
.card-yellow { background: var(--yellow); }
.card-coral { background: var(--coral); }
.card-white { background: var(--white); }
label { display: block; font-weight: 900; margin: 14px 0 6px; }
input, select { width: 100%; font: inherit; font-weight: 700; color: var(--black); background: var(--white); border: var(--border); border-radius: 10px; padding: 12px 14px; }
input:focus, select:focus { outline: 4px solid var(--blue); outline-offset: 2px; }
input[type="checkbox"] { width: auto; margin-right: 10px; transform: scale(1.4); accent-color: var(--blue); }
.check { display: flex; align-items: center; font-weight: 800; }
fieldset { border: var(--border); border-radius: 12px; margin: 18px 0; padding: 8px 16px 16px; }
legend { font-weight: 900; padding: 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 16px; }

/* Mascot and speech bubbles */
.mascot { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.mascot img { max-width: 100%; height: auto; filter: drop-shadow(6px 6px 0 var(--blue)); }
.mascot-hero img { animation: float 4s ease-in-out infinite; }
.mascot-side img { max-width: 280px; }
.mascot-small img { max-width: 170px; }
.mascot-loading img { max-width: 170px; animation: wobble 1.4s ease-in-out infinite; }
.mascot-verdict img { max-width: 200px; animation: pop 0.5s cubic-bezier(.3,1.6,.5,1) both; }
.bubble {
  position: relative; background: var(--white); border: var(--border); border-radius: 16px;
  padding: 14px 18px; font-weight: 800; box-shadow: 4px 4px 0 var(--black); margin-top: 14px; max-width: 360px;
}
.bubble::before { content: ""; position: absolute; top: -14px; left: 50%; width: 22px; height: 22px; background: var(--white); border-left: var(--border); border-top: var(--border); transform: translateX(-50%) rotate(45deg); }
.bubble-left::before { left: 32px; }
.bubble.static { margin-top: 0; max-width: 620px; }
.bubble.static::before { top: 24px; left: -14px; transform: rotate(-45deg); }

/* Ticker */
.ticker { border-top: var(--border); border-bottom: var(--border); background: var(--yellow); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 48px; padding: 12px 0; animation: marquee 30s linear infinite; font-weight: 900; }
.ticker-track span::before { content: "■"; color: var(--blue); margin-right: 14px; }

/* Check */
.check-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }

/* Loading */
.loading { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--white); }
.loading-title { font-size: 24px; font-weight: 900; margin: 0 0 12px; }
.progress { height: 18px; border: var(--border); border-radius: 999px; overflow: hidden; background: var(--white); }
.progress span { display: block; height: 100%; width: 40%; background: var(--blue); animation: slide 1.2s ease-in-out infinite; }
.checklist { margin: 16px 0 0; padding-left: 0; list-style: none; }
.checklist li { padding: 6px 0 6px 34px; position: relative; opacity: 0.35; animation: light 6s ease-in-out infinite; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border: var(--border); border-radius: 50%; background: var(--yellow); }
.checklist li:nth-child(2) { animation-delay: 1.5s; }
.checklist li:nth-child(3) { animation-delay: 3s; }
.checklist li:nth-child(4) { animation-delay: 4.5s; }
.hint { font-size: 16px; margin: 10px 0 0; }
.error-box { margin-top: 28px; display: flex; gap: 20px; align-items: center; animation: rise 0.4s ease-out both; }

/* Result */
#result { margin-top: 28px; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; animation: rise 0.45s ease-out both; }
.verdict.danger { background: var(--coral); }
.verdict.warning { background: var(--yellow); }
.verdict.clean { background: var(--white); }
.verdict-label { display: inline-block; font-size: 18px; font-weight: 900; text-transform: uppercase; background: var(--white); border: var(--border); border-radius: 999px; padding: 4px 14px; margin: 0 0 10px; }
.verdict-text { font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.stat { border: var(--border); border-radius: 16px; padding: 18px; background: var(--white); box-shadow: 4px 4px 0 var(--black); animation: rise 0.45s ease-out both; }
.stat .value { font-size: 44px; font-weight: 900; display: block; }
.stat .label { font-size: 16px; font-weight: 800; display: block; margin-bottom: 10px; }
.bar { height: 14px; border: 2px solid var(--black); border-radius: 999px; overflow: hidden; background: var(--paper); }
.bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.findings { padding-left: 0; list-style: none; margin: 0; display: grid; gap: 14px; }
.finding { border: var(--border); border-radius: 14px; padding: 16px 18px; background: var(--white); box-shadow: 4px 4px 0 var(--black); opacity: 0; animation: rise 0.4s ease-out forwards; }
.finding.danger { border-left-width: 14px; border-left-color: var(--coral); }
.finding.warning { border-left-width: 14px; border-left-color: var(--yellow); }
.badge { display: inline-block; font-size: 14px; font-weight: 900; text-transform: uppercase; border: 2px solid var(--black); border-radius: 999px; padding: 2px 10px; margin-right: 10px; background: var(--white); }
.badge.danger { background: var(--coral); }
.badge.warning { background: var(--yellow); }
.proofs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 15px; }
.proofs a { border: 2px solid var(--black); border-radius: 999px; padding: 2px 10px; text-decoration: none; background: var(--paper); transition: background 0.15s ease; }
.proofs a:hover { background: var(--yellow); }

/* Buy */
.buy-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.wallet { font-weight: 900; }
.expected { font-size: 20px; font-weight: 900; padding: 14px; border: var(--border); border-radius: 12px; }
.expected.pass { background: var(--yellow); }
.expected.fail { background: var(--coral); }
.buy-status { font-weight: 800; }
.buy-status.busy::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 3px solid var(--black); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; }
.error { font-weight: 900; }

/* How it works */
.how-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.graph { width: 100%; max-width: 760px; display: block; margin: 24px auto; }
.graph .edges path { stroke: var(--blue); stroke-width: 5; fill: none; stroke-dasharray: 260; stroke-dashoffset: 260; }
.graph.in .edges path { animation: draw 1.2s ease-out forwards; }
.graph.in .edges path:nth-child(2) { animation-delay: 0.15s; }
.graph.in .edges path:nth-child(3) { animation-delay: 0.3s; }
.graph.in .edges path:nth-child(4) { animation-delay: 0.45s; }
.graph.in .edges path:nth-child(5) { animation-delay: 0.6s; }
.graph .node rect { fill: var(--white); stroke: var(--black); stroke-width: 3; }
.graph .node.creator rect { fill: var(--coral); }
.graph .node text { font: 900 18px "Archivo", sans-serif; fill: var(--black); text-anchor: middle; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; border: var(--border); border-radius: 50%; background: var(--white); font-weight: 900; font-size: 22px; margin-bottom: 12px; }
.agents { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }

/* Footer */
.footer { margin-top: 60px; background: var(--yellow); border-top: var(--border); position: relative; padding-top: 40px; }
.mascot-footer { position: absolute; right: 24px; top: -120px; }
.mascot-footer img { max-width: 160px; }
.footer-grid { max-width: 1100px; margin: 0 auto; padding: 0 16px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-title { font-size: 34px; font-weight: 900; margin: 0 0 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-links a { border: var(--border); border-radius: 999px; padding: 6px 14px; background: var(--white); text-decoration: none; box-shadow: 3px 3px 0 var(--black); }
.ticker-footer { background: var(--coral); border-bottom: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes light { 0%, 20% { opacity: 0.35; } 30%, 70% { opacity: 1; } 80%, 100% { opacity: 0.35; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-in { from { transform: rotate(-180deg) scale(0.4); } to { transform: none; } }

@media (max-width: 820px) {
  .hero, .check-layout, .how-head, .agents { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .loading, .verdict { grid-template-columns: 1fr; }
  .mascot-footer { display: none; }
  .buy-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .finding { opacity: 1 !important; transform: none !important; }
  .graph .edges path { stroke-dashoffset: 0; }
}

/* Long Solana addresses must wrap instead of widening the page. */
html, body { overflow-x: hidden; }
.finding, .verdict-text, .bubble, .wallet, .buy-status, .expected, .error-box p, .lead { overflow-wrap: anywhere; }
img { max-width: 100%; }

/* Phones */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav { top: 8px; margin-top: 8px; width: calc(100% - 16px); padding: 8px 12px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; font-size: 13px; }
  .api-status { margin-left: auto; font-size: 13px; padding: 3px 8px; }
  .hero { padding: 32px 16px 16px; gap: 8px; }
  .hero .mascot-hero { order: -1; }
  .mascot-hero img { max-width: 220px; }
  .lead { font-size: 18px; }
  .section { padding: 28px 12px; }
  .card { padding: 18px; border-radius: 14px; box-shadow: 4px 4px 0 var(--black); }
  .check-layout .mascot-side { order: -1; }
  .mascot-side img { max-width: 180px; }
  .mascot-small img { max-width: 120px; }
  .mascot-loading img, .mascot-verdict img { max-width: 140px; }
  .bubble { max-width: 100%; font-size: 16px; }
  .bubble.static::before { top: -14px; left: 32px; transform: rotate(45deg); }
  .how-head .mascot-side { order: -1; }
  .row { flex-direction: column; align-items: stretch; }
  .row .btn { width: 100%; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; }
  .stat .value { font-size: 28px; }
  .stat .label { font-size: 14px; }
  .verdict { text-align: left; }
  .finding { padding: 12px 14px; }
  .proofs { font-size: 14px; }
  .expected { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .agents { grid-template-columns: 1fr; }
  .agents .mascot-small { order: -1; }
  .footer-title { font-size: 26px; }
  .footer-links { flex-direction: column; align-items: stretch; }
  .footer-links a { text-align: center; }
  .ticker-track { gap: 28px; font-size: 15px; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
}
