/* Crossbar Mentoring — landing page prototype
   Theme per BRANDING.md: dark, athletic, single strong green. */

:root {
  --bg-dark: #171717;
  --bg-black: #000000;
  --green: #008819;
  --green-bright: #53C600;
  --green-tint: rgba(0, 136, 25, 0.1);
  --white: #ffffff;
  --muted: #b5b5b5;
  --muted-dim: #7d7d7d;
  --divider: rgba(225, 225, 225, 0.12);
  --card: #232323;
  --card-lift: #373737;

  --font-display: "Barlow Semi Condensed", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-img: 22px;
  --radius-card: 18px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

p { margin: 0; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
}

.eyebrow--bare {
  background: none;
  padding: 0;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-bright); }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--secondary:hover { border-color: var(--green-bright); color: var(--green-bright); }

.btn--sm { padding: 11px 22px; font-size: 0.9rem; }

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__mark { width: 42px; height: 42px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  line-height: 1;
}
.logo__text span { color: var(--green-bright); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(0, 136, 25, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(83, 198, 0, 0.08), transparent 55%),
    var(--bg-black);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { color: var(--green-bright); font-style: normal; }

/* Rounded moody hero image placeholder */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  overflow: hidden;
  background:
    linear-gradient(155deg, #1c1c1c 0%, #0a0a0a 55%),
    radial-gradient(120% 90% at 70% 0%, rgba(0, 136, 25, 0.5), transparent 60%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 30% 20%, rgba(83, 198, 0, 0.28), transparent 55%);
  mix-blend-mode: screen;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 10px 14px;
}
.hero__badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(83, 198, 0, 0.2);
}
.hero__badge small { color: var(--muted); font-size: 0.78rem; }
.hero__badge strong { font-size: 0.9rem; }

/* ---------- Section shell ---------- */

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--black { background: var(--bg-black); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head p { color: var(--muted); margin-top: 16px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 30px 26px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }
.step__art {
  height: 120px;
  border-radius: 12px;
  margin-bottom: 22px;
  background: linear-gradient(150deg, #2c2c2c, #141414);
  position: relative;
  overflow: hidden;
}
.step__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 30% 20%, rgba(0,136,25,0.35), transparent 60%);
}
.step__art svg { position: absolute; inset: 0; margin: auto; z-index: 1; }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature:hover {
  border-color: rgba(83, 198, 0, 0.5);
  transform: translateY(-3px);
  background: var(--card-lift);
}
.feature__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  color: var(--green-bright);
}
.feature h3 { margin-bottom: 8px; font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Who it's for ---------- */

.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.who {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--card);
}
.who__media {
  aspect-ratio: 3 / 2;
  position: relative;
  background: linear-gradient(150deg, #262626, #0c0c0c);
}
.who__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 65% 25%, rgba(0,136,25,0.4), transparent 60%);
}
.who__media .tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-bright);
  background: rgba(0,0,0,0.5); border: 1px solid var(--divider);
  padding: 5px 11px; border-radius: 999px;
}
.who__body { padding: 24px; }
.who h3 { margin-bottom: 10px; }
.who p { color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(0,136,25,0.3), transparent 60%),
    var(--card);
  border: 1px solid var(--divider);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { color: var(--muted); margin: 0 auto 30px; max-width: 46ch; }
.cta-band .hero__actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-black);
  border-top: 1px solid var(--divider);
  padding: 56px 0 40px;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}
.footer__col h4 {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-dim); margin: 0 0 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--muted); font-size: 0.95rem; }
.footer__col a:hover { color: var(--green-bright); }
.footer__brand { max-width: 300px; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; margin-top: 16px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center; padding-top: 26px; border-top: 1px solid var(--divider);
  color: var(--muted-dim); font-size: 0.85rem;
}

/* ================= COACH MARKETPLACE ================= */

.market-hero {
  background:
    radial-gradient(900px 500px at 85% -20%, rgba(0,136,25,0.25), transparent 60%),
    var(--bg-black);
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
}
.market-hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); margin-bottom: 18px; }
.market-hero .lead { max-width: 60ch; }

