/* bluechip. nostalgic print ad design system */

@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/eb%20garamond.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/eb%20garamond%20italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #efe6d1;
  --paper-deep: #e6d9bd;
  --ink: #211b12;
  --ink-soft: #6b5f48;
  --blue: #2f4c77;
  --line: rgba(33, 27, 18, 0.16);
  --line-strong: rgba(33, 27, 18, 0.34);
  --pill: #17130c;
  --pill-text: #f4eddc;
  --good: #3d6b3a;
  --wait: #8a6d2f;
  --serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--serif);
  font-weight: 450;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper vignette + grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, rgba(255, 250, 236, 0.55), rgba(255, 250, 236, 0) 55%),
              radial-gradient(140% 120% at 50% 55%, rgba(0, 0, 0, 0) 55%, rgba(74, 58, 30, 0.16) 100%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
p a, .fine a, td a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s, color 0.2s; }
p a:hover, .fine a:hover, td a:hover { color: var(--blue); border-color: var(--blue); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: rgba(239, 230, 209, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  max-width: 1400px; margin: 0 auto;
}
.wordmark { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; }
.navlinks { display: flex; gap: clamp(16px, 2.6vw, 38px); font-size: 1.02rem; }
.navlinks a { opacity: 0.85; transition: opacity 0.2s; }
.navlinks a:hover { opacity: 1; }

.pill {
  display: inline-block; background: var(--pill); color: var(--pill-text);
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.01em;
  padding: 12px 28px; border-radius: 999px; border: 1px solid var(--pill);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s;
  cursor: pointer;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 19, 12, 0.28); }
.pill.soon { opacity: 0.55; cursor: default; }
.pill.soon:hover { transform: none; box-shadow: none; }
.nav .pill { padding: 10px 22px; font-size: 0.98rem; }

.textlink { font-size: 1.08rem; border-bottom: 1px solid transparent; transition: border-color 0.2s; white-space: nowrap; }
.textlink:hover { border-color: var(--ink); }
.textlink .arr { display: inline-block; transition: transform 0.25s; }
.textlink:hover .arr { transform: translateX(5px); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 96px; }
.hero .grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(24px, 4vw, 64px); width: 100%;
}
.hero h1 {
  font-size: clamp(2.9rem, 5.7vw, 5.6rem);
  line-height: 1.02; font-weight: 560; letter-spacing: -0.018em;
  margin-bottom: clamp(24px, 3vw, 40px);
  white-space: nowrap;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w span { display: inline-block; transform: translateY(112%); transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1); }
.booted .hero h1 .w span { transform: translateY(0); }

.rule { position: relative; height: 1px; background: var(--line-strong); margin: clamp(20px, 3vw, 34px) 0; max-width: 520px; }
.rule::before { content: ''; position: absolute; left: 0; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.hero .sub { font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 400px; margin-bottom: 14px; }
.hero .sub2 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink); margin-bottom: clamp(28px, 3.4vw, 44px); }
.hero .ctas { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }

.heroimg { position: relative; }
.heroimg img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 97%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 97%);
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
section { padding: clamp(72px, 9vw, 140px) 0; }
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px; font-weight: 500;
}
h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 560; letter-spacing: -0.014em; line-height: 1.04; margin-bottom: clamp(20px, 2.6vw, 30px); }
.lede { font-size: clamp(1.18rem, 1.7vw, 1.42rem); max-width: 62ch; }
.lede + .lede { margin-top: 1.1em; }

.sectionhead { max-width: 820px; }

/* crossover columns */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(40px, 5vw, 72px); }
.col h3 { font-size: 1.5rem; font-weight: 600; margin: 14px 0 10px; }
.col .kicker { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.col p { font-size: 1.06rem; color: var(--ink); }
.col { border-top: 1px solid var(--line-strong); padding-top: 18px; }

/* how it works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(40px, 5vw, 72px); }
.step { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.step .num { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; font-variant-numeric: oldstyle-nums; }
.step h3 { font-size: 1.55rem; font-weight: 600; margin: 16px 0 10px; }
.step p { font-size: 1.06rem; }

/* ---------- rewards ledger ---------- */
.ledger { text-align: center; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 26px;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }
.status.live .dot { background: var(--good); box-shadow: 0 0 0 0 rgba(61, 107, 58, 0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 107, 58, 0.45); } 70% { box-shadow: 0 0 0 11px rgba(61, 107, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 107, 58, 0); } }

