/* MNS — glassy dark emerald theme */
:root {
  --bg: #05080a;
  --bg2: #070c0a;
  --ink: #e9f2ed;
  --muted: #93a89e;
  --emerald: #34d399;
  --emerald-deep: #16a34a;
  --gold: #f0d488;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --radius: 22px;
  --font-d: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* animated line canvas + ambient glow */
#lines { position: fixed; inset: 0; z-index: 0; opacity: 0.9; pointer-events: none; }
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(52, 211, 153, 0.07), transparent 60%),
    radial-gradient(800px 500px at 85% 80%, rgba(22, 163, 74, 0.06), transparent 60%);
}

main, footer { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; margin-bottom: 0.6rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h1 em, h2 em { font-style: normal; color: var(--emerald); }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
a { color: var(--emerald); text-decoration: none; }
strong { color: var(--ink); }

/* glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* nav */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 14px auto 0; padding: 10px 18px;
  border-radius: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-d); font-weight: 700; font-size: 1.3rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav .links { display: flex; gap: 26px; }
.nav .links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav .links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.pill {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.pill-ok { background: rgba(52, 211, 153, 0.14); }
.pill-bad { background: rgba(248, 113, 113, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.pill-soon { display: inline-block; margin-top: 12px; background: rgba(240, 212, 136, 0.1); color: var(--gold); border-color: rgba(240, 212, 136, 0.3); }

/* buttons */
.btn {
  font-family: var(--font-d); font-weight: 600; font-size: 0.95rem;
  border: none; border-radius: 14px; padding: 12px 22px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: #04120b; box-shadow: 0 8px 28px rgba(52, 211, 153, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(52, 211, 153, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-wide { width: 100%; margin-top: 18px; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; border-radius: 10px; }

/* hero */
.hero { max-width: 860px; margin: 0 auto; padding: 110px 24px 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-d); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--emerald);
  margin-bottom: 22px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.07);
}
.hero .lede { margin: 22px auto 0; }
.hero .lede strong { color: var(--emerald); }

.searchbar {
  display: flex; align-items: center; gap: 0;
  max-width: 560px; margin: 38px auto 0; padding: 8px 8px 8px 24px;
  border-radius: 20px;
}
.searchbar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--font-d); font-size: 1.4rem; font-weight: 600;
  min-width: 0;
}
.searchbar input::placeholder { color: rgba(147, 168, 158, 0.45); }
.searchbar .suffix { font-family: var(--font-d); font-size: 1.4rem; font-weight: 600; color: var(--emerald); padding-right: 14px; }

.hero-stats { display: flex; justify-content: center; gap: 44px; margin-top: 46px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-d); font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: 0.85rem; }

/* result */
.result-wrap { max-width: 1020px; margin: 30px auto 0; padding: 0 24px; }
.hidden { display: none !important; }
.result-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.result-card { padding: 30px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.result-head h2 { margin: 0; font-size: 2rem; word-break: break-all; }
.result-head h2 .tld { color: var(--emerald); }

.chain-toggle { display: flex; gap: 8px; margin: 20px 0 6px; }
.chain-btn {
  flex: 1; padding: 10px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); color: var(--muted);
  border: 1px solid var(--glass-border); font-family: var(--font-d); font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.chain-btn.active { background: rgba(52, 211, 153, 0.14); color: var(--emerald); border-color: rgba(52, 211, 153, 0.4); }

.price-rows { margin-top: 10px; border-top: 1px solid var(--glass-border); }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 2px; border-bottom: 1px solid var(--glass-border); font-size: 0.95rem;
}
.price-row.dim { opacity: 0.65; }
.price-row .tag {
  font-style: normal; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(52, 211, 153, 0.12); color: var(--emerald);
  padding: 3px 8px; border-radius: 999px; margin-left: 8px;
}
.fineprint { margin-top: 12px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* on-chain NFT artwork preview — real contract art rendered by mns-art.js */
.nft-preview { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.nft-art { width: 100%; max-width: 300px; margin: 0 auto; }
.nft-art svg { width: 100%; height: auto; display: block; border-radius: 48px;
  box-shadow: 0 24px 70px rgba(28, 26, 22, 0.28); }
.nft-art.small { max-width: 220px; }

/* sections */
.section { max-width: 1120px; margin: 0 auto; padding: 90px 24px 0; }
.section > h2, .section > .lede { text-align: center; }
.section > .lede { margin: 0 auto 44px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.card { padding: 32px 28px; transition: transform 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.35); }
.card h3 { margin-bottom: 10px; }
.price { font-family: var(--font-d); font-size: 2.2rem; font-weight: 700; color: var(--emerald); margin: 12px 0 2px; }
.price span { font-size: 1.1rem; }
.price-alt { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.step {
  display: inline-block; font-family: var(--font-d); font-weight: 700; color: var(--emerald);
  font-size: 0.85rem; letter-spacing: 0.2em; margin-bottom: 14px;
  border-bottom: 2px solid rgba(52, 211, 153, 0.4); padding-bottom: 6px;
}
.wide-card { padding: 48px; }
.wide-inner { display: flex; align-items: center; gap: 48px; }
.wide-inner > div:first-child { flex: 1.3; }
.addr {
  display: block; margin-top: 10px; font-size: 0.78rem; word-break: break-all;
  background: rgba(0, 0, 0, 0.35); padding: 10px 14px; border-radius: 10px; color: var(--muted);
  border: 1px solid var(--glass-border);
}
.cta .wide-card { text-align: center; }
.cta .btn { display: inline-block; margin-top: 22px; }

/* footer */
footer { margin-top: 110px; border-top: 1px solid var(--glass-border); }
.foot-inner {
  max-width: 1120px; margin: 0 auto; padding: 34px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.foot-inner .brand img { width: 30px; height: 30px; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 5, 0.7); backdrop-filter: blur(6px); padding: 24px;
}
.modal-card { max-width: 440px; padding: 36px; text-align: center; }
.modal-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.modal-card .btn { margin-top: 22px; }

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

@media (max-width: 860px) {
  .nav .links { display: none; }
  .result-grid { grid-template-columns: 1fr; }
  .cards3, .cards2 { grid-template-columns: 1fr; }
  .wide-inner { flex-direction: column; }
  .hero { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.claim-box { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 12px; background: rgba(52, 211, 153, 0.06); }
.claim-box .pill { display: inline-block; }
.claim-box .btn-small { margin-top: 6px; }

/* verify + wrap widgets */
.verify-widget { margin-top: 26px; }
.verify-widget h3 { margin-bottom: 6px; }
.form-row { display: flex; gap: 10px; margin: 14px 0 10px; flex-wrap: wrap; }
.form-row .input { flex: 1; min-width: 180px; }
.input {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border);
  border-radius: 12px; color: var(--ink); font-family: var(--font-b); font-size: 0.95rem;
  padding: 10px 14px; outline: none; width: 100%;
}
.input::placeholder { color: rgba(147, 168, 158, 0.45); }
.input:focus { border-color: var(--emerald); }
textarea.input { resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; }
.action-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.form-grid { display: grid; gap: 14px; margin: 18px 0 6px; }
.form-grid label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.row-flex { display: flex; gap: 10px; }
.row-flex .input { flex: 1; }
.steps { margin: 0 0 6px 20px; display: grid; gap: 8px; }
.steps li::marker { color: var(--emerald); font-weight: 700; }
