:root {
  --bg: #030209;
  --bg-2: #05040c;
  --panel: #08070f;
  --panel-2: #0b0a15;
  --border: #17161f;
  --border-hi: #221f2e;
  --text: #f3f3f6;
  --sub: #8a8a99;
  --faint: #4a4a57;
  --accent: #2f6bff;
  --accent-hi: #5b8bff;
  --danger: #ff5468;
  --danger-hi: #ff8090;
  --warn: #f5b23d;
  --safe: #34d17a;
  --display: "Clash Display", "Satoshi", ui-sans-serif, sans-serif;
  --body: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body);
  min-height: 100vh; position: relative; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* atmosphere */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60vw 42vh at 50% -6vh, rgba(47,107,255,0.26), transparent 62%),
              radial-gradient(40vw 30vh at 50% -2vh, rgba(91,139,255,0.20), transparent 60%); }
.arc { position: fixed; z-index: 0; pointer-events: none; top: -78vw; left: 50%; transform: translateX(-50%);
  width: 150vw; height: 150vw; border-radius: 50%; border: 1px solid rgba(47,107,255,0.35);
  box-shadow: 0 0 120px 12px rgba(47,107,255,0.22), inset 0 0 90px rgba(47,107,255,0.10);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 22%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 22%); }
.grid-lines { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120vw 90vh at 50% 0, #000, transparent 70%);
          mask-image: radial-gradient(120vw 90vh at 50% 0, #000, transparent 70%); }
.xmark { position: absolute; z-index: 1; width: 12px; height: 12px; opacity: 0.5;
  background: linear-gradient(var(--faint), var(--faint)) center/1px 12px no-repeat,
              linear-gradient(var(--faint), var(--faint)) center/12px 1px no-repeat; }

/* nav */
.nav { position: relative; z-index: 5; max-width: 940px; margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 9px; }
.brand .logo { font-size: 15px; }
.tagpill { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.1em;
  color: var(--sub); border: 1px solid var(--border-hi); border-radius: 999px; padding: 3px 9px; }
.navlinks { display: flex; gap: 24px; }
.navlinks a { color: var(--sub); text-decoration: none; font-size: 14px; transition: color .2s; }
.navlinks a:hover { color: var(--text); }

/* layout */
.wrap { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; padding: 0 24px 80px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sub); }

/* hero */
.hero { text-align: center; padding: 52px 0 42px; }
.hero .eyebrow { color: var(--accent-hi); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 8vw, 88px);
  line-height: 0.98; letter-spacing: -0.02em; margin: 20px 0 0; }
.hero h1 em { font-style: italic; font-weight: 600;
  background: linear-gradient(120deg, var(--accent-hi), #a9c1ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .tag { color: var(--sub); max-width: 560px; margin: 22px auto 0; line-height: 1.6; font-size: 16px; }

/* composer */
.panel { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border-hi); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 120px -50px rgba(47,107,255,0.35); }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.mode { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--safe); }
textarea { width: 100%; resize: vertical; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-hi); border-radius: 12px; padding: 14px 15px;
  font-family: var(--body); font-size: 15px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
textarea::placeholder { color: var(--faint); }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,0.15); }

.examples { display: flex; flex-direction: column; gap: 10px; }
.ex-label { font-size: 13px; color: var(--sub); }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { cursor: pointer; user-select: none; background: var(--bg); border: 1px solid var(--border-hi);
  color: var(--sub); border-radius: 999px; padding: 7px 13px; font-size: 13px; transition: all .16s; }
.ex-chip:hover { border-color: var(--accent); color: var(--text); background: rgba(47,107,255,0.08); }

.pill { align-self: flex-start; cursor: pointer; border: none; background: #fff; color: #050509;
  font-family: var(--body); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 7px 7px 7px 22px;
  display: inline-flex; align-items: center; gap: 16px; transition: transform .12s, box-shadow .2s, opacity .2s;
  box-shadow: 0 12px 30px -12px rgba(255,255,255,0.3); }
.pill:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(91,139,255,0.5); }
.pill:active { transform: scale(.98); }
.pill:disabled { opacity: .55; cursor: progress; }
.pill .ico { width: 34px; height: 34px; border-radius: 50%; background: #050509; color: #fff;
  display: grid; place-items: center; font-size: 15px; transition: transform .2s; }
.pill:hover .ico { transform: translateX(2px); }

