/* coinem - dark glass language (design law v2, supersedes UGLYCASH).
   Near-black grey canvas, translucent glass panels with backdrop blur,
   hairline light borders, Inter only, sentence case, calm hovers.
   Lime survives only as small accents: dots, progress fill, primary tint. */

:root {
  --canvas: #101013;
  --panel: #17171b;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-strong-border: rgba(255, 255, 255, 0.18);
  --divider: rgba(255, 255, 255, 0.07);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #63636b;
  --lime: #adff02;
  --lime-text: #d9ff70;
  --lime-glass: rgba(173, 255, 2, 0.14);
  --lime-glass-border: rgba(173, 255, 2, 0.45);
  --pink: #fa00ff;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
    var(--canvas);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.45;
}
a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid rgba(173, 255, 2, 0.45); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 118px 24px 64px; }

/* ---------- floating glass pill nav ---------- */
header.site {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
}
.logo {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; display: block; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav.main a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 6px 12px;
  border: 1px solid transparent; border-radius: 16px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
nav.main a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
nav.main a.active {
  color: var(--text); font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
}
nav.main a.active::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  margin-right: 7px; vertical-align: 2px;
}
.nav-cta {
  background: var(--glass); color: var(--text); text-decoration: none;
  border: 1px solid var(--glass-border); border-radius: 16px;
  font-size: 14px; font-weight: 500;
  padding: 6px 14px; white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-cta:hover { background: var(--glass-strong); border-color: var(--glass-strong-border); text-decoration: none; }

/* ---------- type ---------- */
h1 {
  font-size: 40px; font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em;
  margin: 8px 0 16px;
}
h1.hero {
  font-size: 44px;
  margin: 16px 0 20px; max-width: 22ch;
}
h2 {
  font-size: 26px; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.03em;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px; font-weight: 700;
  line-height: 1.3; letter-spacing: -0.02em;
  margin: 0 0 10px;
}
p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.4; }
.big-number {
  font-size: 40px; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.03em;
}
.post-text { font-size: 18px; line-height: 1.45; word-break: break-word; }
code.mono { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; color: var(--muted); }

section { margin: 0 0 48px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  h1.hero { font-size: 36px; }
  h2 { font-size: 22px; }
  .wrap { padding-top: 150px; }
}

/* ---------- glass cards & panels ---------- */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}
.card.alt { background: var(--glass); }
.card.hero-card { padding: 28px; }

.panel-dark {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 8px 24px;
}
.panel-dark .muted { color: var(--muted); }
.panel-dark a { color: var(--text); }

/* ---------- glass buttons ---------- */
.btn {
  display: inline-block;
  background: var(--lime-glass); color: var(--text);
  border: 1px solid var(--lime-glass-border); border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: 11px 18px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background 160ms ease, border-color 160ms ease;
}
.btn:hover { background: rgba(173, 255, 2, 0.20); border-color: rgba(173, 255, 2, 0.60); text-decoration: none; }
.btn.secondary {
  background: var(--glass-strong); color: var(--text);
  border-color: var(--glass-strong-border);
}
.btn.secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.26); }
.btn.purple {
  background: var(--glass-strong); color: var(--text);
  border-color: var(--glass-strong-border);
}
.btn.purple:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.26); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
table.list .btn { padding: 7px 14px; font-size: 13px; }

/* ---------- badges, banners, status ---------- */
.badge {
  display: inline-block; padding: 3px 10px;
  border: 1px solid var(--glass-border); border-radius: 16px;
  background: var(--glass); color: var(--muted);
  font-size: 12px; font-weight: 700;
  vertical-align: middle;
}
.badge.demo { color: var(--faint); }
.badge.ok {
  background: var(--lime-glass); border-color: var(--lime-glass-border);
  color: var(--lime-text);
}
.badge.warn {
  background: rgba(250, 0, 255, 0.10); border-color: rgba(250, 0, 255, 0.35);
  color: #ff9df7;
}

.demo-banner {
  display: none;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--muted);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px; padding: 14px 18px; margin-bottom: 24px;
  font-size: 14px; font-weight: 500;
}
.demo-banner.show { display: block; }

.status {
  display: none;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px; padding: 14px 18px; margin-top: 16px;
  font-size: 14px; font-weight: 500; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.status.show { display: block; }
.status.good { border-color: rgba(173, 255, 2, 0.40); }
.status.good::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); margin-right: 9px; vertical-align: 1px;
}
.status.bad { border-color: rgba(250, 0, 255, 0.35); }
.status.bad::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink); margin-right: 9px; vertical-align: 1px;
}
.status.demo { color: var(--muted); }
.status a { font-weight: 700; }

.risk {
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--muted);
  border-radius: 16px; padding: 14px 18px; font-size: 14px; font-weight: 500;
}

/* ---------- quiet chips (were tilted stickers) ---------- */
.sticker {
  display: inline-flex; align-items: center;
  border: 1px solid var(--glass-border); border-radius: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 7px 14px;
  font-weight: 500;
  font-size: 14px; letter-spacing: -0.02em; line-height: 1.2;
  background: var(--glass); color: var(--text);
}
.sticker-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.sticker-note {
  display: inline-block;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  background: var(--lime-glass); color: var(--lime-text);
  border: 1px solid var(--lime-glass-border); border-radius: 16px;
  padding: 6px 12px;
}

/* ---------- split ---------- */
.split-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--divider);
  font-size: 15px; font-weight: 500;
}
.split-row:last-child { border-bottom: 0; }
.split-row span { color: var(--muted); }
.split-row strong {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; white-space: nowrap;
}

/* coin page: the split as four quiet glass chips */
.split-display {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.split-display .split-row {
  flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 20px 24px;
  font-weight: 500;
}
.split-display .split-row:last-child { border-bottom: 1px solid var(--glass-border); }
.split-display .split-row span { font-size: 14px; }
.split-display .split-row strong { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.split-display .split-row:nth-child(4) strong { color: var(--lime); }
@media (max-width: 760px) {
  .split-display { grid-template-columns: 1fr; }
}

/* ---------- progress ---------- */
.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-border);
  border-radius: 8px; overflow: hidden; margin: 12px 0;
}
.progress > div { height: 100%; background: var(--lime); width: 0%; transition: width .4s ease; }

/* ---------- lists: rows in one glass panel, hairline dividers ---------- */
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th {
  padding: 12px 10px; border-bottom: 1px solid var(--divider);
  text-align: left; vertical-align: top; font-size: 15px;
}
table.list th {
  color: var(--faint);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding-top: 16px;
}
table.list tr:last-child td { border-bottom: 0; }
.rank {
  font-weight: 700; font-size: 15px;
  color: var(--faint); width: 34px;
}

/* ---------- forms ---------- */
label { display: block; font-weight: 700; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
input[type="text"], input[type="url"], textarea {
  width: 100%; padding: 12px 14px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  font-family: var(--body); font-size: 15px; letter-spacing: -0.02em;
  transition: border-color 160ms ease, background 160ms ease;
}
input[type="text"]:focus, input[type="url"]:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}
input::placeholder { color: var(--faint); }
input[readonly] { color: var(--muted); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--divider);
  padding-top: 18px; margin-top: 8px;
  color: var(--faint); font-size: 14px;
}
footer.site p { font-size: 14px; }
