/* =========================================================
   Stocking Pool — tema NEO-BRUTALISM
   Border tebal, sudut tegas, bayangan keras (hard shadow),
   palet flat kontras tinggi, tipografi berat.
   ========================================================= */

:root{
  --bg: #ABE924;          /* kertas mentah, netral (bukan cream klise) */
  --ink: #0E0E0E;         /* hitam pekat — dipakai untuk teks & SEMUA border */
  --surface: #FFFFFF;     /* panel/kartu */
  --surface-2: #E3E1D4;   /* input/inset, sedikit lebih gelap dari bg */

  --yellow: #FFE000;      /* aksen utama — listrik, brutal */
  --yellow-dim: #E0C400;
  --green: #16D66B;       /* reward / naik — flat, saturasi tinggi */
  --green-dim: #0FA352;
  --red: #FF3B30;         /* turun / alert */

  --gold: var(--yellow);        /* alias supaya kelas lama tetap konsisten */
  --gold-dim: var(--yellow-dim);
  --border: var(--ink);
  --border-soft: var(--ink);

  --text: var(--ink);
  --text-muted: #3a3a34;
  --text-faint: #6b6a60;

  --bw: 3px;              /* lebar border standar */
  --bw-l: 5px;            /* border tebal untuk elemen besar */
  --shadow: 6px 6px 0 var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);

  --radius-s: 0px;
  --radius-m: 0px;
  --radius-l: 0px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  background: var(--bg);
}