/* ---------- result ---------- */
.result { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.hidden { display: none; }

.verdict-card { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px;
  border: 1px solid var(--border-hi); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.verdict-card.scam { border-color: rgba(255,84,104,0.55);
  background: radial-gradient(80% 130% at 0% 0%, rgba(255,84,104,0.18), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: 0 30px 90px -40px rgba(255,84,104,0.55); }
.verdict-card.suspicious { border-color: rgba(245,178,61,0.5);
  background: radial-gradient(80% 130% at 0% 0%, rgba(245,178,61,0.15), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.verdict-card.safe { border-color: rgba(52,209,122,0.5);
  background: radial-gradient(80% 130% at 0% 0%, rgba(52,209,122,0.15), transparent 60%), linear-gradient(180deg, var(--panel), var(--bg-2)); }

.vc-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.meter { --c: var(--danger); position: relative; width: 108px; height: 108px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--pct) * 1%), var(--border) 0); }
.meter::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg-2); }
.meter .num { position: relative; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.meter .lbl { position: relative; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--sub); margin-top: 2px; }
.vc-headline { flex: 1; min-width: 220px; }
.vc-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; font-weight: 700; }
.vc-tag.scam { background: rgba(255,84,104,0.15); color: var(--danger-hi); }
.vc-tag.suspicious { background: rgba(245,178,61,0.15); color: var(--warn); }
.vc-tag.safe { background: rgba(52,209,122,0.15); color: var(--safe); }
.vc-type { font-family: var(--mono); font-size: 12px; color: var(--sub); margin-left: 10px; }
.vc-headline h2 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3vw, 27px);
  line-height: 1.15; letter-spacing: -0.01em; margin: 12px 0 0; }

/* generic result block */
.block { border: 1px solid var(--border-hi); border-radius: 16px; padding: 20px 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.block > h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sub); margin: 0 0 14px; }

.flags { display: flex; flex-direction: column; gap: 10px; }
.flag { display: flex; gap: 12px; align-items: flex-start; }
.flag .fi { color: var(--danger); font-size: 15px; margin-top: 1px; }
.flag .ft { font-weight: 600; font-size: 14.5px; }
.flag .fd { color: var(--sub); font-size: 14px; line-height: 1.55; margin-top: 2px; }

.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.todo li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.todo li .ck { color: var(--accent-hi); margin-top: 1px; }
.todo.safe-list li .ck { color: var(--safe); }

.teach { border-left: 2px solid var(--accent); }
.teach p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); }

/* recovery (collapsible) */
.recover summary { cursor: pointer; list-style: none; font-family: var(--mono); font-size: 12px;
  letter-spacing: .06em; color: var(--warn); display: flex; align-items: center; gap: 8px; }
.recover summary::-webkit-details-marker { display: none; }
.recover[open] summary { margin-bottom: 12px; }
.recover .todo li .ck { color: var(--warn); }

/* share card */
.share { border-color: rgba(52,209,122,0.4); }
.share .warn-text { background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; font-size: 14.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.share .row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn { cursor: pointer; border: 1px solid var(--border-hi); background: var(--bg); color: var(--text);
  font-family: var(--body); font-weight: 500; font-size: 14px; border-radius: 10px; padding: 10px 16px; transition: all .16s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--safe); color: #04120a; border-color: var(--safe); font-weight: 600; }
.btn.primary:hover { opacity: .92; }

.err-box { border-color: rgba(255,84,104,0.5); color: var(--danger-hi); font-size: 15px; }

.spinner { width: 15px; height: 15px; border: 2px solid var(--border-hi); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.result > * { animation: rise .45s cubic-bezier(.16,1,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* how / learn / footer */
.how, .learn { margin-top: 64px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.step { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent-hi); border: 1px solid var(--border-hi);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 16px 0 6px; }
.step p { color: var(--sub); font-size: 14px; line-height: 1.6; margin: 0; }
.rules { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules li { position: relative; padding-left: 26px; color: var(--sub); font-size: 15px; line-height: 1.6; }
.rules li::before { content: "✓"; position: absolute; left: 0; color: var(--safe); font-weight: 700; }
.rules b { color: var(--text); }

.foot { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; padding: 30px 24px;
  border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot .muted { font-family: var(--mono); font-size: 12px; color: var(--sub); }
.foot b { color: var(--danger-hi); }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .xmark { display: none; }
}
