/* HEALTHHUSTLEACADEMY.COM — Design System & Styles */
/* Version 1.0 · March 2026 */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@300;400;500;700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ── COLORS (from firstil.md) ── */
  --bg-primary:    #0D1117;
  --bg-secondary:  #161B22;
  --bg-tertiary:   #21262D;
  --bg-overlay:    #0A0C10;
  --bg-deep-green: #052E16;

  --emerald:        #10B981;
  --emerald-hover:  #059669;
  --emerald-light:  #34D399;
  --emerald-muted:  #064E3B;
  --emerald-glow:   rgba(16,185,129,0.15);

  --text-primary:   #F0F6FC;
  --text-secondary: #C9D1D9;
  --text-muted:     #8B949E;
  --text-disabled:  #484F58;

  --border:         #30363D;
  --border-subtle:  #21262D;
  --border-accent:  #10B981;

  --color-price:    #F0F6FC;
  --color-sale:     #F85149;
  --color-stars:    #F0B429;

  /* ── TYPOGRAPHY ── */
  --size-hero:     clamp(44px, 11vw, 96px);
  --size-h1:       clamp(28px, 3.5vw, 48px);
  --size-h2:       clamp(22px, 2.5vw, 36px);
  --size-body:     16px;
  --size-small:    13px;

  /* ── SPACING ── */
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
}

/* ── BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, .headline {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--text-primary);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-family: 'Anton', sans-serif;
  font-size: var(--size-hero);
  line-height: 1.0;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

/* ── HEADER & NAV ── */
.announcement-bar {
  background: var(--bg-deep-green);
  color: var(--emerald-light);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.announcement-bar span {
  display: inline-block;
  white-space: nowrap;
}

.nav {
  height: 72px;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

@media (min-width: 993px) {
  .logo {
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  font-family: 'Barlow Condensed';
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--emerald);
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  color: var(--text-primary);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-content {
    position: relative;
  }
}

/* ── COMPONENTS ── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: 48px;
}

.btn-primary {
  background-color: var(--emerald);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--emerald-hover);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.btn-primary::after {
  content: "";
  margin-left: 8px;
  font-weight: 300;
  transition: transform 0.2s;
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

/* Shimmer effect for primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: none;
  padding: 10px 0;
}

.btn-ghost:hover {
  color: var(--emerald);
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: var(--space-6);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald);
}

/* ── UTILITIES ── */
.animate-in {
  opacity: 1;
}

.trust-strip {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

/* ── ANIMATIONS ── */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism */
.glass {
  background: rgba(13, 17, 23, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.product-card.glass:hover {
  background: rgba(13, 17, 23, 0.8) !important;
  border-color: var(--emerald) !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

/* Staggered Animations */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
}

.animate-stagger.visible > * {
  animation: staggerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes staggerFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.animate-stagger.visible > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger.visible > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger.visible > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger.visible > *:nth-child(4) { animation-delay: 0.4s; }

/* ── CART DRAWER ── */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%; max-width: 450px; height: 100%;
  background: var(--bg-primary);
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 50px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* ── UTILITIES ── */
.text-emerald { color: var(--emerald); }
.text-muted { color: var(--text-muted); }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* ── SECTIONS ── */

/* Trust Strip */
.trust-strip {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding: var(--space-8) 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.trust-icon {
  color: var(--emerald);
  flex-shrink: 0;
}

.trust-text {
  font-family: 'Inter', sans-serif;
}

.trust-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.trust-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Problem Section */
.problem-section {
  background-color: var(--bg-primary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.problem-item {
  position: relative;
}

.problem-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 80px;
  color: var(--emerald);
  opacity: 0.4;
  line-height: 1;
}

.problem-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-top: -20px;
  margin-bottom: var(--space-4);
}

/* Offer Section */
.offer-section {
  background-color: var(--bg-secondary);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.offer-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  background-color: var(--emerald);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-price {
  margin: 32px 0;
}

.price-old {
  color: var(--text-disabled);
  text-decoration: line-through;
  font-size: 18px;
}

.price-new {
  color: var(--text-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 48px;
  margin-left: 12px;
}

.checklist {
  margin: 24px 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--emerald);
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-toggle {
    display: block;
    color: var(--text-primary);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .offer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .offer-badges {
    justify-content: center;
  }
  .checklist {
    display: inline-block;
    text-align: left;
  }
}

/* How It Works Section */
.how-it-works {
  background-color: var(--bg-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-16);
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--emerald);
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}

.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: var(--space-2);
}

.step-text {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Results Section */
.results-section {
  background-color: var(--bg-primary);
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--emerald);
}

.stars {
  color: var(--color-stars);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.review-card {
  background-color: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.review-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.review-quote {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.result-badge {
  display: inline-block;
  background-color: rgba(16,185,129,0.12);
  color: var(--emerald);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(16,185,129,0.4);
  align-self: flex-start;
}

/* Shop By Goal */
.shop-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
}

.tab-btn.active {
  background-color: var(--emerald);
  color: #000;
  border-color: var(--emerald);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: 40px;
}

.product-card {
  background-color: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
}

/* Responsive updates */
@media (max-width: 992px) {
  .steps-grid, .results-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Guarantee Section */
.guarantee-section {
  background-color: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guarantee-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Anton', sans-serif;
  font-size: 400px;
  color: #fff;
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
}

.guarantee-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.shield-icon {
  color: var(--emerald);
  margin-bottom: var(--space-8);
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-secondary);
}

.faq-container {
  max-width: 760px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-question {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-muted);
  border-left: 2px solid var(--emerald);
  padding-left: 16px;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease, padding-top 0.4s ease;
  overflow: hidden;
  margin-top: 0;
}

.faq-answer > div {
  min-height: 0;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  margin-top: 16px;
  padding-top: 4px;
}

/* Email Capture */
.email-section {
  background-color: var(--bg-deep-green);
  padding: 80px 0;
}

.email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.email-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--emerald-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.email-input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: white;
  padding: 16px;
  border-radius: 2px;
  font-family: inherit;
}

.email-input:focus {
  outline: none;
  border-color: var(--emerald);
}

/* Final CTA */
.final-cta {
  background-color: #0A0C10;
  text-align: center;
}

.cta-large {
  font-size: clamp(72px, 12vw, 140px);
  margin-bottom: 12px;
}

/* Footer */
.footer {
  background-color: #0A0C10;
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--emerald);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive updates */
@media (max-width: 992px) {
  .email-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}

.cart-item {
  animation: cartItemEntry 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes cartItemEntry {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── GLOBAL ANIMATIONS (RECOVERY MODE: NO OPACITY 0) ── */
.animate-in {
  opacity: 1; /* Was 0 */
  transform: none; /* Was translateY(30px) */
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: none;
}

.fade-up {
  opacity: 1; /* Was 0 */
  transform: none; /* Was translateY(40px) */
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.animate-stagger span {
  display: block;
  opacity: 1; /* Was 0 */
  transform: none; /* Was translateY(30px) */
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-stagger.visible span {
  opacity: 1 !important;
  transform: none !important;
}

.animate-stagger.visible span {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.animate-stagger.visible span:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.visible span:nth-child(2) { transition-delay: 0.25s; }
.animate-stagger.visible span:nth-child(3) { transition-delay: 0.4s; }

/* Feature Grid (Gymshark/WHOOP Style) */
.feature-item {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-8px);
  border-color: var(--emerald);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

#formatted-description {
  max-width: 800px;
  margin: 0 auto;
}

#formatted-description h4 {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin: 64px 0 32px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--emerald);
  display: inline-block;
  padding-bottom: 8px;
}

#formatted-description ul {
  list-style: none;
  padding: 0;
}

#formatted-description li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

#formatted-description li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 900;
}

/* Custom PDP Scroll Animations */
.animate-in {
  opacity: 1; /* Guaranteed visibility */
  transform: translateY(0);
}

.visible.animate-in {
  animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes premiumFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Variant Pill Premium State */
.variant-pill {
    transition: all 0.2s ease;
}
.variant-pill.active {
    border-color: var(--emerald) !important;
    background: rgba(16, 185, 129, 0.05) !important;
    box-shadow: 0 0 0 1px var(--emerald);
}
