/* ================================================================
   SCALEX LANDING PAGE - OPTIMIZED STYLES
   ================================================================ */

/* ================================================================
   ROOT VARIABLES & GLOBAL RESET
   ================================================================ */

:root {
  /* Color System */
  --primary-blue: #3b82f6;
  --primary-blue-dark: #0d3ab8;
  --background-dark: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #aaaaaa;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-lighter: rgba(255, 255, 255, 0.15);
  --overlay-dark: rgba(10, 10, 10, 0.95);
  
  /* Gradient System */
  --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  --gradient-text: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  --gradient-rotating: linear-gradient(135deg, #6a11cb, #2575fc);
  
  /* Layout System */
  --border-radius: 8px;
  --border-radius-lg: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --section-spacing: 80px;
}

/* Anchor offset padding for smooth scroll without JS jump flicker */
#home,
#casestudies,
#testimonials,
#emaildesigns,
#youradvantage,
#faq { scroll-margin-top: 120px; }

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================================================
   BASE BODY & BACKGROUND
   ================================================================ */

@media (max-width: 768px) {
  .main-wrapper {
    overflow-x: hidden;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ================================================================
   NAVIGATION SECTION
   ================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--overlay-dark);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.nav-logo .logo-icon img {
  width: 30px;
  height: auto;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--text-primary);
}

/* ================================================================
   MAIN CONTENT CONTAINER
   ================================================================ */

.main-content {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  position: relative;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

/* Trusted Section */
.trusted-section {
  margin: 24px 0 48px;
}

.corner-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-lighter);
  cursor: pointer;
}

.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--text-primary);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

@keyframes pulse {
  0%, 100% { opacity: 0.9; filter: drop-shadow(0 0 4px var(--text-primary)); }
  50% { opacity: 0.2; filter: drop-shadow(0 0 1px var(--text-primary)); }
}

.icon {
  font-size: 18px;
}

/* Hero Content */
.hero {
  max-width: 1100px;
  position: relative;
}

/* Localized gradient glow only for hero area */
.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  width: 1600px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 30% 25%, rgba(59,130,246,0.28), rgba(59,130,246,0.15) 25%, transparent 65%);
  filter: blur(120px);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .hero::before { width: 1100px; height: 700px; filter: blur(100px); }
}

@media (max-width: 560px) {
  .hero::before { width: 900px; height: 600px; filter: blur(90px); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  padding-bottom: 6px;
  margin-bottom: 32px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ================================================================
   ROTATING BUTTONS COMPONENT
   ================================================================ */

.rotating-button,
.nav-rotating-button {
  border-radius: var(--border-radius-lg);
  outline: none;
  background: var(--gradient-rotating) padding-box,
              conic-gradient(from var(--angle, 0), transparent, white 10%, transparent 20%) border-box;
  border: 2px solid transparent;
  color: white;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.rotating-button:hover,
.nav-rotating-button:hover {
  transform: scale(1.05);
}

.rotating-button {
  width: 280px;
  height: 65px;
  font-size: 1.1rem;
  padding: 12px 32px;
}

.nav-rotating-button {
  width: 180px;
  height: 50px;
  border-radius: 24px;
  font-size: 1rem;
  padding: 8px 20px;
}

/* ================================================================
   VSL (VIDEO SALES LETTER) SECTION
   ================================================================ */

.vsl-section {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 32px;
}

.vsl-frame {
  position: relative;
  width: 900px;
  aspect-ratio: 16/9;
  border-radius: 40px;
  border: 10px solid transparent;
  background: linear-gradient(#000, #000) padding-box, var(--gradient-blue) border-box;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.2);
  overflow: hidden;
}

.vsl-frame::after {
  content: '';
  position: absolute;
  top: -160px;
  left: -100px;
  right: -100px;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.9), transparent 85%);
  filter: blur(100px);
  border-radius: 60%;
  pointer-events: none;
  z-index: -1;
}

.vsl-content {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #111;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vsl-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  z-index: 1;
}

.vsl-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.play-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.play-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 50%;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.play-button:active {
  transform: scale(1.05);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 30px solid #fff;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  margin-left: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.vsl-content iframe {
    transform: scale(1.02 ); /* ~3% zoom */
  transform-origin: center center;
}

/* ================================================================
   MOBILE OPTIMISATION 1
   ================================================================ */

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop/Mobile CTA Button Control */
.nav-cta-mobile {
  display: none;
}

.nav-cta-desktop {
  display: block;
}

/* Tablet/Large Mobile Screens */
@media (max-width: 980px) {
  .nav-container {
    padding: 16px 24px;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .main-content {
    padding-top: 110px;
    width: 95%;
  }
  
  .hero {
    max-width: 900px;
  }
  
  .vsl-frame {
    width: 100%;
    max-width: 700px;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  .nav-container {
    padding: 14px 20px;
    margin-left: 24px;
    margin-right: 24px;
  }
  
  .nav-toggle {
    display: flex;
    order: 3;
  }
  
  .nav-cta-desktop {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--overlay-dark);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 20px;
    gap: 30px;
    transition: left 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    padding: 15px;
    font-size: 1.1rem;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .nav-cta-mobile {
    margin-top: 20px;
    display: block;
  }
  
  .nav-cta-mobile .nav-rotating-button {
    width: 200px;
  }
  
  /* Hero Section Mobile */
  .main-content {
    padding-top: 90px;
    width: 94%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .trusted-section {
    margin: 16px 0 36px;
  }
  
  .corner-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .hero {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-description {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    margin-bottom: 32px;
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-description br {
    display: none;
  }
  
  .hero-buttons {
    margin-top: 32px;
  }
  
  .rotating-button {
    width: 100%;
    max-width: 280px;
    height: 58px;
    font-size: 1rem;
  }
  
  /* VSL Section Mobile */
  .vsl-section {
    margin-top: 60px;
    padding: 0 16px;
  }
  
  .vsl-frame {
    width: 100%;
    max-width: 500px;
    border-width: 12px;
    border-radius: 28px;
  }
  
  .vsl-content {
    border-radius: 20px;
  }
  
  .play-button {
    width: 90px;
    height: 90px;
  }
  
  .play-icon {
    border-left: 24px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    margin-left: 6px;
  }
}

/* Small Mobile Screens */
@media (max-width: 560px) {
  .nav-container {
    padding: 12px 16px;
  }
  
  .nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
    padding: 30px 16px;
    gap: 24px;
  }
  
  .nav-menu a {
    font-size: 1rem;
    padding: 12px;
  }
  
  .nav-cta-mobile .nav-rotating-button {
    width: 180px;
    height: 50px;
    font-size: 0.9rem;
  }
  
  .main-content {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .trusted-section {
    margin: 12px 0 28px;
  }
  
  .hero-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    margin-bottom: 20px;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .hero-description {
    margin-bottom: 28px;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    line-height: 1.4;
  }
  
  .hero-description br {
    display: none;
  }
  
  .vsl-section {
    margin-top: 50px;
    padding: 0 12px;
  }
  
  .vsl-frame {
    max-width: 400px;
    border-width: 10px;
    border-radius: 24px;
  }
  
  .vsl-content {
    border-radius: 16px;
  }
  
  .play-button {
    width: 40px;
    height: 40px;
  }
  
  .play-icon {
    border-left: 10px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 2.5px;
  }
}

/* Very Small Mobile Screens */
@media (max-width: 400px) {
  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .hero-title {
    font-size: clamp(1.4rem, 8vw, 1.8rem);
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
  
  .rotating-button {
    height: 54px;
    font-size: 0.9rem;
  }
  
  .vsl-frame {
    max-width: 320px;
    border-width: 8px;
    border-radius: 20px;
  }
  
  .vsl-content {
    border-radius: 14px;
  }
  
  .play-button {
    width: 40px;
    height: 40px;
  }
  
  .play-icon {
    border-left: 10px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 2.5px;
  }
}


/* ================================================================
   MOVING LOGOS SECTION
   ================================================================ */

.logos-section {
  width: 100%;
  overflow: hidden;
  padding-top: 40px;
  position: relative;
}

.logos-scroll {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.logos-scroll::before,
.logos-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logos-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--background-dark), transparent);
}

.logos-scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--background-dark), transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
}

/* Logo Animation Tracks */
.logos-track-1 {
  animation: scroll-left 25s linear infinite;
}

.logos-track-2 {
  animation: scroll-right 30s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 120px;
  padding: 0 20px;
}

.logo-item img {
  max-height: 40px;
  max-width: 120px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  object-fit: contain;
}

.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Leverage CTA */
.leverage-cta {
  background: #2e7dfc3a;
  border: 1px solid #3b83f6;
  border-radius: 50px;
  padding: 15px 30px;
  margin: 0 20px;
  min-width: 220px;
  cursor: pointer;
}

.leverage-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.leverage-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b83f6;
  text-align: center;
  white-space: nowrap;
}

/* ================================================================
   CASE STUDIES SECTION
   ================================================================ */

.case-studies {
  margin-top: var(--section-spacing);
  width: 100%;
  max-width: 1200px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  padding: 0 32px;
}

.case-study-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  text-decoration: none; /* remove underline for anchor */
  color: inherit; /* inherit text color */
  display: block; /* ensure anchor behaves like block card */
  position: relative; /* for arrow */
}

/* Interactive arrow indicator */
.case-study-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(15,25,45,0.5);
  backdrop-filter: blur(6px) brightness(1.05);
  -webkit-backdrop-filter: blur(6px) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background-image: url('Images/right-up.png');
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transform: translateY(6px) scale(.85);
  opacity: 0;
  transition: var(--transition), box-shadow 0.4s ease;
  pointer-events: none;
}

.case-study-card:hover::after,
.case-study-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Keyboard accessibility */
.case-study-card:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
}

