/* ============================================================
   UTXO — App / product page styles (device frames + UI)
   ============================================================ */
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans); color: var(--fg-1);
  background:
    radial-gradient(ellipse 60% 42% at 50% -4%, var(--bg-tint-blue), transparent 60%),
    radial-gradient(ellipse 44% 36% at 92% 2%, var(--bg-tint-violet), transparent 60%),
    var(--bg-page);
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.mark { display: block; }

/* page intro */
.page-hero { text-align: center; padding: 64px 0 44px; }
.page-hero .label { margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 680; letter-spacing: -0.04em; line-height: 1; margin: 22px auto 0; max-width: 16ch; text-wrap: balance; }
.page-hero p { color: var(--fg-2); margin: 20px auto 0; max-width: 560px; font-size: 1.1rem; }
.page-hero .head-mark { width: 76px; height: 76px; margin: 0 auto 8px; filter: drop-shadow(0 16px 40px rgba(36,107,255,0.3)); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--easing-motion), transform .7s var(--easing-motion); }
.reveal.in { opacity: 1; transform: none; }

/* stage that holds device frames */
.stage { display: flex; gap: 56px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 30px 0 60px; }
.stage.left { justify-content: flex-start; }
.stage-copy { max-width: 360px; }
.stage-copy h2 { font-size: 1.8rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.stage-copy p { color: var(--fg-2); margin-top: 14px; font-size: 0.98rem; }
.stage-copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.stage-copy li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--fg-2); }
.stage-copy li .ck { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; background: var(--bg-tint-blue);
  border: 1px solid var(--line-accent); display: grid; place-items: center; margin-top: 1px; }
.stage-copy li .ck svg { width: 12px; height: 12px; stroke: var(--brand-blue); }
[data-theme="dark"] .stage-copy li .ck svg { stroke: var(--brand-blue-soft); }

/* ── PHONE FRAME ── */
.phone { width: 340px; height: 720px; border-radius: 52px; padding: 13px; position: relative; flex: 0 0 auto;
  background: linear-gradient(160deg, #20242e, #0a0c12); box-shadow: 0 50px 120px rgba(8,14,40,0.4), 0 12px 30px rgba(0,0,0,0.3), inset 0 0 0 2px rgba(255,255,255,0.06); }
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 116px; height: 30px; background: #05060a; border-radius: 999px; z-index: 6; }
.phone-screen { width: 100%; height: 100%; border-radius: 40px; overflow: hidden; position: relative; background: #0B0E16; display: flex; flex-direction: column; text-align: left; }

/* ── EXTENSION POPUP FRAME ── */
.ext { width: 380px; border-radius: 18px; overflow: hidden; flex: 0 0 auto; background: #0B0E16; text-align: left;
  border: 1px solid var(--line-strong); box-shadow: 0 44px 110px rgba(8,14,40,0.34), 0 10px 28px rgba(0,0,0,0.18); }
.ext-chrome { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--bg-card-sub); border-bottom: 1px solid var(--line); }
.ext-chrome .d { width: 9px; height: 9px; border-radius: 50%; }
.ext-chrome .pin { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--fg-3); font-family: var(--font-mono); }

/* ── BROWSER WINDOW FRAME ── */
.browser { width: 100%; max-width: 1080px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); text-align: left;
  box-shadow: 0 50px 120px rgba(8,14,40,0.3), 0 12px 30px rgba(0,0,0,0.14); background: var(--bg-card); position: relative; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-card-sub); border-bottom: 1px solid var(--line); }
.browser-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .url { margin-left: 14px; flex: 1; max-width: 420px; height: 28px; border-radius: 8px; background: var(--bg-page);
  border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 13px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); }
