/* ========================================
   Global Styles
   ======================================== */

/* Make text look crisper and more legible in all browsers */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus state style for keyboard navigation for the focusable elements */
*[tabindex]:focus-visible,
input[type="file"]:focus-visible {
  outline: 0.125rem solid #4d65ff;
  outline-offset: 0.125rem;
}

/* Set color style to inherit */
.inherit-color * {
  color: inherit;
}

/* ========================================
   Rich Text Styles
   ======================================== */

/* Get rid of top margin on first element in any rich text element */
.w-richtext > :not(div):first-child,
.w-richtext > div:first-child > :first-child {
  margin-top: 0 !important;
}

/* Get rid of bottom margin on last element in any rich text element */
.w-richtext>:last-child,
.w-richtext ol li:last-child,
.w-richtext ul li:last-child {
  margin-bottom: 0 !important;
}

/* ========================================
   Container Alignment
   ======================================== */

/* Make sure containers never lose their center alignment */
.container-medium,
.container-small,
.container-large {
  margin-right: auto !important;
  margin-left: auto !important;
}

/* ========================================
   Text Utilities
   ======================================== */

/* Apply "..." after 3 lines of text */
.text-style-3lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Apply "..." after 2 lines of text */
.text-style-2lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ========================================
   Display Utilities
   ======================================== */

/* These classes are never overwritten */
.hide {
  display: none !important;
}