/* Mobile: always show arrow so clickability is obvious */
@media (max-width: 768px) {
  .case-study-card::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-study-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(255, 255, 255, 0.08),
    rgba(59, 130, 246, 0.05)
  );
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(25px);
}

.case-study-image {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  position: absolute;
  top: 0;
  left: 0;
}

.case-study-content {
  padding: 24px;
}

.case-study-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.case-study-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.case-study-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 12px;
  background: rgba(12, 12, 12, 0.08);
  border: 1px solid var(--border-lighter);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}


/* ================================================================
   MOBILE OPTIMISATION CASE STUDIES
   ================================================================ */

/* Tablet/Large Mobile - Case Studies */
@media (max-width: 980px) {
  .case-studies-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 0 24px;
  }
  
  .case-study-content {
    padding: 20px;
  }
  
  .case-study-image {
    height: 200px;
  }
}

/* Mobile Screens - Case Studies */
@media (max-width: 768px) {
  .case-studies {
    margin-top: 60px;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 40px;
    padding: 0 20px;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .case-study-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .case-study-image {
    height: 180px;
  }
  
  .case-study-content {
    padding: 18px;
  }
  
  .case-study-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .case-study-description {
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  
  .case-study-tags {
    gap: 8px;
  }
  
  .tag {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* Small Mobile Screens - Case Studies */
@media (max-width: 560px) {
  .case-studies {
    margin-top: 50px;
  }
  
  .section-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
    margin-bottom: 30px;
    padding: 0 15px;
  }
  
  .case-studies-grid {
    padding: 0 15px;
    gap: 16px;
  }
  
  .case-study-image {
    height: 160px;
  }
  
  .case-study-content {
    padding: 16px;
  }
  
  .case-study-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .case-study-description {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
  
  .tag {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

/* Very Small Mobile Screens - Case Studies */
@media (max-width: 400px) {
  .case-studies {
    margin-top: 40px;
  }
  
  .section-title {
    font-size: clamp(1.2rem, 8vw, 1.6rem);
    margin-bottom: 25px;
    padding: 0 10px;
  }
  
  .case-studies-grid {
    padding: 0 10px;
    gap: 14px;
  }
  
  .case-study-image {
    height: 140px;
  }
  
  .case-study-content {
    padding: 14px;
  }
  
  .case-study-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .case-study-description {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .case-study-tags {
    gap: 6px;
  }
  
  .tag {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}

/* ================================================================
   VIDEO TESTIMONIAL SECTION
   ================================================================ */

.video-testimonials {
  margin-top: 100px;
  width: 100%;
  max-width: 1200px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 0 32px;
  align-items: stretch;
}

.testimonial-video {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-video:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(255, 255, 255, 0.08),
    rgba(59, 130, 246, 0.05)
  );
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16; /* Vertical video aspect ratio */
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 18px;
}

/* Wistia Player Standardization */
.video-frame wistia-player {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  aspect-ratio: 9/16 !important;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 18px;
}

.video-placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.testimonial-info {
  padding: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.testimonial-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* ================================================================
   MOBILE OPTIMISATION VIDEO TESIMONIAL SECTION
   ================================================================ */

/* Tablet/Large Mobile - Video Testimonials */
@media (max-width: 980px) {
  .video-testimonials {
    margin-top: 80px;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 24px;
  }
  
  .testimonial-video:hover {
    transform: translateY(-6px) scale(1.015);
  }
  
  .testimonial-info {
    padding: 18px;
    min-height: 100px;
  }
  
  .testimonial-name {
    font-size: 1.05rem;
  }
  
  .testimonial-description {
    font-size: 0.85rem;
  }
}

/* Mobile Screens - Video Testimonials */
@media (max-width: 768px) {
  .video-testimonials {
    margin-top: 60px;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
  }
  
  .testimonial-video {
    border-radius: 16px;
  }
  
  .testimonial-video:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .video-frame {
    border-radius: 14px;
  }
  
  .video-frame iframe {
    border-radius: 14px;
  }
  
  .video-frame wistia-player {
    border-radius: 14px;
  }
  
  .video-placeholder {
    border-radius: 14px;
  }
  
  .video-placeholder-icon {
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  .testimonial-info {
    padding: 16px;
    min-height: 90px;
  }
  
  .testimonial-name {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .testimonial-description {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Small Mobile Screens - Video Testimonials */
@media (max-width: 560px) {
  .video-testimonials {
    margin-top: 50px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 15px;
  }
  
  .testimonial-video {
    border-radius: 14px;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .video-frame {
    border-radius: 12px;
  }
  
  .video-frame iframe {
    border-radius: 12px;
  }
  
  .video-frame wistia-player {
    border-radius: 12px;
  }
  
  .video-placeholder {
    border-radius: 12px;
  }
  
  .video-placeholder-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }
  
  .testimonial-info {
    padding: 14px;
    min-height: 80px;
  }
  
  .testimonial-name {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  
  .testimonial-description {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* Very Small Mobile Screens - Video Testimonials */
@media (max-width: 400px) {
  .video-testimonials {
    margin-top: 40px;
  }
  
  .testimonials-grid {
    padding: 0 10px;
    gap: 14px;
  }
  
  .testimonial-video {
    border-radius: 12px;
    max-width: 280px;
  }
  
  .video-frame {
    border-radius: 10px;
  }
  
  .video-frame iframe {
    border-radius: 10px;
  }
  
  .video-frame wistia-player {
    border-radius: 10px;
  }
  
  .video-placeholder {
    border-radius: 10px;
  }
  
  .video-placeholder-icon {
    font-size: 32px;
    margin-bottom: 6px;
  }
  
  .testimonial-info {
    padding: 12px;
    min-height: 70px;
  }
  
  .testimonial-name {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }
  
  .testimonial-description {
    font-size: 0.7rem;
    line-height: 1.2;
  }
}

/* ================================================================
   REVIEWS SECTION
   ================================================================ */

.reviews-section {
  margin-top: 120px;
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
}

.reviews-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 60px;
  padding: 20px 0;
}

.reviews-container::before,
.reviews-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.reviews-container::before {
  left: 0;
  background: linear-gradient(to right, var(--background-dark), transparent);
}

.reviews-container::after {
  right: 0;
  background: linear-gradient(to left, var(--background-dark), transparent);
}

.reviews-track {
  display: flex;
  gap: 32px;
  width: max-content;
  /* Animation removed - now handled by JavaScript */
  transition: none;
}



.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  min-width: 400px;
  max-width: 400px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  flex-shrink: 0;
}

.review-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(255, 255, 255, 0.08),
    rgba(59, 130, 246, 0.05)
  );
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.star {
  font-size: 20px;
  filter: brightness(1.2);
}

.review-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: left;
}

.review-author {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: left;
}

/* ================================================================
   MOBILE OPTIMISATION REVIEWS SECTION
   ================================================================ */

/* Tablet/Large Mobile - Reviews Section */
@media (max-width: 980px) {
  .reviews-section {
    margin-top: 80px;
  }
  
  .reviews-container {
    margin-top: 50px;
    padding: 16px 0;
  }
  
  .reviews-container::before,
  .reviews-container::after {
    width: 80px;
  }
  
  .reviews-track {
    gap: 24px;
  }
  
  .review-card {
    min-width: 350px;
    max-width: 350px;
    padding: 28px;
  }
  
  .review-card:hover {
    transform: translateY(-6px) scale(1.015);
  }
  
  .review-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

/* Mobile Screens - Reviews Section */
@media (max-width: 768px) {
  .reviews-section {
    margin-top: 60px;
  }
  
  .reviews-container {
    margin-top: 40px;
    padding: 12px 0;
  }
  
  .reviews-container::before,
  .reviews-container::after {
    width: 60px;
  }
  
  .reviews-track {
    gap: 20px;
  }
  
  .review-card {
    min-width: 280px;
    max-width: 280px;
    padding: 24px;
    border-radius: 16px;
  }
  
  .review-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .review-stars {
    margin-bottom: 16px;
  }
  
  .star {
    font-size: 18px;
  }
  
  .review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  
  .review-author {
    font-size: 0.85rem;
  }
}

/* Small Mobile Screens - Reviews Section */
@media (max-width: 560px) {
  .reviews-section {
    margin-top: 50px;
  }
  
  .reviews-container {
    margin-top: 35px;
    padding: 8px 0;
  }
  
  .reviews-track {
    gap: 16px;
  }
  
  .review-card {
    min-width: 250px;
    max-width: 250px;
    padding: 20px;
    border-radius: 14px;
  }
  
  .review-stars {
    margin-bottom: 14px;
  }
  
  .star {
    font-size: 16px;
  }
  
  .review-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }
  
  .review-author {
    font-size: 0.8rem;
  }
}

/* Very Small Mobile Screens - Reviews Section */
@media (max-width: 400px) {
  .reviews-section {
    margin-top: 40px;
  }
  
  .reviews-container {
    margin-top: 30px;
    padding: 6px 0;
  }
  
  .reviews-track {
    gap: 14px;
  }
  
  .review-card {
    min-width: 220px;
    max-width: 220px;
    padding: 18px;
    border-radius: 12px;
  }
  
  .review-stars {
    margin-bottom: 12px;
  }
  
  .star {
    font-size: 14px;
  }
  
  .review-text {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 14px;
  }
  
  .review-author {
    font-size: 0.75rem;
  }
}

/* ================================================================
   WHY CHOOSE US SECTION
   ================================================================ */

.why-choose-us {
  margin-top: 120px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 32px;
  margin-top: 60px;
  justify-items: center;
  align-items: start;
}

/* Blue Glow Card System */
.feature-card {
  --backdrop: hsl(0 0% 60% / 0.08);
  --radius: 20;
  --border: 2;
  --backup-border: var(--border-light);
  --size: 250;
  --blue-hue: 235;
  --border-size: calc(var(--border, 2) * 1px);
  --spotlight-size: calc(var(--size, 150) * 1px);

  width: 100%;
  height: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: calc(var(--radius) * 1px);
  box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  isolation: isolate;
  cursor: pointer;
  transition: var(--transition);

  background-image:
    radial-gradient(
      var(--spotlight-size) var(--spotlight-size) at
      calc(var(--x, 0) * 1px)
      calc(var(--y, 0) * 1px),
      hsl(var(--blue-hue) 100% 70% / 0.2),
      transparent
    );
  background-color: var(--backdrop, transparent);
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-position: 50% 50%;
  background-attachment: fixed;
  border: var(--border-size) solid var(--backup-border);
}

.feature-card::before,
.feature-card::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-attachment: fixed;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask:
    linear-gradient(transparent, transparent),
    linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
}

/* Blue colored ring */
.feature-card::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsl(var(--blue-hue) 100% 50% / 1),
    transparent 100%
  );
  filter: brightness(2);
}

/* White hotspot */
.feature-card::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsl(0 100% 100% / 1),
    transparent 100%
  );
}

/* Outer glow element */
.feature-card [data-glow] {
  position: absolute;
  inset: 0;
  will-change: filter;
  opacity: 1;
  border: none;
  border-radius: calc(var(--radius) * 1px);
  border-width: calc(var(--border-size) * 20);
  filter: blur(calc(var(--border-size) * 10));
  background: none;
  pointer-events: none;
}

/* Feature Content */
.feature-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  height: 100%;
  padding: 20px;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 0;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.4;
  max-width: 100%;
}

/* Touch device optimization - disable interactive glow effects */
@media (pointer: coarse) {
  .feature-card {
    touch-action: auto; /* Allow normal scrolling on touch devices */
    cursor: default; /* Remove cursor pointer on touch devices */
  }
  
  .feature-card,
  .feature-card::before,
  .feature-card::after {
    background-image: 
      radial-gradient(
        150px 150px at 50% 50%,
        hsl(var(--blue-hue) 100% 70% / 0.15),
        transparent
      );
  }
  
  .feature-card::before {
    background-image: radial-gradient(
      112px 112px at 50% 50%,
      hsl(var(--blue-hue) 100% 50% / 0.8),
      transparent 100%
    );
  }
  
  .feature-card::after {
    background-image: radial-gradient(
      75px 75px at 50% 50%,
      hsl(0 100% 100% / 0.8),
      transparent 100%
    );
  }
}

/* ================================================================
   MOBILE OPTIMISATION WHY CHOOSE US
   ================================================================ */

/* Tablet/Large Mobile - Why Choose Us */
@media (max-width: 980px) {
  .why-choose-us {
    margin-top: 80px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 24px;
    margin-top: 50px;
  }
  
  .feature-card {
    height: 260px;
    padding: 28px;
    --size: 200;
  }
  
  .feature-content {
    padding: 16px;
    gap: 16px;
  }
  
  .feature-icon {
    font-size: 3rem;
  }
  
  .feature-title {
    font-size: 1.05rem;
  }
}

/* Mobile Screens - Why Choose Us */
@media (max-width: 768px) {
  .why-choose-us {
    margin-top: 60px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
    margin-top: 40px;
  }
  
  .feature-card {
    height: 240px;
    padding: 24px;
    --size: 180;
    --border: 1.5;
    border-radius: 16px;
    background-attachment: scroll; /* Better performance on mobile */
    touch-action: pan-y; /* Allow vertical scrolling, prevent other gestures */
    cursor: default; /* Remove cursor pointer on mobile */
  }
  
  .feature-card::before,
  .feature-card::after {
    background-attachment: scroll; /* Better performance on mobile */
  }
  
  .feature-card [data-glow] {
    border-radius: 16px;
    filter: blur(calc(var(--border-size) * 6)); /* Reduced blur for mobile */
  }
  
  .feature-content {
    padding: 12px;
    gap: 14px;
  }
  
  .feature-icon {
    font-size: 2.8rem;
  }
  
  .feature-title {
    font-size: 1rem;
    line-height: 1.3;
  }
}

/* Small Mobile Screens - Why Choose Us */
@media (max-width: 560px) {
  .why-choose-us {
    margin-top: 50px;
  }
  
  .features-grid {
    padding: 0 15px;
    gap: 16px;
    margin-top: 35px;
  }
  
  .feature-card {
    height: 220px;
    padding: 20px;
    --size: 150;
    --radius: 14;
    border-radius: 14px;
    touch-action: pan-y; /* Allow vertical scrolling, prevent other gestures */
  }
  
  .feature-card [data-glow] {
    border-radius: 14px;
    border-width: calc(var(--border-size) * 15);
    filter: blur(calc(var(--border-size) * 5));
  }
  
  .feature-content {
    padding: 10px;
    gap: 12px;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  .feature-title {
    font-size: 0.95rem;
    line-height: 1.25;
  }
}

/* Very Small Mobile Screens - Why Choose Us */
@media (max-width: 400px) {
  .why-choose-us {
    margin-top: 40px;
  }
  
  .features-grid {
    padding: 0 10px;
    gap: 14px;
    margin-top: 30px;
  }
  
  .feature-card {
    height: 200px;
    padding: 16px;
    --size: 120;
    --radius: 12;
    --border: 1;
    border-radius: 12px;
    touch-action: pan-y; /* Allow vertical scrolling, prevent other gestures */
  }
  
  .feature-card [data-glow] {
    border-radius: 12px;
    border-width: calc(var(--border-size) * 12);
    filter: blur(calc(var(--border-size) * 4));
  }
  
  .feature-content {
    padding: 8px;
    gap: 10px;
  }
  
  .feature-icon {
    font-size: 2.2rem;
  }
  
  .feature-title {
    font-size: 0.9rem;
    line-height: 1.2;
  }
}

/* ================================================================
   PROBLEMS SECTION
   ================================================================ */

.problems-section {
  height: 300vh; /* 3x viewport height for scroll space */
  position: relative;
  width: 100%;
}

.problems-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 80px;
  background: var(--background-dark);
  gap: 100px;
  width: 100%;
  max-width: none;
}

.problems-left {
  flex: 1;
  max-width: 600px;
  z-index: 10;
}

.problems-main-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin: 0 0 30px 0;
}

.problems-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 40px 0;
}

.problems-container {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0; /* Allow flex shrinking */
}

.problem-card {
  position: absolute;
  background: rgba(30, 30, 35, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  z-index: 1;
}

/* Card stacking based on scroll progress - only move up */
.problem-card[data-problem="1"] {
  z-index: 4;
  transform: translateY(0);
}

.problem-card[data-problem="2"] {
  z-index: 3;
  transform: translateY(0);
}

.problem-card[data-problem="3"] {
  z-index: 2;
  transform: translateY(0);
}

.problem-card[data-problem="4"] {
  z-index: 1;
  transform: translateY(0);
}

/* Scroll progress animations - cards move up only */
.problems-section[data-scroll="1"] .problem-card[data-problem="1"] {
  transform: translateY(-120%);
  z-index: 1;
}

.problems-section[data-scroll="2"] .problem-card[data-problem="1"] {
  transform: translateY(-120%);
  z-index: 1;
}

.problems-section[data-scroll="2"] .problem-card[data-problem="2"] {
  transform: translateY(-120%);
  z-index: 1;
}

.problems-section[data-scroll="3"] .problem-card[data-problem="1"] {
  transform: translateY(-120%);
  z-index: 1;
}

.problems-section[data-scroll="3"] .problem-card[data-problem="2"] {
  transform: translateY(-120%);
  z-index: 1;
}

.problems-section[data-scroll="3"] .problem-card[data-problem="3"] {
  transform: translateY(-120%);
  z-index: 1;
}

.problem-card:hover {
  background: rgba(30, 30, 35, 1);
  border-color: rgba(36, 63, 197, 0.3);
  box-shadow: 0 20px 60px rgba(36, 63, 197, 0.2);
}

.problem-number {
  position: absolute;
  top: -20px;
  left: 40px;
  background: linear-gradient(135deg, var(--primary-blue), #1e40af);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(36, 63, 197, 0.3);
}

.problem-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 20px 0 16px 0;
  line-height: 1.3;
}

.problem-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   MOBILE OPTIMISATION PROBLEM SECTION 
   ================================================================ */

/* Tablet/Large Mobile - Problems Section */
@media (max-width: 980px) {
  .problems-section {
    height: 300vh; /* Reduced scroll space for tablet */
  }
  
  .problems-sticky-container {
    padding: 0 40px;
    gap: 60px;
    flex-direction: row;
  }
  
  .problems-left {
    max-width: 500px;
  }
  
  .problems-main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    margin-bottom: 25px;
  }
  
  .problems-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
  }
  
  .problems-container {
    height: 450px;
  }
  
  .problem-card {
    padding: 35px;
    height: 350px;
  }
  
  .problem-number {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
  
  .problem-title {
    font-size: 1.6rem;
  }
  
  .problem-description {
    font-size: 1rem;
  }
}

/* Mobile Screens - Problems Section */
@media (max-width: 768px) {
  .problems-section {
    height: auto; /* Remove sticky scroll on mobile */
    position: static;
    padding: 60px 0;
  }
  
  .problems-sticky-container {
    position: static;
    height: auto;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
    align-items: flex-start;
  }
  
  .problems-left {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .problems-main-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 20px;
  }
  
  .problems-description {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .problems-container {
    height: auto;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: auto;
  }
  
  .problem-card {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    height: auto;
    min-height: 250px;
    padding: 30px 25px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Disable all scroll animations on mobile */
  .problems-section[data-scroll] .problem-card {
    transform: none !important;
    z-index: auto !important;
  }
  
  .problem-number {
    position: relative;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin: 0 auto 20px auto;
  }
  
  .problem-title {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    text-align: center;
  }
  
  .problem-description {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
  }
}

/* Small Mobile Screens - Problems Section */
@media (max-width: 560px) {
  .problems-section {
    padding: 50px 0;
  }
  
  .problems-sticky-container {
    padding: 0 15px;
    gap: 30px;
  }
  
  .problems-main-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    margin-bottom: 15px;
  }
  
  .problems-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .problems-container {
    gap: 16px;
  }
  
  .problem-card {
    padding: 25px 20px;
    border-radius: 20px;
    min-height: 220px;
  }
  
  .problem-number {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .problem-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }
  
  .problem-description {
    font-size: 0.9rem;
  }
}

/* Very Small Mobile Screens - Problems Section */
@media (max-width: 400px) {
  .problems-section {
    padding: 40px 0;
  }
  
  .problems-sticky-container {
    padding: 0 10px;
    gap: 25px;
  }
  
  .problems-main-title {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
    margin-bottom: 12px;
  }
  
  .problems-description {
    font-size: 0.85rem;
  }
  
  .problems-container {
    gap: 14px;
  }
  
  .problem-card {
    padding: 20px 16px;
    border-radius: 16px;
    min-height: 200px;
  }
  
  .problem-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .problem-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  .problem-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* ================================================================
   EMAIL DESIGN SHOWCASE SECTION
   ================================================================ */

.design-showcase {
  padding: 60px 0 60px 0;
  margin-top: -50px;
  background: var(--background-dark);
  overflow: hidden;
}

.showcase-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.showcase-content {
  text-align: center;
  margin-bottom: 80px;
}

.design-showcase .showcase-content .section-title {
  margin-bottom: 30px;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.design-showcase .showcase-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.design-showcase .category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.design-showcase .filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.design-showcase .filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(36, 63, 197, 0.3);
  color: white;
}

.design-showcase .filter-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  box-shadow: 0 8px 25px rgba(36, 63, 197, 0.3);
}

/* Design gallery container */
.design-gallery {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 10px;
}

/* Gallery track uses JS-driven marquee */
.gallery-track {
  display: flex;
  gap: 20px;
  height: 100%;
  width: max-content;
  will-change: transform;
  transform: translateX(0);
}


/* Design card */
.design-item {
  min-width: 300px;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  flex: 0 0 auto;
  background: #050505;
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.design-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
}

.design-item:hover {
  transform: scale(1.02);
  transform-origin: center;
  box-shadow: 0 25px 70px -12px rgba(0,0,0,0.6);
}

/* ================================================================
   MOBILE OPTIMISATION EMAIL DESIGN SHOWCASE SECTION
   ================================================================ */

/* Tablet Screens - Email Design Showcase */
@media (max-width: 980px) {
  .design-showcase {
    padding: 50px 0;
    margin-top: -40px;
  }
  
  .showcase-container {
    padding: 0 30px;
  }
  
  .showcase-content {
    margin-bottom: 60px;
  }
  
  .design-showcase .showcase-content .section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
    margin-bottom: 25px;
  }
  
  .design-showcase .showcase-description {
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
  }
  
  .design-showcase .category-filters {
    gap: 12px;
    margin-bottom: 35px;
  }
  
  .design-showcase .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
  }
  
  .design-gallery {
    height: 450px;
    padding: 8px;
    border-radius: 18px;
  }
  
  .design-item {
    min-width: 280px;
    border-radius: 14px;
  }
  
  .gallery-track {
    gap: 18px;
  }
}

/* Mobile Screens - Email Design Showcase */
@media (max-width: 768px) {
  .design-showcase {
    padding: 40px 0;
    margin-top: -30px;
  }

  .showcase-container { padding: 0 20px; }

  .showcase-content { margin-bottom: 50px; }

  .design-showcase .showcase-content .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .design-showcase .showcase-description {
    font-size: 0.95rem;
    margin-bottom: 35px;
    max-width: 100%;
    line-height: 1.5;
    padding: 0 10px;
  }

  .design-showcase .category-filters {
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
  }

  .design-showcase .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    /* No animated lift on mobile */
    transition: none;
  }

  /* --- Critical: isolate the scroller and keep it on the GPU --- */
  .design-gallery {
    height: 360px;              /* slightly lower than 380 to reduce pixels */
    padding: 6px;
    border-radius: 16px;
    isolation: isolate;         /* new stacking context */
    contain: layout paint;      /* constrain repaints */
    backface-visibility: hidden;
    overscroll-behavior: contain; /* prevent rubber-band from fighting marquee */
    touch-action: pan-y;        /* allow vertical scroll, avoid touch jitter */
  }

  .gallery-track {
    gap: 14px;                  /* narrower gaps = fewer total pixels */
    will-change: transform;     /* compositor animation */
    transform: translate3d(0,0,0);
  }

  .design-item {
    min-width: 220px;           /* a bit larger than 200-ish to reduce count */
    border-radius: 12px;
    /* Keep geometry stable to avoid jank while images stream in */
    aspect-ratio: 3 / 5;
    height: 100%;
    flex: 0 0 auto;

    /* Avoid expensive hover scale during marquee on mobile */
    will-change: transform;
    transform: translateZ(0);
    transition: none;           /* no animated transform/filter on mobile */
    box-shadow: 0 6px 18px rgba(0,0,0,0.35); /* lighter static shadow */
    background: #050505;
    overflow: hidden;
  }

  .design-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
    backface-visibility: hidden;
  }
}

