/* ══════════════════════════════════════════════════════════════════════
   Moonshot Growth — Components
   Reusable UI components shared across all Moonshot projects.
   Requires: tokens.css and base.css loaded first.
   ══════════════════════════════════════════════════════════════════════ */


/* ── Velocity Bars (signature brand element) ──────────────────────── */
.vbars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vbar {
  height: 4px;
  border-radius: 0;
  transform-origin: left;
  transform: scaleX(0);
}
.vbar-1 { background: var(--scarlet); width: 100%; }
.vbar-2 { background: var(--saffron); width: 78%; }
.vbar-3 { background: var(--blue);    width: 58%; }
.vbar-4 { background: var(--emerald); width: 40%; }

.vbars-sm .vbar { height: 3px; }
.vbars-sm .vbar-2 { width: 75%; }
.vbars-sm .vbar-3 { width: 55%; }
.vbars-sm .vbar-4 { width: 38%; }


/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
}
.btn-scarlet {
  background: var(--scarlet);
  color: #fff;
  padding: 11px 24px;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
.btn-scarlet:hover { background: #cc2f3b; transform: translateY(-1px); }

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.btn-outline-white:hover { border-color: #fff; }


/* ── NAV ──────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — Moonshot M icon */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-m-icon {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.logo-m-letter {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-m-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 16px;
}
.logo-m-bars span {
  display: block;
  height: 2.5px;
}
.logo-m-bars span:nth-child(1) { background: var(--scarlet); width: 100%; }
.logo-m-bars span:nth-child(2) { background: var(--saffron); width: 80%; }
.logo-m-bars span:nth-child(3) { background: var(--blue);    width: 60%; }
.logo-m-bars span:nth-child(4) { background: var(--emerald); width: 42%; }

.logo-text {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* Moonshot badge */
.moonshot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.moonshot-badge-bars {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
}
.moonshot-badge-bars span {
  display: block;
  width: 2px;
}
.moonshot-badge-bars span:nth-child(1) { height: 10px; background: var(--scarlet); }
.moonshot-badge-bars span:nth-child(2) { height: 8px; background: var(--saffron); }
.moonshot-badge-bars span:nth-child(3) { height: 6px; background: var(--blue); }
.moonshot-badge-bars span:nth-child(4) { height: 4px; background: var(--emerald); }
.moonshot-wordmark {
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }


/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  background: var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 28px;
  overflow: hidden;
}
.hero-title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
}
.hero-word {
  display: inline-block;
  opacity: 0;
}
.hero-accent { color: var(--scarlet); }

.hero-vbars {
  margin-bottom: 32px;
}
.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 460px;
  margin-bottom: 40px;
  opacity: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
}
.hero-note span { color: var(--emerald); font-weight: 600; }
.hero-moonshot {
  margin-top: 20px;
  opacity: 0;
}

/* Hero Visual Card (navy panel with color bar header) */
.hero-card {
  background: var(--navy);
  border: none;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(26, 37, 68, 0.28), 0 8px 24px rgba(26,37,68,0.12);
  opacity: 0;
  font-size: 16px;
}
.hero-card-bars {
  display: flex;
}
.hero-card-bars span {
  height: 5px;
  flex: 1;
}
.hero-card-bars span:nth-child(1) { background: var(--scarlet); }
.hero-card-bars span:nth-child(2) { background: var(--saffron); }
.hero-card-bars span:nth-child(3) { background: var(--blue); }
.hero-card-bars span:nth-child(4) { background: var(--emerald); }


/* ── Trust Bar ────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--cream);
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.trust-headline {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  line-height: 1.4;
}
.trust-headline-static {
  color: var(--text-muted);
  font-weight: 600;
}
.trust-typed-wrap {
  display: inline;
  position: relative;
}
.trust-typed {
  font-weight: 900;
  transition: color 0.3s;
}
.trust-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--scarlet);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.7s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.trust-vbars {
  display: flex;
  gap: 4px;
  margin-top: 20px;
}
.trust-vbars span {
  height: 3px;
  transition: width 0.5s var(--ease-motion);
}
.trust-vbars span:nth-child(1) { width: 48px; background: var(--scarlet); }
.trust-vbars span:nth-child(2) { width: 36px; background: var(--saffron); }
.trust-vbars span:nth-child(3) { width: 26px; background: var(--blue); }
.trust-vbars span:nth-child(4) { width: 18px; background: var(--emerald); }


/* ── Feature Cards (navy bg grid) ─────────────────────────────────── */
.features-section {
  background: var(--navy);
  padding: 100px 0;
  color: #fff;
}
.features-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.feat-card {
  background: var(--navy);
  padding: 36px 32px;
  border-top: 3px solid transparent;
  transition: background 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.feat-card:hover { background: #1f2d57; }
.feat-card:nth-child(1) { border-top-color: var(--scarlet); }
.feat-card:nth-child(2) { border-top-color: var(--saffron); }
.feat-card:nth-child(3) { border-top-color: var(--blue); }
.feat-card:nth-child(4) { border-top-color: var(--emerald); }
.feat-card:nth-child(5) { border-top-color: var(--scarlet); }
.feat-card:nth-child(6) { border-top-color: var(--saffron); }

.feat-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-weight: 500;
}
.feat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feat-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.feat-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.48);
  font-weight: 400;
}
.feat-card .code-tag {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--saffron);
  background: rgba(244,162,97,0.1);
  padding: 1px 5px;
}


