:root {
  --mint: #02f9a3;
  --mint-2: #00d98c;
  --mint-soft: #d9fff0;
  --ink: #0b0b0b;
  --paper: #ffffff;
  --muted: #5b6b64;
  --line: #0b0b0b;
  --red: #e5484d;
  --green: #0a9f63;
  --radius: 16px;
  --shadow: 5px 5px 0 var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
#callers, #how, #payouts { scroll-margin-top: 84px; }
body { background: var(--mint); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: "Archivo Black", Inter, sans-serif; font-weight: 400; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
h3 { font-size: 19px; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.up { color: var(--green); }
.down { color: var(--red); }
.r { text-align: right; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink); font: 700 14px Inter, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.08s, box-shadow 0.08s; }
.btn:active { transform: translate(2px, 2px); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn-dark { background: var(--ink); color: var(--mint); }
.btn-dark:hover { box-shadow: 3px 3px 0 #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(2, 249, 163, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.top-in { position: relative; max-width: 1180px; height: 64px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Archivo Black", sans-serif; font-size: 20px; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.nav a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: var(--mint-soft); }
.nav a.on { background: var(--ink); color: var(--mint); }
.nav-cd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-cd[hidden] { display: none; }
.nav-cd i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.4s infinite; }
.nav-cd b { font-family: "JetBrains Mono", monospace; min-width: 3.6ch; }
.ca { display: flex; }
.ca-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 3px 3px 12px; color: var(--ink); font: inherit; }
button.ca-pill { cursor: copy; transition: box-shadow 0.08s; }
button.ca-pill:hover { box-shadow: 3px 3px 0 var(--ink); }
.ca-l { font-weight: 800; letter-spacing: 0.06em; font-size: 11px; }
.ca-v { font: 700 12.5px "JetBrains Mono", ui-monospace, monospace; }
.ca-v.soon { font-family: Inter, sans-serif; font-style: italic; font-weight: 600; padding-right: 8px; }
.ca-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-size: 12px; }
.ca-buy { font-weight: 800; }

.view { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; display: grid; gap: 22px; }

/* cards */
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.link { font-weight: 800; text-decoration: none; }
.link:hover { text-decoration: underline; }
.empty { color: var(--muted); margin: 6px 0; }
.fine { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.kicker { display: inline-block; background: var(--ink); color: var(--mint); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.hero h1 em { font-style: normal; background: var(--ink); color: var(--mint); padding: 0 10px; border-radius: 12px; }
.hero p { font-size: 18px; max-width: 540px; margin: 18px 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art img { width: 100%; display: block; border-radius: 24px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats.inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.stats.inner .stat { box-shadow: none; background: var(--mint-soft); }
.stat-l { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-v { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 24px; overflow-wrap: anywhere; }
.stat-v small { font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-s { font-size: 12.5px; color: var(--muted); }
.bar { display: block; height: 8px; background: var(--mint-soft); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--ink); }

/* ways */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.way { position: relative; padding-top: 26px; }
.way-n { position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-family: "Archivo Black", sans-serif; }
.way p { margin: 10px 0 12px; }

/* tables */
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px; border-bottom: 2px solid var(--ink); }
.board th.r { text-align: right; }
.board td { padding: 10px 8px; border-bottom: 1px solid #e3ece8; }
.board tr:last-child td { border-bottom: 0; }
.board a { text-decoration: none; font-weight: 700; }
.board a:hover { text-decoration: underline; }
.rank { font-family: "Archivo Black", sans-serif; width: 32px; }
.tier { display: inline-block; background: var(--mint-soft); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.caller { display: inline-flex; align-items: center; gap: 8px; }
.caller img, .caller .ph { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--ink); background: var(--mint-soft); flex: none; }

/* calculator */
.calc label { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-weight: 700; margin: 12px 0; }
.calc input { grid-column: 1 / -1; accent-color: var(--ink); width: 100%; }
.calc output { font-family: "JetBrains Mono", monospace; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.calc-out div { background: var(--mint-soft); border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px; display: grid; }
.calc-out span { font-size: 12px; color: var(--muted); font-weight: 700; }
.calc-out b { font-size: 16px; }
.calc-out .big { background: var(--ink); color: var(--mint); }
.calc-out .big span { color: var(--mint-2); }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e3ece8; }
.feed li:last-child { border-bottom: 0; }
.feed li > div { flex: 1; min-width: 0; }
.feed small { display: block; color: var(--muted); }
.tx { font-weight: 800; text-decoration: none; font-size: 13px; }
.pill-ico { width: 30px; height: 16px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--mint) 50%, #fff 50%); flex: none; transform: rotate(-30deg); }
.pill-ico.pot { background: linear-gradient(90deg, #ffd23f 50%, #fff 50%); }
.pill-ico.caller { background: linear-gradient(90deg, #7c5cff 50%, #fff 50%); }
.st.paid { color: var(--green); font-weight: 700; }
.st.cancelled { color: var(--red); }
.live-dot { font-size: 12px; font-weight: 800; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* pages */
.page-h h1 { font-size: clamp(32px, 5vw, 52px); }
.page-h p { margin: 8px 0 0; font-size: 17px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { text-decoration: none; font-weight: 800; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.tabs a.on { background: var(--ink); color: var(--mint); }
.invite { max-width: 640px; margin: 20px auto; text-align: center; display: grid; justify-items: center; gap: 6px; padding: 32px; }
.invite h1 { font-size: clamp(28px, 4vw, 40px); }
.invite p { font-size: 16px; max-width: 520px; }
.invite-cat { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; margin-bottom: 6px; }
.steps { text-align: left; font-weight: 700; margin: 6px 0 16px; }
.link-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.link-row code { flex: 1; min-width: 220px; font: 600 15px "JetBrains Mono", monospace; background: var(--mint-soft); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; }
.code-form { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.code-form input { font: 600 14px "JetBrains Mono", monospace; border: 2px solid var(--ink); border-radius: 10px; padding: 7px 10px; width: 170px; }
.prose h3 { margin: 22px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 20px; }
.board tr.dim td { opacity: 0.45; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--mint); display: grid; place-items: center; transition: opacity 0.45s ease, visibility 0.45s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-in { display: grid; justify-items: center; gap: 16px; font-weight: 800; letter-spacing: 0.04em; }
.loader-in img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: var(--shadow); object-fit: cover; animation: hop 0.9s cubic-bezier(0.3, 0, 0.3, 1) infinite; }
.loader-bar { width: 180px; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.loader-bar i { display: block; width: 40%; height: 100%; background: var(--ink); border-radius: 999px; animation: slide 1.1s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-18px) rotate(-6deg); } 60% { transform: translateY(-18px) rotate(6deg); } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* entrance: only on the first render, refreshes stay still */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rowin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.hero-art img { animation: float 5s ease-in-out infinite; }
.intro .hero h1, .intro .hero p, .intro .hero-cta { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.intro .hero p { animation-delay: 0.12s; }
.intro .hero-cta { animation-delay: 0.22s; }
.intro .hero h1 em { background: linear-gradient(var(--ink), var(--ink)) no-repeat left / 0% 100%; animation: sweep 0.5s 0.55s ease-out forwards; }
.intro .hero-art { animation: pop 0.7s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1.2) backwards; }
.intro .stat { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.intro .stat:nth-child(1) { animation-delay: 0.3s; }
.intro .stat:nth-child(2) { animation-delay: 0.38s; }
.intro .stat:nth-child(3) { animation-delay: 0.46s; }
.intro .stat:nth-child(4) { animation-delay: 0.54s; }
.intro .reveal { opacity: 0; }
.intro .reveal.in { opacity: 1; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.rows-in tbody tr, .feed.rows-in li { animation: rowin 0.35s ease-out backwards; }
.rows-in tbody tr:nth-child(2), .feed.rows-in li:nth-child(2) { animation-delay: 0.03s; }
.rows-in tbody tr:nth-child(3), .feed.rows-in li:nth-child(3) { animation-delay: 0.06s; }
.rows-in tbody tr:nth-child(4), .feed.rows-in li:nth-child(4) { animation-delay: 0.09s; }
.rows-in tbody tr:nth-child(5), .feed.rows-in li:nth-child(5) { animation-delay: 0.12s; }
.rows-in tbody tr:nth-child(6) { animation-delay: 0.15s; }
.rows-in tbody tr:nth-child(7) { animation-delay: 0.18s; }
.rows-in tbody tr:nth-child(8) { animation-delay: 0.21s; }
.rows-in tbody tr:nth-child(9) { animation-delay: 0.24s; }
.rows-in tbody tr:nth-child(10) { animation-delay: 0.27s; }
.board tbody tr { transition: background 0.15s; }
.board tbody tr:hover { background: var(--mint-soft); }
.stat, .card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.stat:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.stat-v.bump { animation: bump 0.4s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro .reveal { opacity: 1; }
}
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pager div { display: flex; align-items: center; gap: 4px; }
.pg-info { font-size: 13px; color: var(--muted); font-weight: 600; }
.pg-n { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 13px Inter, sans-serif; cursor: pointer; }
.pg-n:hover:not(:disabled) { background: var(--mint-soft); }
.pg-n.on { background: var(--ink); color: var(--mint); }
.pg-n:disabled { opacity: 0.35; cursor: default; }
.pg-gap { padding: 0 2px; color: var(--muted); }
.add { margin-top: 16px; padding-top: 14px; border-top: 2px dashed #cfe9de; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.add div { display: flex; gap: 8px; }
.add input { flex: 1; min-width: 0; font: 14px Inter, sans-serif; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; }
.prose li { margin: 4px 0; }

/* toast & footer */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--mint); font-weight: 700; padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }
.foot { border-top: 2px solid var(--ink); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 960px) {
  .hero, .grid2, .ways { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-cd { display: none; }
}
@media (max-width: 820px) {
  .nav { display: none; }
}
@media (max-width: 600px) {
  .top-in { height: 56px; gap: 8px; padding: 0 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .ca-l { display: none; }
  .ca-pill { padding-left: 10px; gap: 6px; }
  .top .btn { padding: 8px 14px; }
  .view { padding: 20px 14px 50px; }
  .stats, .stats.inner, .calc-out { grid-template-columns: 1fr 1fr; }
  .board { font-size: 13px; }
  .hide-sm { display: none; }
  .card { padding: 16px 12px; }
  .board th { letter-spacing: 0.02em; font-size: 10.5px; }
  .caller { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
  .caller img, .caller .ph { display: inline-block; vertical-align: middle; margin-right: 6px; width: 22px; height: 22px; }
  .rank { width: 22px; }
  .board th, .board td { padding: 8px 5px; }
  .hero p { font-size: 16px; }
}
