/* ========================================
   WireTrade — Course Catalog Styles
   Progression map, track cards, timeline
   ======================================== */

.catalog-page {
  min-height: 100vh;
  background: var(--bg);
}

/* ---- NAV ---- */
.catalog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--trace);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.catalog-nav-logo .logo-mark {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  gap: 0;
  text-decoration: none;
}

.catalog-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.catalog-nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.catalog-nav-links a:hover {
  color: var(--accent);
}

.btn-ghost-sm {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid rgba(240, 236, 228, 0.15);
  padding: 8px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-sm:hover {
  border-color: rgba(240, 236, 228, 0.4);
  color: var(--fg);
}

.btn-primary-sm {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary-sm:hover {
  background: #ff7029;
}

/* ---- HERO ---- */
.catalog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--trace);
  align-items: center;
}

.catalog-hero-inner {
  padding: clamp(64px, 10vh, 112px) clamp(24px, 7vw, 112px);
  padding-right: clamp(40px, 5vw, 80px);
  border-right: 1px solid var(--trace);
}

.catalog-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}

.catalog-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
}

.catalog-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.catalog-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalog-stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.catalog-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--trace);
}

.catalog-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vh, 96px) clamp(40px, 5vw, 80px);
}

/* Progression rail */
.progression-rail {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.rail-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rail-node {
  width: 100%;
  display: flex;
  justify-content: center;
}

.rail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.7;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.rail-connector {
  flex: 1;
  height: 2px;
  background: var(--trace);
  margin-bottom: 20px;
}

/* ---- LEVEL LEGEND ---- */
.level-legend {
  border-bottom: 1px solid var(--trace);
  padding: 20px clamp(24px, 7vw, 112px);
  background: var(--bg-alt);
}

.level-legend-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.legend-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
}

/* ---- TRACKS ---- */
.catalog-tracks {
  padding: clamp(64px, 10vh, 100px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--trace);
}

.catalog-tracks-inner {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Track card */
.track-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s;
}

.track-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Track header */
.track-header {
  display: flex;
  align-items: stretch;
}

.track-level-bar {
  width: 5px;
  flex-shrink: 0;
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  flex: 1;
}

.track-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.track-num-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-num-val {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--steel);
  line-height: 1;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.track-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 560px;
}

.track-stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.track-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.track-stat-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.track-stat-unit {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Progression timeline */
.track-progression {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 28px 32px 28px calc(32px + 52px);
}

.track-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.track-timeline::-webkit-scrollbar {
  height: 4px;
}
.track-timeline::-webkit-scrollbar-track {
  background: transparent;
}
.track-timeline::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 2px;
}

/* Step node */
.step-node {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 200px;
}

.step-connector {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 40px;
  flex-shrink: 0;
  padding-top: 6px;
}

.step-line {
  width: 2px;
  height: 20px;
  background: var(--trace);
  margin-left: 9px;
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  margin-left: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-dot.live {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.step-dot.coming {
  border-color: var(--steel);
  background: var(--bg-card);
}

.step-content {
  padding: 0 24px 0 20px;
  flex: 1;
  min-width: 0;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-hours {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-muted);
}

.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 7px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}
.step-enroll-btn:hover {
  background: #ff7029;
  transform: translateY(-1px);
}

.step-coming-soon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border: 1px solid rgba(107, 107, 115, 0.3);
  border-radius: var(--radius);
}

.step-preview-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}
.step-preview-link:hover {
  color: var(--accent);
}

.track-empty {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  padding: 12px 0;
}

/* Track footer */
.track-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.15);
}

.track-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.track-level-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

.track-total-hours {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.06em;
}

.track-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  padding: 10px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}
.track-enroll-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ---- PATH CTA ---- */
.catalog-path-cta {
  padding: clamp(80px, 12vh, 120px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--trace);
  background: var(--bg-alt);
}

.catalog-path-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.path-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}

.path-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.path-rec-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.path-rec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.path-rec-track {
  display: flex;
  align-items: center;
  gap: 16px;
}

.path-rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 92, 26, 0.4);
}

.path-rec-text h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.path-rec-text p {
  font-size: 13px;
  color: var(--fg-muted);
}

.path-rec-card .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.path-rec-card .btn-primary:hover {
  background: #ff7029;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .catalog-hero {
    grid-template-columns: 1fr;
  }
  .catalog-hero-inner {
    border-right: none;
    padding-right: clamp(24px, 7vw, 112px);
    padding-bottom: 48px;
  }
  .catalog-hero-art {
    display: none;
  }
  .catalog-path-inner {
    grid-template-columns: 1fr;
  }
  .level-legend-inner {
    gap: 16px;
  }
  .track-meta {
    flex-wrap: wrap;
    gap: 16px;
  }
  .track-stats {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .catalog-nav {
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .catalog-nav-links {
    gap: 12px;
  }
  .catalog-tracks {
    padding: 48px 24px;
  }
  .track-meta {
    padding: 20px;
  }
  .track-progression {
    padding: 20px;
  }
  .track-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .catalog-stats {
    gap: 16px;
  }
  .catalog-path-cta {
    padding: 64px 24px;
  }
  .catalog-tracks-inner {
    gap: 20px;
  }
}

/* ---- EMAIL CAPTURE / WAITLIST ---- */
.catalog-waitlist {
  padding: clamp(80px, 12vh, 120px) clamp(24px, 7vw, 112px);
  border-bottom: 1px solid var(--trace);
}

.catalog-waitlist-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}

.waitlist-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-input {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.waitlist-input::placeholder {
  color: var(--steel);
}
.waitlist-input:focus {
  border-color: var(--accent-border);
}

.waitlist-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236b6b73' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.waitlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.waitlist-btn:hover {
  background: #ff7029;
}

.waitlist-success {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.waitlist-success-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.waitlist-already {
  color: var(--fg-muted);
  background: rgba(107, 107, 115, 0.08);
  border-color: rgba(107, 107, 115, 0.2);
}

.waitlist-error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ef4444;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .catalog-waitlist-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .catalog-waitlist {
    padding: 64px 24px;
  }
}

/* ---- CATALOG EMAIL CAPTURE (footer) ---- */
.catalog-leads {
  border-top: 1px solid var(--trace);
  border-bottom: 1px solid var(--trace);
  padding: 40px clamp(24px, 7vw, 112px);
  background: rgba(0, 0, 0, 0.2);
}

.catalog-leads-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.catalog-leads-copy {
  min-width: 0;
}

.catalog-leads-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.catalog-leads-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0;
}

.catalog-leads-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.catalog-leads-input {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px 16px;
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.catalog-leads-input:focus {
  border-color: var(--accent-border);
}
.catalog-leads-input::placeholder {
  color: var(--steel);
}

.catalog-leads-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.catalog-leads-btn:hover {
  background: #ff7029;
}

.catalog-leads-msg {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 12px;
}
.catalog-leads-msg--sending { color: var(--steel); }
.catalog-leads-msg--ok      { color: #22c55e; }
.catalog-leads-msg--info    { color: var(--fg-muted); }
.catalog-leads-msg--err     { color: #ef4444; }

@media (max-width: 640px) {
  .catalog-leads-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .catalog-leads-form {
    flex-direction: column;
  }
  .catalog-leads-input {
    width: 100%;
  }
}