@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --fm-red: #ff1717;
  --fm-red-dark: #b90000;
  --fm-black: #050505;
  --fm-panel: #101010;
  --fm-panel-2: #161616;
  --fm-border: rgba(255,255,255,.10);
  --fm-text: #f7f7f7;
  --fm-muted: #a8a8a8;
  --fm-shadow: 0 20px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 0%, rgba(255,23,23,.10), transparent 30rem),
    var(--fm-black);
  color: var(--fm-text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 9999;
}

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

img { max-width: 100%; }

h1, h2, h3, .navbar-brand, .footer-brand, .plan-name, .price {
  font-family: "Barlow Condensed", sans-serif;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: .95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

h3 { font-weight: 800; }

.fw-black { font-weight: 900; }

.text-secondary { color: var(--fm-muted) !important; }

.section-space { padding: 7rem 0; }

.section-heading { max-width: 760px; }

.section-heading p { color: var(--fm-muted); font-size: 1.05rem; }

.section-kicker {
  display: inline-block;
  color: var(--fm-red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}

.btn {
  border-radius: .35rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  --bs-btn-bg: var(--fm-red);
  --bs-btn-border-color: var(--fm-red);
  --bs-btn-hover-bg: #e50b0b;
  --bs-btn-hover-border-color: #e50b0b;
  --bs-btn-active-bg: var(--fm-red-dark);
  --bs-btn-active-border-color: var(--fm-red-dark);
  box-shadow: 0 10px 30px rgba(255,23,23,.18);
}

.navbar {
  padding: 1rem 0;
  background: rgba(5,5,5,.48);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}

.navbar.scrolled {
  padding: .65rem 0;
  background: rgba(5,5,5,.92);
  border-color: var(--fm-border);
}

.navbar-brand {
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.03em;
}

.navbar-brand span span,
.footer-brand span span { color: var(--fm-red); }

.nav-link {
  color: rgba(255,255,255,.72);
  font-size: .93rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active { color: #fff; }

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--fm-border);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,1) 0%, rgba(5,5,5,.88) 38%, rgba(5,5,5,.25) 76%, rgba(5,5,5,.9) 100%),
    repeating-linear-gradient(110deg, transparent 0 80px, rgba(255,255,255,.018) 82px 83px);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(transparent, #050505);
}

.hero-section .container { z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .75rem;
  border: 1px solid var(--fm-border);
  border-radius: 999px;
  color: #ddd;
  background: rgba(255,255,255,.035);
  font-size: .82rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fm-red);
  box-shadow: 0 0 0 0 rgba(255,23,23,.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255,23,23,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,23,23,0); }
}

.hero-section h1 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: -.04em;
  text-shadow: 0 10px 40px rgba(0,0,0,.6);
}

.hero-section h1 span { color: var(--fm-red); }

.hero-copy {
  max-width: 640px;
  color: #c1c1c1;
  font-size: 1.16rem;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--fm-red);
  padding-left: .85rem;
}

.hero-stats strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--fm-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.hero-logo-wrap {
  position: relative;
  isolation: isolate;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(100%, 670px);
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.75));
}

.hero-ring {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,23,23,.35);
  left: 50%;
  top: 43%;
  transform: translate(-50%,-50%);
  box-shadow:
    0 0 60px rgba(255,23,23,.08),
    inset 0 0 60px rgba(255,23,23,.05);
}

.hero-ring::before,
.hero-ring::after {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.05);
}

.hero-ring::after {
  inset: -52px;
  border-color: rgba(255,23,23,.09);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  transform: translateX(-50%);
  color: #888;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-cue i { color: var(--fm-red); animation: bounce 1.5s infinite; }

@keyframes bounce {
  50% { transform: translateY(5px); }
}

.feature-card,
.pricing-card {
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--fm-border);
  border-radius: 1rem;
  box-shadow: var(--fm-shadow);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.feature-card:hover,
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,23,23,.4);
  background: linear-gradient(145deg, rgba(255,23,23,.08), rgba(255,255,255,.02));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.4rem;
  border-radius: .75rem;
  color: var(--fm-red);
  background: rgba(255,23,23,.10);
  border: 1px solid rgba(255,23,23,.2);
  font-size: 1.45rem;
}

