/* Custom styles for Stay Better Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --sb-lime: #cff034;
  --sb-lime-hover: #bce020;
  --sb-dark-bg: #0b0f12;
  --sb-text-muted: #94a3b8;
  --sb-border-light: rgba(255, 255, 255, 0.15);
  --sb-glass-bg: rgba(18, 24, 28, 0.65);
  --sb-blue-accent: #1e40af;
  --sb-teal-accent: #0d9488;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--sb-dark-bg);
  color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navbar */
.sb-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sb-logo-container {
  display: flex;
  align-items: center;
  padding-right: 1.5rem;
  border-right: 1px solid var(--sb-border-light);
}

.sb-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.sb-btn-waitlist-nav {
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sb-btn-waitlist-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Hero Section Container */
.sb-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: url('../images/banner.jpg') no-repeat center center / cover;
  padding-top: 10rem;
}

/* Overlay dark vignette to gradient */
.sb-hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg,
      rgba(11, 15, 18, 0.55) 0%,
      rgba(11, 15, 18, 0.4) 30%,
      rgba(11, 15, 18, 0.85) 70%,
      rgba(11, 15, 18, 0.98) 100%); */
  z-index: 1;
}

.sb-hero-content {
  position: relative;
  z-index: 2;
}

/* Typography & Subtitle */
.sb-subtitle {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #cbd5e1;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.sb-hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.sb-hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 520px;
  font-weight: 400;
}

.sb-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 1.5rem 0;
  max-width: 420px;
}

/* Waitlist Form Inputs */
.sb-waitlist-form {
  max-width: 500px;
  margin-top: 2rem;
}

.sb-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.4rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease;
}

.sb-input-group:focus-within {
  border-color: rgba(207, 240, 52, 0.6);
  box-shadow: 0 0 0 3px rgba(207, 240, 52, 0.15);
}

.sb-email-input {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.sb-email-input::placeholder {
  color: #94a3b8;
}

.sb-btn-submit {
  background-color: var(--sb-lime);
  color: #0b0f12;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-btn-submit:hover {
  background-color: var(--sb-lime-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(207, 240, 52, 0.35);
}

.sb-btn-submit:active {
  transform: scale(0.98);
}

.sb-form-note {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.85rem;
  font-weight: 400;
}

/* 4 Feature Columns Bar */
.sb-feature-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--sb-border-light);
  border-bottom: 1px solid var(--sb-border-light);
  /* background: rgba(11, 15, 18, 0.6); */
  backdrop-filter: blur(10px);
  margin-top: 4rem;
}

.sb-feature-col {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  border-right: 1px solid var(--sb-border-light);
  transition: background 0.3s ease;
}

.sb-feature-col:last-child {
  border-right: none;
}

.sb-feature-col:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Bottom Ticker Marquee Ribbon Wrapper */
.sb-ticker-wrapper {
  background-color: #ffffff;
  padding: 20px;
}

/* Bottom Ticker Marquee Ribbon */
.sb-ticker-ribbon {
  position: relative;
  z-index: 3;
  background-color: var(--sb-lime);
  color: #0b0f12;
  padding: 0.85rem 0;
  overflow: hidden;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sb-ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.sb-ticker-ribbon:hover .sb-ticker-track {
  animation-play-state: paused;
}

.sb-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 4.5rem;
  padding: 0 3.5rem;
}

.sb-ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #0b0f12;
  border-radius: 50%;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   SECTION 2: THE FORMULA
   ========================================================================== */
.sb-formula-section {
  background-color: #ffffff;
  color: #0f172a;
  padding: 70px 0;
  position: relative;
}

.sb-formula-badge {
  display: inline-block;
  background-color: #e6f4f1;
  color: #0d5c58;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.sb-formula-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sb-formula-title .highlight-blue {
  color: var(--sb-blue-accent);
}

.sb-formula-subtitle {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 4rem auto;
}

/* Nutrient List Container & Hover Image Popup */
.sb-formula-content-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.sb-hover-popup-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 150px;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
  opacity: 0;
}

.sb-hover-popup-container.active {
  opacity: 1;
}

.sb-popup-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 0px solid #ffffff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Nutrient List */
.sb-nutrient-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0;
}

.sb-nutrient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem 1.25rem 175px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  position: relative;
}

.sb-nutrient-item:hover,
.sb-nutrient-item.active {
  background-color: #f7f7f4;
}

.sb-nutrient-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.sb-nutrient-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.25s ease;
}

.sb-nutrient-item:hover .sb-nutrient-name,
.sb-nutrient-item.active .sb-nutrient-name {
  color: var(--sb-blue-accent);
}

.sb-nutrient-subtext {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 400;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.sb-nutrient-item.active .sb-nutrient-subtext,
.sb-nutrient-item:hover .sb-nutrient-subtext {
  display: block;
}

.sb-nutrient-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  transition: color 0.25s ease;
}

.sb-nutrient-item:hover .sb-nutrient-value,
.sb-nutrient-item.active .sb-nutrient-value {
  color: var(--sb-teal-accent);
}

/* ==========================================================================
   SECTION 3: ATHLETE LIFESTYLE DUAL GALLERY ANIMATIONS
   ========================================================================== */
section#gallery,
.sb-gallery-section {
  background: #ffffff;
  padding: 80px 0;
  overflow: hidden;
}

