/* ============================================================
   JDF PUBLIC SAFETY: FOUNDERS CLUB
   Banner (f-banner) is reusable on any page. Everything else
   is for founders.html. Loaded after style.css and motion.css.
   ============================================================ */

:root {
  --f-ink: #070d1e;
  --f-navy: #0b1329;
  --f-navy-2: #14224a;
  --f-gold: #e59a0e;
  --f-gold-2: #d97706;
  --f-gold-hi: #f6c453;
  --f-line: rgba(255, 255, 255, .13);
  --f-ease: cubic-bezier(.2, .7, .2, 1);
  --f-shield: polygon(50% 0, 100% 12%, 100% 56%, 50% 100%, 0 56%, 0 12%);
}

/* ---------- Reusable banner ---------------------------------- */
.f-banner {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(110deg, #070d1e 0%, #14224a 48%, #070d1e 100%);
  border-block: 1px solid rgba(229, 154, 14, .45);
}
.f-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(246, 196, 83, .22) 48%, rgba(246, 196, 83, .05) 55%, transparent 65%);
  background-size: 250% 100%; background-position: 120% 0;
}
.js-motion .f-banner::before { animation: f-sheen 6.5s ease-in-out infinite; }
@keyframes f-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.f-banner-in {
  position: relative; display: grid; grid-template-columns: auto 1fr auto auto; gap: 26px; align-items: center;
  padding: 22px 0;
}
.f-seal {
  width: 62px; height: 70px; flex: none; clip-path: var(--f-shield);
  background: linear-gradient(160deg, var(--f-gold-hi), var(--f-gold-2) 55%, #8a4b02);
  display: grid; place-content: center; text-align: center;
  font: 900 11px/1 var(--font-head); letter-spacing: .08em; color: var(--f-ink);
}
.f-seal b { display: block; font-size: 24px; line-height: .95; }
.f-banner small { display: block; font: 800 11px var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--f-gold); margin-bottom: 4px; }
.f-banner strong { display: block; font: 900 clamp(21px, 2.6vw, 30px)/1.1 var(--font-head); text-transform: uppercase; letter-spacing: -.01em; }
.f-banner p { margin: 5px 0 0; color: #cbd5e1; font-size: 15px; line-height: 1.5; }
.f-open { text-align: center; padding: 0 22px; border-inline: 1px solid var(--f-line); white-space: nowrap; }
.f-open b { display: block; font: 900 38px/1 var(--font-head); color: var(--f-gold-hi); font-variant-numeric: tabular-nums; }
.f-open span { font: 800 10.5px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #94a3b8; }

/* ---------- Hero --------------------------------------------- */
.f-hero {
  position: relative; overflow: hidden; color: #fff; padding: 84px 0 92px;
  background: radial-gradient(900px 520px at 85% 0%, #1d2f68 0%, transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(217, 119, 6, .18) 0%, transparent 60%), var(--f-ink);
}
.f-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.f-hero h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 18px; }
.f-hero h1 span { background: linear-gradient(100deg, var(--f-gold-hi), var(--f-gold-2) 60%, var(--f-gold-hi)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.js-motion .f-hero h1 span { animation: f-gold 5s linear infinite; }
@keyframes f-gold { to { background-position: -200% 0; } }
.f-hero p.f-lead { font-size: 18.5px; line-height: 1.7; color: #dbe2f0; max-width: 560px; margin: 0 0 28px; }
.f-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.f-hero-count { margin-top: 30px; display: flex; gap: 30px; flex-wrap: wrap; }
.f-hero-count div b { display: block; font: 900 40px/1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.f-hero-count div b em { font-style: normal; color: var(--f-gold); }
.f-hero-count div > span { font: 800 10.5px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #94a3b8; }

.f-seatbox { border: 1px solid var(--f-line); border-radius: 24px; padding: 26px; background: rgba(255, 255, 255, .035); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.f-seatbox-h { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 18px; font: 800 11px var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: #94a3b8; }
.f-seatbox-h b { color: var(--f-gold-hi); }
.f-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 12px; }
.f-seat {
  position: relative; aspect-ratio: 6 / 7; clip-path: var(--f-shield);
  background: rgba(229, 154, 14, .5); display: grid; place-content: center;
  transition: transform .35s var(--f-ease);
}
.f-seat::before { content: ""; position: absolute; inset: 2px; clip-path: var(--f-shield); background: #0d1733; transition: background .3s; }
.f-seat b { position: relative; font: 900 clamp(15px, 1.8vw, 21px)/1 var(--font-head); color: #dbe2f0; font-variant-numeric: tabular-nums; }
.f-seat i { position: relative; display: block; font: 800 7.5px var(--font-head); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--f-gold); text-align: center; margin-top: 3px; }
.f-seat:hover { transform: translateY(-5px) scale(1.06); }
.f-seat:hover::before { background: #16275a; }
.f-seat.is-taken { background: linear-gradient(160deg, var(--f-gold-hi), var(--f-gold-2)); }
.f-seat.is-taken::before { background: linear-gradient(160deg, var(--f-gold-hi), var(--f-gold-2) 60%, #8a4b02); }
.f-seat.is-taken b, .f-seat.is-taken i { color: var(--f-ink); }
.js-motion .f-seat { opacity: 0; transform: translateY(16px) scale(.8); animation: f-seat-in .6s var(--f-ease) forwards; animation-delay: calc(var(--n) * 55ms + 250ms); }
@keyframes f-seat-in { to { opacity: 1; transform: none; } }
.js-motion .f-seat.is-open::after {
  content: ""; position: absolute; inset: 0; clip-path: var(--f-shield); pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(246, 196, 83, .35) 50%, transparent 60%); background-size: 300% 100%;
  animation: f-seat-sheen 5s ease-in-out infinite; animation-delay: calc(var(--n) * 140ms);
}
@keyframes f-seat-sheen { 0% { background-position: 130% 0; } 40%, 100% { background-position: -130% 0; } }
.f-seat-note { margin: 16px 0 0; font-size: 12.5px; color: #94a3b8; line-height: 1.55; }

/* ---------- What founders receive ---------------------------- */
.f-perks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.f-perk { position: relative; padding: 26px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border-light); box-shadow: 0 12px 30px rgba(11, 19, 41, .06); transition: transform .35s var(--f-ease), box-shadow .35s, border-color .35s; }
.f-perk:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(217, 119, 6, .16); border-color: var(--f-gold); }
.f-perk .f-n { font: 900 12px var(--font-head); letter-spacing: .2em; color: var(--f-gold-2); }
.f-perk h3 { font-size: 17px; text-transform: uppercase; margin: 12px 0 8px; letter-spacing: .01em; }
.f-perk p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--slate-600); }

/* ---------- Tiers -------------------------------------------- */
.f-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.f-tier {
  position: relative; display: flex; flex-direction: column; padding: 28px 22px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--f-line); color: #cbd5e1;
  transition: transform .35s var(--f-ease), border-color .35s, background .35s;
}
.f-tier:hover { transform: translateY(-8px); border-color: rgba(229, 154, 14, .6); background: rgba(255, 255, 255, .07); }
.f-tier small { font: 800 11px var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--f-gold); }
.f-tier .f-amt { font: 900 clamp(32px, 3.2vw, 44px)/1 var(--font-head); color: #fff; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.f-tier .f-amt em { display: block; font: 700 13px var(--font-main); font-style: normal; color: #94a3b8; margin-top: 6px; }
.f-tier ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.45; flex: 1; align-content: start; }
.f-tier li { position: relative; padding-left: 22px; }
.f-tier li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--f-gold); border-bottom: 2px solid var(--f-gold); transform: rotate(-45deg); }
.f-tier li.f-plus { color: #94a3b8; font-style: italic; }
.f-tier li.f-plus::before { display: none; }
.f-tier a { display: block; text-align: center; padding: 13px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font: 900 12px var(--font-head); letter-spacing: .1em; text-transform: uppercase; transition: all .25s var(--f-ease); }
.f-tier a:hover { border-color: var(--f-gold); color: var(--f-gold-hi); background: rgba(229, 154, 14, .1); }
.f-tier.is-founder {
  background: linear-gradient(170deg, #1b2c63, #0b1329 70%); border: 0; color: #e2e8f0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5); transform: translateY(-10px);
}
.f-tier.is-founder:hover { transform: translateY(-16px); }
.f-tier.is-founder {
  border: 2px solid transparent;
  background: linear-gradient(170deg, #1b2c63, #0b1329 70%) padding-box,
              conic-gradient(from var(--f-a, 0deg), #8a4b02, #f6c453, #8a4b02, #d97706, #8a4b02) border-box;
}
.js-motion .f-tier.is-founder { animation: f-rot 6s linear infinite; }
@property --f-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes f-rot { to { --f-a: 360deg; } }
.f-tier.is-founder { isolation: isolate; }
.f-tier.is-founder .f-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: linear-gradient(135deg, var(--f-gold-hi), var(--f-gold-2)); color: var(--f-ink); font: 900 10px var(--font-head); letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.f-tier.is-founder a { background: linear-gradient(135deg, #e59a0e, #b87403); border-color: transparent; box-shadow: 0 12px 26px rgba(217, 119, 6, .4); }
.f-tier.is-founder a:hover { color: #fff; transform: translateY(-2px); }
.f-tier-note { margin: 26px auto 0; max-width: 820px; text-align: center; font-size: 13px; color: #94a3b8; line-height: 1.6; }

/* ---------- Merch mock-ups ----------------------------------- */
.f-merch { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 40px; }
.f-item { grid-column: span 2; position: relative; border-radius: 22px; padding: 26px 22px 22px; background: linear-gradient(180deg, #f8fafc, #eef2f7); border: 1px solid var(--border-light); text-align: center; overflow: hidden; transition: box-shadow .35s, transform .35s var(--f-ease); }
.f-item.f-wide { grid-column: span 3; }
.f-item:hover { box-shadow: 0 26px 54px rgba(11, 19, 41, .14); transform: translateY(-4px); }
.f-item svg { display: block; width: 100%; height: 230px; margin: 0 auto 14px; filter: drop-shadow(0 18px 18px rgba(11, 19, 41, .22)); transition: transform .7s var(--f-ease); }
.js-motion .f-item svg { animation: f-float 6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -1.3s); }
@keyframes f-float { 50% { transform: translateY(-9px) rotate(-1.2deg); } }
.f-item:hover svg { animation-play-state: paused; transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.f-item h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.f-item p { margin: 0; font-size: 13.5px; color: var(--slate-500); line-height: 1.5; }
.f-item .f-tag { position: absolute; top: 14px; left: 14px; font: 800 9.5px var(--font-head); letter-spacing: .14em; text-transform: uppercase; background: var(--f-navy); color: var(--f-gold-hi); padding: 4px 9px; border-radius: 999px; }
.f-mock { position: absolute; top: 14px; right: 14px; font: 700 9.5px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); }

.f-coin { perspective: 1100px; width: 230px; height: 230px; margin: 0 auto 14px; cursor: pointer; background: none; border: 0; padding: 0; display: block; }
.f-coin-in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--f-ease); }
.f-coin:hover .f-coin-in, .f-coin:focus-visible .f-coin-in, .f-coin.is-flipped .f-coin-in { transform: rotateY(180deg); }
.f-coin.is-flipped:hover .f-coin-in { transform: rotateY(180deg); }
.f-coin:focus-visible { outline: 3px solid var(--f-gold-2); outline-offset: 6px; border-radius: 50%; }
.f-coin svg { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; animation: none !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 16px 16px rgba(11, 19, 41, .3)); }
.f-coin svg.f-back { transform: rotateY(180deg); }
.f-item:hover .f-coin svg { transform: none; }
.f-item:hover .f-coin svg.f-back { transform: rotateY(180deg); }

/* ---------- Founders Wall ------------------------------------ */
.f-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 38px; }
.f-plaque {
  position: relative; padding: 20px 14px 18px; border-radius: 10px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #1a2a5c, #0b1329); border: 1px solid rgba(229, 154, 14, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 26px rgba(0, 0, 0, .35);
}
.f-plaque::before, .f-plaque::after { content: ""; position: absolute; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--f-gold); opacity: .8; }
.f-plaque::before { left: 8px; } .f-plaque::after { right: 8px; }
.f-plaque b { display: block; font: 900 22px/1 var(--font-head); color: var(--f-gold-hi); font-variant-numeric: tabular-nums; }
.f-plaque span { display: block; margin-top: 8px; font: 700 10.5px/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.f-plaque.is-taken { background: linear-gradient(160deg, var(--f-gold-hi), var(--f-gold-2) 60%, #8a4b02); }
.f-plaque.is-taken b, .f-plaque.is-taken span { color: var(--f-ink); }
.js-motion .f-wall.is-in .f-plaque { animation: f-seat-in .6s var(--f-ease) both; animation-delay: calc(var(--n) * 45ms); }
.js-motion .f-wall:not(.is-in) .f-plaque { opacity: 0; }

.f-placeholder { display: block; padding: 12px 14px; border-radius: 10px; border: 2px dashed #f59e0b; background: #fffbeb; color: #78350f; font-size: 14px; line-height: 1.6; }

/* ---------- Responsive --------------------------------------- */
@media (max-width: 1100px) {
  .f-tiers { grid-template-columns: repeat(2, 1fr); }
  .f-tier.is-founder { grid-column: 1 / -1; transform: none; order: -1; }
  .f-tier.is-founder:hover { transform: translateY(-6px); }
  .f-perks { grid-template-columns: repeat(2, 1fr); }
  .f-perk:last-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .f-hero-in { grid-template-columns: 1fr; gap: 38px; }
  .f-hero { padding: 60px 0 68px; }
  .f-banner-in { grid-template-columns: auto 1fr; gap: 16px 18px; }
  .f-open { grid-column: 1; border: 0; padding: 0; text-align: left; display: flex; align-items: baseline; gap: 8px; grid-row: 2; grid-column: 1 / -1; }
  .f-open b { font-size: 26px; display: inline; }
  .f-banner-in .btn { grid-column: 1 / -1; }
  .f-item, .f-item.f-wide { grid-column: span 3; }
  .f-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .f-tiers, .f-perks { grid-template-columns: 1fr; }
  .f-item, .f-item.f-wide { grid-column: 1 / -1; }
  .f-wall { grid-template-columns: repeat(2, 1fr); }
  .f-seats { gap: 10px 8px; }
  .f-seatbox { padding: 18px 14px; }
  .f-seat i { display: none; }
  .f-seal { width: 50px; height: 57px; }
  .f-seal b { font-size: 19px; }
  .f-hero-count { gap: 22px; }
  .f-hero-count div b { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .f-banner::before, .f-hero h1 span, .f-seat, .f-seat::after, .f-tier.is-founder, .f-item svg, .f-plaque { animation: none !important; }
  .f-seat, .f-plaque { opacity: 1 !important; transform: none !important; }
  .f-coin-in { transition: none; }
}