.feature-card h3 { font-size: 1.6rem; text-transform: uppercase; }

.feature-card p { color: var(--fm-muted); margin-bottom: 0; }

.trainer-section,
.nutrition-section {
  position: relative;
  background: #090909;
  border-top: 1px solid var(--fm-border);
  border-bottom: 1px solid var(--fm-border);
}

.check-list {
  display: grid;
  gap: 1rem;
}

.check-list div {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #d8d8d8;
}

.check-list i {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--fm-red);
  color: white;
  font-size: .68rem;
}

.chat-shell {
  overflow: hidden;
  max-width: 580px;
  margin-inline: auto;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 1.1rem;
  background: #111;
  box-shadow: 0 28px 80px rgba(0,0,0,.55), 0 0 60px rgba(255,23,23,.07);
}

.chat-header,
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #171717;
  border-bottom: 1px solid var(--fm-border);
}

.chat-header strong { display: block; }

.chat-header small { display: block; color: #888; }

.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #21d66b;
}

.chat-body {
  min-height: 360px;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(255,255,255,.012), rgba(255,255,255,.012)),
    radial-gradient(circle at 80% 20%, rgba(255,23,23,.08), transparent 18rem);
}

.message {
  max-width: 82%;
  padding: .95rem 1rem;
  margin-bottom: 1rem;
  border-radius: .85rem;
  font-size: .93rem;
}

.user-message {
  margin-left: auto;
  background: var(--fm-red);
  color: #fff;
  border-bottom-right-radius: .2rem;
}

.ai-message {
  background: #202020;
  border: 1px solid var(--fm-border);
  color: #ddd;
  border-bottom-left-radius: .2rem;
}

.ai-message i { margin-top: .3rem; color: var(--fm-red); }

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.quick-options button {
  padding: .48rem .7rem;
  border: 1px solid rgba(255,23,23,.45);
  border-radius: 999px;
  background: transparent;
  color: #ddd;
  font-size: .76rem;
  transition: .2s ease;
}

.quick-options button:hover {
  background: var(--fm-red);
  color: white;
}

.chat-input {
  border-top: 1px solid var(--fm-border);
  border-bottom: 0;
  color: #777;
  font-size: .86rem;
}

.chat-input button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--fm-red);
  color: white;
}

.text-link {
  color: #fff;
  font-weight: 800;
}

.text-link i { color: var(--fm-red); margin-left: .35rem; }

.program-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 450px;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--fm-border);
  border-radius: 1rem;
  box-shadow: var(--fm-shadow);
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.92)),
    radial-gradient(circle at 60% 20%, rgba(255,23,23,.35), transparent 18rem),
    #171717;
  transition: transform .3s ease, border-color .3s ease;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    repeating-linear-gradient(125deg, transparent 0 35px, rgba(255,255,255,.025) 36px 37px);
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,23,23,.55);
}

.program-card > div,
.program-badge { position: relative; z-index: 2; }

.program-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .72rem;
  font-weight: 800;
}

.program-card small {
  color: var(--fm-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.program-card h3 {
  margin: .15rem 0 .7rem;
  font-size: 2.4rem;
  text-transform: uppercase;
}

.program-card p { color: #b7b7b7; }

.program-card a { font-weight: 800; }

.program-card a i { color: var(--fm-red); margin-left: .4rem; }

.program-fatloss {
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.92)),
    radial-gradient(circle at 30% 18%, rgba(255,23,23,.25), transparent 18rem),
    #151515;
}

.program-home {
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.92)),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.11), transparent 20rem),
    #131313;
}

.nutrition-points {
  display: grid;
  gap: .8rem;
  padding-left: 1.2rem;
  color: #d1d1d1;
}

.nutrition-points li::marker { color: var(--fm-red); }

