:root {
  --bg: #070a12; --panel: rgba(17, 24, 39, .72); --panel-solid: #111827; --panel-2: #0c1322; --line: rgba(148, 163, 184, .14);
  --text: #f8fafc; --muted: #94a3b8; --accent: #2dd4bf; --accent-2: #a78bfa; --accent-ink: #042f2e;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* ambient glows */
.glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; z-index: 0; }
.glow-a { width: 520px; height: 520px; background: #14b8a6; top: -220px; right: -140px; }
.glow-b { width: 420px; height: 420px; background: #6d28d9; bottom: -200px; left: -160px; opacity: .25; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(7, 10, 18, .75); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .12em; color: var(--text); font-size: 15px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: 0; }
.small-brand { font-size: 13px; } .small-brand .brand-mark { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
.tabs { display: flex; gap: 2px; flex: 1; justify-content: center; }
.tab { background: none; border: 0; color: var(--muted); padding: 9px 14px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: rgba(255,255,255,.06); }
.tab.link { color: var(--accent); padding: 0; font-weight: 600; }
.tab.link.active { background: none; }
@media (max-width: 720px) { .tabs { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; } .top { flex-wrap: wrap; } }

.banner { position: relative; z-index: 1; background: #3b2f0b; color: #fde68a; padding: 10px 16px; text-align: center; font-size: 14px; }

main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 20px 80px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(45, 212, 191, .08); border: 1px solid rgba(45, 212, 191, .25); border-radius: 999px; padding: 6px 12px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(45,212,191,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.6); } 70% { box-shadow: 0 0 0 8px rgba(45,212,191,0); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); } }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 700; background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 18px; margin: 22px 0 28px; max-width: 54ch; }
.lede b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats div { display: grid; gap: 2px; }
.stats b { font-family: var(--display); font-size: 26px; font-weight: 700; }
.stats span { color: var(--muted); font-size: 13px; }

.hero-visual { display: grid; place-items: center; }
.phone { position: relative; width: 100%; max-width: 380px; aspect-ratio: 9 / 13; border-radius: 34px; background: linear-gradient(160deg, #141c2e, #0a0f1b); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); padding: 22px; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.toast { position: absolute; left: 22px; right: 22px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); border-radius: 16px; padding: 12px 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; transform: translateY(-16px); animation: drop .7s cubic-bezier(.2,.8,.2,1) forwards; }
.toast b { display: block; font-weight: 600; } .toast small { color: var(--muted); font-size: 12px; }
.toast-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(45,212,191,.15); color: var(--accent); font-weight: 700; flex: none; }
.toast-icon.eth { background: rgba(167,139,250,.18); color: var(--accent-2); }
.toast-1 { top: 56px; animation-delay: .6s; }
.toast-2 { top: 128px; animation-delay: 1.4s; }
@keyframes drop { to { opacity: 1; transform: translateY(0); } }
.nft-card { position: absolute; left: 22px; right: 22px; bottom: 22px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: translateY(30px) scale(.96); animation: rise .9s cubic-bezier(.2,.8,.2,1) 2.1s forwards; }
.nft-card svg { display: block; width: 100%; height: auto; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; } .hero-visual { order: -1; } .phone { max-width: 320px; } }

/* sections */
section h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; margin-bottom: 18px; }
.how { padding: 48px 0 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; backdrop-filter: blur(10px); }
.step-n { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #0ea5e9); color: var(--accent-ink); font-family: var(--display); font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.compose { padding: 32px 0 8px; display: grid; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(10px); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 20px; margin: 0; }
input, textarea { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 104px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,212,191,.15); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.space { justify-content: space-between; }
.row input { flex: 1; min-width: 200px; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform .12s, filter .15s, box-shadow .15s; box-shadow: 0 8px 24px rgba(45,212,191,.18); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn.full { width: 100%; margin-top: 18px; padding: 17px; font-size: 18px; }

.tip-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 18px 0 10px; }
.chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 9px 15px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; transition: border-color .15s, color .15s; }
.chip:hover { border-color: rgba(45,212,191,.5); }
.chip.active { border-color: var(--accent); color: var(--accent); background: rgba(45,212,191,.08); }
.tips input { max-width: 130px; flex: none; min-width: 0; }

.status { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.status.ok { color: var(--ok); } .status.err { color: var(--err); } .status.warn { color: var(--warn); }

.dev { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.dev-line { display: flex; gap: 12px; font-size: 14px; align-items: baseline; }
.dev-line .label { width: 140px; color: var(--muted); flex: none; }
.dev-line a, .dev-line span:not(.label) { font-family: var(--mono); font-size: 13px; word-break: break-all; }

.preview-wrap { margin-top: 20px; }
.preview-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.preview { background: radial-gradient(ellipse at top, rgba(45,212,191,.08), transparent 60%), var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; place-items: center; }
.preview svg { width: min(100%, 440px); height: auto; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }

.why { padding: 56px 0 8px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-grid article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(10px); }
.why-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(45,212,191,.12); color: var(--accent); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.why-grid h3 { font-size: 18px; margin-bottom: 8px; }
.why-grid p { color: var(--muted); margin: 0; font-size: 15px; }
.why-grid i { color: var(--text); font-style: normal; font-weight: 600; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

.recent { padding: 48px 0 8px; }
.faq { padding: 48px 0 0; display: grid; gap: 10px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--muted); font-size: 15px; }
summary { color: var(--text); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 18px; }
details[open] summary::after { content: "–"; }
details[open] summary { margin-bottom: 8px; }

.page-head { padding: 44px 0 20px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 60ch; }

/* message cards */
.list { margin-top: 16px; display: grid; gap: 12px; }
.empty { color: var(--muted); text-align: center; padding: 36px 0; }
.msg { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; backdrop-filter: blur(10px); }
.msg .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.msg .meta a { font-family: var(--mono); font-size: 13px; }
.msg .text { margin: 12px 0; white-space: pre-wrap; word-break: break-word; font-size: 16px; line-height: 1.55; }
.compact .msg .text { font-size: 15px; }
.msg .reply { margin-top: 12px; border-left: 3px solid var(--accent); padding: 10px 14px; background: rgba(45,212,191,.06); border-radius: 0 12px 12px 0; white-space: pre-wrap; word-break: break-word; }
.msg .reply .who { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .06em; margin-bottom: 4px; }
.msg .reply-form { margin-top: 12px; display: grid; gap: 8px; }
.badge { display: inline-block; background: rgba(45,212,191,.12); color: var(--accent); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.badge.gray { background: rgba(255,255,255,.06); color: var(--muted); }
.badge.to { font-family: var(--mono); }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 24px 20px 40px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; max-width: 1080px; margin: 0 auto; }
.foot-left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .toast, .nft-card { animation: none; opacity: 1; transform: none; } .dot { animation: none; } }
