/* XF Clubs static landing — Runner-only background + larger gap */
/* Colors */
:root {
  --xf-green: #00c800;
  --xf-black: #0a0a0a;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.7);
  --heading-font: 'Anybody', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --body-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  margin: 0;
  color: var(--text);
  background: var(--xf-black);
  font-family: var(--body-font);
  font-weight: 300;
}

/* Scroll lock for sheet */
body.scroll-lock { position: fixed; width: 100%; overflow: hidden; }

.page { position: relative; min-height: 100vh; overflow: hidden; }

/* Background image */
.bg-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: -2;
}

/* Cursor glow */
.cursor-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 50%), rgba(0,200,0,0.12), transparent 60%);
}

/* Starfield */
.stars-layer, .stars-layer::before, .stars-layer::after {
  position: absolute; content: ""; top: -2000px; left: -2000px; right: -2000px; bottom: -2000px;
  background-repeat: repeat; z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.8) 99%, transparent 100%),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.7) 99%, transparent 100%),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6) 99%, transparent 100%),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.5) 99%, transparent 100%),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.8) 99%, transparent 100%);
  animation: drift 120s linear infinite; opacity: 0.7;
}
.stars-2 { animation-duration: 180s; opacity: 0.5; filter: blur(0.3px); }
.stars-3 { animation-duration: 240s; opacity: 0.35; filter: blur(0.6px); }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-400px,-400px,0) scale(1); } }

/* Header */
.site-header-flex { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; align-items: center; z-index: 1; }
.xf-logo { height: 32px; width: auto; filter: drop-shadow(0 0 10px rgba(0,200,0,0.35)); }
.header-right { margin-left: auto; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.8); font-size: 12px; }
.xf-accent { color: var(--xf-green); font-weight: 800; }

/* Content */
.content {
  position: relative; z-index: 1; min-height: 100vh; padding: 24px;
  display: grid; align-content: center; justify-items: center;
}
.headline {
  text-align: center; color: rgba(255,255,255,0.9);
  font-family: var(--heading-font); font-style: italic; font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(22px, 2.5vw + 12px, 40px);
  margin: 0 0 clamp(28px, 5vw, 64px); /* bigger gap above the cards */
}

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; width: min(1100px, 100%); }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } }

.card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); backdrop-filter: blur(2px);
  padding: 28px; overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-2px) scale(1.01); border-color: rgba(255,255,255,0.16); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }
.card::before {
  content: ""; position: absolute; inset: -1px; opacity: 0; transition: opacity 160ms ease;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(0,200,0,0.18), transparent 60%);
}
.card:hover::before { opacity: 1; }

/* Force h2 + p to stack; chevron on right */
.card-inner { position: relative; display: grid; grid-template-columns: 1fr auto; grid-auto-rows: auto; align-items: end; gap: 12px; }
.card-inner h2, .card-inner p { grid-column: 1 / 2; }
.card-inner h2 { grid-row: 1; margin: 0; font-size: clamp(34px, 5vw + 8px, 64px); font-family: var(--heading-font); font-style: italic; font-weight: 800; letter-spacing: -0.02em; }
.card-inner p { grid-row: 2; margin: 8px 0 0; color: var(--muted); font-size: clamp(14px, 1.2vw + 10px, 18px); }
.card-inner .chev { grid-column: 2 / 3; grid-row: 1 / span 2; align-self: center; }

.chev {
  height: 56px; width: 56px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 0 40px rgba(0,200,0,0.22);
  transform: translateX(0); transition: transform 160ms ease, border-color 160ms ease;
}
.card:hover .chev { transform: translateX(4px); border-color: rgba(255,255,255,0.22); }

/* Footer */
.site-footer { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,0.8); font-size: 14px; z-index: 1; }
.link { background: none; border: none; color: inherit; text-decoration: none; cursor: pointer; padding: 0; }
.link:hover { color: #fff; }
.dot { opacity: 0.7; }

/* Sheet (slide-up) */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 200ms ease; backdrop-filter: blur(2px); z-index: 30; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; height: 72vh; background: #0a0a0a; color: #e5e5e5;
  border-top: 1px solid #272727; border-left: 1px solid #272727; border-right: 1px solid #272727;
  transform: translateY(100%); transition: transform 260ms cubic-bezier(.2,.8,.2,1); z-index: 40;
  border-top-left-radius: 16px; border-top-right-radius: 16px; display: grid; grid-template-rows: auto 1fr auto;
  will-change: transform;
}
.sheet.open { transform: translateY(0%); }
.overlay.show { opacity: 1; pointer-events: auto; }
.sheet-content { padding: 16px 18px; }
.sheet-handle { width: 44px; height: 5px; border-radius: 999px; background: #333; margin: 8px auto 10px; }
.sheet-header h3 { margin: 8px 0 2px; font-size: 18px; color: var(--xf-green); font-family: var(--heading-font); font-style: italic; font-weight: 800; }
.muted { color: rgba(255,255,255,0.6); margin: 0 0 12px; font-size: 14px; }
.sheet-body { overflow: auto; padding: 0 6px 8px 2px; -webkit-overflow-scrolling: touch; }
.sheet-body h4 { margin: 16px 0 8px; font-size: 16px; color: var(--xf-green); font-family: var(--heading-font); font-style: italic; font-weight: 800; }
.sheet-body p, .sheet-body li { color: rgba(255,255,255,0.92); line-height: 1.6; font-family: var(--body-font); font-weight: 300; }
.sheet-body ul { padding-left: 18px; }
.sheet-body a { color: var(--xf-green); text-decoration: none; border-bottom: 1px solid rgba(0,200,0,0.4); }

.sheet-footer { padding: 10px 6px 16px; display: flex; justify-content: flex-end; }
.btn { background: var(--xf-green); color: #000; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .card, .card::before, .chev, .overlay, .sheet { transition: none !important; }
  .stars-layer, .stars-2, .stars-3 { animation: none !important; }
}