@media screen and (max-width: 991px) {
  .hide,
  .hide-tablet {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .hide-mobile-landscape {
    display: none !important;
  }
}

@media screen and (max-width: 479px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ========================================
   Spacing Utilities
   ======================================== */

.margin-0 {
  margin: 0rem !important;
}

.padding-0 {
  padding: 0rem !important;
}

.spacing-clean {
  padding: 0rem !important;
  margin: 0rem !important;
}

.margin-top {
  margin-right: 0rem !important;
  margin-bottom: 0rem !important;
  margin-left: 0rem !important;
}

.padding-top {
  padding-right: 0rem !important;
  padding-bottom: 0rem !important;
  padding-left: 0rem !important;
}

.margin-right {
  margin-top: 0rem !important;
  margin-bottom: 0rem !important;
  margin-left: 0rem !important;
}

.padding-right {
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
  padding-left: 0rem !important;
}

.margin-bottom {
  margin-top: 0rem !important;
  margin-right: 0rem !important;
  margin-left: 0rem !important;
}

.padding-bottom {
  padding-top: 0rem !important;
  padding-right: 0rem !important;
  padding-left: 0rem !important;
}

.margin-left {
  margin-top: 0rem !important;
  margin-right: 0rem !important;
  margin-bottom: 0rem !important;
}

.padding-left {
  padding-top: 0rem !important;
  padding-right: 0rem !important;
  padding-bottom: 0rem !important;
}

.margin-horizontal {
  margin-top: 0rem !important;
  margin-bottom: 0rem !important;
}

.padding-horizontal {
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
}

.margin-vertical {
  margin-right: 0rem !important;
  margin-left: 0rem !important;
}

.padding-vertical {
  padding-right: 0rem !important;
  padding-left: 0rem !important;
}

/* ========================================
   Responsive Typography
   ======================================== */

html {
  font-size: 1rem;
}

@media screen and (max-width: 1920px) {
  html {
    font-size: 1rem;
  }
}

@media screen and (max-width: 1440px) {
  html {
    font-size: calc(0.8126951092611863rem + 0.20811654526534862vw);
  }
}

@media screen and (max-width: 479px) {
  html {
    font-size: calc(0.7494769874476988rem + 0.8368200836820083vw);
  }
}

/* ========================================
   System-Wide Protection Card Styling
   ======================================== */

/* Apply Junicode font styling to all feature cards with number highlighting */

/* System-Wide Protection Card (Tab 1 - Features Section) */
.features-tab-link[data-w-tab="Tab 1"] h3,
.features-tab-link[data-w-tab="Tab 2"] h3,
.features-tab-link[data-w-tab="Tab 3"] h3 {
  font-family: var(--junicode), Junicode, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 120% !important;
  letter-spacing: -0.5px !important;
  text-transform: capitalize !important;
  color: var(--dark-orange) !important;
}

.features-tab-link[data-w-tab="Tab 1"] p,
.features-tab-link[data-w-tab="Tab 2"] p,
.features-tab-link[data-w-tab="Tab 3"] p {
  font-family: var(--junicode), Junicode, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 130% !important;
  letter-spacing: -0.2px !important;
  color: var(--text-grey) !important;
}

/* Problem Section Cards */
.features-tabs.bottom .features-tab-link[data-w-tab="Tab 1"] h3,
.features-tabs.bottom .features-tab-link[data-w-tab="Tab 2"] h3,
.features-tabs.bottom .features-tab-link[data-w-tab="Tab 4"] h3 {
  font-family: var(--junicode), Junicode, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 120% !important;
  letter-spacing: -0.5px !important;
  text-transform: capitalize !important;
  color: var(--dark-orange) !important;
}

.features-tabs.bottom .features-tab-link[data-w-tab="Tab 1"] p,
.features-tabs.bottom .features-tab-link[data-w-tab="Tab 2"] p,
.features-tabs.bottom .features-tab-link[data-w-tab="Tab 4"] p {
  font-family: var(--junicode), Junicode, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 130% !important;
  letter-spacing: -0.2px !important;
  color: var(--text-grey) !important;
}

/* Number Highlighting Styles */
.number-highlight {
  font-weight: 700 !important;
  color: var(--orange) !important;
  background: linear-gradient(135deg, var(--orange), #ff9b3f) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1.1em !important;
}

/* Percentage highlighting */
.percentage-highlight {
  font-weight: 700 !important;
  color: var(--orange) !important;
  background: linear-gradient(135deg, #ff6b35, var(--orange)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1.15em !important;
}

/* Million/Billion number highlighting */
.large-number-highlight {
  font-weight: 700 !important;
  color: var(--orange) !important;
  background: linear-gradient(135deg, #ff4757, var(--orange)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1.2em !important;
}

/* Age numbers highlighting */
.age-highlight {
  font-weight: 700 !important;
  color: var(--dark-orange) !important;
  background: linear-gradient(135deg, var(--dark-orange), #8B4513) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1.1em !important;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .features-tab-link[data-w-tab="Tab 1"] h3,
  .features-tab-link[data-w-tab="Tab 2"] h3,
  .features-tab-link[data-w-tab="Tab 3"] h3,
  .features-tabs.bottom .features-tab-link h3 {
    font-size: 1.5rem !important;
    letter-spacing: -0.3px !important;
  }
  
  .features-tab-link[data-w-tab="Tab 1"] p,
  .features-tab-link[data-w-tab="Tab 2"] p,
  .features-tab-link[data-w-tab="Tab 3"] p,
  .features-tabs.bottom .features-tab-link p {
    font-size: 1rem !important;
    letter-spacing: -0.1px !important;
  }
  
  .number-highlight,
  .percentage-highlight,
  .large-number-highlight,
  .age-highlight {
    font-size: 1.05em !important;
  }
}

@media screen and (max-width: 479px) {
  .features-tab-link[data-w-tab="Tab 1"] h3,
  .features-tab-link[data-w-tab="Tab 2"] h3,
  .features-tab-link[data-w-tab="Tab 3"] h3,
  .features-tabs.bottom .features-tab-link h3 {
    font-size: 1.25rem !important;
    letter-spacing: normal !important;
  }
  
  .features-tab-link[data-w-tab="Tab 1"] p,
  .features-tab-link[data-w-tab="Tab 2"] p,
  .features-tab-link[data-w-tab="Tab 3"] p,
  .features-tabs.bottom .features-tab-link p {
    font-size: 0.9rem !important;
    letter-spacing: normal !important;
  }
  
  .number-highlight,
  .percentage-highlight,
  .large-number-highlight,
  .age-highlight {
    font-size: 1em !important;
  }
}

/* ========================================
   Hide Features Section on Desktop
   ======================================== */

/* Hide the "Productivity Starts with Limit-X" section on desktop view */
@media screen and (min-width: 992px) {
  #features {
    display: none !important;
  }
}

/* ========================================
   Modern Social Media Styling
   ======================================== */

/* Social links hover effects */
.social-links-wrapper a:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(251, 101, 31, 0.5) !important;
}

.social-links-wrapper:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  transform: translateY(-1px) !important;
}

/* Add smooth transitions */
.social-links-wrapper {
  transition: all 0.3s ease !important;
}

.social-links-wrapper a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ========================================
   Fix Desktop Spacing Issues
   ======================================== */

/* Reduce spacing for "The Problem We're Solving" section on desktop since Features section is hidden */
@media screen and (min-width: 992px) {
  /* Target the Work Section (The Problem We're Solving) that comes after hidden Features */
  #features + .section {
    padding-top: 2rem !important;
    margin-top: -2rem !important;
  }
  
  /* Also reduce general section padding on desktop for better spacing */
  .section {
    padding: 3rem 1.25rem !important;
  }
  
  /* Specific adjustment for hero section */
  .hero-section {
    padding-bottom: 2rem !important;
  }
}

/* ========================================
   Modern Supported By Section
   ======================================== */

.supported-by-section {
  background: transparent;
  border: none;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
  position: relative;
}

.supported-by-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.supported-by-label {
  flex-shrink: 0;
  position: relative;
}

.supported-by-text {
  font-family: var(--junicode), Junicode, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-right: 2rem;
}

.supported-by-text::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  border-radius: 1px;
}

.partners-scroll-container {
  flex: 1;
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scroll-partners 25s linear infinite;
  width: fit-content;
  padding: 0.5rem 0;
}

.partner-logo {
  flex-shrink: 0;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(100%) opacity(0.6);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08) translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(251, 101, 31, 0.15);
}

