/* ============================================================
   pon-zi — liquid gold on matte black
   ============================================================ */

:root {
  --bg: #060504;
  --bg-card: rgba(255, 224, 150, 0.03);
  --border: rgba(255, 214, 120, 0.10);
  --border-bright: rgba(255, 214, 120, 0.30);
  --text: #efe9df;
  --text-dim: #97918a;
  --text-faint: #635e57;
  --chrome: linear-gradient(
    180deg,
    #fff6d8 0%,
    #f4d071 28%,
    #9a6a1c 48%,
    #ffe79a 53%,
    #d4a13a 72%,
    #fff1c4 100%
  );
  --radius: 20px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-round: "SF Pro Rounded", "Arial Rounded MT Bold", "Helvetica Neue", Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---- film grain over everything ---- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.5%, 1%); }
  50%  { transform: translate(1%, -1.5%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* ---- soft top glow ---- */
.glow {
  position: fixed;
  top: -40vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 208, 110, 0.07) 0%,
    rgba(255, 208, 110, 0.02) 40%,
    transparent 70%
  );
}

main { position: relative; z-index: 1; }

/* ---- gold chrome text effect ---- */
.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 236, 180, 0.25))
          drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-chrome {
  color: #2a1c02;
  background: linear-gradient(180deg, #fff6d8 0%, #f0c968 45%, #a9781f 50%, #ffe49a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 220, 0.9),
    inset 0 -2px 4px rgba(80, 50, 0, 0.35),
    0 4px 18px rgba(240, 200, 100, 0.16);
}
.btn-chrome:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 220, 0.9),
    inset 0 -2px 4px rgba(80, 50, 0, 0.35),
    0 4px 28px rgba(240, 200, 100, 0.30);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-bright);
  background: rgba(255, 214, 120, 0.04);
}
.btn-ghost:hover {
  border-color: rgba(255, 214, 120, 0.55);
  background: rgba(255, 214, 120, 0.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 9vh, 96px) 24px 32px;
}

.hero-logo {
  width: min(420px, 78vw);
  mix-blend-mode: lighten; /* hide the source image's black square edge */
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at center, #000 45%, transparent 72%);
  mask-image: radial-gradient(ellipse 68% 68% at center, #000 45%, transparent 72%);
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.9));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.hero-tagline {
  margin-top: 8px;
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-tagline .chrome-text {
  font-family: var(--font-round);
  font-weight: 800;
}

.hero-sub {
  margin-top: 18px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.8vw, 16px);
}
.hero-sub strong { color: var(--text); }

/* ---- contract pill ---- */
.contract-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
  max-width: 92vw;
}
.contract-pill:hover {
  border-color: var(--border-bright);
  background: rgba(255, 214, 120, 0.06);
}
.pill-label {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.pill-address {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill-copy { color: var(--text-faint); flex-shrink: 0; }
.contract-pill:hover .pill-copy { color: #fff; }

.copied-toast {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.25s;
}
.copied-toast.show { opacity: 1; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-section {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 6vh, 64px) 24px;
}

.countdown-card {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 214, 120, 0.06) 0%, rgba(255, 214, 120, 0.012) 55%),
    var(--bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 150, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
  justify-content: center;
}

.ring-wrap {
  position: relative;
  width: clamp(220px, 30vw, 280px);
  aspect-ratio: 1;
}

.ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring-track {
  fill: none;
  stroke: rgba(255, 214, 120, 0.08);
  stroke-width: 8;
}
.ring-progress {
  fill: none;
  stroke: url(#chromeStroke);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 552.9; /* 2πr, r=88 */
  stroke-dashoffset: 552.9;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 6px rgba(255, 210, 110, 0.4));
}

.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.ring-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ring-time {
  font-family: var(--font-round);
  font-size: clamp(44px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.ring-pool {
  font-size: 13px;
  color: var(--text-dim);
}
.ring-pool span { color: var(--text); font-weight: 700; }

.countdown-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 214, 120, 0.07);
  font-size: 14px;
}
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-label { color: var(--text-faint); }
.meta-value { color: var(--text); font-weight: 600; text-align: right; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px clamp(40px, 7vh, 80px);
}
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 224, 150, 0.06);
  transition: border-color 0.25s, transform 0.25s;
}
.stat-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.stat-value {
  font-family: var(--font-round);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================================
   SECTIONS SHARED
   ============================================================ */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.section-head h2 {
  font-family: var(--font-round);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ---- live dot ---- */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.live-dot .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2c766;
  box-shadow: 0 0 8px rgba(242, 199, 102, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ---- feed toggle tabs ---- */
.feed-toggle {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
}
.ftab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.ftab:hover { color: #fff; }
.ftab.active {
  color: #2a1c02;
  background: linear-gradient(180deg, #fff6d8 0%, #f0c968 45%, #a9781f 50%, #ffe49a 100%);
}

/* ---- dry-run tag on feed rows ---- */
.tag-dry {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  vertical-align: 1px;
}

/* ============================================================
   PAYOUT FEED
   ============================================================ */
.feed-section { padding: clamp(24px, 5vh, 48px) 0; }

.feed-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
}

.feed-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  font-size: 14px;
  min-width: 560px;
}

.feed-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.feed-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 214, 120, 0.06);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.feed-table tbody tr:last-child td { border-bottom: none; }
.feed-table tbody tr { transition: background 0.2s; }
.feed-table tbody tr:hover { background: rgba(255, 214, 120, 0.04); }

.feed-table tr.new-row td { animation: row-in 0.6s ease; }
@keyframes row-in {
  from { background: rgba(255, 214, 120, 0.14); }
  to   { background: transparent; }
}

.feed-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 32px !important;
}

.feed-amount { font-weight: 700; }
.feed-time   { color: var(--text-dim); }
.feed-tx a {
  color: var(--text-dim);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dotted var(--text-faint);
}
.feed-tx a:hover { color: #fff; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { padding: clamp(40px, 8vh, 88px) 0 0; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

.how-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 224, 150, 0.06);
}

.how-num {
  font-family: var(--font-round);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.how-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ============================================================
   TRANSPARENCY
   ============================================================ */
.transparency-section { padding: clamp(40px, 8vh, 88px) 0; }

.transparency-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 214, 120, 0.05) 0%, rgba(255, 214, 120, 0.01) 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-left: 24px;
  margin-right: 24px;
}
@media (min-width: 1148px) {
  .transparency-card { margin-left: auto; margin-right: auto; }
}

.transparency-card p {
  max-width: 520px;
  color: var(--text-dim);
  font-size: 15px;
}

.transparency-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: clamp(24px, 6vh, 64px);
  border-top: 1px solid var(--border);
}

.footer-banner {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px 30px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-row a { color: var(--text-dim); }
.footer-row a:hover { color: #fff; }
.footer-sep { opacity: 0.4; }
.footer-disclaimer { font-style: italic; }
