:root {
  --bg: #090909;
  --panel: #11110f;
  --panel-2: #171713;
  --line: #2b2a24;
  --text: #f2efe5;
  --muted: #9d998c;
  --gold: #c7a860;
  --gold-2: #e2c984;
  --good: #a9c79e;
  --bad: #d58f82;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% -10%, rgba(199,168,96,.12), transparent 34rem),
    linear-gradient(180deg, #0b0b0a 0%, #090909 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.site-header, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border: 1px solid #544a32; display: grid; place-items: center; color: var(--gold-2); font-family: serif; font-size: 14px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 13px; letter-spacing: .16em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .19em; }
.network { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.network span { width: 7px; height: 7px; border-radius: 999px; background: var(--good); box-shadow: 0 0 16px rgba(169,199,158,.4); }

.hero { padding: 94px 0 72px; max-width: 900px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 0; max-width: 900px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 7.2vw, 84px); line-height: .98; font-weight: 400; letter-spacing: -.045em; }
.lead { max-width: 720px; margin: 30px 0 38px; color: #b7b2a5; font-size: 17px; line-height: 1.7; }

.scan-form { max-width: 820px; }
.scan-form label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.input-row input { width: 100%; min-width: 0; height: 58px; padding: 0 18px; color: var(--text); background: #10100f; border: 1px solid #36342d; border-radius: 12px; outline: none; transition: border-color .15s ease; }
.input-row input:focus { border-color: var(--gold); }
.input-row button, .primary-button, .secondary-button, .provider-button { border-radius: 12px; border: 0; padding: 0 22px; font-weight: 700; }
.input-row button, .primary-button { color: #16130b; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.status { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status[data-tone="success"] { color: var(--good); }
.status[data-tone="error"] { color: var(--bad); }

.result { margin-bottom: 76px; padding: 28px; background: linear-gradient(180deg, rgba(21,21,18,.96), rgba(14,14,13,.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.result-heading h2 { margin: 0; font-size: 19px; font-weight: 600; }
.safe-badge { padding: 8px 10px; border: 1px solid #3f493b; color: var(--good); border-radius: 999px; font-size: 9px; letter-spacing: .16em; }
.primary-stat { padding: 36px 0 32px; }
.primary-stat span, .stat-grid span, .future-grid span { color: var(--muted); font-size: 12px; }
.primary-stat strong { display: block; margin-top: 8px; color: var(--gold-2); font-family: Georgia, serif; font-size: clamp(42px, 7vw, 72px); font-weight: 400; letter-spacing: -.04em; }
.primary-stat small, .future-grid small { display: block; margin-top: 8px; color: #777469; font-size: 11px; line-height: 1.5; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid article { min-height: 116px; padding: 22px 18px; border-right: 1px solid var(--line); }
.stat-grid article:first-child { padding-left: 0; }
.stat-grid article:last-child { border-right: 0; }
.stat-grid strong { display: block; margin-top: 12px; font-size: 24px; }
.stat-grid .small-value { font-size: 14px; line-height: 1.45; }
.future-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.future-grid article { padding: 22px; background: var(--panel-2); }
.future-grid strong { display: block; margin-top: 8px; font-size: 22px; }

.claim-panel { display: grid; grid-template-columns: 1.3fr .7fr; gap: 42px; margin-top: 24px; padding: 28px; background: #0d0d0c; border: 1px solid #343128; border-radius: 14px; }
.claim-copy h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.claim-copy > p:not(.eyebrow):not(.wallet-lock) { color: #aaa698; line-height: 1.65; font-size: 13px; }
.claim-copy code { color: var(--gold-2); }
.wallet-lock { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.wallet-lock span { color: #d2cdc0; }
.claim-actions { align-self: center; }
.claim-actions button { width: 100%; height: 52px; }
.secondary-button { margin-bottom: 9px; color: var(--text); background: #1a1a17; border: 1px solid #3b3931; }

.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 54px 0 86px; border-top: 1px solid var(--line); }
.explain span { color: var(--gold); font-size: 11px; letter-spacing: .14em; }
.explain h3 { margin: 14px 0 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.explain p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

footer { display: flex; justify-content: space-between; gap: 28px; padding: 24px 0 42px; border-top: 1px solid var(--line); color: #747166; font-size: 11px; }
footer p:last-child { max-width: 560px; text-align: right; }

.provider-modal { width: min(430px, calc(100% - 32px)); padding: 24px; color: var(--text); background: #11110f; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.provider-modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; }
.modal-head button { border: 0; background: none; color: var(--muted); font-size: 28px; }
.provider-list { display: grid; gap: 9px; margin-top: 22px; }
.provider-button { height: 52px; color: var(--text); background: #1a1a17; border: 1px solid #38362f; text-align: left; }
.provider-button:hover { border-color: var(--gold); }
.modal-empty { color: var(--muted); line-height: 1.6; font-size: 13px; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 24px, 1120px); }
  .site-header { height: 72px; }
  .network { display: none; }
  .hero { padding: 64px 0 50px; }
  h1 { font-size: clamp(43px, 13vw, 64px); }
  .lead { font-size: 15px; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { height: 52px; }
  .result { padding: 20px; }
  .result-heading { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 14px; }
  .stat-grid article:nth-child(2n) { border-right: 0; }
  .stat-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .future-grid, .claim-panel, .explain { grid-template-columns: 1fr; }
  .claim-panel { gap: 18px; padding: 20px; }
  .explain { gap: 36px; }
  footer { flex-direction: column; }
  footer p:last-child { text-align: left; }
}