/* Small Mobile Screens - tighter but same perf rules */
@media (max-width: 560px) {
  .design-showcase { padding: 30px 0; margin-top: -20px; }
  .showcase-container { padding: 0 15px; }
  .showcase-content { margin-bottom: 35px; }

  .design-showcase .showcase-content .section-title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.15;
  }

  .design-showcase .showcase-description {
    font-size: 0.85rem;
    margin-bottom: 30px;
    line-height: 1.45;
    text-align: center;
    padding: 0 10px;
  }

  .design-showcase .category-filters {
    gap: 6px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 5px;
  }

  .design-showcase .filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 18px;
    min-width: 70px;
  }

  .design-gallery {
    height: 300px;
    padding: 4px;
    border-radius: 12px;
    margin: 0 5px;
  }

  .design-item {
    min-width: 200px;  /* was 180px; fewer items = less work per frame */
    border-radius: 10px;
  }

  .gallery-track { gap: 10px; }
}

/* Disable hover-only effects on devices without a real hover pointer */
@media (hover: none) {
  .design-item:hover { transform: none; filter: none; }
  .design-showcase .filter-btn:hover { transform: none; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .gallery-track,
  .design-item {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* Keep all section content within the viewport math */
.design-showcase,
.showcase-container,
.showcase-content {
  box-sizing: border-box;
  max-width: 100%;
}

/* Constrain the content column and add side padding that scales */
.showcase-container {
  inline-size: 100%;
  padding-inline: clamp(12px, 4vw, 24px);
}

/* Titles & text should wrap, not grow the page */
.design-showcase .showcase-content .section-title {
  max-width: 28ch;                /* readable line length */
  margin-inline: auto;
  text-wrap: balance;             /* modern wrap */
  overflow-wrap: anywhere;        /* fallback for very long words */
  hyphens: auto;
}

.design-showcase .showcase-description {
  max-width: min(68ch, 100%);     /* never exceed viewport */
  margin-inline: auto;
  overflow-wrap: anywhere;
  word-break: break-word;         /* tough-love for stubborn strings */
}

/* Filters: allow wrapping inside the button on mobile; don't force min-widths */
@media (max-width: 768px) {
  .design-showcase .category-filters {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 10px;
    margin-inline: auto;
    max-width: 100%;
    /* Important when a flex parent sits inside another flex container */
    min-width: 0;
  }

  .design-showcase .filter-btn {
    white-space: normal;      /* was nowrap: let long labels wrap */
    min-width: 0;             /* remove hard floor that caused overflow */
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
    padding: 8px 12px;
  }
}

/* Even tighter on very small phones */
@media (max-width: 560px) {
  .design-showcase { margin-top: -16px; } /* keep your visual pull-up, softer value */

  .design-showcase .showcase-content .section-title {
    max-width: 24ch;
  }

  .design-showcase .showcase-description {
    padding-inline: 8px;
  }

  .design-showcase .filter-btn {
    font-size: 0.78rem;
    line-height: 1.2;
    padding: 6px 10px;
  }
}

/* If any ancestor uses flex, make sure children can shrink instead of overflowing */
.showcase-content,
.design-showcase .category-filters {
  min-width: 0;   /* key for preventing flex overflow */
}
/* Very Small Mobile Screens - Email Design Showcase */
/* @media (max-width: 400px) {
  .design-showcase {
    padding: 25px 0;
    margin-top: -15px;
  }
  
  .showcase-container {
    padding: 0 12px;
  }
  
  .showcase-content {
    margin-bottom: 30px;
  }
  
  .design-showcase .showcase-content .section-title {
    font-size: clamp(1.2rem, 7vw, 1.5rem) !important;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.1;
  }
  
  .design-showcase .showcase-description {
    font-size: 0.8rem;
    margin-bottom: 25px;
    line-height: 1.4;
    text-align: center;
    padding: 0 5px;
  }
  
  .design-showcase .category-filters {
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
  }
  
  .design-showcase .filter-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 15px;
    min-width: 60px;
    flex: 0 0 auto;
  }
  
  .design-gallery {
    height: 280px;
    padding: 3px;
    border-radius: 10px;
    margin: 0 2px;
  }
  
  .design-item {
    min-width: 160px;
    border-radius: 8px;
  }
  
  .gallery-track {
    gap: 10px;
  }
} */

/* ================================================================
   UNFAIR ADVANTAGE & COMPARISON SECTION
   ================================================================ */

.unfair-advantage-section {
  padding: 50px 0 120px 0;
  background: var(--background-dark);
  text-align: center;
  position: relative;
}

.unfair-advantage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.unfair-advantage-content {
  margin-bottom: 60px;
}

.unfair-advantage-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}

.unfair-advantage-subtitle {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  line-height: 1.2;
}

.unfair-advantage-description {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}

.comparison-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 60px 48px;
  position: relative;
  transition: all 0.4s ease;
}

.our-card {
  border-color: var(--primary-blue);
  background: rgba(36, 63, 197, 0.08);
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(36, 63, 197, 0.15);
}

.others-card {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.comparison-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: white;
}

.our-card .comparison-title {
  color: var(--primary-blue);
}

.others-card .comparison-title {
  color: #fca5a5;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.comparison-item.positive {
  background: rgba(36, 63, 197, 0.08);
  border: 1px solid rgba(36, 63, 197, 0.2);
}

.comparison-item.negative {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-icon {
  font-size: 1.15rem;
  font-weight: bold;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0;
  line-height: 1;
}
.negative .comparison-icon {
  position: relative;
  font-size: 0; /* hide original X glyph to avoid vertical bias */
}
.negative .comparison-icon::before,
.negative .comparison-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.negative .comparison-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.positive .comparison-icon {
  background: var(--primary-blue);
  color: white;
}

.negative .comparison-icon {
  background: #dc2626;
  color: white;
}

.comparison-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.positive .comparison-text {
  color: rgba(255, 255, 255, 0.9);
}

.comparison-cta {
  margin-top: 40px;
  text-align: center;
}

/* ================================================================
   STORY BEHIND SECTION
   ================================================================ */

.story-section {
  padding: 80px 0;
  background: var(--background-dark);
  position: relative;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.story-text {
  color: var(--text-primary);
}

.story-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  line-height: 1.2;
}

.story-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.story-description p {
  margin-bottom: 24px;
}

.story-description p:last-child {
  margin-bottom: 0;
}

.story-description strong {
  color: var(--primary-blue);
  font-weight: 600;
}

.story-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.founder-photo:hover {
  transform: scale(1.02);
}

/* ================================================================
   INTERACTIVE FAQ SECTION
   ================================================================ */

.interactive-faq-section {
  padding: 100px 0;
  background: var(--background-dark);
  position: relative;
}

.interactive-faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.interactive-faq-header {
  text-align: center;
  margin-bottom: 70px;
}

.interactive-faq-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interactive-faq-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.5;
}

.interactive-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.interactive-faq-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.interactive-faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.interactive-faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.interactive-faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.interactive-faq-item:hover::before {
  transform: scaleX(1);
}

.interactive-faq-item.active {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary-blue);
}

