:root {
  --bg: #f4f8f3;
  --card: #ffffff;
  --ink: #0b1a10;
  --muted: #5b6b60;
  --line: rgba(11, 26, 16, .08);
  --green: #12c65a;
  --green-2: #0aa84a;
  --deep: #04351a;
  --mint: #e1fdee;
  --radius: 22px;
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--f-display); margin: 0; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; font-weight: 800; }

/* NAV */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1320px; width: 100%; margin: 0 auto; padding: 16px 24px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.25rem var(--f-display); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav-links { display: flex; gap: 28px; font-weight: 500; color: var(--muted); font-size: .92rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); transition: transform .2s;
}
.icon-btn:hover { transform: translateY(-1px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .93rem var(--f-body); transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #18301f; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(18, 198, 90, .28); }
.btn-green:hover { background: var(--green-2); }
.btn.full { width: 100%; }

/* GRID: whole site fits the first screen on desktop */
.grid {
  flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 16px 24px 24px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr);
  height: calc(100vh - 60px); min-height: 640px; max-height: 1000px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden; min-height: 0;
}
.hero { grid-column: span 7; }
.cup-card { grid-column: span 5; }
.how, .apply, .wall { grid-column: span 4; }

/* HERO */
.hero { background: var(--mint); padding: 32px 34px; display: flex; flex-direction: column; }
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--deep);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18,198,90,.5); animation: ping 2s infinite; }
.hero h1 { font-size: clamp(2rem, 3.3vw, 3.05rem); line-height: 1.02; font-weight: 800; margin: 14px 0 10px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { margin: 0; color: #2f4235; max-width: 470px; font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ca {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: 500 .82rem var(--f-mono); color: var(--ink); max-width: 100%; transition: transform .2s;
}
.ca:hover { transform: translateY(-1px); }
.ca-k { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 10px; font: 600 .72rem var(--f-body); }
.ca code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.crew {
  flex: 1; min-height: 0; width: calc(100% + 68px); max-width: none; margin: 14px -34px -32px;
  object-fit: cover; object-position: center 22%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
  pointer-events: none;
}

/* CUP CARD: background continues the pfp's own gradient so Cupsey blends in */
.cup-card {
  padding: 0; border: 0;
  background: linear-gradient(to bottom, #025a1d 0%, #027120 20%, #008033 40%, #019f42 60%, #02bd56 80%, #00d45c 100%);
}
.cupsey {
  position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  animation: bob 5s ease-in-out infinite;
}
.cup-wrap { position: absolute; right: 7%; top: 8%; height: 62%; aspect-ratio: 160 / 200; }
.cup { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 22px rgba(0, 40, 14, .35)); }
.liquid { transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.wave { animation: wave 3.2s linear infinite; }
.w2 { animation-duration: 5s; animation-direction: reverse; }
.bubbles circle { fill: rgba(255, 255, 255, .8); animation: rise 3.6s ease-in infinite; }
.bubbles circle:nth-child(2) { animation-delay: .8s; animation-duration: 4.2s; }
.bubbles circle:nth-child(3) { animation-delay: 1.6s; }
.bubbles circle:nth-child(4) { animation-delay: 2.3s; animation-duration: 4.6s; }
.bubbles circle:nth-child(5) { animation-delay: 3s; }

.cup-stats {
  position: absolute; left: 14px; right: 14px; bottom: 30px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-radius: 16px; padding: 12px 6px;
}
.cup-stats div { text-align: center; border-left: 1px solid var(--line); }
.cup-stats div:first-child { border: 0; }
.cup-stats span { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
.cup-stats b { font: 800 1.15rem var(--f-display); }
.cup-stats em { font-style: normal; }
.meter { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }

/* HOW */
.how ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.how li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #f7faf6; border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.how li:hover { transform: translateY(-2px); border-color: rgba(18, 198, 90, .35); }
.how li b { font: 500 .74rem var(--f-mono); color: var(--green); }
.how strong { display: block; font: 800 1rem var(--f-display); }
.how span { color: var(--muted); font-size: .8rem; line-height: 1.35; }

/* APPLY */
.apply form { display: grid; gap: 10px; margin-top: 14px; }
.step-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--mint); color: var(--deep); font-weight: 600; font-size: .86rem; transition: background .2s;
}
.step-link:hover { background: #ccf7df; }
.step-link span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .75rem; }
.step-link svg { margin-left: auto; }
.apply label { display: grid; gap: 4px; }
.apply label span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.apply label i { font-style: normal; font-weight: 400; }
.apply input {
  height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #f7faf6; font: 500 .9rem var(--f-body); color: var(--ink); outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.apply input:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(18, 198, 90, .14); }
.apply input.bad { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.apply .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* WALL */
.wall { display: flex; flex-direction: column; }
.wall-head { display: flex; align-items: center; justify-content: space-between; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--green-2); }
.wall-list { position: relative; flex: 1; margin-top: 12px; overflow: hidden; min-height: 180px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.wall-track { display: grid; gap: 8px; }
.wall-track.scroll { animation: scrollUp var(--dur, 30s) linear infinite; }
.wall-list:hover .wall-track { animation-play-state: paused; }
.pour {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: #f7faf6; border: 1px solid var(--line);
}
.pour img { width: 30px; height: 30px; border-radius: 50%; }
.pour code { font: 500 .82rem var(--f-mono); }
.pour small { display: block; color: var(--muted); font-size: .74rem; }
.pour b { margin-left: auto; font: 800 .95rem var(--f-display); color: var(--green-2); }
.pour.skel { color: transparent; }
.pour.skel i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #e9efe8 25%, #f6faf5 50%, #e9efe8 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.pour.skel .av { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.empty-note { position: absolute; inset: auto 0 18px; text-align: center; font-size: .84rem; color: var(--muted); font-weight: 500; }

/* TOAST */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: .9rem;
  transition: opacity .25s, transform .25s; pointer-events: none; z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* MOTION */
.reveal { animation: up .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--d) * 90ms + 80ms); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18, 198, 90, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(18, 198, 90, 0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes scrollUp { to { transform: translateY(-50%); } }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .grid { height: auto; max-height: none; grid-template-rows: none; }
  .hero, .cup-card { grid-column: span 12; }
  .hero { min-height: 520px; }
  .cup-card { height: 440px; }
  .how, .apply, .wall { grid-column: span 6; }
  .wall { grid-column: span 12; }
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  .nav { padding: 12px 16px 0; }
  .nav-cta .btn { height: 40px; padding: 0 14px; font-size: .85rem; }
  .grid { padding: 12px 16px 20px; gap: 12px; }
  .how, .apply, .wall { grid-column: span 12; }
  .hero { padding: 24px 20px; min-height: 0; }
  .crew { flex: none; height: auto; width: calc(100% + 40px); margin: 18px -20px -24px; }
  .ca code { max-width: 150px; }
  .cup-card { height: 380px; }
  .cupsey { left: -16%; }
  .cup-wrap { right: 5%; height: 52%; }
  .apply .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
