@font-face { font-family: "Syne"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/syne-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/syne-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --panel: #101010;
  --fg: #f2f2f2;
  --muted: #9b9b9b;
  --faint: #6a6a6a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --font-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* announcement */
.announce { background: var(--fg); color: var(--bg); text-align: center; font: 500 13px/1.4 var(--font-mono); padding: 8px var(--gutter); }
.announce a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-word { font: 800 20px/1 var(--font-display); letter-spacing: -0.02em; }
.brand-dot { margin-inline: 1px; }
.brand-thin { font-weight: 600; color: var(--muted); }

/* contract address chip */
.ca { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 5px 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); font: 500 13px/1 var(--font-mono); }
.ca-label { color: var(--faint); letter-spacing: 0.08em; }
.ca-chain { color: var(--muted); padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.ca-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.ca-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.ca-addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: var(--fg); }
.ca-copy { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; flex-shrink: 0; transition: background 0.15s; }
.ca-copy:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.ca-copy:disabled { color: var(--faint); cursor: not-allowed; }
.ca[data-status="live"] .ca-copy { background: var(--fg); color: var(--bg); }
.ca[data-status="live"] .ca-copy:hover { background: #fff; }

/* hero */
main { flex: 1; overflow-x: clip; }
.hero { position: relative; display: grid; gap: 40px; padding-block: 48px 72px; align-items: center; isolation: isolate; }
.radar { position: absolute; z-index: -1; width: min(760px, 120vw); right: -22%; top: -8%; color: rgba(255, 255, 255, 0.2); opacity: 0.7; pointer-events: none; }
.radar-rings { stroke-width: 1; }
.radar-sweep { transform-origin: 300px 300px; animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 12px rgba(255, 255, 255, 0.7); }
h1 { margin: 0; font: 800 clamp(30px, 7.6vw, 56px)/1.06 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.subline { margin: 18px 0 0; max-width: 46ch; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.actions:empty { display: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--fg); font: 500 14px/1 var(--font-body); text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: #fff; border-color: #fff; }

/* tweet card */
.hero-feed { width: 100%; max-width: 560px; }
.feed-label { margin: 0 0 12px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.tweet { padding: 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--panel); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); }
.tweet-head { display: flex; align-items: center; gap: 12px; }
.tweet-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #000; border: 1px solid var(--line); }
.tweet-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.tweet-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tweet-verified { color: var(--fg); flex-shrink: 0; }
.tweet-handle { color: var(--muted); font: 400 13px/1.3 var(--font-mono); }
.tweet-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: color 0.15s, background 0.15s; }
.tweet-x:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.tweet-text { margin: 16px 0 0; font-size: 17px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.tweet-text a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tweet-text a:hover { text-decoration-color: var(--fg); }
.tweet-media { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.tweet-media img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.tweet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font: 400 12px/1 var(--font-mono); color: var(--muted); }
.tweet-link { display: inline-flex; align-items: center; gap: 5px; color: var(--fg); text-decoration: none; }
.tweet-link:hover { text-decoration: underline; }
.tweet-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tweet-empty .tweet-text { margin: 0; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; padding-block: 16px; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--fg); text-decoration: underline; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 500 13px/1 var(--font-mono); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sr-copy { position: fixed; top: 0; left: -9999px; opacity: 0; }

/* maintenance */
.maintenance { align-items: center; justify-content: center; text-align: center; }
.maint { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px; }
.maint img { border-radius: 16px; }
.maint p { margin: 0; max-width: 36ch; color: var(--muted); font-size: 18px; }

@media (max-width: 440px) {
  .brand-word { display: none; }
  .ca { margin-left: auto; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; padding-block: 88px 112px; }
  .hero-feed { justify-self: end; }
  .radar { right: -12%; top: -14%; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; }
  .toast, .btn, .ca-copy { transition: none; }
}