.browser-bar .ext-icons { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.browser-bar .ext-icons .ei { width: 24px; height: 24px; border-radius: 7px; }

/* ════════ WALLET APP UI ════════ */
.app { --app-bg: #0B0E16; background: #0B0E16; color: #E8EDF6; height: 100%; display: flex; flex-direction: column; font-size: 14px; }
.app .top { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.app .top .wm { width: 30px; height: 30px; }
.app .acct { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.app .acct .av { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg,#37C2FF,#6D28D9); }
.app .net { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05); padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); }
.app .net .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos-soft); }
.app .balance { padding: 18px 22px 6px; }
.app .balance .lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-family: var(--font-mono); }
.app .balance .amt { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.app .balance .chg { font-size: 13px; color: var(--pos-soft); font-weight: 600; margin-top: 2px; }
.app .actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 18px 18px 8px; }
.app .actions button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 4px; border-radius: 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 11.5px; font-weight: 600; transition: background .18s, transform .18s; }
.app .actions button:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.app .actions .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-gradient-vivid); }
.app .actions .ic svg { width: 17px; height: 17px; stroke: #fff; }
.app .guarded { margin: 6px 18px 12px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 12px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.28); font-size: 12px; color: #6EE7B7; }
.app .guarded .gm { width: 20px; height: 20px; }
.app .tokens { flex: 1; overflow: hidden; padding: 4px 12px 8px; }
.app .tk-h { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 8px 8px 6px; font-family: var(--font-mono); }
.app .token { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 14px; transition: background .15s; }
.app .token:hover { background: rgba(255,255,255,0.04); }
.app .token .ti { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; font-family: var(--font-mono); flex: 0 0 36px; }
.app .token .tn { font-weight: 600; font-size: 14px; }
.app .token .tn small { display: block; font-weight: 500; font-size: 11.5px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.app .token .tv { margin-left: auto; text-align: right; }
.app .token .tv b { font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; }
.app .token .tv small { display: block; font-size: 11.5px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.app .tabbar { display: flex; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.07); background: rgba(8,10,16,0.7); }
.app .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: rgba(255,255,255,0.45); font-weight: 600; }
.app .tabbar button.on { color: #fff; }
.app .tabbar button svg { width: 19px; height: 19px; stroke: currentColor; }

/* ════════ GUARD / SAFESIGN UI ════════ */
.gapp { --app-bg: #0B0E16; background: #0B0E16; color: #E8EDF6; font-size: 14px; }
.gapp .ghead { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.gapp .ghead .gm { width: 30px; height: 30px; }
.gapp .ghead strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.gapp .ghead small { display: block; font-size: 11px; color: rgba(255,255,255,0.45); font-family: var(--font-mono); letter-spacing: 0.06em; }
.gapp .risk { margin: 16px 18px 0; border-radius: 16px; padding: 16px; display: flex; gap: 13px; align-items: center; }
.gapp .risk.high { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.34); }
.gapp .risk .ri { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 42px; }
.gapp .risk.high .ri { background: var(--neg); }
.gapp .risk .ri svg { width: 22px; height: 22px; stroke: #fff; }
.gapp .risk .lvl { font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.gapp .risk .sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.gapp .summary { margin: 16px 18px 0; padding: 15px 16px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); }
.gapp .summary .q { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-family: var(--font-mono); }
.gapp .summary .a { font-size: 14.5px; font-weight: 600; margin-top: 7px; line-height: 1.45; }
.gapp .summary .a .danger { color: #FCA5A5; }
.gapp .summary .a .amber { color: var(--utxo-orange-soft); }
.gapp .signals { margin: 14px 18px 0; display: flex; flex-direction: column; gap: 9px; }
.gapp .sig { display: flex; gap: 11px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.gapp .sig .si { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px; display: grid; place-items: center; }
.gapp .sig.bad .si { background: rgba(239,68,68,0.18); } .gapp .sig.warn .si { background: rgba(247,147,26,0.18); } .gapp .sig.ok .si { background: rgba(16,185,129,0.16); }
.gapp .sig .si svg { width: 14px; height: 14px; }
.gapp .sig .st { font-size: 13px; font-weight: 600; }
.gapp .sig .sd { font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 2px; font-family: var(--font-mono); }
.gapp .gactions { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.gapp .gbtn { padding: 14px; border-radius: 13px; font-weight: 650; font-size: 14px; text-align: center; transition: transform .18s, opacity .18s; }
.gapp .gbtn:hover { transform: translateY(-1px); }
.gapp .gbtn.reject { background: #fff; color: #0B0E16; }
.gapp .gbtn.proceed { background: transparent; border: 1px solid rgba(239,68,68,0.4); color: #FCA5A5; }
.gapp .gfoot { text-align: center; font-size: 10.5px; color: rgba(255,255,255,0.4); padding: 0 18px 16px; font-family: var(--font-mono); }

/* dApp backdrop behind guard popup */
.dapp { padding: 40px; min-height: 560px; background: linear-gradient(160deg,#1b1340,#0a0a1e); position: relative; }
.dapp .dapp-card { max-width: 420px; margin: 0 auto; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; padding: 26px; color: #fff; backdrop-filter: blur(8px); }
.dapp .dapp-card h3 { font-size: 1.3rem; font-weight: 700; }
.dapp .swap-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 14px; background: rgba(0,0,0,0.25); margin-top: 14px; }
.dapp .swap-row .big { font-size: 1.5rem; font-weight: 700; }
.dapp .dapp-btn { margin-top: 18px; width: 100%; padding: 15px; border-radius: 14px; background: linear-gradient(135deg,#ff6fb0,#a855f7); color: #fff; font-weight: 700; font-size: 1rem; text-align: center; }
.popover-wrap { position: absolute; top: 22px; right: 28px; }

footer.ftr { border-top: 1px solid var(--line); padding: 50px 0 70px; margin-top: 40px; text-align: center; color: var(--fg-3); font-size: 0.86rem; }
footer.ftr a { color: var(--brand-blue); font-weight: 600; }
[data-theme="dark"] footer.ftr a { color: var(--brand-blue-soft); }

@media (max-width: 800px){ .stage { gap: 32px; } .browser { max-width: 100%; } }

/* ════════ WINDOWS DESKTOP FRAME ════════ */
.winos { width: 100%; max-width: 1080px; border-radius: 12px; overflow: hidden; text-align: left;
  border: 1px solid var(--line-strong); background: #0B0E16;
  box-shadow: 0 60px 140px rgba(8,14,40,0.4), 0 16px 40px rgba(0,0,0,0.22); position: relative; }
.winos-bar { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px;
  background: #0E121C; border-bottom: 1px solid rgba(255,255,255,0.06); }
.winos-bar .wt { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 650; color: #E8EDF6; }
.winos-bar .wt svg.mark, .winos-bar .wt .mk { width: 20px; height: 20px; }
.winos-bar .wctrl { margin-left: auto; display: flex; }
.winos-bar .wctrl button { width: 44px; height: 42px; display: grid; place-items: center; color: rgba(255,255,255,0.6); }
.winos-bar .wctrl button:hover { background: rgba(255,255,255,0.08); }
.winos-bar .wctrl button.close:hover { background: #E53935; color: #fff; }
.winos-bar .wctrl svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.6; fill: none; }
