/* Backd hero: big centred headline over a faint grid, with a curved "horizon" glow at the bottom.
   Plain CSS rebuild of the hero-1 design (no React/Tailwind). Every class starts with .bk-hero so nothing else is touched.
   Reads the site's tokens from site.css (--bg, --card, --line, --text, --muted, --font-sans) and the existing .btn / .btn.rainbow.

   Markup to paste (replaces the old hero):

   <section class="bk-hero" aria-labelledby="bk-hero-title">
     <div class="bk-hero__grid" aria-hidden="true"></div>
     <div class="bk-hero__horizon" aria-hidden="true"></div>
     <div class="bk-hero__inner">
       <a class="bk-hero__eyebrow" href="#how">Name-your-price Supporter access
         <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
       <h1 id="bk-hero-title" class="bk-hero__title">Let your users back your&nbsp;app.</h1>
       <p class="bk-hero__sub">Supporters name their price in USDC, paid straight to your wallet. Your app unlocks features for them for 30&nbsp;days.</p>
       <div class="bk-hero__ctas">
         <a class="btn rainbow" href="/docs#quick-start">Start building</a>
         <a class="btn" href="/docs">Read the docs</a>
       </div>
       <p class="bk-hero__fine">No commission <span aria-hidden="true">·</span> Never holds your money</p>
     </div>
   </section>
*/

.bk-hero {
  --bk-hero-grid: color-mix(in srgb, var(--text) 9%, transparent);
  --bk-hero-rim: color-mix(in srgb, var(--text) 24%, transparent);
  --bk-hero-glow: color-mix(in srgb, var(--text) 10%, transparent);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100svh - 64px), 860px);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(72px, 12vh, 136px) 20px clamp(200px, 26vh, 280px);
  text-align: center;
  font-family: var(--font-sans, inherit);
  background: linear-gradient(to bottom, var(--bg), var(--bg) 55%, color-mix(in srgb, var(--text) 4%, var(--bg)) 92%);
  /* no hairline under the hero any more (Tristan 2026-12-04): the bottom fades into the page instead of a hard edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bk-hero {
  --bk-hero-grid: color-mix(in srgb, var(--text) 9%, transparent);
  --bk-hero-rim: color-mix(in srgb, var(--text) 55%, transparent);
  --bk-hero-glow: color-mix(in srgb, var(--text) 18%, transparent); } }
:root[data-theme="dark"] .bk-hero {
  --bk-hero-grid: color-mix(in srgb, var(--text) 9%, transparent);
  --bk-hero-rim: color-mix(in srgb, var(--text) 55%, transparent);
  --bk-hero-glow: color-mix(in srgb, var(--text) 18%, transparent); }

/* faint grid, fading out from the top centre */
.bk-hero__grid {
  position: absolute; inset: 0 0 auto; height: 640px; z-index: -2; pointer-events: none;
  background-image: linear-gradient(to right, var(--bk-hero-grid) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--bk-hero-grid) 1px, transparent 1px);
  background-size: 96px 80px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 60%, transparent 100%);
}

/* the curved horizon: a huge ellipse whose edge catches the light */
.bk-hero__horizon {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: calc(100% - 150px);
  width: max(1100px, 140%); height: 760px; border-radius: 100%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--bg) 91%, var(--bk-hero-rim) 99.6%, transparent 100%);
  box-shadow: 0 -24px 90px -10px var(--bk-hero-glow);
  animation: bk-hero-rise 1.2s .35s cubic-bezier(.2,.7,.2,1) both;
}

.bk-hero__inner { position: relative; max-width: 940px; display: flex; flex-direction: column; align-items: center; }

/* eyebrow pill */
.bk-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset;
  transition: color .2s, border-color .2s;
  animation: bk-hero-in .8s both;
}
.bk-hero__eyebrow svg { width: 14px; height: 14px; transition: transform .3s; }
.bk-hero__eyebrow:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.bk-hero__eyebrow:hover svg { transform: translateX(3px); }

/* headline: solid at top-left, fading toward bottom-right */
.bk-hero__title {
  margin: 28px 0 0; padding-bottom: .08em;
  font-size: clamp(44px, 8.4vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -.045em;
  text-wrap: balance;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 35%, color-mix(in srgb, var(--text) 62%, transparent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: bk-hero-in .9s .1s both;
}

.bk-hero__sub {
  margin: 24px 0 0; max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; letter-spacing: -.01em; color: var(--muted);
  text-wrap: balance;
  animation: bk-hero-in .9s .2s both;
}

.bk-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; animation: bk-hero-in .9s .3s both; }
.bk-hero__ctas .btn { height: 48px; padding: 0 26px; font-size: 16px; }
.bk-hero__ctas .btn:not(.rainbow) { background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(6px); }
/* "Already Backd?" -> /dashboard. "Backd" is drawn as the logo (never under 20px tall, the logo's minimum); the word stays as text for screen readers. */
.bk-hero__ctas .already .inline-logo { height: max(20px, 1.15em); vertical-align: -.13em; margin: 0 .06em 0 .1em; }

.bk-hero__fine { margin: 34px 0 0; font-size: 13px; color: var(--muted); animation: bk-hero-in .9s .4s both; }
.bk-hero__fine span { margin: 0 6px; opacity: .6; }

@keyframes bk-hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bk-hero-rise { from { opacity: 0; transform: translate(-50%, 48px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 640px) {
  .bk-hero { min-height: 0; padding-top: 56px; padding-bottom: 170px; }
  .bk-hero__grid { background-size: 64px 56px; height: 480px; }
  .bk-hero__horizon { width: 900px; height: 520px; top: calc(100% - 100px); }
  .bk-hero__eyebrow { font-size: 11.5px; }
  .bk-hero__ctas { width: 100%; flex-direction: column; align-items: stretch; max-width: 320px; }
  .bk-hero__fine { line-height: 1.7; max-width: 22em; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-hero__eyebrow, .bk-hero__title, .bk-hero__sub, .bk-hero__ctas, .bk-hero__fine, .bk-hero__horizon { animation: none; }
}

/* Desktop sizing (2026-12-02): bigger text and buttons, less empty space under the hero. See site.css. */
@media (min-width: 1024px) {
  .bk-hero { min-height: 0; padding-bottom: clamp(160px, 20vh, 220px); }
  .bk-hero__eyebrow { font-size: 14px; }
  .bk-hero__sub { font-size: 22px; }
  .bk-hero__ctas .btn { height: 56px; padding: 0 30px; font-size: 17.5px; }
  .bk-hero__fine { font-size: 15px; }
}