body{
  margin:0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
button{ font-family: inherit; cursor: pointer; }

::selection{ background: var(--yellow); color: var(--ink); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- falling leaves overlay ---------------- */
.leaves-overlay{
  position: fixed;
  inset: 0;
  z-index: -1; /* di atas warna latar (html), di bawah semua komponen normal-flow */
  pointer-events: none;
  overflow: hidden;
}
.leaf{
  position: absolute;
  top: -40px;
  will-change: transform, opacity;
  animation-name: leaf-fall, leaf-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  opacity: 0.9;
}
.leaf svg{
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes leaf-fall{
  0%{ transform: translateY(-10vh) rotate(0deg); }
  100%{ transform: translateY(110vh) rotate(360deg); }
}
@keyframes leaf-sway{
  0%, 100%{ margin-left: 0px; }
  50%{ margin-left: 60px; }
}
@media (prefers-reduced-motion: reduce){
  .leaves-overlay{ display: none; }
}
@media (max-width: 640px){
  .leaves-overlay .leaf{ transform: scale(0.75); }
}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 20px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  transition: transform .1s ease, box-shadow .1s ease;
  white-space: nowrap;
}
.btn:active{
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary{
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover{ background: var(--yellow-dim); }

.btn-ghost{
  background: var(--surface);
  border-color: var(--ink);
  color: var(--text);
}
.btn-ghost:hover{ background: var(--surface-2); }

.btn-lg{ padding: 15px 28px; font-size: 15px; }

/* ---------------- header ---------------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--bw-l) solid var(--ink);
}
.header-inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display:flex;
  align-items:center;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; margin-right:auto; }
.brand-mark{
  width: 26px; height: 26px;
  display: block;
  flex-shrink:0;
}
.brand-name{ font-weight: 800; font-size: 14px; letter-spacing: 0.02em; }

.price-pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 7px 12px;
  border-radius: 0;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
}
.price-sym{ color: var(--ink); }
.price-val::before{ content: "$"; color: var(--ink); }
.price-delta{ font-weight: 700; }
.price-delta.up{ color: var(--green-dim); }
.price-delta.down{ color: var(--red); }

.site-nav{ display:flex; gap: 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.site-nav a:hover{ color: var(--text); }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border: var(--bw) solid var(--ink);
  padding: 6px;
}
.nav-toggle span{ width: 20px; height: 2px; background: var(--text); }
.nav-toggle.active{ background: var(--yellow); }

@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------------- marquee (garis peringatan) ---------------- */
.marquee{
  background: repeating-linear-gradient(
    -45deg,
    var(--ink), var(--ink) 14px,
    var(--yellow) 14px, var(--yellow) 28px
  );
  border-top: var(--bw-l) solid var(--ink);
  border-bottom: var(--bw-l) solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}
.marquee-track{
  display:inline-flex;
  gap: 40px;
  animation: scroll-left 22s linear infinite;
}
.marquee-track span{
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface);
  padding: 3px 10px;
  border: 2px solid var(--ink);
  display:inline-flex;
  gap: 40px;
}
.marquee-track i{ color: var(--ink); font-style: normal; }

/* ---------------- hero ---------------- */
.hero{
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 64px;
  text-align: center;
  overflow: visible;
}
.hero-title{
  position: relative;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.tok-gold{ color: var(--ink); background: var(--yellow); padding: 0 6px; }

/* ---- hero video banner ---- */
.hero-banner-wrap{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 64px;
}
.hero-banner{
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: auto;
  height: 100vh;
  min-height: 480px;
  border: none;
  border-bottom: var(--bw-l) solid var(--ink);
  box-shadow: none;
  background: var(--ink);
}
.hero-video,
.hero-video-fallback{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video{
  z-index: 1;
  opacity: 0;
  transition: opacity .3s ease;
}
.hero-video.is-ready{ opacity: 1; }

.hero-video-fallback{
  z-index: 0;
  background: repeating-linear-gradient(
    135deg,
    var(--green) 0px, var(--green) 40px,
    var(--ink) 40px, var(--ink) 80px
  );
  background-size: 240% 240%;
  animation: fallback-pan 10s linear infinite;
}
@keyframes fallback-pan{
  0%{ background-position: 0% 0%; }
  100%{ background-position: 100% 0%; }
}

.hero-banner-scrim{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(14,14,14,0) 45%, rgba(14,14,14,0.85) 100%);
}

.hero-banner-ticker{
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  background: var(--yellow);
  border-top: var(--bw) solid var(--ink);
}
.hero-banner-ticker-track{
  display: inline-flex;
  gap: 32px;
  animation: scroll-left 18s linear infinite;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.hero-banner-ticker-track span{ display:inline-flex; gap: 32px; }
.hero-banner-ticker-track i{ color: var(--ink); font-style: normal; }

.hero-logo-badge{
  position: absolute;
  left: 50%;
  bottom: -42px;
  transform: translateX(-50%);
  z-index: 5;
  width: 96px;
  height: 96px;
  border-radius: 0;
  background: var(--bg);
  border: var(--bw-l) solid var(--ink);
  box-shadow: var(--shadow-s);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-mark{
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.hero-sub{
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 36px;
  text-align: center;
}
.hero-actions{
  position: relative;
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-cards{
  position: relative;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.token-card{
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  border-radius: 0;
  padding: 18px;
}
.token-card-top{ display:flex; align-items:center; gap:12px; margin-bottom: 16px; }
.token-badge{
  width: 36px; height: 36px;
  border-radius: 0;
  border: 2px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  flex-shrink: 0;
}
.gold-badge{ background: var(--yellow); }
.green-badge{ background: var(--green); }
.token-card-name{ margin:0; font-weight: 800; font-size: 15px; }
.token-card-sub{ margin: 2px 0 0; font-size: 12.5px; color: var(--text-muted); }

.addr-row{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
}
.addr-row:hover{ background: var(--yellow); color: var(--ink); }
#addrText{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.copy-label{ color: var(--ink); font-weight: 700; font-family: var(--font-display); font-size: 12px; flex-shrink: 0; }

.reward-tag{
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
}

/* ---------------- sections ---------------- */
.section{
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 24px;
  border-top: var(--bw-l) solid var(--ink);
}
.section-head{ margin-bottom: 40px; }
.section-eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid var(--ink);
  margin: 0 0 10px;
}
.section h2{
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 640px;
}

/* stats + rewards */
.numbers-video{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--bw-l) solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--ink);
  margin-bottom: 40px;
}
.numbers-video-el,
.numbers-video-fallback{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.numbers-video-el{
  z-index: 1;
  opacity: 0;
  transition: opacity .3s ease;
}
.numbers-video-el.is-ready{ opacity: 1; }
.numbers-video-fallback{
  z-index: 0;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow) 0px, var(--yellow) 40px,
    var(--ink) 40px, var(--ink) 80px
  );
  background-size: 240% 240%;
  animation: fallback-pan 10s linear infinite;
}

.stats-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card{
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  border-radius: 0;
  padding: 24px;
}
.stat-label{ margin:0 0 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.stat-value{
  margin:0;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.rewards-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel{
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  border-radius: 0;
  padding: 24px;
}
.panel h3{ margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.panel-hint{ margin: 0 0 18px; font-size: 13.5px; color: var(--text-muted); }
.panel-title-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.panel-title-row h3{ margin:0; }

.live-dot{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 3px 9px;
  position: relative;
  padding-left: 20px;
}
.live-dot::before{
  content:"";
  position:absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 0;
  background: var(--ink);
  animation: pulse-dot 1.6s steps(2, jump-none) infinite;
}
@keyframes pulse-dot{
  0%,100%{ opacity: 1; }
  50%{ opacity: 0.2; }
}

.reward-form{ display:flex; gap: 10px; }
.reward-form input{
  flex: 1;
  background: var(--surface-2);
  border: var(--bw) solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}
.reward-form input:focus{ background: var(--surface); }
.reward-form input::placeholder{ color: var(--text-faint); }

.reward-result{
  margin-top: 16px;
  background: var(--surface-2);
  border: var(--bw) solid var(--ink);
  border-radius: 0;
  padding: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.reward-result strong{ color: var(--ink); background: var(--yellow); padding: 0 4px; font-family: var(--font-mono); }

.feed-list{ display:flex; flex-direction:column; gap: 10px; max-height: 210px; overflow-y:auto; }
.feed-list li{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 2px solid var(--ink);
  color: var(--text-muted);
}
.feed-list li:last-child{ border-bottom: none; }
.feed-list .feed-amount{ color: var(--ink); background: var(--green); padding: 0 4px; font-family: var(--font-mono); }
.feed-empty{ color: var(--text-faint); }

/* gallery */
.gallery-wrap{ position: relative; display:flex; align-items:center; gap: 12px; }
.gallery-track{
  display:flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar{ display:none; }
.gallery-item{
  flex: 0 0 320px;
  width: 320px;
  height: 320px;
  object-fit: cover;
  scroll-snap-align: start;
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  border-radius: 0;
}

.meme-card{
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-s);
  border-radius: 0;
  overflow: hidden;
}
.meme-thumb{
  height: 320px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 60px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: var(--bw) solid var(--ink);
}
.meme-actions{
  display:flex;
  gap: 8px;
  padding: 10px;
}
.meme-actions button{
  flex:1;
  background: var(--surface-2);
  border: 2px solid var(--ink);
  color: var(--text);
  border-radius: 0;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
}
.meme-actions button:hover{ background: var(--yellow); }

/* markets */
.market-tabs{ display:flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab{
  background: var(--surface);
  border: 2px solid var(--ink);
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
}
.tab.active{ background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.tab:not(.active):hover{ color: var(--text); background: var(--surface-2); }

.table-wrap{ overflow-x: auto; border: var(--bw-l) solid var(--ink); border-radius: 0; }
.market-table{ width: 100%; border-collapse: collapse; min-width: 640px; }
.market-table th{
  text-align:left;
  font-size: 12px;
  font-weight: 700;
  color: var(--surface);
  padding: 14px 18px;
  border-bottom: var(--bw) solid var(--ink);
  background: var(--ink);
}
.market-table td{
  padding: 16px 18px;
  border-bottom: 2px solid var(--ink);
  font-size: 14px;
}
.market-table tbody tr:last-child td{ border-bottom: none; }
.market-table tbody tr:hover{ background: var(--yellow); }

.mkt-pair{ display:flex; align-items:center; gap: 12px; }
.mkt-icons{ display:flex; }
.mkt-icon{
  width: 26px; height: 26px;
  border-radius: 0;
  display:flex; align-items:center; justify-content:center;
  font-size: 10.5px; font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
}
.mkt-icon.second{ margin-left: -8px; background: var(--green); }
.mkt-name{ font-weight: 700; }
.mkt-sub{ font-size: 12px; color: var(--text-muted); }
.mkt-featured{
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

.market-table td.num{ font-family: var(--font-mono); }
.apy{ color: var(--green-dim); font-weight: 700; }
.incentive{ font-size: 12.5px; font-weight: 600; color: var(--ink); }

.row-arrow{ color: var(--ink); font-weight: 700; text-align: right; }

.market-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* footer */
.site-footer{
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  border-top: var(--bw-l) solid var(--ink);
}
.footer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-nav{ display:flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.footer-nav a:hover{ color: var(--text); }
.disclaimer{
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
  margin:0;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--surface-2);
  font-family: var(--font-mono);
}

/* ---------------- responsive ---------------- */
@media (max-width: 860px){
  .header-cta, .price-pill{ display:none; }
  .nav-toggle{ display:flex; }
  .site-nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border-bottom: var(--bw-l) solid var(--ink);
    padding: 16px 24px;
    z-index: 40;
  }
  .site-nav a{
    padding: 10px 0;
    border-bottom: 2px solid var(--ink);
    font-weight: 700;
  }
  .site-nav a:last-child{ border-bottom: none; }
  .site-nav.open{ display: flex; }
  .hero-cards, .rewards-grid, .stats-grid{ grid-template-columns: 1fr; }
  .reward-form{ flex-direction: column; }
  .reward-form button{ width: 100%; }
}
@media (max-width: 480px){
  .meme-card{ flex-basis: 260px; }
  .meme-thumb{ height: 260px; }
}