.interactive-faq-item.active::before {
  transform: scaleX(1);
}

.interactive-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  cursor: pointer;
  position: relative;
}

.interactive-faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
  flex: 1;
  padding-right: 20px;
  text-align: left;
}

.interactive-faq-item:hover .interactive-faq-question h3 {
  color: white;
}

.interactive-faq-item.active .interactive-faq-question h3 {
  color: var(--primary-blue);
}

/* New toggle using two bars forming + and rotating into – */
.interactive-faq-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, transform 0.35s ease;
  flex-shrink: 0;
}

.interactive-faq-item:hover .interactive-faq-toggle {
  background: var(--primary-blue);
}

.interactive-faq-item.active .interactive-faq-toggle {
  background: var(--primary-blue);
}

.interactive-faq-bar {
  position: absolute;
  display: block;
  width: 14px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  will-change: transform;
}

.interactive-faq-bar.vertical { transform: rotate(90deg); }

/* Active state becomes minus by rotating vertical bar and overlapping */
.interactive-faq-item.active .interactive-faq-bar.vertical {
  transform: rotate(0deg) scaleX(1);
  opacity: 0;
}

.interactive-faq-item.active .interactive-faq-bar.horizontal {
  transform: scaleX(1.05);
}

.interactive-faq-answer {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.2);
  max-height: 0;
}