.sb-gallery-section .row {
  perspective: 1000px;
}

.sb-gallery-card {
  position: relative;
  overflow: hidden;
  background-color: #f8fafc;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
  will-change: transform, box-shadow, opacity;
}

/* Revealed active state on scroll */
.sb-gallery-card.revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Glass Shine Overlay on Hover */
.sb-gallery-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(60deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.sb-gallery-card:hover::after {
  opacity: 1;
  transform: translateX(320%) rotate(25deg);
}

.sb-gallery-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;

  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  will-change: transform;
}

/* Hover State Animations */
.sb-gallery-card:hover {
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
  border-color: rgba(207, 240, 52, 0.6);
}

.sb-gallery-card:hover .sb-gallery-img {
  transform: scale(1.08);
  filter: brightness(1.04) contrast(1.02);
}

/* ==========================================================================
   SECTION 4: OUR BELIEF & FOUR PILLARS
   ========================================================================== */
.sb-belief-section {
  background-color: #0c2374;
  color: #ffffff;
  padding: 6rem 0 6rem 0;
  position: relative;
}

.sb-belief-badge {
  font-family: var(--sb-font-main);
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sb-belief-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sb-belief-title .highlight-lime {
  color: var(--sb-lime);
}

.sb-belief-subtitle {
  font-family: var(--sb-font-main);
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 3.5rem auto;
}

/* 4 Pillars Grid & Cards */
.sb-pillars-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.sb-pillar-card {
  position: relative;
  /* height: 420px;
  min-height: 380px; */
  overflow: hidden;
  border-radius: 0px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.sb-pillar-card:hover,
.sb-pillar-card.active {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.sb-pillar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-pillar-card:hover .sb-pillar-img,
.sb-pillar-card.active .sb-pillar-img {
  transform: scale(1.08);
}

.sb-pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sb-pillar-card:hover .sb-pillar-overlay,
.sb-pillar-card.active .sb-pillar-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.95) 100%);
}

.sb-pillar-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.5rem;
  text-align: left;
  z-index: 2;
}

.sb-pillar-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-transform: lowercase;
  font-family: 'Archivo', sans-serif;
  letter-spacing: -0.5px;
}

.sb-pillar-desc {
  font-family: var(--sb-font-main);
  font-size: 0.925rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  margin-top: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.35s ease;
}

.sb-pillar-card:hover .sb-pillar-desc,
.sb-pillar-card.active .sb-pillar-desc {
  opacity: 1;
  max-height: 140px;
  transform: translateY(0);
  margin-top: 0.5rem;
}

/* Bottom CTA Box */
.sb-belief-cta-box {
  margin-top: 3.5rem;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.sb-belief-cta-text {
  font-family: var(--sb-font-main);
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

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

/* Toast/Alert custom styling */
.sb-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--sb-lime);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Responsive Styles */
@media (max-width: 991.98px) {
  .sb-feature-col {
    border-right: none;
    border-bottom: 1px solid var(--sb-border-light);
  }

  .sb-feature-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767.98px) {
  .sb-nutrient-list {
    padding-left: 0;
  }

  .sb-nutrient-item {
    padding: 1rem 1.25rem !important;
    gap: 0.75rem;
  }

  .sb-hover-popup-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .sb-nutrient-info {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .sb-nutrient-name {
    font-size: 1.2rem;
  }

  .sb-nutrient-value {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .sb-hero-section {
    padding-top: 8rem;
  }

  .sb-input-group {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.6rem;
  }

  .sb-btn-submit {
    width: 100%;
    border-radius: 12px;
  }

  .sb-email-input {
    text-align: center;
  }
}

/* ==========================================================================
   SECTION 5: FAQ ("BEFORE YOU ASK")
   ========================================================================== */
.sb-faq-section {
  background-color: #ffffff;
  color: #0f172a;
  padding: 70px 0;
}

.sb-faq-badge {
  font-family: var(--sb-font-main);
  display: inline-block;
  background-color: #e6f4f1;
  color: #0d5c58;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.sb-faq-title {
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1px;
  line-height: 1.15;
}

.sb-faq-title .highlight-blue {
  color: var(--sb-blue-accent);
}

/* Accordion Styles */
.sb-faq-accordion {
  display: flex;
  flex-direction: column;
}

.sb-faq-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 1.5rem 0;
  transition: all 0.2s ease;
}

.sb-faq-item:first-child {
  padding-top: 0;
}

.sb-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.sb-faq-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.sb-faq-toggle-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.3s ease;
  line-height: 1;
}

.sb-faq-item.active .sb-faq-toggle-icon {
  background-color: #0c2374;
  color: #ffffff;
}

.sb-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding-top 0.3s ease;
  font-family: var(--sb-font-main);
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.6;
}

.sb-faq-item.active .sb-faq-body {
  max-height: 300px;
  padding-top: 1rem;
}

/* ==========================================================================
   SECTION 6: FOOTER
   ========================================================================== */
.sb-footer {
  background-color: #0c2374;
  color: #ffffff;
  padding: 5rem 0 4rem 0;
  text-align: center;
}

.sb-footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 1.5rem;
}

.sb-footer-text {
  font-family: var(--sb-font-main);
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
}

.sb-footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.sb-social-icon {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sb-social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.radius-5 {
  border-radius: 5px;
}