/* ══════════════════════════════════════════════════════════════
   COMPONENTS — Buttons, Cards, Badges, Pills, FAQ, Steps
   ══════════════════════════════════════════════════════════════ */

/* ── D1. Buttons ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF4E46 0%, #E8342C 100%);
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: var(--shadow-red-sm);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--clr-navy);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--clr-navy);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.btn-secondary:hover {
  background: var(--clr-border);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Solid secondary CTA for anchor (e.g. hero "How It Works") */
a.btn-secondary {
  color: var(--clr-navy);
  border: none;
  border-width: 0;
  border-style: none;
  border-color: transparent;
  border-image: none;
  background-color: var(--clr-bg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.btn-ghost:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.08);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── D2. Label / Badge Pills ── */

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-red);
  background: var(--clr-red-dim);
  border: 1px solid rgba(255,78,70,0.20);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.label-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-red);
  box-shadow: 0 0 6px var(--clr-red);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.label-pill--dark {
  border-color: rgba(255,78,70,0.40);
  background: rgba(255,78,70,0.12);
  color: var(--clr-red);
}

.badge-popular {
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--clr-red);
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 40px;
  transform: rotate(45deg);
  z-index: 2;
  line-height: 1.4;
}

.badge-challenge {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge-challenge--velocity {
  background: var(--clr-red-dim);
  color: var(--clr-red);
}

.badge-challenge--evolution {
  background: rgba(31,40,83,0.08);
  color: var(--clr-navy);
}

.badge-challenge--endurance {
  background: rgba(16,185,129,0.10);
  color: var(--clr-success);
}

/* ── D3. Cards ── */

.card-feature {
  background: #FFFFFF;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
}

.card-feature:hover {
  transform: translateY(-5px);
  border-top-color: var(--clr-red);
  box-shadow: var(--shadow-md);
}

.card-feature .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-red-dim);
  border: 1px solid rgba(255,78,70,0.18);
  color: var(--clr-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card-feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-feature p {
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* Pricing card */
.card-pricing {
  background: #FFFFFF;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base),
              border-color var(--duration-base);
}

.card-pricing:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,78,70,0.35);
}

.card-pricing.featured {
  border: 2px solid var(--clr-red);
  box-shadow: 0 0 0 1px var(--clr-red), var(--shadow-lg), 0 0 40px rgba(255,78,70,0.12);
  background: linear-gradient(160deg, #FFFCFC 0%, #FFFFFF 100%);
}

.card-pricing .account-size {
  font-weight: 800;
  font-size: 22px;
  color: var(--clr-navy);
  margin-bottom: 16px;
}

.card-pricing .price-block {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 4px;
}

.card-pricing .price-currency {
  font-weight: 700;
  font-size: 20px;
  color: var(--clr-red);
  line-height: 1.2;
  margin-bottom: 4px;
}

.card-pricing .price-amount {
  font-weight: 800;
  font-size: 44px;
  color: var(--clr-red);
  line-height: 1;
}

.card-pricing .price-suffix {
  font-weight: 400;
  font-size: 13px;
  color: var(--clr-muted);
  margin-bottom: 6px;
  margin-left: 4px;
}

.card-pricing .price-note {
  font-weight: 400;
  font-size: 11px;
  color: var(--clr-subtle);
  margin-top: 2px;
}

.card-pricing .divider {
  height: 1px;
  background: var(--clr-border);
  margin: 20px 0;
}

/* Testimonial card */
.card-testimonial {
  background: #FFFFFF;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-base) var(--ease-out);
}

.card-testimonial:hover {
  border-color: rgba(255,78,70,0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.card-testimonial .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--clr-gold);
  font-size: 16px;
}

.card-testimonial .quote {
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.card-testimonial .quote::before { content: '\201C'; }
.card-testimonial .quote::after  { content: '\201D'; }

.card-testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-testimonial .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,78,70,0.20);
  flex-shrink: 0;
}

.card-testimonial .author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--clr-navy);
  display: block;
}

.card-testimonial .author-role {
  font-weight: 400;
  font-size: 12px;
  color: var(--clr-muted);
}

/* ── D4. Pricing Feature List Item ── */

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  color: var(--clr-muted);
  padding: 6px 0;
}

.pricing-feature .check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--clr-success);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.pricing-feature .feature-value {
  margin-left: auto;
  font-weight: 600;
  font-size: 13px;
  color: var(--clr-navy);
  font-family: var(--font-mono);
}

/* ── D5. Step Card (How it Works) ── */

.step-card {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-red-dim);
  border: 1.5px solid rgba(255,78,70,0.25);
  font-weight: 900;
  font-size: 18px;
  color: var(--clr-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(255,78,70,0.05);
}

.step-icon {
  color: var(--clr-red);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.step-card h3 {
  font-weight: 700;
  font-size: 20px;
  color: var(--clr-navy);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ── D6. FAQ Accordion ── */

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast);
}

.faq-item.open {
  border-color: rgba(255,78,70,0.30);
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--clr-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  gap: 16px;
  line-height: 1.4;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-surface);
  color: var(--clr-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
  line-height: 1;
}