.macro-card {
  padding: 2rem;
  border: 1px solid var(--fm-border);
  border-radius: 1rem;
  background: linear-gradient(145deg, #171717, #0c0c0c);
  box-shadow: var(--fm-shadow);
}

.macro-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.macro-card-top small {
  color: var(--fm-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.macro-card-top h3 { font-size: 2.5rem; margin: 0; }

.goal-pill {
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255,23,23,.1);
  border: 1px solid rgba(255,23,23,.28);
  color: var(--fm-red);
  font-size: .75rem;
  font-weight: 800;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  text-align: center;
}

.macro-ring {
  display: grid;
  place-items: center;
  width: 130px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: conic-gradient(var(--fm-red) calc(var(--value)*1%), #2a2a2a 0);
  position: relative;
}

.macro-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #121212;
}

.macro-ring span {
  position: relative;
  z-index: 2;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.macro-footer {
  margin-top: 1.7rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fm-border);
  color: var(--fm-muted);
}

.macro-footer i { color: var(--fm-red); margin-right: .5rem; }

.pricing-card { position: relative; }

.pricing-card.featured {
  border-color: var(--fm-red);
  transform: translateY(-12px);
  box-shadow: 0 25px 80px rgba(255,23,23,.12);
}

.pricing-card.featured:hover { transform: translateY(-18px); }

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--fm-red);
  color: white;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.plan-name {
  color: var(--fm-red);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.price {
  margin: .5rem 0;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--fm-muted);
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  font-weight: 500;
}

.pricing-card p { color: var(--fm-muted); }

.pricing-card ul {
  display: grid;
  gap: .8rem;
  min-height: 184px;
  padding: 1rem 0;
  list-style: none;
}

.pricing-card li { color: #d2d2d2; }

.pricing-card li i {
  width: 22px;
  color: var(--fm-red);
}

.cta-section { padding: 3rem 0 7rem; }

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255,23,23,.98), rgba(155,0,0,.98)),
    var(--fm-red);
  box-shadow: 0 30px 90px rgba(255,23,23,.20);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 70px, rgba(255,255,255,.05) 72px 74px);
}

.cta-card > * { position: relative; z-index: 2; }

.cta-card .section-kicker { color: white; opacity: .8; }

.cta-card h2 { max-width: 800px; margin-inline: auto; }

.cta-card p {
  max-width: 680px;
  margin: 1rem auto 1.75rem;
  color: rgba(255,255,255,.84);
}

.site-footer {
  padding: 4rem 0 2rem;
  background: #050505;
  border-top: 1px solid var(--fm-border);
}

.footer-brand {
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 900;
}

.site-footer p,
.footer-bottom { color: #777; }

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #999;
  font-size: .88rem;
}

.footer-links a:hover { color: white; }

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--fm-border);
  border-radius: 50%;
  color: #ccc;
  transition: .2s ease;
}

.social-links a:hover {
  color: white;
  border-color: var(--fm-red);
  background: var(--fm-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fm-border);
  font-size: .75rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .5rem;
  background: var(--fm-red);
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(130px);
  background: rgba(255,23,23,.055);
  pointer-events: none;
}

.page-glow-one { top: 20%; right: -200px; }
.page-glow-two { bottom: 10%; left: -250px; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: .8rem;
    padding: 1rem;
    background: rgba(10,10,10,.98);
    border: 1px solid var(--fm-border);
    border-radius: .75rem;
  }

  .hero-section {
    padding-top: 7rem;
    text-align: center;
  }

  .hero-section::before {
    background: linear-gradient(rgba(5,5,5,.42), rgba(5,5,5,.95));
  }

  .hero-logo { width: min(86vw, 560px); }

  .hero-copy { margin-inline: auto; }

  .hero-stats { text-align: left; }

  .pricing-card.featured { transform: none; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .section-space { padding: 5rem 0; }

  .hero-section h1 { font-size: clamp(3.6rem, 17vw, 5rem); }

  .hero-logo { width: 100%; }

  .macro-grid { gap: .5rem; }

  .macro-ring { width: 92px; }

  .macro-card { padding: 1.25rem; }

  .macro-card-top h3 { font-size: 2rem; }

  .program-card { min-height: 390px; }

  .footer-links,
  .social-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