.bignum {
  font-size: clamp(3.4rem, 9vw, 8rem); font-weight: 560; letter-spacing: -0.02em; line-height: 1;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.bignum .unit { font-size: 0.32em; font-weight: 500; letter-spacing: 0; margin-left: 0.28em; color: var(--ink-soft); }
.bigsub { margin-top: 14px; font-size: 1.12rem; color: var(--ink-soft); }
.bigsub .usd { color: var(--ink); }

.statrow {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  margin: clamp(36px, 5vw, 60px) auto 0; max-width: 900px;
}
.statrow .cell { padding: 26px 12px; }
.statrow .cell + .cell { border-left: 1px solid var(--line); }
.statrow .v { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 560; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.statrow .k { margin-top: 6px; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

.feed { max-width: 900px; margin: clamp(30px, 4vw, 44px) auto 0; text-align: left; }
.feed h3 { text-align: center; font-size: 1.05rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.feed table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.feed td { padding: 13px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.feed tr:last-child td { border-bottom: 1px solid var(--line); }
.feed .addr { font-family: var(--mono); font-size: 0.85rem; }
.feed .amt { font-weight: 600; white-space: nowrap; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.feed .t { color: var(--ink-soft); white-space: nowrap; }
.feed .empty td { text-align: center; color: var(--ink-soft); padding: 30px 10px; font-style: italic; }
.ledger .fine { margin-top: 26px; font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- campaign ---------- */
.campaign .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.stripwrap { position: relative; margin-top: clamp(32px, 4vw, 52px); }
.strip {
  display: flex; gap: clamp(18px, 2.4vw, 30px); overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 10px 4px 26px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .card { flex: 0 0 auto; width: clamp(230px, 24vw, 310px); scroll-snap-align: start; }
.strip img {
  width: 100%; height: auto; display: block; border-radius: 4px;
  box-shadow: 0 3px 10px rgba(35, 26, 10, 0.18), 0 16px 38px rgba(35, 26, 10, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.strip .card:hover img { transform: translateY(-8px) rotate(-0.4deg); box-shadow: 0 8px 16px rgba(35, 26, 10, 0.2), 0 26px 54px rgba(35, 26, 10, 0.22); }
.stripnav { display: flex; gap: 10px; }
.stripnav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font-size: 1.15rem; font-family: var(--serif);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.stripnav button:hover { background: var(--ink); color: var(--paper); }

/* ---------- faq ---------- */
.faq .list { max-width: 820px; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; padding: 22px 2px; font-size: 1.28rem; font-weight: 560;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mark { font-size: 1.5rem; font-weight: 400; color: var(--ink-soft); transition: transform 0.3s; }
.faq details[open] summary .mark { transform: rotate(45deg); }
.faq .a { padding: 0 2px 24px; max-width: 62ch; font-size: 1.08rem; }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing img {
  width: min(380px, 64vw); height: auto; margin: 0 auto clamp(24px, 3vw, 40px); display: block;
  -webkit-mask-image: radial-gradient(closest-side, #000 42%, transparent 82%);
  mask-image: radial-gradient(closest-side, #000 42%, transparent 82%);
  animation: floaty 10s ease-in-out infinite;
}
.closing h2 { margin-bottom: 8px; }
.closing .lede { margin: 0 auto clamp(28px, 3vw, 40px); }
.closing .ctas { display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-strong); padding: clamp(44px, 6vw, 70px) 0 40px; }
.footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.footgrid .wordmark { font-size: 2rem; }
.footcol .k { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.footcol a { display: block; margin-bottom: 9px; font-size: 1.04rem; opacity: 0.9; }
.footcol a:hover { color: var(--blue); }
.caline { font-family: var(--mono); font-size: 0.82rem; margin-top: 14px; color: var(--ink-soft); word-break: break-all; }
.caline a { border-bottom: 1px solid var(--line-strong); }
.legal { margin-top: clamp(30px, 4vw, 46px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); max-width: 76ch; }

/* ---------- docs page ---------- */
.docmain { padding-top: 140px; }
.docmain .wrap { max-width: 880px; }
.docmain h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 560; letter-spacing: -0.015em; line-height: 1.02; margin-bottom: 16px; }
.docsec { padding: clamp(34px, 4.6vw, 56px) 0 0; }
.docsec h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); border-top: 1px solid var(--line-strong); padding-top: 26px; }
.docsec p { max-width: 68ch; font-size: 1.1rem; margin-bottom: 1em; }
.addrtable { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 1rem; }
.addrtable td { padding: 12px 10px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.addrtable tr:last-child td { border-bottom: 1px solid var(--line); }
.addrtable .label { white-space: nowrap; padding-right: 26px; font-weight: 560; }
.addrtable .addr { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }
.docmain .fine { font-size: 0.95rem; color: var(--ink-soft); }

/* capture mode: deterministic rendering for screenshots */
html.capture .hero { min-height: 0; padding: 170px 0 80px; }
html.capture .rv, html.capture .hero h1 .w span { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }

/* ---------- reveals ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.19, 1, 0.22, 1); }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; } .rv.d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cols3, .steps { grid-template-columns: 1fr; }
  .footgrid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .navlinks { display: none; }
  .hero { padding-top: 120px; min-height: 0; }
  .hero .grid { grid-template-columns: 1fr; }
  .heroimg { order: 2; max-width: 480px; margin: 0 auto; }
  .statrow { grid-template-columns: 1fr; }
  .statrow .cell + .cell { border-left: none; border-top: 1px solid var(--line); }
  .feed .addr { font-size: 0.72rem; }
  .campaign .head { flex-direction: column; align-items: flex-start; }
}