/* ── How It Works / Steps ─────────────────────────────────────────── */
.how-section { background: var(--cream); padding: 100px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  background: var(--border);
}
.step {
  background: var(--cream);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.step-num-bg {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 10rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--navy);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
  position: relative;
}
.step:nth-child(1) .step-badge { background: var(--scarlet); color: #fff; }
.step:nth-child(2) .step-badge { background: var(--saffron); color: #fff; }
.step:nth-child(3) .step-badge { background: var(--blue);    color: #fff; }

.step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.step p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.step .code-tag {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--blue);
  background: rgba(69,123,157,0.1);
  padding: 1px 5px;
}


/* ── Feature Detail Sections ──────────────────────────────────────── */
.fd-section { padding: 100px 0; }
.fd-section.bg-white { background: var(--white); }
.fd-section.bg-cream { background: var(--cream); }

.fd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* CSS-based scroll reveal (no Motion dependency — Firefox-safe) */
.fd-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-motion), transform 0.65s var(--ease-motion);
}
.fd-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.fd-text .eyebrow { color: var(--text-muted); }
.fd-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.fd-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.fd-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fd-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.fd-bullets li::before {
  content: '';
  display: block;
  width: 16px;
  height: 3px;
  background: var(--scarlet);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Visual panel with navy header + color bars */
.visual-panel {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: 16px;
}
.visual-panel-header {
  background: var(--navy);
  padding: 0;
}
.visual-panel-bars {
  display: flex;
}
.visual-panel-bars span {
  height: 4px;
  flex: 1;
}
.visual-panel-bars span:nth-child(1) { background: var(--scarlet); }
.visual-panel-bars span:nth-child(2) { background: var(--saffron); }
.visual-panel-bars span:nth-child(3) { background: var(--blue); }
.visual-panel-bars span:nth-child(4) { background: var(--emerald); }
.visual-panel-label {
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.visual-panel-body { padding: 20px; }


/* ── Metrics Section ──────────────────────────────────────────────── */
.metrics-section {
  background: var(--scarlet);
  padding: 80px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.12);
}
.metric-card {
  background: var(--scarlet);
  padding: 56px 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.metric-card:last-child { border-right: none; }
.metric-bars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 24px;
}
.metric-bars span {
  height: 3px;
  border-radius: 0;
}
.metric-bars span:nth-child(1) { width: 32px; background: rgba(255,255,255,0.9); }
.metric-bars span:nth-child(2) { width: 24px; background: rgba(255,255,255,0.55); }
.metric-bars span:nth-child(3) { width: 16px; background: rgba(255,255,255,0.3); }

.metric-value {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.metric-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* ── Testimonials ─────────────────────────────────────────────────── */
.testi-section { background: var(--white); padding: 100px 0; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.testi-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-top: none;
  position: relative;
}
.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.testi-card:nth-child(1)::before { background: var(--scarlet); }
.testi-card:nth-child(2)::before { background: var(--saffron); }
.testi-card:nth-child(3)::before { background: var(--blue); }
.testi-card:nth-child(4)::before { background: var(--emerald); }

.testi-stars {
  color: var(--saffron);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testi-quote {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 28px;
  font-style: italic;
}
.testi-meta { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.testi-card:nth-child(1) .testi-avatar { background: var(--scarlet); }
.testi-card:nth-child(2) .testi-avatar { background: var(--saffron); }
.testi-card:nth-child(3) .testi-avatar { background: var(--blue); }
.testi-card:nth-child(4) .testi-avatar { background: var(--emerald); }
.testi-name { font-weight: 700; font-size: 0.875rem; color: var(--navy); }
.testi-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }


/* ── CTA Section ──────────────────────────────────────────────────── */
.cta-section { background: var(--navy); padding: 100px 0; color: #fff; }
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
  line-height: 1.7;
}
.cta-vbars { margin: 32px auto 40px; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.cta-vbars .vbar { margin: 0 auto; }
.cta-vbars .vbar-1 { background: rgba(255,255,255,0.7); }
.cta-vbars .vbar-2 { background: rgba(255,255,255,0.45); }
.cta-vbars .vbar-3 { background: rgba(255,255,255,0.25); }
.cta-vbars .vbar-4 { background: rgba(255,255,255,0.12); }

.cta-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto 16px;
}
.cta-input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  font-family: var(--font);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  border-radius: 0;
}
.cta-input::placeholder { color: rgba(255,255,255,0.3); }
.cta-input:focus { border-color: rgba(255,255,255,0.4); }
.cta-submit {
  height: 52px;
  padding: 0 28px;
  background: var(--scarlet);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  border-radius: 0;
}
.cta-submit:hover { background: #cc2f3b; }
.cta-disclaimer { font-size: 0.74rem; color: rgba(255,255,255,0.3); }


/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-moonshot {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  font-weight: 400;
}
.footer-moonshot strong {
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }


/* ── Responsive — Components ──────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-inner .btn-scarlet { padding: 8px 16px; font-size: 0.75rem; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub { max-width: 100%; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { text-align: center; }
  .hero-moonshot { display: flex; justify-content: center; }
  .hero-vbars { display: flex; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; background: none; gap: 16px; }
  .fd-grid { grid-template-columns: 1fr; gap: 48px; }
  .testi-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; background: none; gap: 2px; }
  .metric-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .features-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-form { flex-direction: column; gap: 0; max-width: 100%; }
  .cta-input { flex: none; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); width: 100%; height: 52px; }
  .cta-submit { height: 52px; width: 100%; }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-title { font-size: 2.4rem; }
  .hero-inner { gap: 36px; }
  .cta-inner h2 { font-size: 1.9rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
