/* VIBECAT design system. dials: variance 6 / motion 5 / density 3
   one accent (robinhood green), one radius family (28 / 16 / pill), one light theme.
   signature: the ticket. structure: numbered feather rules. texture: the tape. */

:root {
  --bg: #f6f7f3;
  --surface: #fdfdfb;
  --ink: #121513;
  --ink-2: #3d453f;
  --muted: #6b7570;
  --line: #e3e7df;
  --line-2: #cfd6cb;
  --accent: #00c805;
  --accent-ink: #0a7f0e;
  --accent-deep: #0b1a0d;
  --tint: #e4f7e6;
  --tint-2: #cdf0d1;
  --r-xl: 28px;
  --r-md: 16px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
  --shadow: 0 1px 2px rgba(18,21,19,.04), 0 18px 50px -24px rgba(18,21,19,.28);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; letter-spacing: -.025em; line-height: 1; }
h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 900; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); }

/* ---------- label + dot ---------- */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--tint); }

/* ---------- buttons: one family, built here ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 800 15px/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-ico { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: var(--accent); color: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -12px rgba(0,200,5,.9);
}
.btn-primary:hover { background: #17d31c; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 30px -12px rgba(0,200,5,1); }
.btn-feather { width: 0; height: 18px; fill: currentColor; opacity: 0; transition: width .2s ease, opacity .2s ease, transform .25s ease; transform: translateX(-4px) rotate(-20deg); }
.btn-primary:hover .btn-feather, .btn-primary:focus-visible .btn-feather { width: 18px; opacity: 1; transform: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; fill: var(--accent); align-self: center; }
.brand-name { font-weight: 900; letter-spacing: .06em; font-size: 18px; }
.brand-chain { color: var(--muted); font-size: 13px; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink); }
.icon svg { width: 18px; height: 18px; fill: currentColor; }
.icon:hover { background: var(--tint); }
.nav .btn { height: 40px; padding: 0 18px; }

.ca {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px;
  padding: 0 12px 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface);
  font: 600 13px/1 var(--font); color: var(--ink); cursor: pointer; overflow: hidden;
}
.ca:hover { border-color: var(--ink); }
.ca-label { font-weight: 900; color: var(--accent-ink); }
.ca-val { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 12.5px; }
.ca-ico { width: 15px; height: 15px; fill: var(--muted); }
.ca-copied {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-deep); font-weight: 900;
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.ca.is-copied .ca-copied { transform: translateY(0); }

/* ---------- feather rules: the section system ---------- */
.rule {
  display: flex; align-items: center; gap: 14px; padding-top: clamp(16px, 3vw, 28px);
  color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.rule-n { font-family: var(--mono); font-weight: 600; color: var(--accent-ink); }
.rule-t { color: var(--ink); }
.rule-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--line)); }
.rule-feather { width: 18px; height: 18px; fill: var(--accent); transform: rotate(-20deg); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-top: clamp(36px, 5vw, 72px);
}
.hero .label { margin-bottom: 18px; }
.sub { margin-top: 20px; max-width: 42ch; color: var(--ink-2); font-size: 18.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stats { display: flex; gap: 30px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.stats div { display: grid; gap: 3px; }
.stats dt { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stats dd { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }

/* the ticket: signature element */
.ticket {
  position: relative; aspect-ratio: 4 / 3.4; min-height: 400px;
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--accent) calc(var(--vibe) * 30%), transparent), transparent 62%),
    linear-gradient(180deg, var(--surface), #f0f3ec);
  border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 calc(var(--vibe) * 6px) color-mix(in srgb, var(--accent) 18%, transparent);
  user-select: none; -webkit-user-select: none; touch-action: none;
  transition: box-shadow .35s ease;
}
.ticket canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#feathers { pointer-events: none; z-index: 3; }
.ticket-head {
  position: absolute; top: 18px; left: 22px; right: 22px; z-index: 4; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.ticket-head > div:first-child { display: grid; gap: 2px; }
.ticket-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ticket-val { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.ticket-streak {
  padding: 9px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 800; color: var(--muted); font-family: var(--mono);
}
.ticket-streak.is-live { background: var(--tint); color: var(--accent-ink); border-color: var(--tint-2); }

/* the OG gif sits frameless on the ticket (its own background is flat white).
   frozen and washed out while idle, alive and green-lit while you hold */
.cat {
  position: absolute; left: 4%; bottom: 6%; width: 46%; max-width: 300px; aspect-ratio: 480 / 347; z-index: 2;
  transform: translateY(calc(var(--vibe) * -10px)) scale(calc(1 + var(--vibe) * .05));
  transition: transform .35s ease; pointer-events: none;
}
.cat video {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  filter: grayscale(clamp(0, calc(.9 - var(--vibe) * 1.3), 1)) drop-shadow(0 0 calc(var(--vibe) * 28px) rgba(0,200,5, calc(var(--vibe) * .9)));
  transition: filter .3s ease;
}

/* hold button with a progress ring that fills with the vibe line */
.hold-wrap { position: absolute; right: 20px; bottom: 20px; z-index: 5; display: grid; place-items: center; }
.hold-ring {
  position: absolute; inset: -7px; border-radius: 999px; pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--vibe) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  opacity: calc(.25 + var(--vibe));
}
.hold {
  position: relative; height: 66px; padding: 0 32px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 900 17px/1 var(--font); letter-spacing: .02em;
  cursor: pointer; box-shadow: 0 16px 30px -12px rgba(18,21,19,.5);
  transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}
.hold:hover { transform: translateY(-1px); }
.hold[aria-pressed="true"] { background: var(--accent); color: var(--accent-deep); transform: scale(.97); box-shadow: 0 10px 30px -8px rgba(0,200,5,.8); }

.toast {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(.9); z-index: 6;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 900; font-size: 15px; letter-spacing: .02em; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.2,1.2);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.claim {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 7;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.claim label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.claim-row { display: flex; gap: 8px; }
.claim input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: 700 15px var(--font);
}
.claim input::placeholder { color: #7d867f; }

/* ---------- tape ---------- */
.tape {
  margin: clamp(8px, 2vw, 24px) calc(-1 * var(--gutter)) 0; padding: 12px 0; overflow: hidden;
  background: var(--ink); color: var(--bg); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.tape-track { display: flex; gap: 28px; width: max-content; white-space: nowrap; animation: tape 32s linear infinite; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.tape-track i { font-style: normal; color: var(--accent); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- notes ---------- */
.notes { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.phone { margin: 0; width: 100%; max-width: 280px; }
.phone video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; border: 8px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.phone figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; }
.note-list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.note-list li:first-child { border-top: 0; padding-top: 0; }
.note-list svg { width: 22px; height: 22px; fill: var(--accent); transform: rotate(-20deg); margin-top: 6px; }
.note-list p { font-size: clamp(22px, 2.8vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--ink-2); }
.note-list b { font-weight: 900; color: var(--ink); }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.board-card { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.board-head p { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px; align-items: center; padding: 13px 24px; border-top: 1px solid var(--line); }
.board-list li.me { background: var(--tint); }
.board-list .rk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--bg); font-weight: 900; font-size: 13px; color: var(--muted); }
.board-list li:nth-child(1) .rk { background: var(--accent); color: var(--accent-deep); }
.board-list li:nth-child(2) .rk, .board-list li:nth-child(3) .rk { background: var(--tint); color: var(--accent-ink); }
.board-list .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .held { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.board-list .sc { font-weight: 900; color: var(--accent-ink); }
.board-list .sc::before { content: "+"; }
.board-list .empty { display: block; padding: 26px 24px; color: var(--muted); }
.board-aside { padding-top: 6px; display: grid; gap: 12px; }
.big { font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.board-aside .muted { max-width: 38ch; }

/* ---------- feed ---------- */
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.feed-cell { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 8px; box-shadow: var(--shadow); min-height: 120px; }
.feed-cell blockquote { margin: 0; }
.feed-cell .tiktok-embed { max-width: 100%; min-width: 0; }
.feed-empty { grid-column: 1 / -1; padding: 30px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-md); text-align: center; }

/* ---------- gallery ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(280px, 70vw); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 6px 18px; margin: 0 -6px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.strip figure { margin: 0; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 10px 12px; box-shadow: var(--shadow); }
.strip figure:nth-child(odd) { transform: rotate(-1.4deg); }
.strip figure:nth-child(even) { transform: rotate(1.1deg); }
.strip img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.strip figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- get in ---------- */
.getin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 4px 0 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-mark { width: 28px; height: 28px; border-radius: 999px; background: var(--tint); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.timeline p { margin-top: 3px; }
.ca-card {
  position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 16px; overflow: hidden;
}
.ca-cat { position: absolute; right: -14px; top: -26px; width: 150px; height: auto; opacity: .95; filter: drop-shadow(0 10px 18px rgba(18,21,19,.16)); pointer-events: none; }
.ca-full {
  display: block; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); border: 1px dashed var(--line-2);
  font: 600 15px/1.5 var(--mono); color: var(--ink); word-break: break-all; max-width: calc(100% - 120px);
}
.ca-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.chart-sec { padding-top: 0; }
.chart-wrap { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); min-height: 200px; display: grid; place-items: center; padding: 22px; box-shadow: var(--shadow); }
.chart-wrap iframe { width: 100%; height: 480px; border: 0; border-radius: var(--r-md); }
.chart-tba { text-align: center; max-width: 38ch; }

/* ---------- footer ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 64px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; }
.foot-row p { max-width: 60ch; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; font-weight: 800; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .ticket { order: -1; aspect-ratio: 1 / 1.02; }
  .board, .getin, .notes { grid-template-columns: 1fr; }
  .phone { max-width: 220px; }
  .ca-full { max-width: 100%; }
  .ca-cat { width: 110px; top: -18px; right: -8px; }
}
@media (max-width: 600px) {
  .brand-chain { display: none; }
  .ca-val { max-width: 78px; }
  .nav .btn { padding: 0 14px; }
  .ticket-val { font-size: 34px; }
  .hold { height: 58px; padding: 0 22px; font-size: 16px; }
  .hold-wrap { right: 14px; bottom: 14px; }
  .cat { width: 42%; left: 12px; bottom: 12px; }
  .claim { left: 12px; right: 12px; bottom: 12px; }
  .stats { gap: 18px; }
  .stats dd { font-size: 24px; }
  .hero-actions .btn-lg { height: 50px; padding: 0 20px; font-size: 16px; }
  .ca-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
  .cat, .hold, .toast, .ca-copied, .ticket, .btn, .btn-feather { transition: none; }
  .strip figure { transform: none; }
}