/* Filter + search bar */
.market-bar {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: rgba(23,23,23,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  padding: 16px 0;
}
.market-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--muted);
}
.search input {
  border: none; background: none; outline: none; color: var(--white);
  font: inherit; font-size: 0.95rem; width: 100%;
}
.search input::placeholder { color: var(--muted-dim); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.chip.is-active {
  color: #fff; background: var(--green); border-color: var(--green);
}

/* Section label row */
.market-label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 44px 0 22px; flex-wrap: wrap;
}
.market-label h2 { font-size: 1.5rem; }
.market-label .count { color: var(--muted-dim); font-size: 0.9rem; }

/* Featured (founding) coach card */
.featured {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: linear-gradient(150deg, #232323, #141414);
  border: 1px solid rgba(83,198,0,0.4);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 12px;
}
.featured__photo {
  position: relative;
  background: linear-gradient(160deg, #2a2a2a, #0b0b0b);
  min-height: 300px;
  display: grid; place-items: center;
}
.featured__photo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 70% at 50% 30%, rgba(0,136,25,0.4), transparent 60%);
}
.featured__body { padding: 34px 36px; }
.featured__body .ribbon { margin-bottom: 16px; }
.featured__body h3 { font-size: 2rem; margin-bottom: 6px; }
.featured__role { color: var(--green-bright); font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
.featured__bio { color: var(--muted); margin-bottom: 22px; max-width: 60ch; }

.avatar {
  position: relative; z-index: 1;
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: #fff;
  background: linear-gradient(150deg, var(--green), #04350c);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06), 0 12px 30px rgba(0,0,0,0.4);
}

.ribbon {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-bright); background: var(--green-tint);
  border: 1px solid rgba(83,198,0,0.4);
  border-radius: 999px; padding: 6px 13px;
}

/* meta rows */
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill-tag {
  font-size: 0.8rem; color: var(--muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--divider);
  border-radius: 999px; padding: 6px 13px;
}
.stat-line { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 24px; }
.stat-line .rate { color: var(--green-bright); font-weight: 700; }
.stat-line .price strong { font-family: var(--font-display); font-size: 1.5rem; }
.stat-line .price span { color: var(--muted-dim); font-size: 0.85rem; }
.stars { color: var(--green-bright); letter-spacing: 2px; }
.stat-line .muted { color: var(--muted); font-size: 0.9rem; }
.featured .hero__actions { margin-top: 0; }

/* Coach grid */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.coach-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.coach-card:hover { border-color: rgba(83,198,0,0.5); transform: translateY(-3px); }
.coach-card__top {
  position: relative;
  padding: 26px 24px 20px;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--divider);
}
.coach-card__top .avatar { width: 64px; height: 64px; font-size: 1.35rem; box-shadow: none; }
.coach-card__top h3 { font-size: 1.25rem; margin-bottom: 3px; }
.coach-card__top .role { color: var(--green-bright); font-size: 0.82rem; font-weight: 700; }
.coach-card__body { padding: 20px 24px; flex: 1; }
.coach-card__body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.coach-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-top: 1px solid var(--divider); gap: 12px;
}
.coach-card__foot .price strong { font-family: var(--font-display); font-size: 1.3rem; }
.coach-card__foot .price span { color: var(--muted-dim); font-size: 0.8rem; }
.coach-card__foot .stars { font-size: 0.85rem; }
.coach-card__foot .stars small { color: var(--muted-dim); margin-left: 4px; }
.avail {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--muted);
}
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }

.no-results { color: var(--muted); padding: 40px 0; display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle {
    display: inline-flex; background: none; border: 1px solid var(--divider);
    color: var(--white); border-radius: 10px; padding: 9px 12px; cursor: pointer;
  }
  .nav__links.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 4px; background: var(--bg-black);
    border-bottom: 1px solid var(--divider); padding: 12px 20px 20px;
  }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 11; max-height: 340px; }
  .steps, .features, .audience { grid-template-columns: 1fr; }

  .market-bar { top: 69px; }
  .featured { grid-template-columns: 1fr; }
  .featured__photo { min-height: 200px; }
  .coach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) and (min-width: 861px) {
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
