/* ─────────────────────────────────────────────────────────────────────────────
   trailhead.css
   Virtual Rover — Trailhead Suite Entry Point
   Place in: /public/styles/trailhead.css
   Linked via: <link rel="stylesheet" href="/styles/trailhead.css"> in trailhead.astro
───────────────────────────────────────────────────────────────────────────── */

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.trailhead {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.th-hero {
  text-align: center;
  padding: 5.5rem 1rem 4rem;
  max-width: 780px;
  margin: 0 auto;
  animation: th-fade-up 0.6s ease both;
}

.th-eyebrow {
  font-family: 'Jura', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #22d3ee;
  margin: 0 0 1.5rem;
  opacity: 1;
}

.th-headline {
  font-family: 'Jura', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.18;
  margin: 0 0 1.5rem;
  text-shadow:
    0 0 40px rgba(34, 211, 238, 0.18),
    0 0 80px rgba(34, 211, 238, 0.08);
  letter-spacing: -0.01em;
}

.th-subhead {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.th-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.th-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  animation: th-fade-up 0.55s ease both;
  animation-delay: var(--delay, 0ms);
}

.th-card--primary {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
}

.th-card--primary:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.08);
}

.th-card--secondary,
.th-card--tertiary {
  opacity: 0.72;
}

.th-card--secondary:hover,
.th-card--tertiary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.th-card-inner {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.th-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.th-badge {
  font-family: 'Jura', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 4px;
}

.th-badge--start {
  background: #22d3ee;
  color: #0a1628;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

.th-badge--step {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* ─── Icon ───────────────────────────────────────────────────────────────── */
.th-card-icon {
  color: #22d3ee;
  opacity: 0.75;
}

.th-card--secondary .th-card-icon,
.th-card--tertiary .th-card-icon {
  color: #475569;
  opacity: 1;
}

/* ─── Card content ───────────────────────────────────────────────────────── */
.th-card-title {
  font-family: 'Jura', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.th-card-tagline {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22d3ee;
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}

/* Cards 2 + 3 taglines — visible but clearly secondary */
.th-card--secondary .th-card-tagline,
.th-card--tertiary .th-card-tagline {
  color: #94a3b8;
}

.th-card-body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 1.35rem;
  flex: 1;
}

/* ─── Output block ───────────────────────────────────────────────────────── */
.th-card-output {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.65;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 1.1rem;
  margin-bottom: 1.35rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(34, 211, 238, 0.25);
  border-top: none;
  background: rgba(34, 211, 238, 0.03);
  padding: 0.85rem 0.85rem 0.85rem 0.85rem;
  border-radius: 0 6px 6px 0;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-left: 2px solid rgba(34, 211, 238, 0.3);
}

.th-card--secondary .th-card-output,
.th-card--tertiary .th-card-output {
  border-left-color: rgba(100, 116, 139, 0.3);
}

.th-output-label {
  display: block;
  font-family: 'Jura', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 0.35rem;
  opacity: 0.8;
}

.th-card--secondary .th-output-label,
.th-card--tertiary .th-output-label {
  color: #64748b;
  opacity: 1;
}

/* ─── Card footer ────────────────────────────────────────────────────────── */
.th-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.th-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jura', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.18s ease;
  width: fit-content;
  letter-spacing: 0.02em;
}

.th-cta--primary {
  background: #22d3ee;
  color: #0a1628;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.2);
}

.th-cta--primary:hover {
  background: #67e8f9;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}

.th-cta--primary .th-arrow {
  transition: transform 0.18s ease;
  display: inline-block;
}

.th-cta--primary:hover .th-arrow {
  transform: translateX(4px);
}

.th-cta--coming {
  display: inline-flex;
  font-family: 'Jura', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  padding: 0.7rem 1.2rem;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: default;
  width: fit-content;
  letter-spacing: 0.05em;
}

.th-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  color: #475569;
  letter-spacing: 0.01em;
}

/* ─── Suite strip ────────────────────────────────────────────────────────── */
.th-strip {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.85rem 2.25rem;
  margin-bottom: 2.5rem;
  background: rgba(15, 23, 42, 0.45);
  text-align: center;
  animation: th-fade-up 0.6s ease 0.3s both;
}

.th-strip-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.th-strip-step {
  font-family: 'Jura', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
}

.th-strip-step--active {
  color: #22d3ee;
}

.th-strip-step--cockpit {
  color: #475569;
  font-style: italic;
}

.th-strip-arrow {
  color: #334155;
  font-size: 0.8rem;
}

.th-strip-body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 560px;
}

/* ─── Trust strip ────────────────────────────────────────────────────────── */
.th-trust {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  overflow: hidden;
  animation: th-fade-up 0.6s ease 0.4s both;
}

.th-trust-item {
  padding: 1.65rem 2rem;
  background: rgba(15, 23, 42, 0.35);
}

.th-trust-divider {
  width: 1px;
  background: rgba(148, 163, 184, 0.08);
}

.th-trust-headline {
  font-family: 'Jura', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.45rem;
  letter-spacing: 0.02em;
}

.th-trust-body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* ─── Animation ──────────────────────────────────────────────────────────── */
@keyframes th-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .th-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .th-card--secondary,
  .th-card--tertiary {
    opacity: 0.88;
  }

  .th-trust {
    grid-template-columns: 1fr;
  }

  .th-trust-divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 600px) {
  .th-hero {
    padding: 3.5rem 0.5rem 2.5rem;
  }

  .th-strip {
    padding: 1.35rem 1.25rem;
  }

  .th-strip-flow {
    gap: 0.5rem;
  }

  .th-card-inner {
    padding: 1.4rem;
  }
}