/* Elyguard: single stylesheet */
:root {
  --bg: #061012;
  --bg-2: #0a171a;
  --panel: rgba(14, 28, 31, 0.72);
  --panel-solid: #0d1b1e;
  --line: rgba(170, 225, 215, 0.10);
  --line-2: rgba(170, 225, 215, 0.18);
  --text: #e9f2f1;
  --muted: #92a8a6;
  --faint: #62797a;
  --mint: #3fd9b9;
  --mint-2: #86ead7;
  --mint-ink: #04201b;
  --silver: linear-gradient(180deg, #f6f9f9 0%, #c5cfd0 55%, #8e9a9c 100%);
  --safe: #3fd9b9;
  --caution: #f3b94e;
  --danger: #ff5f6f;
  --unknown: #8a9d9c;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 210, 195, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 210, 195, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 10%, #000 30%, transparent 75%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-glow.g1 { width: 620px; height: 620px; right: -120px; top: -160px; background: rgba(40, 170, 150, 0.18); }
.bg-glow.g2 { width: 520px; height: 520px; left: -220px; top: 520px; background: rgba(40, 140, 130, 0.08); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: -0.005em; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease, color .15s;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 6px 24px -8px rgba(63, 217, 185, .55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background: var(--mint-2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(63, 217, 185, .5); color: #fff; background: rgba(63, 217, 185, .06); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary.is-disabled { background: rgba(63, 217, 185, .18); color: var(--mint-2); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(6, 16, 18, .66); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 24px 0 16px; }
.hero-inner { display: grid; gap: 20px; align-items: center; }
.hero-art { position: relative; order: -1; width: 96px; margin: 0 auto; }
.hero-art img { position: relative; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04); }
.halo { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(63,217,185,.28) 0%, rgba(63,217,185,0) 65%); filter: blur(10px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(63,217,185,.05); color: var(--mint-2); font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero h1 { font-size: clamp(30px, 8vw, 58px); font-weight: 750; letter-spacing: -0.035em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .accent { display: block; background: linear-gradient(90deg, #7fe9d4, #3fd9b9 60%, #2fbfa6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 560px; }

/* Scanner */
.scanner { margin-top: 28px; max-width: 620px; }
.scanner-field {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 7px; border-radius: 16px; background: rgba(12, 26, 29, .85);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px -30px rgba(0,0,0,.9), 0 0 0 0 rgba(63,217,185,0);
  transition: border-color .2s, box-shadow .25s;
}
.scanner-field:focus-within { border-color: rgba(63,217,185,.55); box-shadow: 0 20px 60px -30px rgba(0,0,0,.9), 0 0 0 4px rgba(63,217,185,.10), 0 0 40px -10px rgba(63,217,185,.35); }
.scanner-icon { flex: none; margin-left: 10px; color: var(--faint); }
.scanner input {
  flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 15px/1 var(--mono); letter-spacing: -0.01em;
}
.scanner input::placeholder { color: var(--faint); font-family: var(--font); }
.scanner .btn { flex: none; min-width: 92px; }
.scan-hint { margin-top: 10px; font-size: 13px; color: var(--faint); padding-left: 4px; }
.scan-hint.err { color: var(--danger); }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(4,32,27,.25); border-top-color: var(--mint-ink); border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result { margin-top: 28px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verdict { --c: var(--unknown); position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 22px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); }
.verdict.safe { --c: var(--safe); } .verdict.caution { --c: var(--caution); } .verdict.danger { --c: var(--danger); } .verdict.unknown { --c: var(--unknown); }
.verdict-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 0 30px -8px var(--c); }
.verdict-ic svg { width: 26px; height: 26px; }
.verdict-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.verdict-title { font-size: 26px; font-weight: 750; color: var(--c); letter-spacing: -0.02em; line-height: 1.15; }
.verdict-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.verdict-counts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.02); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.safe { color: var(--safe); } .pill.caution { color: var(--caution); } .pill.danger { color: var(--danger); } .pill.unknown { color: var(--unknown); }

.tokeninfo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.tokeninfo div { background: var(--panel-solid); padding: 12px 20px; min-width: 0; }
.tokeninfo dt { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.tokeninfo dd { margin: 2px 0 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tokeninfo dd.mono { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }

.checks { list-style: none; margin: 0; padding: 6px 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 20px; border-top: 1px solid rgba(170,225,215,.05); }
.check:first-child { border-top: 0; }
.check-dot { --c: var(--unknown); width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.check-dot svg { width: 14px; height: 14px; }
.check.safe .check-dot { --c: var(--safe); } .check.caution .check-dot { --c: var(--caution); } .check.danger .check-dot { --c: var(--danger); }
.check-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.check-title { font-weight: 600; font-size: 15px; }
.check-status { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.check.safe .check-status { color: var(--safe); } .check.caution .check-status { color: var(--caution); } .check.danger .check-status { color: var(--danger); }
.check-text { color: var(--muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.result-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); font-size: 12.5px; color: var(--faint); }
.result-foot button { background: none; border: 0; color: var(--mint-2); font: 600 12.5px var(--font); cursor: pointer; padding: 0; }
.result-msg { padding: 22px 20px; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section-head { margin-bottom: 32px; max-width: 680px; }
.kicker { color: var(--mint); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-size: clamp(26px, 5.2vw, 40px); font-weight: 720; letter-spacing: -0.03em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step-n { display: inline-block; font: 600 13px var(--mono); color: var(--mint); padding: 3px 8px; border-radius: 6px; background: rgba(63,217,185,.08); border: 1px solid rgba(63,217,185,.2); margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.card { padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s, background-color .2s; }
.card:hover { border-color: rgba(63,217,185,.3); transform: translateY(-2px); background: rgba(16, 34, 37, .8); }
.card-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 0; background: linear-gradient(180deg, rgba(63,217,185,.16), rgba(63,217,185,.04)); border: 1px solid rgba(63,217,185,.22); }
.card-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--mint-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 16.5px; margin: 2px 0 4px; }
.card p { color: var(--muted); font-size: 14.5px; }

.fair { display: grid; gap: 20px; padding: 32px 24px; border-radius: 22px; border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 0% 0%, rgba(63,217,185,.10), transparent 55%), var(--panel); }
.fair-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(63,217,185,.08); border: 1px solid rgba(63,217,185,.25); }
.fair-badge svg { width: 28px; height: 28px; fill: none; stroke: var(--mint-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fair h2 { font-size: clamp(22px, 4.4vw, 32px); margin-bottom: 12px; }
.fair p:last-child { color: var(--muted); max-width: 720px; }

.token { display: grid; gap: 24px; padding: 32px 24px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(20, 44, 46, .7), rgba(10, 22, 25, .85)); position: relative; overflow: hidden; }
.token::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(63,217,185,.16), transparent 65%); pointer-events: none; }
.token h2 { font-size: clamp(34px, 7vw, 52px); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.token-lead { margin-top: 10px; color: var(--muted); font-size: 17px; }
.ca { margin-top: 22px; }
.ca-label { display: block; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.ca-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px dashed var(--line-2); }
.ca-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mint-2); font-size: 14px; }
.ca-row.is-live { border-style: solid; }
.token-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.token-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); align-self: center; position: relative; z-index: 1; }
.token-facts div { background: rgba(8, 19, 21, .92); padding: 16px; }
.token-facts dt { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.token-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.faq details[open] { border-color: rgba(63,217,185,.28); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 24px; background: rgba(0,0,0,.2); }
.footer-inner { display: grid; gap: 18px; }
.footer-brand p { color: var(--faint); font-size: 14px; margin-top: 8px; }
.disclaimer { color: var(--muted); font-size: 14px; max-width: 520px; }
.footer-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--text); }
.copy { color: var(--faint); }

/* Tablet+ */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tokeninfo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .verdict { padding: 26px 24px; }
  .check, .result-foot, .tokeninfo div { padding-left: 24px; padding-right: 24px; }
  .fair { grid-template-columns: auto 1fr; padding: 40px; gap: 28px; }
  .token { padding: 40px; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { padding: 76px 0 36px; }
  .hero h1 .accent { display: inline; }
  .hero-inner { grid-template-columns: 1.7fr 1fr; gap: 56px; }
  .card { display: block; padding: 22px; }
  .card-ic { margin-bottom: 14px; }
  .hero-art { order: 0; width: 100%; max-width: 340px; }
  .hero-art img { border-radius: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .token { grid-template-columns: 1.2fr 1fr; padding: 48px; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1.2fr auto; align-items: center; }
  .section { padding: 96px 0; }
}
@media (max-width: 380px) {
  .scanner .btn { min-width: 0; padding: 0 16px; }
  .scanner-icon { display: none; }
  .scanner input { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