.partner-logo img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   Beta Testing Badge Styling
   ======================================== */

.backed-by {
  position: relative;
  background: linear-gradient(135deg, rgba(251, 101, 31, 0.05), rgba(251, 101, 31, 0.1));
  border: 1px solid rgba(251, 101, 31, 0.2);
  border-radius: 10px;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.backed-by:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(251, 101, 31, 0.15);
}

.backed-by .small-text {
  font-weight: 500;
  color: var(--dark-orange);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  text-align: center;
}

.beta-logos-wrapper {
  align-items: center;
  justify-content: center;
}

.beta-logos-wrapper img {
  transition: all 0.3s ease;
}

.beta-logos-wrapper img:hover {
  transform: scale(1.05);
}

/* Add a subtle pulse animation */
@keyframes beta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(251, 101, 31, 0.2);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(251, 101, 31, 0.1);
  }
}

.backed-by {
  animation: beta-pulse 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .supported-by-section {
    padding: 2rem 1.25rem;
  }
  
  .supported-by-wrapper {
    gap: 1.5rem;
  }
  
  .supported-by-text {
    font-size: 1rem;
    padding-right: 1.5rem;
  }
  
  .partners-track {
    gap: 3rem;
    animation-duration: 22s;
  }
  
  .partner-logo {
    height: 40px;
  }
}

@media screen and (max-width: 767px) {
  .supported-by-section {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }
  
  .supported-by-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .supported-by-label {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .supported-by-text {
    font-size: 0.95rem;
    padding: 0;
    margin: 0 auto;
    position: relative;
    text-align: center;
    display: block;
    width: fit-content;
  }
  
  .supported-by-text::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -8px;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--orange), transparent);
  }
  
  .partners-scroll-container {
    width: 100%;
    max-width: 100%;
    mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  }
  
  .partners-scroll-container {
    width: 100%;
    mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  }
  
  .partners-track {
    gap: 2.5rem;
    animation-duration: 18s;
    padding: 1rem 0;
    justify-content: center;
    min-width: 100%;
  }
  
  .partner-logo {
    height: 36px;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-width: 80px;
    justify-content: center;
  }
  
  .partner-logo img {
    max-width: 100px;
    height: auto;
    max-height: 28px;
  }
  
  .partner-logo:hover {
    transform: scale(1.05) translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
  }
}

@media screen and (max-width: 479px) {
  .supported-by-section {
    padding: 1.25rem 0.625rem;
    text-align: center;
  }
  
  .supported-by-wrapper {
    gap: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  .supported-by-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 auto;
    width: fit-content;
  }
  
  .partners-track {
    gap: 2rem;
    animation-duration: 15s;
  }
  
  .partner-logo {
    height: 32px;
    padding: 0.3rem 0.6rem;
  }
  
  .partner-logo img {
    max-width: 80px;
  }
}

/* Mobile-first styles for backed-by section */
@media screen and (max-width: 767px) {
  .backed-by {
    padding: 6px 10px;
    margin-bottom: 1rem;
  }
  
  .backed-by .small-text {
    font-size: 0.55rem;
    letter-spacing: 0.2px;
    margin-bottom: 1px;
  }
  
  .beta-logos-wrapper {
    gap: 6px !important;
    margin-top: 3px !important;
  }
  
  .beta-logos-wrapper img {
    height: 20px !important;
  }
}

@media screen and (max-width: 479px) {
  .backed-by {
    padding: 4px 8px;
    margin-bottom: 0.75rem;
  }
  
  .backed-by .small-text {
    font-size: 0.5rem;
    letter-spacing: 0.1px;
    margin-bottom: 0;
  }
  
  .beta-logos-wrapper {
    gap: 4px !important;
    margin-top: 2px !important;
  }
  
  .beta-logos-wrapper img {
    height: 18px !important;
  }
}