.faq-item.open .faq-toggle {
  background: var(--clr-red);
  color: #FFFFFF;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 15px;
  color: var(--clr-muted);
  line-height: 1.75;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 24px;
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE SECTION LAYOUTS
   ══════════════════════════════════════════════════════════════ */

/* ── Hero (FXIFY-style centered layout) ── */

.hero-section {
  min-height: 100vh;
  background-color: var(--clr-dark-section);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1.2' cy='1.2' r='1.2' fill='rgba(31,40,83,0.07)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* FXIFY-style glowing arc (Monetro red accent) */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% -30%, rgba(255,78,70,0.15), rgba(255,78,70,0.04) 35%, transparent 65%);
  pointer-events: none;
}

/* Interactive globe background */
.hero-globe-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero-globe-bg canvas {
  pointer-events: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 72px);
  position: relative;
  z-index: 1;
}

/* Centered single-column layout */
.hero-grid--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero-content--centered {
  max-width: 720px;
}

.hero-content--centered .hero-sub,
.hero-content--centered .hero-ctas {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-content--centered .hero-sub {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* FXIFY-style pre-headline badge (thin outline) */
.hero-label-pill {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-content h1,
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--type-size-32), 6vw, var(--type-size-60));
  line-height: var(--line-height-72);
  font-weight: 600;
  color: var(--hero-headline-color);
  max-width: 580px;
}

.hero-grid--centered .hero-headline {
  max-width: 100%;
}

.hero-headline-accent {
  color: var(--clr-red);
}

.hero-sub {
  font-size: var(--type-size-16);
  line-height: var(--line-height-24);
  color: var(--clr-muted);
  max-width: 500px;
  margin: 24px 0 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#hero-cta-primary-mount {
  display: contents;
}

/* Outline button for secondary CTA (FXIFY "Explore Programs" style) */
.btn-outline {
  border: 2px solid var(--clr-navy);
  color: var(--clr-navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--clr-border);
  color: #FFFFFF;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--clr-muted);
  z-index: 2;
}

/* ── Stats Bar ── */

.stats-bar {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

.stats-col {
  padding: 0 16px;
}

.stats-divider {
  width: 1px;
  height: 48px;
  background: var(--clr-border);
}

/* ── USP Grid ── */

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Scroll reveal for feature-hero (React): ensure theme animation wins over bundle CSS */
.feature-hero .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.feature-hero .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature-hero cards: force theme look over bundle (white card, navy text) */
.feature-hero .card-feature {
  background: #FFFFFF !important;
  border: 1px solid var(--clr-border);
  border-top: 3px solid transparent;
  color: var(--clr-navy);
}

.feature-hero .card-feature h3 {
  color: var(--clr-navy);
}

.feature-hero .card-feature p {
  color: var(--clr-muted);
}

/* ── Steps Grid ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-red), transparent);
  opacity: 0.3;
}

/* ── Trust / About Layout ── */

.trust-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 64px;
  align-items: center;
}

.trust-content h2 {
  margin-bottom: 20px;
}

.trust-content p {
  color: var(--clr-muted);
  margin-bottom: 16px;
}

.trust-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trust-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  object-fit: cover;
  width: 100%;
  height: 200px;
  filter: grayscale(15%) brightness(0.92);
  transition: filter 0.4s;
}

.trust-img:hover {
  filter: grayscale(0%) brightness(1);
}

.trust-img--wide {
  grid-column: 1 / -1;
  height: 240px;
}

/* ── Testimonials Grid ── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── FAQ Layout ── */

.faq-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 64px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-sidebar h2 {
  margin-bottom: 16px;
}

.faq-sidebar p {
  color: var(--clr-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── CTA Banner ── */

.cta-banner {
  background: var(--clr-dark-section);
  padding: var(--section-pad-y) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(255,78,70,0.15), transparent),
    url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1.2' cy='1.2' r='1.2' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-micro {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.40);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Homepage Sections
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content h1,
  .hero-headline {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

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

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 64px;
  }

  .hero-grid {
    min-height: auto;
    padding: 48px 0 80px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stats-divider {
    display: none;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary,
  .hero-ctas .animated-shiny-cta-link {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner-actions .btn-primary,
  .cta-banner-actions .btn-ghost {
    width: 100%;
  }
}

/* ── Trust List ── */

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-list .check-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--clr-success);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-list span {
  font-size: 15px;
  color: var(--clr-body);
  line-height: 1.6;
}

/* ── Payout Card ── */

.payout-card {
  background: #FFFFFF;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  width: 200px;
  flex-shrink: 0;
  margin-right: 16px;
  box-shadow: var(--shadow-xs);
}

.payout-card .payout-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--clr-navy);
  margin-bottom: 4px;
}

.payout-card .payout-amount {
  font-weight: 800;
  font-size: 22px;
  color: var(--clr-success);
  margin-bottom: 6px;
}

.payout-card .payout-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--clr-muted);
}