.interactive-faq-item.active .interactive-faq-answer {
  max-height: 300px;
}

.interactive-faq-answer-content {
  padding: 0 32px 28px 32px;
  transition: opacity 0.3s ease 0.1s;
}

.interactive-faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}

/* Mobile responsive */
@media (max-width: 768px) {
  /* Unfair Advantage Section Mobile */
  .unfair-advantage-section {
    padding: 60px 0;
  }

  .unfair-advantage-container {
    padding: 0 20px;
  }

  .unfair-advantage-title,
  .unfair-advantage-subtitle {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .unfair-advantage-description {
    font-size: 1.1rem;
  }

  /* Comparison Section Mobile */
  .comparison-section {
    padding: 60px 0 80px 0;
  }

  .comparison-container {
    padding: 0 20px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .comparison-card {
    padding: 30px 24px;
  }

  .our-card {
    transform: none;
  }

  .comparison-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .comparison-item {
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
  }

  .comparison-text {
    font-size: 0.95rem;
  }

  .comparison-cta {
    margin-top: 30px;
  }

  /* Story Section Mobile */
  .story-section {
    padding: 60px 0;
  }

  .story-container {
    padding: 0 20px;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .story-title {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .story-description {
    font-size: 1rem;
  }

  .story-image {
    order: -1;
  }

  .founder-photo {
    max-width: 300px;
  }

  /* Interactive FAQ Section Mobile */
  .interactive-faq-section {
    padding: 60px 0;
  }

  .interactive-faq-container {
    padding: 0 20px;
  }

  .interactive-faq-header {
    margin-bottom: 50px;
  }

  .interactive-faq-title {
    font-size: 2.2rem;
  }
  .interactive-faq-subtitle { font-size: 1.05rem; }

  .interactive-faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .interactive-faq-question {
    padding: 24px 20px;
  }

  .interactive-faq-question h3 {
    font-size: 1rem;
    padding-right: 16px;
  }

  .interactive-faq-toggle {
    width: 28px;
    height: 28px;
  }

  .interactive-faq-bar { width: 12px; }

  .interactive-faq-answer-content {
    padding: 0 20px 24px 20px;
  }

  .interactive-faq-answer p {
    font-size: 0.95rem;
  }
}


/* ================================================================
   DECISION CTA SECTION (ADDED)
   ================================================================ */

.decision-cta-section {
  width: 100%;
  background: none; /* removed custom background */
  padding: 60px 0 180px;
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Removed decorative glow pseudo-elements */
.decision-cta-section::before, .decision-cta-section::after { content: none; }

.decision-cta-container {
  width: 100%;
  max-width: 1300px;
  padding: 0 40px;
}

.decision-pill {
  position: relative;
  width: 100%;
  min-height: 170px;
  background: var(--gradient-blue); /* switched to blue gradient */
  border-radius: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(1.6rem,3.1vw,3rem);
  color: #fff;
  letter-spacing: .5px;
  text-align: center;
  overflow: hidden;
  cursor: default;
  padding: 40px 80px;
  box-shadow: 0 40px 90px -25px rgba(59,130,246,0.45), 0 2px 6px rgba(0,0,0,0.4) inset;
  transition: none; /* remove hover animation */
}

.decision-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,rgba(255,255,255,0.18),rgba(255,255,255,0));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.decision-main-text { pointer-events: none; }

/* Keep main decision sentence on one line for larger screens */
@media (min-width: 901px) {
  .decision-main-text {
    white-space: nowrap;
    font-size: clamp(1.4rem, 2.1vw, 2.15rem); /* reduced so full sentence fits in 1300px */
    line-height: 1.1;
  }
}

/* Hidden options container */
/* Options overlay (absolute so we can animate horizontal slide swap) */
.decision-options {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .3s ease, transform .3s ease;
  font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 700;
  pointer-events: none; /* restored per-option events below */
}

.decision-pill:hover .decision-main-text { opacity: 0; }
.decision-pill:hover .decision-options {
  opacity: 1;
  transform: translateY(0);
}

.decision-options .option {
  position: absolute;
  top: 50%;
  left: 50%;
  background: none;
  color: #fff;
  user-select: none;
  font-weight: inherit;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: transform .55s cubic-bezier(.4,0,.25,1);
}

/* Horizontal offset variable for easier tweaking */
.decision-pill { --decision-offset: 320px; }

/* Initial positions: Nop shifted left, Yes shifted right */
.decision-options .option-no  { transform: translate(calc(-50% - var(--decision-offset)), -50%); }
.decision-options .option-yes { transform: translate(calc(-50% + var(--decision-offset)), -50%); }

/* Swapped positions: they cross to opposite sides */
.decision-pill.swapped .option-no  { transform: translate(calc(-50% + var(--decision-offset)), -50%); }
.decision-pill.swapped .option-yes { transform: translate(calc(-50% - var(--decision-offset)), -50%); }

/* Reduce offset on smaller screens to avoid clipping */
@media (max-width: 900px) { .decision-pill { --decision-offset: 220px; } }
@media (max-width: 700px) { .decision-pill { --decision-offset: 170px; } }
@media (max-width: 560px) { .decision-pill { --decision-offset: 120px; } }

@media (max-width: 900px) {
  .decision-pill { border-radius: 90px; min-height: 150px; padding: 30px 40px; }
  .decision-options { padding: 0 60px; }
  .decision-options .option { font-size: 1.4rem; }
}

@media (max-width: 600px) {
  .decision-cta-section { padding: 100px 0 140px; }
  .decision-pill { border-radius: 70px; min-height: 130px; padding: 28px 28px; }
  .decision-options { padding: 0 30px; font-size: 1.5rem; }
  .decision-options .option { font-size: 1.1rem; }
}


/* ================================================================
   END OF STYLES
   ================================================================ */

/* ================================================================
   FOOTER SECTION
   ================================================================ */
.site-footer {
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,12,0.85) 35%, #050507 100%);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -140px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.18), transparent 70%);
  filter: blur(120px);
  opacity: .55;
  pointer-events: none;
}

.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }

.footer-top { display: grid; grid-template-columns: 1.4fr 3fr; gap: 90px; align-items: start; }

.footer-brand { text-align: left; }
.footer-logo { font-size: 1.6rem; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.footer-logo-img { width: 32px; height: auto; }
.footer-logo .brand-text { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-tagline { margin-top: 18px; font-size: .95rem; line-height: 1.6; color: var(--text-muted); max-width: 360px; }
.footer-cta { margin-top: 28px; width: 260px; height: 58px; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.footer-col { min-width: 0; }
.footer-heading { font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--text-secondary); margin: 0 0 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .95rem; transition: color .25s ease; }
.footer-links a:hover { color: #fff; }

.footer-divider { margin: 70px 0 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.copyright { font-size: .8rem; color: var(--text-muted); }
.legal-links { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; }
.legal-links a { color: var(--text-secondary); font-size: .8rem; text-decoration: none; letter-spacing: .5px; transition: color .25s; }
.legal-links a:hover { color: #fff; }

/* Social links */
.social-links { list-style: none; display: flex; gap: 14px; padding: 24px 0 0; margin: 0; }
.social-links a.social { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .95rem; font-weight: 600; text-decoration: none; color: #fff; position: relative; overflow: hidden; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); transition: background .35s ease, transform .35s ease, border-color .35s ease; }
.social-links a.social::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 70%); opacity: 0; transition: opacity .4s; }
.social-links a.social:hover { transform: translateY(-4px); background: var(--gradient-blue); border-color: var(--primary-blue); }
.social-links a.social:hover::after { opacity: .5; }

/* Lordicon specific styling */
.social-links a.social lord-icon {
  display: block;
  width: 24px !important;
  height: 24px !important;
  z-index: 10;
  position: relative;
}

.social-links a.social span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.social-links a.social:hover { transform: translateY(-4px); background: var(--gradient-blue); border-color: var(--primary-blue); }
.social-links a.social:hover::after { opacity: .5; }

/* Individual accent overrides if wanted */
.social.x:hover { background: linear-gradient(135deg,#1DA1F2,#3b82f6); }
.social.linkedin:hover { background: linear-gradient(135deg,#0A66C2,#3b82f6); }
.social.instagram:hover { background: radial-gradient(circle at 30% 30%, #f58529,#dd2a7b,#8134af,#515bd4); }
.social.youtube:hover { background: linear-gradient(135deg,#ff0000,#be123c); }

/* Support row */
.footer-centered { justify-content: center; }

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr; gap: 60px; }
  .footer-brand { max-width: 520px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(160px,1fr)); gap: 50px; }
}

@media (max-width: 820px) {
  .site-footer { padding: 90px 0 50px; }
  .footer-container { padding: 0 28px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 50px 60px; }
  .footer-divider { margin: 60px 0 32px; }
}

@media (max-width: 520px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 40px 50px; }
  .footer-cta { width: 100%; }
  .footer-container { padding: 0 22px; }
  .legal-links { gap: 18px; }
}

